Add Configurable RTC

This commit is contained in:
Chris Burgener
2016-07-13 16:46:14 -04:00
parent e21cc8937b
commit cac9516e39
10 changed files with 148 additions and 5 deletions

View File

@ -275,6 +275,8 @@ void SConfig::SaveCoreSettings(IniFile& ini)
core->Set("GFXBackend", m_strVideoBackend);
core->Set("GPUDeterminismMode", m_strGPUDeterminismMode);
core->Set("PerfMapDir", m_perfDir);
core->Set("EnableCustomRTC", bEnableCustomRTC);
core->Set("CustomRTCValue", m_customRTCValue);
}
void SConfig::SaveMovieSettings(IniFile& ini)
@ -553,6 +555,9 @@ void SConfig::LoadCoreSettings(IniFile& ini)
core->Get("GFXBackend", &m_strVideoBackend, "");
core->Get("GPUDeterminismMode", &m_strGPUDeterminismMode, "auto");
core->Get("PerfMapDir", &m_perfDir, "");
core->Get("EnableCustomRTC", &bEnableCustomRTC, false);
// Default to seconds between 1.1.1970 and 1.1.2000
core->Get("CustomRTCValue", &m_customRTCValue, 946684800);
}
void SConfig::LoadMovieSettings(IniFile& ini)