summaryrefslogtreecommitdiffstats
path: root/src/common/settings.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-21 10:32:13 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:55 +0200
commit7f708e8d77fb6237407f49246622dbe1b445d536 (patch)
tree454602f59a51763b12e4952046fbd0bdf47bd4ec /src/common/settings.h
parentshared_widget: Internalize component restoring (diff)
downloadyuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar
yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar.gz
yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar.bz2
yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar.lz
yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar.xz
yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.tar.zst
yuzu-7f708e8d77fb6237407f49246622dbe1b445d536.zip
Diffstat (limited to 'src/common/settings.h')
-rw-r--r--src/common/settings.h21
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 {
linkage, false, "use_unsafe_extended_memory_layout", Category::Core};
SwitchableSetting<bool> use_speed_limit{
linkage, true, "use_speed_limit", Category::Core, Specialization::Paired, false, true};
- SwitchableSetting<u16, true> speed_limit{
- linkage, 100, 0, 9999, "speed_limit", Category::Core, Specialization::Countable,
- true, true};
+ SwitchableSetting<u16, true> speed_limit{linkage,
+ 100,
+ 0,
+ 9999,
+ "speed_limit",
+ Category::Core,
+ Specialization::Countable,
+ true,
+ true,
+ &use_speed_limit};
// Cpu
SwitchableSetting<CpuAccuracy, true> cpu_accuracy{linkage, CpuAccuracy::Auto,
@@ -339,13 +346,15 @@ struct Values {
SwitchableSetting<bool> custom_rtc_enabled{
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};
+ 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;
SwitchableSetting<bool> rng_seed_enabled{
linkage, false, "rng_seed_enabled", Category::System, Specialization::Paired, true, true};
- SwitchableSetting<u32> rng_seed{linkage, 0, "rng_seed", Category::System, Specialization::Hex,
- true, true};
+ SwitchableSetting<u32> rng_seed{
+ linkage, 0, "rng_seed", Category::System, Specialization::Hex,
+ true, true, &rng_seed_enabled};
Setting<std::string> device_name{
linkage, "yuzu", "device_name", Category::System, Specialization::Default, true, true};