mirror of https://github.com/stella-emu/stella.git
improved saveOldState() usage, now changes after a break are displayed too
This commit is contained in:
parent
f0d5ffbd0a
commit
44bb4db73e
|
@ -79,6 +79,8 @@ Debugger::Debugger(OSystem& osystem, Console& console)
|
||||||
// there will only be ever one instance of debugger in Stella,
|
// there will only be ever one instance of debugger in Stella,
|
||||||
// I don't care :)
|
// I don't care :)
|
||||||
myStaticDebugger = this;
|
myStaticDebugger = this;
|
||||||
|
|
||||||
|
saveOldState();
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
@ -616,7 +618,6 @@ 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();
|
||||||
saveOldState(false);
|
|
||||||
// avoid invalidating future states when entering the debugger during rewind
|
// avoid invalidating future states when entering the debugger during rewind
|
||||||
if (r.atLast())
|
if (r.atLast())
|
||||||
addState("enter debugger");
|
addState("enter debugger");
|
||||||
|
@ -628,6 +629,8 @@ void Debugger::setStartState()
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void Debugger::setQuitState()
|
void Debugger::setQuitState()
|
||||||
{
|
{
|
||||||
|
saveOldState();
|
||||||
|
|
||||||
// Bus must be unlocked for normal operation when leaving debugger mode
|
// Bus must be unlocked for normal operation when leaving debugger mode
|
||||||
unlockBankswitchState();
|
unlockBankswitchState();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue