diff options
| author | 2023-10-29 13:50:55 +0000 | |
|---|---|---|
| committer | 2024-01-24 04:26:55 +0000 | |
| commit | e4915fb7d2077584a11a15141bc81d28ed2b0125 (patch) | |
| tree | 1783055dc2e98eaf9099e8e7b194b55f8f607747 /src/common/settings.h | |
| parent | Merge pull request #12678 from german77/settings_impl (diff) | |
| download | yuzu-e4915fb7d2077584a11a15141bc81d28ed2b0125.tar.gz yuzu-e4915fb7d2077584a11a15141bc81d28ed2b0125.tar.xz yuzu-e4915fb7d2077584a11a15141bc81d28ed2b0125.zip | |
Rework time service to fix time passing offline.
Diffstat (limited to 'src/common/settings.h')
| -rw-r--r-- | src/common/settings.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 07dba53ab..16749ab68 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -419,9 +419,16 @@ struct Values { | |||
| 419 | linkage, false, "custom_rtc_enabled", Category::System, Specialization::Paired, true, true}; | 419 | linkage, false, "custom_rtc_enabled", Category::System, Specialization::Paired, true, true}; |
| 420 | SwitchableSetting<s64> custom_rtc{ | 420 | SwitchableSetting<s64> custom_rtc{ |
| 421 | linkage, 0, "custom_rtc", Category::System, Specialization::Time, | 421 | linkage, 0, "custom_rtc", Category::System, Specialization::Time, |
| 422 | true, true, &custom_rtc_enabled}; | 422 | false, true, &custom_rtc_enabled}; |
| 423 | // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` | 423 | SwitchableSetting<s64, true> custom_rtc_offset{linkage, |
| 424 | s64 custom_rtc_differential; | 424 | 0, |
| 425 | std::numeric_limits<int>::min(), | ||
| 426 | std::numeric_limits<int>::max(), | ||
| 427 | "custom_rtc_offset", | ||
| 428 | Category::System, | ||
| 429 | Specialization::Countable, | ||
| 430 | true, | ||
| 431 | true}; | ||
| 425 | SwitchableSetting<bool> rng_seed_enabled{ | 432 | SwitchableSetting<bool> rng_seed_enabled{ |
| 426 | linkage, false, "rng_seed_enabled", Category::System, Specialization::Paired, true, true}; | 433 | linkage, false, "rng_seed_enabled", Category::System, Specialization::Paired, true, true}; |
| 427 | SwitchableSetting<u32> rng_seed{ | 434 | SwitchableSetting<u32> rng_seed{ |