mirror of https://github.com/stella-emu/stella.git
added that rewind toggle updates settings too
This commit is contained in:
parent
14330ac19d
commit
b35a9ef946
|
@ -131,11 +131,14 @@ void StateManager::toggleRecordMode()
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void StateManager::toggleRewindMode()
|
||||
{
|
||||
bool devSettings = myOSystem.settings().getBool("dev.settings");
|
||||
|
||||
myActiveMode = myActiveMode == Mode::Rewind ? Mode::Off : Mode::Rewind;
|
||||
if(myActiveMode == Mode::Rewind)
|
||||
myOSystem.frameBuffer().showMessage("Continuous rewind enabled");
|
||||
else
|
||||
myOSystem.frameBuffer().showMessage("Continuous rewind disabled");
|
||||
myOSystem.settings().setValue(devSettings ? "dev.rewind" : "plr.rewind", myActiveMode == Mode::Rewind);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue