Merge pull request #10737 from unknownbrackets/savestate

SaveState: Keep an undo for each slot by default
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2018-03-24 10:18:18 +01:00
commit 198d921a9b
5 files changed
+94 -24

No files matched your search

+9
View File
@@ -325,6 +325,14 @@ static bool DefaultCodeGen() {
#endif
}
static bool DefaultEnableStateUndo() {
#ifdef MOBILE_DEVICE
// Off on mobile to save disk space.
return false;
#endif
return true;
}
struct ConfigSectionSettings {
const char *section;
ConfigSetting *settings;
@@ -354,6 +362,7 @@ static ConfigSetting generalSettings[] = {
ConfigSetting("DumpAudio", &g_Config.bDumpAudio, false),
ConfigSetting("SaveLoadResetsAVdumping", &g_Config.bSaveLoadResetsAVdumping, false),
ConfigSetting("StateSlot", &g_Config.iCurrentStateSlot, 0, true, true),
ConfigSetting("EnableStateUndo", &g_Config.bEnableStateUndo, &DefaultEnableStateUndo, true, true),
ConfigSetting("RewindFlipFrequency", &g_Config.iRewindFlipFrequency, 0, true, true),
ConfigSetting("GridView1", &g_Config.bGridView1, true),