mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-25 03:09:13 +01:00
Merge pull request #4575 from pal1000/master
Update windows Memory Viewer: Attempt automatic pause when dumping RAM
This commit is contained in:
commit
faaabfa21d
1 file changed
+9
-8
@@ -435,17 +435,18 @@ void CtrlMemView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
|
||||
{
|
||||
case ID_MEMVIEW_DUMP:
|
||||
|
||||
if (!Core_IsStepping()) // If emulator isn't paused
|
||||
bool PriorDumpIsPaused=Core_IsStepping();
|
||||
if (!PriorDumpIsPaused) // If emulator isn't paused
|
||||
{
|
||||
MessageBox(wnd,L"You have to pause the emulator first",0,0);
|
||||
break;
|
||||
Core_EnableStepping(true); //force paused state
|
||||
}
|
||||
else
|
||||
DumpMemoryWindow dump(wnd,debugger);
|
||||
dump.exec();
|
||||
if (!PriorDumpIsPaused) // If emulator wasn't paused before dumping
|
||||
{
|
||||
DumpMemoryWindow dump(wnd,debugger);
|
||||
dump.exec();
|
||||
break;
|
||||
Core_EnableStepping(false);//resume emulation
|
||||
}
|
||||
break;
|
||||
|
||||
case ID_MEMVIEW_COPYVALUE_8:
|
||||
{
|
||||
@@ -702,4 +703,4 @@ void CtrlMemView::search(bool continueSearch)
|
||||
MessageBox(wnd,L"Not found",L"Search",MB_OK);
|
||||
searching = false;
|
||||
redraw();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user