Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

core: Update clocks when settings are saved

Narr the Reg95c4dbc1634e
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();
}
}