Split Core_EnableStepping into Core_Break and Core_Resume

This commit is contained in:
Henrik Rydgård committed 2024-11-03 17:53:42 +01:00
1 parent cbd19c967f
commit d3e9398cb3
27 files changed
+108 -90

No files matched your search

+2 -2
View File
@@ -82,7 +82,7 @@ INT_PTR CALLBACK DumpMemoryWindow::dlgFunc(HWND hwnd, UINT iMsg, WPARAM wParam,
bool priorDumpWasStepping = Core_IsStepping();
if (!priorDumpWasStepping && PSP_IsInited()) {
// If emulator isn't paused force paused state, but wait before locking.
Core_EnableStepping(true, "memory.access", bp->start);
Core_Break("memory.access", bp->start);
Core_WaitInactive();
}
@@ -117,7 +117,7 @@ INT_PTR CALLBACK DumpMemoryWindow::dlgFunc(HWND hwnd, UINT iMsg, WPARAM wParam,
fclose(output);
if (!priorDumpWasStepping) {
// If emulator wasn't paused before memory dump resume emulation automatically.
Core_EnableStepping(false);
Core_Resume();
}
MessageBoxA(hwnd, "Done.", "Information", MB_OK);