diff options
| author | 2023-10-03 20:09:10 -0600 | |
|---|---|---|
| committer | 2023-10-03 20:20:26 -0600 | |
| commit | 0fe935a5de9a3dcdc21010f4fa30f4854f2eae10 (patch) | |
| tree | 7cff80682a19f1853e2b8416db978785b8a37536 /src/core/core.cpp | |
| parent | yuzu: Fix mute when in background setting (diff) | |
| download | yuzu-0fe935a5de9a3dcdc21010f4fa30f4854f2eae10.tar.gz yuzu-0fe935a5de9a3dcdc21010f4fa30f4854f2eae10.tar.xz yuzu-0fe935a5de9a3dcdc21010f4fa30f4854f2eae10.zip | |
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() { | |||
| 1078 | impl->RefreshTime(); | 1078 | impl->RefreshTime(); |
| 1079 | 1079 | ||
| 1080 | if (IsPoweredOn()) { | 1080 | if (IsPoweredOn()) { |
| 1081 | if (Settings::values.custom_rtc_enabled) { | ||
| 1082 | const s64 posix_time{Settings::values.custom_rtc.GetValue()}; | ||
| 1083 | GetTimeManager().UpdateLocalSystemClockTime(posix_time); | ||
| 1084 | } | ||
| 1081 | Renderer().RefreshBaseSettings(); | 1085 | Renderer().RefreshBaseSettings(); |
| 1082 | } | 1086 | } |
| 1083 | } | 1087 | } |