GameSettings: Fix CD-ROM read speedup incorrectly saved to ini

This commit is contained in:
Connor McLaughlin 2020-11-08 00:12:37 +10:00
parent 3e6bc0e10d
commit 56ab103559
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ static void StoreIniSection(const Entry& entry, const char* section, CSimpleIniA
ini.SetBoolValue(section, "CPUOverclockEnable", entry.cpu_overclock_enable.value()); ini.SetBoolValue(section, "CPUOverclockEnable", entry.cpu_overclock_enable.value());
if (entry.cdrom_read_speedup.has_value()) if (entry.cdrom_read_speedup.has_value())
ini.SetBoolValue(section, "CDROMReadSpeedup", entry.cdrom_read_speedup.value()); ini.SetLongValue(section, "CDROMReadSpeedup", static_cast<long>(entry.cdrom_read_speedup.value()));
if (entry.display_active_start_offset.has_value()) if (entry.display_active_start_offset.has_value())
ini.SetLongValue(section, "DisplayActiveStartOffset", entry.display_active_start_offset.value()); ini.SetLongValue(section, "DisplayActiveStartOffset", entry.display_active_start_offset.value());