diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-25 14:19:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 14:19:01 -0500 |
commit | d45561ace069024f47ed710d1165b607644d1ec3 (patch) | |
tree | a316f59c5a722dc15fe5c49b3641d9801c264970 /src/common/settings.h | |
parent | f3749394ac5700a2438cdc4d6536941e02b92939 (diff) | |
parent | e4915fb7d2077584a11a15141bc81d28ed2b0125 (diff) |
Merge pull request #12499 from Kelebek1/time
Rework time services
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 { linkage, false, "custom_rtc_enabled", Category::System, Specialization::Paired, true, true}; SwitchableSetting<s64> custom_rtc{ linkage, 0, "custom_rtc", Category::System, Specialization::Time, - true, true, &custom_rtc_enabled}; - // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` - s64 custom_rtc_differential; + false, true, &custom_rtc_enabled}; + SwitchableSetting<s64, true> custom_rtc_offset{linkage, + 0, + std::numeric_limits<int>::min(), + std::numeric_limits<int>::max(), + "custom_rtc_offset", + Category::System, + Specialization::Countable, + true, + true}; SwitchableSetting<bool> rng_seed_enabled{ linkage, false, "rng_seed_enabled", Category::System, Specialization::Paired, true, true}; SwitchableSetting<u32> rng_seed{ |