summaryrefslogtreecommitdiffstats
path: root/src/common/settings_common.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_common.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 '')
-rw-r--r--src/common/settings_common.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 664c807f1..ad005ca4e 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -75,7 +75,8 @@ public:
class BasicSetting {
protected:
explicit BasicSetting(Linkage& linkage, const std::string& name, enum Category category_,
- bool save_, bool runtime_modifiable_, Specialization spec);
+ bool save_, bool runtime_modifiable_, Specialization spec,
+ BasicSetting* other_setting);
public:
virtual ~BasicSetting();
@@ -197,6 +198,11 @@ public:
[[nodiscard]] enum Specialization Specialization() const;
/**
+ * @returns Another BasicSetting if one is paired, or nullptr otherwise.
+ */
+ [[nodiscard]] BasicSetting* PairedSetting() const;
+
+ /**
* Returns the label this setting was created with.
*
* @returns A reference to the label
@@ -236,7 +242,8 @@ private:
const bool
runtime_modifiable; ///< Suggests if the setting can be modified while a guest is running
const enum Specialization
- specialization; ///< Extra data to identify representation of a setting
+ specialization; ///< Extra data to identify representation of a setting
+ BasicSetting* const other_setting; ///< A paired setting
};
} // namespace Settings