aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-10-03 20:09:10 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2023-10-03 20:20:26 -0600
commit95c4dbc1634e758d47ddd58ebb5f0ee54f535b91 (patch)
tree7cff80682a19f1853e2b8416db978785b8a37536 /src/core/core.cpp
parent751b4e216262d9e2467ed9f0cdc2d169412f8b57 (diff)
core: Update clocks when settings are saved
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 08cbb89783..0ab2e3b761 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();
}
}