diff options
| author | 2023-06-21 04:32:13 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:55 -0400 | |
| commit | 7f708e8d77fb6237407f49246622dbe1b445d536 (patch) | |
| tree | 454602f59a51763b12e4952046fbd0bdf47bd4ec /src/common/settings.h | |
| parent | shared_widget: Internalize component restoring (diff) | |
| download | yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar.gz yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar.xz yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.zip | |
settings: Define paired settings
settings_common: Remove unused optional
Diffstat (limited to '')
| -rw-r--r-- | src/common/settings.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index c78dd85c8..b87301d4e 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -150,9 +150,16 @@ struct Values { | |||
| 150 | linkage, false, "use_unsafe_extended_memory_layout", Category::Core}; | 150 | linkage, false, "use_unsafe_extended_memory_layout", Category::Core}; |
| 151 | SwitchableSetting<bool> use_speed_limit{ | 151 | SwitchableSetting<bool> use_speed_limit{ |
| 152 | linkage, true, "use_speed_limit", Category::Core, Specialization::Paired, false, true}; | 152 | linkage, true, "use_speed_limit", Category::Core, Specialization::Paired, false, true}; |
| 153 | SwitchableSetting<u16, true> speed_limit{ | 153 | SwitchableSetting<u16, true> speed_limit{linkage, |
| 154 | linkage, 100, 0, 9999, "speed_limit", Category::Core, Specialization::Countable, | 154 | 100, |
| 155 | true, true}; | 155 | 0, |
| 156 | 9999, | ||
| 157 | "speed_limit", | ||
| 158 | Category::Core, | ||
| 159 | Specialization::Countable, | ||
| 160 | true, | ||
| 161 | true, | ||
| 162 | &use_speed_limit}; | ||
| 156 | 163 | ||
| 157 | // Cpu | 164 | // Cpu |
| 158 | SwitchableSetting<CpuAccuracy, true> cpu_accuracy{linkage, CpuAccuracy::Auto, | 165 | SwitchableSetting<CpuAccuracy, true> cpu_accuracy{linkage, CpuAccuracy::Auto, |
| @@ -339,13 +346,15 @@ struct Values { | |||
| 339 | SwitchableSetting<bool> custom_rtc_enabled{ | 346 | SwitchableSetting<bool> custom_rtc_enabled{ |
| 340 | linkage, false, "custom_rtc_enabled", Category::System, Specialization::Paired, true, true}; | 347 | linkage, false, "custom_rtc_enabled", Category::System, Specialization::Paired, true, true}; |
| 341 | SwitchableSetting<s64> custom_rtc{ | 348 | SwitchableSetting<s64> custom_rtc{ |
| 342 | linkage, 0, "custom_rtc", Category::System, Specialization::Time, true, true}; | 349 | linkage, 0, "custom_rtc", Category::System, Specialization::Time, |
| 350 | true, true, &custom_rtc_enabled}; | ||
| 343 | // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` | 351 | // Set on game boot, reset on stop. Seconds difference between current time and `custom_rtc` |
| 344 | s64 custom_rtc_differential; | 352 | s64 custom_rtc_differential; |
| 345 | SwitchableSetting<bool> rng_seed_enabled{ | 353 | SwitchableSetting<bool> rng_seed_enabled{ |
| 346 | linkage, false, "rng_seed_enabled", Category::System, Specialization::Paired, true, true}; | 354 | linkage, false, "rng_seed_enabled", Category::System, Specialization::Paired, true, true}; |
| 347 | SwitchableSetting<u32> rng_seed{linkage, 0, "rng_seed", Category::System, Specialization::Hex, | 355 | SwitchableSetting<u32> rng_seed{ |
| 348 | true, true}; | 356 | linkage, 0, "rng_seed", Category::System, Specialization::Hex, |
| 357 | true, true, &rng_seed_enabled}; | ||
| 349 | Setting<std::string> device_name{ | 358 | Setting<std::string> device_name{ |
| 350 | linkage, "yuzu", "device_name", Category::System, Specialization::Default, true, true}; | 359 | linkage, "yuzu", "device_name", Category::System, Specialization::Default, true, true}; |
| 351 | 360 | ||