diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-18 21:42:59 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:55 +0200 |
commit | 1e093767a85ee0fdce6f1619e967a6560963dcf3 (patch) | |
tree | 41908aa9f566a587fedc6053ebda9b5798ecee28 /src/common | |
parent | settings: Cleanup (diff) | |
download | yuzu-1e093767a85ee0fdce6f1619e967a6560963dcf3.tar yuzu-1e093767a85ee0fdce6f1619e967a6560963dcf3.tar.gz yuzu-1e093767a85ee0fdce6f1619e967a6560963dcf3.tar.bz2 yuzu-1e093767a85ee0fdce6f1619e967a6560963dcf3.tar.lz yuzu-1e093767a85ee0fdce6f1619e967a6560963dcf3.tar.xz yuzu-1e093767a85ee0fdce6f1619e967a6560963dcf3.tar.zst yuzu-1e093767a85ee0fdce6f1619e967a6560963dcf3.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/settings_common.cpp | 2 | ||||
-rw-r--r-- | src/common/settings_common.h | 8 | ||||
-rw-r--r-- | src/common/settings_setting.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp index 799942980..8b666f8b2 100644 --- a/src/common/settings_common.cpp +++ b/src/common/settings_common.cpp @@ -36,7 +36,7 @@ bool BasicSetting::RuntimeModfiable() const { return runtime_modifiable; } -Category BasicSetting::Category() const { +Category BasicSetting::GetCategory() const { return category; } diff --git a/src/common/settings_common.h b/src/common/settings_common.h index b355384a4..ca218e37b 100644 --- a/src/common/settings_common.h +++ b/src/common/settings_common.h @@ -196,7 +196,7 @@ public: * * @returns The setting's category */ - [[nodiscard]] enum Category Category() const; + [[nodiscard]] Category GetCategory() const; /** * @returns Extra metadata for data representation in frontend implementations. @@ -246,9 +246,9 @@ public: [[nodiscard]] virtual bool UsingGlobal() const; private: - const std::string label; ///< The setting's label - const enum Category category; ///< The setting's category AKA INI group - const u32 id; ///< Unique integer for the setting + const std::string label; ///< The setting's label + const Category category; ///< The setting's category AKA INI group + const u32 id; ///< Unique integer for the setting 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 diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h index 959b4f3f9..55280fec4 100644 --- a/src/common/settings_setting.h +++ b/src/common/settings_setting.h @@ -40,7 +40,7 @@ public: * @param other_setting_ A second Setting to associate to this one in metadata */ explicit Setting(Linkage& linkage, const Type& default_val, const std::string& name, - enum Category category_, u32 specialization_ = Specialization::Default, + Category category_, u32 specialization_ = Specialization::Default, bool save_ = true, bool runtime_modifiable_ = false, BasicSetting* other_setting_ = nullptr) requires(!ranged) @@ -64,7 +64,7 @@ public: * @param other_setting_ A second Setting to associate to this one in metadata */ explicit Setting(Linkage& linkage, const Type& default_val, const Type& min_val, - const Type& max_val, const std::string& name, enum Category category_, + const Type& max_val, const std::string& name, Category category_, u32 specialization_ = Specialization::Default, bool save_ = true, bool runtime_modifiable_ = false, BasicSetting* other_setting_ = nullptr) requires(ranged) |