made sure that the rewind buttons always have correct state when entering debugger
This commit is contained in:
thrust26 2018-01-07 10:56:30 +01:00
parent 77158fd845
commit ce195d71a1
1 changed files with 4 additions and 2 deletions

View File

@ -619,9 +619,11 @@ void Debugger::setStartState()
// Save initial state and add it to the rewind list (except when in currently rewinding)
RewindManager& r = myOSystem.state().rewindManager();
// avoid invalidating future states when entering the debugger during rewind
if (r.atLast())
// avoid invalidating future states when entering the debugger e.g. during rewind
if(myOSystem.eventHandler().state() == EventHandlerState::EMULATION)
addState("enter debugger");
else
updateRewindbuttons(r);
// Set the 're-disassemble' flag, but don't do it until the next scheduled time
myDialog->rom().invalidate(false);