mirror of https://github.com/stella-emu/stella.git
fixed #270
This commit is contained in:
parent
0e5a444699
commit
b6080e1701
|
@ -530,7 +530,7 @@ uInt16 Debugger::windStates(uInt16 numStates, bool unwind, string& message)
|
||||||
{
|
{
|
||||||
RewindManager& r = myOSystem.state().rewindManager();
|
RewindManager& r = myOSystem.state().rewindManager();
|
||||||
|
|
||||||
mySystem.clearDirtyPages();
|
saveOldState();
|
||||||
|
|
||||||
unlockBankswitchState();
|
unlockBankswitchState();
|
||||||
|
|
||||||
|
@ -617,6 +617,7 @@ 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);
|
saveOldState(false);
|
||||||
|
// avoid invalidating future states when entering the debugger during rewind
|
||||||
if (r.atLast())
|
if (r.atLast())
|
||||||
addState("enter debugger");
|
addState("enter debugger");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue