diff options
| author | 2023-06-05 20:41:50 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:07 -0400 | |
| commit | 413316560784348b8ea2684d272b974fd0428267 (patch) | |
| tree | d3a9015a0dcf29744d45d630246a19d1fae83dd9 /src/core/core.cpp | |
| parent | settings: Pool SetGlobal functions (diff) | |
| download | yuzu-413316560784348b8ea2684d272b974fd0428267.tar.gz yuzu-413316560784348b8ea2684d272b974fd0428267.tar.xz yuzu-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.cpp | 4 |
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 { | |||
| 149 | const auto current_time = | 149 | const auto current_time = |
| 150 | std::chrono::duration_cast<std::chrono::seconds>(posix_time).count(); | 150 | std::chrono::duration_cast<std::chrono::seconds>(posix_time).count(); |
| 151 | Settings::values.custom_rtc_differential = | 151 | Settings::values.custom_rtc_differential = |
| 152 | Settings::values.custom_rtc.value_or(current_time) - current_time; | 152 | (Settings::values.custom_rtc_enabled ? Settings::values.custom_rtc.GetValue() |
| 153 | : current_time) - | ||
| 154 | current_time; | ||
| 153 | 155 | ||
| 154 | // Create a default fs if one doesn't already exist. | 156 | // Create a default fs if one doesn't already exist. |
| 155 | if (virtual_filesystem == nullptr) { | 157 | if (virtual_filesystem == nullptr) { |