settings: Use std::chrono::seconds instead of s64 for RTC

This commit is contained in:
Zach Hilman 2018-12-28 20:24:24 -05:00
parent dbb1eb9c29
commit 05dbb47af5
6 changed files with 21 additions and 17 deletions

View file

@ -334,7 +334,8 @@ void Config::ReadValues() {
const auto custom_rtc_enabled = sdl2_config->GetBoolean("System", "custom_rtc_enabled", false);
if (custom_rtc_enabled) {
Settings::values.custom_rtc = sdl2_config->GetInteger("System", "custom_rtc", 0);
Settings::values.custom_rtc =
std::chrono::seconds(sdl2_config->GetInteger("System", "custom_rtc", 0));
} else {
Settings::values.custom_rtc = std::nullopt;
}