This commit is contained in:
thrust26 2017-12-16 10:54:45 +01:00
parent 0e5a444699
commit b6080e1701
1 changed files with 2 additions and 1 deletions

View File

@ -530,7 +530,7 @@ uInt16 Debugger::windStates(uInt16 numStates, bool unwind, string& message)
{
RewindManager& r = myOSystem.state().rewindManager();
mySystem.clearDirtyPages();
saveOldState();
unlockBankswitchState();
@ -617,6 +617,7 @@ void Debugger::setStartState()
// Save initial state and add it to the rewind list (except when in currently rewinding)
RewindManager& r = myOSystem.state().rewindManager();
saveOldState(false);
// avoid invalidating future states when entering the debugger during rewind
if (r.atLast())
addState("enter debugger");