Settings: Fix incorrect data type for rewind slots
This commit is contained in:
parent
5725a0360b
commit
f9155e5ce7
|
@ -171,8 +171,8 @@ void Settings::Load(const SettingsInterface& si, const SettingsInterface& contro
|
|||
enable_discord_presence = si.GetBoolValue("Main", "EnableDiscordPresence", false);
|
||||
rewind_enable = si.GetBoolValue("Main", "RewindEnable", false);
|
||||
rewind_save_frequency = si.GetFloatValue("Main", "RewindFrequency", 10.0f);
|
||||
rewind_save_slots = static_cast<u8>(si.GetUIntValue("Main", "RewindSaveSlots", 10u));
|
||||
runahead_frames = static_cast<u8>(si.GetUIntValue("Main", "RunaheadFrameCount", 0u));
|
||||
rewind_save_slots = static_cast<u16>(std::min(si.GetUIntValue("Main", "RewindSaveSlots", 10u), 65535u));
|
||||
runahead_frames = static_cast<u8>(std::min(si.GetUIntValue("Main", "RunaheadFrameCount", 0u), 255u));
|
||||
|
||||
cpu_execution_mode =
|
||||
ParseCPUExecutionMode(
|
||||
|
|
|
@ -91,7 +91,7 @@ struct Settings
|
|||
|
||||
bool rewind_enable : 1 = false;
|
||||
float rewind_save_frequency = 10.0f;
|
||||
u8 rewind_save_slots = 10;
|
||||
u16 rewind_save_slots = 10;
|
||||
u8 runahead_frames = 0;
|
||||
|
||||
GPURenderer gpu_renderer = DEFAULT_GPU_RENDERER;
|
||||
|
|
Loading…
Reference in New Issue