From b35a9ef946cf379865ac996081da6012622bd62e Mon Sep 17 00:00:00 2001 From: thrust26 Date: Wed, 6 Dec 2017 19:49:03 +0100 Subject: [PATCH] added that rewind toggle updates settings too --- src/common/StateManager.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/StateManager.cxx b/src/common/StateManager.cxx index 34488cb1b..8896a2fe1 100644 --- a/src/common/StateManager.cxx +++ b/src/common/StateManager.cxx @@ -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); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -