summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-07 16:55:21 +0200
committerGitHub <noreply@github.com>2023-10-07 16:55:21 +0200
commitfc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3 (patch)
treee7e06fb7378f75ca0e0223776950645740a21e19 /src/core
parentMerge pull request #11688 from Kelebek1/x8d42 (diff)
parentcore: Update clocks when settings are saved (diff)
downloadyuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar
yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar.gz
yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar.bz2
yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar.lz
yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar.xz
yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.tar.zst
yuzu-fc4cde751381a19b9adc4895ab1e4e1d3c1ba7f3.zip
Diffstat (limited to 'src/core')
-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 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();
}
}