diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-03 20:09:10 -0600 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-03 20:20:26 -0600 |
commit | 0fe935a5de9a3dcdc21010f4fa30f4854f2eae10 (patch) | |
tree | 7cff80682a19f1853e2b8416db978785b8a37536 /src/core/core.cpp | |
parent | c84c35ac743c6303fcc1bb96b17ae530a39bd49e (diff) |
core: Update clocks when settings are saved
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 08cbb8978..0ab2e3b76 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -1078,6 +1078,10 @@ void System::ApplySettings() { impl->RefreshTime(); if (IsPoweredOn()) { + if (Settings::values.custom_rtc_enabled) { + const s64 posix_time{Settings::values.custom_rtc.GetValue()}; + GetTimeManager().UpdateLocalSystemClockTime(posix_time); + } Renderer().RefreshBaseSettings(); } } |