Henrik Rydgård
3a5968ba33
Don't block the render thread while the CPU is paused. This is a prereq for imgui debuggers.
2024-11-05 12:53:21 +01:00
Henrik Rydgård
e19ad1f359
Remove return value from Core_PerformStep
2024-11-05 12:53:21 +01:00
Henrik Rydgård
c787149472
Start moving the CPU debug-step logic to Core.cpp
2024-11-03 17:54:51 +01:00
Henrik Rydgård
d3e9398cb3
Split Core_EnableStepping into Core_Break and Core_Resume
2024-11-03 17:53:42 +01:00
Henrik Rydgård
20626ebfee
When we enforce run-behind due to multiplayer, show "Network connected" on the pause screen
2024-01-21 12:02:30 +01:00
Henrik Rydgård
b899a178bf
Change approach (call from NativeFrame instead). Add Mac support
2024-01-18 18:21:12 +01:00
Henrik Rydgård
d51da3ca60
Windows: Add "Restart Graphics" to the debug menu. Useful to debug resource lifetime issues.
2024-01-18 15:57:45 +01:00
Henrik Rydgård
3ce843819e
Show a notification if a game exits with sceKernelExitGame. Mainly useful for homebrew.
2024-01-15 10:36:32 +01:00
Henrik Rydgård
acd719448e
Wrap g_Config.bRunBehindPauseMenu behind a function, so we can add conditions
2023-12-30 21:50:20 +01:00
Herman Semenov
af41281761
[Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params
2023-12-14 14:22:24 +03:00
Henrik Rydgård
0477ba8c78
Core.cpp: Some slight simplifications
2023-08-10 17:15:56 +02:00
Henrik Rydgård
be708e3e02
Move KeepScreenAwake to platform specific code.
2023-08-10 16:12:12 +02:00
Henrik Rydgård
5ee04ce403
SDL: Break out event processing from main loop
...
Makes things a bit easier to work with.
2023-08-08 12:28:42 +02:00
Henrik Rydgård
ab37b8dea9
Rename a couple of types to avoid clashes with a Mac header, sigh.
2023-04-28 13:38:16 +02:00
Henrik Rydgård
2814668cf5
Show a MIPS stack trace on crash screen ( #17211 )
...
* Print simple stack traces to log on crashes.
* Display stack traces on crash screen
* Show the in-function offset in the printed callstacks.
* Libretro buildfix attempt
2023-03-31 10:08:12 +02:00
Henrik Rydgård
436a3e0d61
Cleaner exit from emuthread, as used by OpenGL. Don't know how it worked before...
2023-01-30 11:49:31 +01:00
Henrik Rydgård
aa80659530
Memory exception: Add facility to track size
...
Might theoretically help in tracking some things down.
Not fully utilized yet, the fault handler needs to extract the
information from the faulting instruction. But we can use it for
GetPointerRange etc.
2023-01-01 20:30:29 +01:00
Henrik Rydgård
97fadbcecb
Show bluescreen properly on memory errors that we failed to ignore.
...
Previously we just wouldn't draw it but still would be in the error
state.
2022-12-30 12:29:23 +01:00
Unknown W. Brackets
8e7847f6d9
UI: Show return address for exec crashes.
2022-08-21 14:49:34 -07:00
Unknown W. Brackets
90517ace59
irjit: Validate alignment in slow memory mode.
2022-08-21 13:24:10 -07:00
Unknown W. Brackets
fc2efe5dff
Debugger: Add reason to cpu.stepping event.
2021-10-23 22:08:15 -07:00
Unknown W. Brackets
2bd13c5d9d
Debugger: Track reason for entering stepping.
2021-10-23 16:56:15 -07:00
Unknown W. Brackets
32c7ff8436
SaveState: Allow loading save state in exception.
...
And allow saving as well, since we can maybe resume.
2021-08-08 23:15:27 -07:00
Henrik Rydgård
8c38d7305e
Crash: Show disassembly of the instruction causing the crash, and the symbol name.
2020-07-15 12:38:05 +02:00
Henrik Rydgård
6f97c3d422
Various platform buildfixes
2020-07-14 09:25:59 +02:00
Henrik Rydgård
a56f391713
Make fastmem memory exceptions report the exceptions to Core correctly.
2020-07-14 09:25:45 +02:00
Unknown W. Brackets
940066db68
Core: Track exception on bad jumps.
2020-07-12 21:59:08 -07:00
Henrik Rydgård
7dcd708fac
Address some feedback
2020-07-12 15:25:27 +02:00
Henrik Rydgard
873c11d7f9
Draw a minimal crash dump on the emu screen after a caught crash.
2020-07-12 15:25:21 +02:00
Henrik Rydgård
a722dfe0fb
Formalize "core excpetions" as a concept
2020-07-12 15:25:21 +02:00
Henrik Rydgård
8461ea19b1
Centralize handling of memory exceptions a bit
2020-07-12 15:25:20 +02:00
Unknown W. Brackets
0ed2c03350
GE Debugger: Prevent hang on shutdown.
...
Since we're blocking the Emu thread, we can't use a hook from the Emu
thread to wake up.
The change to lifecycle callbacks caused this.
2018-06-11 14:54:42 -07:00
Unknown W. Brackets
3193772e78
Debugger: Use a lock for memory reallocs.
...
Simpler this way, no need to remember to lock memory.
2018-06-08 06:59:18 -07:00
Unknown W. Brackets
c15ade3b1b
Core: Refactor stepping and locking.
...
This should fix some race conditions with the cond vars.
2018-06-06 17:31:56 -07:00
Unknown W. Brackets
6fbd0e27bb
Core: Remove some unused coreState funcs.
2018-06-06 05:58:50 -07:00
Unknown W. Brackets
e313a9bf6c
Debugger: Lock startup/shutdown for threadsafety.
...
Otherwise things can get freed while we're trying to inspect them.
2018-06-06 05:58:49 -07:00
Unknown W. Brackets
77609bbea2
Debugger: Track a counter when entering stepping.
...
This allows us to poll coreState and know if a new stepping needs to be
sent. This is useful to allow e.g. regs to show changes per step.
2018-06-06 05:58:49 -07:00
Henrik Rydgård
42f2312030
Remove the old CPU threading remains, start redesigning interfaces.
2018-01-27 15:10:17 +01:00
Unknown W. Brackets
9e390510df
Remove legacy InputState.
2017-03-14 22:07:07 -07:00
Henrik Rydgård
0be02f6de0
Improve smallwindow detection, code cleanup.
2017-01-17 17:21:00 +07:00
Unknown W. Brackets
1f7a137926
Android: Detect and report power save mode.
...
This shows a message when it's on, or when power drops to low.
2016-07-24 17:04:06 -07:00
Henrik Rydgard
0d6ad3df2f
Fix wrong type of parameter to UpdateRunLoop. Do not understand how this compiled.
2016-05-28 16:11:02 +02:00
Unknown W. Brackets
95d912c378
Get rid of the input_state global linkage.
2016-05-27 20:24:01 -07:00
Henrik Rydgård
95822a165d
Fix Mac build
2016-01-01 14:40:19 +01:00
Henrik Rydgard
15de6e6b98
GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
...
Needed to prevent clutter all over the codebase.
Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Henrik Rydgard
28d8ed5881
Win32: Fix a bunch of little window resizing issues
2015-05-15 18:04:05 +02:00
Unknown W. Brackets
8f7e98f484
Keep Windows devices from sleeping while playing.
2015-03-01 08:29:11 -08:00
Unknown W. Brackets
1a0f537967
dx9: Avoid triggering reset when size unchanged.
2014-12-28 13:19:19 -08:00
Sacha
8a7573004d
Use UpdateRunLoop to handle input and detect minimized window for all platforms.
2014-06-30 00:17:34 +10:00
Henrik Rydgard
3cdf53732b
Make the emuthread idle when minimized on Windows.
2014-06-29 13:11:58 +02:00