added that rewind toggle updates settings too

This commit is contained in:
thrust26 2017-12-06 19:49:03 +01:00
parent 14330ac19d
commit b35a9ef946
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -