Qt: Simplify runahead settings
This commit is contained in:
parent
1b16ba3d98
commit
16a32bf696
7 changed files with 90 additions and 69 deletions
|
|
@ -126,8 +126,7 @@ void Settings::Load(SettingsInterface& si)
|
|||
rewind_enable = si.GetBoolValue("Main", "RewindEnable", false);
|
||||
rewind_save_frequency = si.GetFloatValue("Main", "RewindFrequency", 10.0f);
|
||||
rewind_save_slots = static_cast<u32>(si.GetIntValue("Main", "RewindSaveSlots", 10));
|
||||
runahead_enable = si.GetBoolValue("Main", "RunaheadEnable", false);
|
||||
runahead_frames = static_cast<u32>(si.GetIntValue("Main", "RunaheadFrames", 1));
|
||||
runahead_frames = static_cast<u32>(si.GetIntValue("Main", "RunaheadFrameCount", 0));
|
||||
|
||||
cpu_execution_mode =
|
||||
ParseCPUExecutionMode(
|
||||
|
|
@ -303,8 +302,7 @@ void Settings::Save(SettingsInterface& si) const
|
|||
si.SetBoolValue("Main", "RewindEnable", rewind_enable);
|
||||
si.SetFloatValue("Main", "RewindFrequency", rewind_save_frequency);
|
||||
si.SetIntValue("Main", "RewindSaveSlots", rewind_save_slots);
|
||||
si.SetBoolValue("Main", "RunaheadEnable", runahead_enable);
|
||||
si.SetIntValue("Main", "RunaheadFrames", runahead_frames);
|
||||
si.SetIntValue("Main", "RunaheadFrameCount", runahead_frames);
|
||||
|
||||
si.SetStringValue("CPU", "ExecutionMode", GetCPUExecutionModeName(cpu_execution_mode));
|
||||
si.SetBoolValue("CPU", "OverclockEnable", cpu_overclock_enable);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue