summaryrefslogtreecommitdiffstats
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-21 09:23:36 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:55 +0200
commitb2438f1fb7d083ffe8c8afdc30e9c612631d6ace (patch)
tree7c7f44552f286e3289a09c621b960e082ec8fb60 /src/common/settings_common.h
parentconfiguration: Use a builder to create widgets (diff)
downloadyuzu-b2438f1fb7d083ffe8c8afdc30e9c612631d6ace.tar
yuzu-b2438f1fb7d083ffe8c8afdc30e9c612631d6ace.tar.gz
yuzu-b2438f1fb7d083ffe8c8afdc30e9c612631d6ace.tar.bz2
yuzu-b2438f1fb7d083ffe8c8afdc30e9c612631d6ace.tar.lz
yuzu-b2438f1fb7d083ffe8c8afdc30e9c612631d6ace.tar.xz
yuzu-b2438f1fb7d083ffe8c8afdc30e9c612631d6ace.tar.zst
yuzu-b2438f1fb7d083ffe8c8afdc30e9c612631d6ace.zip
Diffstat (limited to '')
-rw-r--r--src/common/settings_common.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 2b5c72f41..664c807f1 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -43,6 +43,17 @@ enum class Category : u32 {
MaxEnum,
};
+enum class Specialization : u32 {
+ Default,
+ Time,
+ Hex,
+ List,
+ RuntimeList,
+ Scalar,
+ Countable,
+ Paired,
+};
+
bool IsConfiguringGlobal();
void SetConfiguringGlobal(bool is_global);
@@ -64,7 +75,7 @@ public:
class BasicSetting {
protected:
explicit BasicSetting(Linkage& linkage, const std::string& name, enum Category category_,
- bool save_, bool runtime_modifiable_);
+ bool save_, bool runtime_modifiable_, Specialization spec);
public:
virtual ~BasicSetting();
@@ -181,6 +192,11 @@ public:
[[nodiscard]] enum Category Category() const;
/**
+ * @returns Extra metadata for data representation in frontend implementations.
+ */
+ [[nodiscard]] enum Specialization Specialization() const;
+
+ /**
* Returns the label this setting was created with.
*
* @returns A reference to the label
@@ -219,6 +235,8 @@ private:
const bool save; ///< Suggests if the setting should be saved and read to a frontend config
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
};
} // namespace Settings