Attempt on fixing breakage caused by pull #4575 by using a simpler and more cautious coding

This commit is contained in:
pal1000 2013-11-19 19:18:08 +02:00
parent a5a69e9f67
commit 37e52f8b92

View file

@ -435,18 +435,19 @@ void CtrlMemView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
{
case ID_MEMVIEW_DUMP:
bool PriorDumpIsPaused=Core_IsStepping();
if (!PriorDumpIsPaused) // If emulator isn't paused
if (!Core_IsStepping()) // If emulator isn't paused
{
Core_EnableStepping(true); //force paused state
DumpMemoryWindow dump(wnd,debugger);
dump.exec();
break;
}
DumpMemoryWindow dump(wnd,debugger);
dump.exec();
if (!PriorDumpIsPaused) // If emulator wasn't paused before dumping
else
{
Core_EnableStepping(false);//resume emulation
}
break;
DumpMemoryWindow dump(wnd,debugger);
dump.exec();
break;
}
case ID_MEMVIEW_COPYVALUE_8:
{