diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-21 10:32:13 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:55 +0200 |
commit | 7f708e8d77fb6237407f49246622dbe1b445d536 (patch) | |
tree | 454602f59a51763b12e4952046fbd0bdf47bd4ec /src/common/settings_common.cpp | |
parent | shared_widget: Internalize component restoring (diff) | |
download | yuzu-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_common.cpp')
-rw-r--r-- | src/common/settings_common.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp index 3e86c7347..53d4548f5 100644 --- a/src/common/settings_common.cpp +++ b/src/common/settings_common.cpp @@ -8,9 +8,10 @@ namespace Settings { BasicSetting::BasicSetting(Linkage& linkage, const std::string& name, enum Category category_, bool save_, bool runtime_modifiable_, - enum Specialization specialization_) + enum Specialization specialization_, BasicSetting* other_setting_) : label{name}, category{category_}, id{linkage.count}, save{save_}, - runtime_modifiable{runtime_modifiable_}, specialization{specialization_} { + runtime_modifiable{runtime_modifiable_}, specialization{specialization_}, + other_setting{other_setting_} { linkage.by_category[category].push_front(this); linkage.count++; } @@ -43,6 +44,10 @@ Specialization BasicSetting::Specialization() const { return specialization; } +BasicSetting* BasicSetting::PairedSetting() const { + return other_setting; +} + const std::string& BasicSetting::GetLabel() const { return label; } |