Attempt on fixing breakage caused by pull #4575 by using a simpler and more cautious coding
This commit is contained in:
parent
a5a69e9f67
commit
37e52f8b92
1 changed files with 9 additions and 8 deletions
|
@ -435,18 +435,19 @@ void CtrlMemView::onMouseUp(WPARAM wParam, LPARAM lParam, int button)
|
||||||
{
|
{
|
||||||
case ID_MEMVIEW_DUMP:
|
case ID_MEMVIEW_DUMP:
|
||||||
|
|
||||||
bool PriorDumpIsPaused=Core_IsStepping();
|
if (!Core_IsStepping()) // If emulator isn't paused
|
||||||
if (!PriorDumpIsPaused) // If emulator isn't paused
|
|
||||||
{
|
{
|
||||||
Core_EnableStepping(true); //force paused state
|
Core_EnableStepping(true); //force paused state
|
||||||
|
DumpMemoryWindow dump(wnd,debugger);
|
||||||
|
dump.exec();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
DumpMemoryWindow dump(wnd,debugger);
|
else
|
||||||
dump.exec();
|
|
||||||
if (!PriorDumpIsPaused) // If emulator wasn't paused before dumping
|
|
||||||
{
|
{
|
||||||
Core_EnableStepping(false);//resume emulation
|
DumpMemoryWindow dump(wnd,debugger);
|
||||||
}
|
dump.exec();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case ID_MEMVIEW_COPYVALUE_8:
|
case ID_MEMVIEW_COPYVALUE_8:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue