mirror of https://github.com/stella-emu/stella.git
fixed #276
made sure that the rewind buttons always have correct state when entering debugger
This commit is contained in:
parent
77158fd845
commit
ce195d71a1
|
@ -619,9 +619,11 @@ void Debugger::setStartState()
|
||||||
|
|
||||||
// Save initial state and add it to the rewind list (except when in currently rewinding)
|
// Save initial state and add it to the rewind list (except when in currently rewinding)
|
||||||
RewindManager& r = myOSystem.state().rewindManager();
|
RewindManager& r = myOSystem.state().rewindManager();
|
||||||
// avoid invalidating future states when entering the debugger during rewind
|
// avoid invalidating future states when entering the debugger e.g. during rewind
|
||||||
if (r.atLast())
|
if(myOSystem.eventHandler().state() == EventHandlerState::EMULATION)
|
||||||
addState("enter debugger");
|
addState("enter debugger");
|
||||||
|
else
|
||||||
|
updateRewindbuttons(r);
|
||||||
|
|
||||||
// Set the 're-disassemble' flag, but don't do it until the next scheduled time
|
// Set the 're-disassemble' flag, but don't do it until the next scheduled time
|
||||||
myDialog->rom().invalidate(false);
|
myDialog->rom().invalidate(false);
|
||||||
|
|
Loading…
Reference in New Issue