aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorlat9nq <[email protected]>2023-06-05 20:41:50 -0400
committerlat9nq <[email protected]>2023-07-21 10:56:07 -0400
commit413316560784348b8ea2684d272b974fd0428267 (patch)
treed3a9015a0dcf29744d45d630246a19d1fae83dd9 /src/core/core.cpp
parent5ccfaf0517ed365e64458783b30f521d3ed21c78 (diff)
downloadyuzu-android-413316560784348b8ea2684d272b974fd0428267.tar.gz
yuzu-android-413316560784348b8ea2684d272b974fd0428267.zip
settings,core,config_sys: Remove optional type from custom_rtc, rng_seed
core: Fix MSVC errors
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 9e3eb3795..da1baa892 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -149,7 +149,9 @@ struct System::Impl {
const auto current_time =
std::chrono::duration_cast<std::chrono::seconds>(posix_time).count();
Settings::values.custom_rtc_differential =
- Settings::values.custom_rtc.value_or(current_time) - current_time;
+ (Settings::values.custom_rtc_enabled ? Settings::values.custom_rtc.GetValue()
+ : current_time) -
+ current_time;
// Create a default fs if one doesn't already exist.
if (virtual_filesystem == nullptr) {