mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-24 00:35:28 +00:00
common,configure_system: Rename method to GetCategory
Fixes essentially a shadowing issue.
This commit is contained in:
parent
267f3c7905
commit
1e093767a8
|
@ -36,7 +36,7 @@ bool BasicSetting::RuntimeModfiable() const {
|
||||||
return runtime_modifiable;
|
return runtime_modifiable;
|
||||||
}
|
}
|
||||||
|
|
||||||
Category BasicSetting::Category() const {
|
Category BasicSetting::GetCategory() const {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ public:
|
||||||
*
|
*
|
||||||
* @returns The setting's category
|
* @returns The setting's category
|
||||||
*/
|
*/
|
||||||
[[nodiscard]] enum Category Category() const;
|
[[nodiscard]] Category GetCategory() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns Extra metadata for data representation in frontend implementations.
|
* @returns Extra metadata for data representation in frontend implementations.
|
||||||
|
@ -247,7 +247,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string label; ///< The setting's label
|
const std::string label; ///< The setting's label
|
||||||
const enum Category category; ///< The setting's category AKA INI group
|
const Category category; ///< The setting's category AKA INI group
|
||||||
const u32 id; ///< Unique integer for the setting
|
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 save; ///< Suggests if the setting should be saved and read to a frontend config
|
||||||
const bool
|
const bool
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
* @param other_setting_ A second Setting to associate to this one in metadata
|
* @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,
|
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,
|
bool save_ = true, bool runtime_modifiable_ = false,
|
||||||
BasicSetting* other_setting_ = nullptr)
|
BasicSetting* other_setting_ = nullptr)
|
||||||
requires(!ranged)
|
requires(!ranged)
|
||||||
|
@ -64,7 +64,7 @@ public:
|
||||||
* @param other_setting_ A second Setting to associate to this one in metadata
|
* @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,
|
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,
|
u32 specialization_ = Specialization::Default, bool save_ = true,
|
||||||
bool runtime_modifiable_ = false, BasicSetting* other_setting_ = nullptr)
|
bool runtime_modifiable_ = false, BasicSetting* other_setting_ = nullptr)
|
||||||
requires(ranged)
|
requires(ranged)
|
||||||
|
|
|
@ -124,7 +124,7 @@ void ConfigureSystem::Setup(const ConfigurationShared::Builder& builder) {
|
||||||
combo_language = widget->combobox;
|
combo_language = widget->combobox;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (setting->Category()) {
|
switch (setting->GetCategory()) {
|
||||||
case Settings::Category::Core:
|
case Settings::Category::Core:
|
||||||
core_hold.emplace(setting->Id(), widget);
|
core_hold.emplace(setting->Id(), widget);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue