Debugger: full update on restart, remove breakpoints before closing

This commit is contained in:
alyosha-tas 2021-05-31 21:58:01 -04:00
parent dd12d27149
commit 147a5f0e75
3 changed files with 7 additions and 0 deletions

View File

@ -3729,6 +3729,11 @@ namespace BizHawk.Client.EmuHawk
loader.OnLoadSettings += CoreSettings;
loader.OnLoadSyncSettings += CoreSyncSettings;
if (Tools.IsLoaded<GenericDebugger>())
{
Tools.Restart<GenericDebugger>();
}
// this also happens in CloseGame(). But it needs to happen here since if we're restarting with the same core,
// any settings changes that we made need to make it back to config before we try to instantiate that core with
// the new settings objects

View File

@ -138,6 +138,7 @@ namespace BizHawk.Client.EmuHawk
{
DisengageDebugger();
EngageDebugger();
FullUpdate();
}
}
}

View File

@ -89,6 +89,7 @@ namespace BizHawk.Client.EmuHawk
_pcRegisterSize = Debuggable.GetCpuFlagsAndRegisters()[Disassembler.PCRegisterName].BitSize / 4;
SetDisassemblerItemCount();
UpdatePC();
UpdateDisassembler();
}
else