mirror of https://github.com/stella-emu/stella.git
Save console controllers and switches state in state files. This allows
the debugger to work correctly when rewinding and interacting with these parts of the system. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2355 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
cb7f68bd02
commit
a7ca813174
|
@ -231,8 +231,9 @@ bool Console::save(Serializer& out) const
|
|||
if(!mySystem->save(out))
|
||||
return false;
|
||||
|
||||
// Now save the console switches
|
||||
if(!mySwitches->save(out))
|
||||
// Now save the console controllers and switches
|
||||
if(!(myControllers[0]->save(out) && myControllers[1]->save(out) &&
|
||||
mySwitches->save(out)))
|
||||
return false;
|
||||
}
|
||||
catch(const char* msg)
|
||||
|
@ -253,8 +254,9 @@ bool Console::load(Serializer& in)
|
|||
if(!mySystem->load(in))
|
||||
return false;
|
||||
|
||||
// Then load the console switches
|
||||
if(!mySwitches->load(in))
|
||||
// Then load the console controllers and switches
|
||||
if(!(myControllers[0]->load(in) && myControllers[1]->load(in) &&
|
||||
mySwitches->load(in)))
|
||||
return false;
|
||||
}
|
||||
catch(const char* msg)
|
||||
|
|
Loading…
Reference in New Issue