diff options
| author | 2018-12-28 20:24:24 -0500 | |
|---|---|---|
| committer | 2019-01-07 19:19:40 -0500 | |
| commit | 05dbb47af51fb00826912155da85469cb74022db (patch) | |
| tree | 3162febaeb374ee6310491f75d94b2ec4918b5ae /src/yuzu_cmd/config.cpp | |
| parent | time: Use custom RTC settings if applicable for game (diff) | |
| download | yuzu-05dbb47af51fb00826912155da85469cb74022db.tar.gz yuzu-05dbb47af51fb00826912155da85469cb74022db.tar.xz yuzu-05dbb47af51fb00826912155da85469cb74022db.zip | |
settings: Use std::chrono::seconds instead of s64 for RTC
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 8f3b74cdf..7a77f76e8 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -334,7 +334,8 @@ void Config::ReadValues() { | |||
| 334 | 334 | ||
| 335 | const auto custom_rtc_enabled = sdl2_config->GetBoolean("System", "custom_rtc_enabled", false); | 335 | const auto custom_rtc_enabled = sdl2_config->GetBoolean("System", "custom_rtc_enabled", false); |
| 336 | if (custom_rtc_enabled) { | 336 | if (custom_rtc_enabled) { |
| 337 | Settings::values.custom_rtc = sdl2_config->GetInteger("System", "custom_rtc", 0); | 337 | Settings::values.custom_rtc = |
| 338 | std::chrono::seconds(sdl2_config->GetInteger("System", "custom_rtc", 0)); | ||
| 338 | } else { | 339 | } else { |
| 339 | Settings::values.custom_rtc = std::nullopt; | 340 | Settings::values.custom_rtc = std::nullopt; |
| 340 | } | 341 | } |