diff options
| author | 2018-12-28 20:24:24 -0500 | |
|---|---|---|
| committer | 2019-01-07 19:19:40 -0500 | |
| commit | 05dbb47af51fb00826912155da85469cb74022db (patch) | |
| tree | 3162febaeb374ee6310491f75d94b2ec4918b5ae /src/core/core.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/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 7459c0851..123b11409 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -96,8 +96,7 @@ struct System::Impl { | |||
| 96 | kernel.Initialize(); | 96 | kernel.Initialize(); |
| 97 | 97 | ||
| 98 | const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( | 98 | const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( |
| 99 | std::chrono::system_clock::now().time_since_epoch()) | 99 | std::chrono::system_clock::now().time_since_epoch()); |
| 100 | .count(); | ||
| 101 | Settings::values.custom_rtc_differential = | 100 | Settings::values.custom_rtc_differential = |
| 102 | Settings::values.custom_rtc.value_or(current_time) - current_time; | 101 | Settings::values.custom_rtc.value_or(current_time) - current_time; |
| 103 | 102 | ||