diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/settings_setting.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h index dd91250a1..d1915cb43 100644 --- a/src/common/settings_setting.h +++ b/src/common/settings_setting.h | |||
| @@ -35,8 +35,7 @@ public: | |||
| 35 | * @param category_ Category of the setting AKA INI group | 35 | * @param category_ Category of the setting AKA INI group |
| 36 | */ | 36 | */ |
| 37 | explicit Setting(Linkage& linkage, const Type& default_val, const std::string& name, | 37 | explicit Setting(Linkage& linkage, const Type& default_val, const std::string& name, |
| 38 | enum Category category_, | 38 | enum Category category_, u32 specialization = Specialization::Default, |
| 39 | enum Specialization specialization = Specialization::Default, | ||
| 40 | bool save_ = true, bool runtime_modifiable_ = false, | 39 | bool save_ = true, bool runtime_modifiable_ = false, |
| 41 | BasicSetting* other_setting = nullptr) | 40 | BasicSetting* other_setting = nullptr) |
| 42 | requires(!ranged) | 41 | requires(!ranged) |
| @@ -57,9 +56,8 @@ public: | |||
| 57 | */ | 56 | */ |
| 58 | explicit Setting(Linkage& linkage, const Type& default_val, const Type& min_val, | 57 | explicit Setting(Linkage& linkage, const Type& default_val, const Type& min_val, |
| 59 | const Type& max_val, const std::string& name, enum Category category_, | 58 | const Type& max_val, const std::string& name, enum Category category_, |
| 60 | enum Specialization specialization = Specialization::Default, | 59 | u32 specialization = Specialization::Default, bool save_ = true, |
| 61 | bool save_ = true, bool runtime_modifiable_ = false, | 60 | bool runtime_modifiable_ = false, BasicSetting* other_setting = nullptr) |
| 62 | BasicSetting* other_setting = nullptr) | ||
| 63 | requires(ranged) | 61 | requires(ranged) |
| 64 | : BasicSetting(linkage, name, category_, save_, runtime_modifiable_, specialization, | 62 | : BasicSetting(linkage, name, category_, save_, runtime_modifiable_, specialization, |
| 65 | other_setting), | 63 | other_setting), |
| @@ -237,8 +235,7 @@ public: | |||
| 237 | * @param category_ Category of the setting AKA INI group | 235 | * @param category_ Category of the setting AKA INI group |
| 238 | */ | 236 | */ |
| 239 | explicit SwitchableSetting(Linkage& linkage, const Type& default_val, const std::string& name, | 237 | explicit SwitchableSetting(Linkage& linkage, const Type& default_val, const std::string& name, |
| 240 | Category category_, | 238 | Category category_, u32 specialization = Specialization::Default, |
| 241 | enum Specialization specialization = Specialization::Default, | ||
| 242 | bool save_ = true, bool runtime_modifiable_ = false, | 239 | bool save_ = true, bool runtime_modifiable_ = false, |
| 243 | BasicSetting* other_setting = nullptr) | 240 | BasicSetting* other_setting = nullptr) |
| 244 | requires(!ranged) | 241 | requires(!ranged) |
| @@ -261,8 +258,8 @@ public: | |||
| 261 | */ | 258 | */ |
| 262 | explicit SwitchableSetting(Linkage& linkage, const Type& default_val, const Type& min_val, | 259 | explicit SwitchableSetting(Linkage& linkage, const Type& default_val, const Type& min_val, |
| 263 | const Type& max_val, const std::string& name, Category category_, | 260 | const Type& max_val, const std::string& name, Category category_, |
| 264 | enum Specialization specialization = Specialization::Default, | 261 | u32 specialization = Specialization::Default, bool save_ = true, |
| 265 | bool save_ = true, bool runtime_modifiable_ = false, | 262 | bool runtime_modifiable_ = false, |
| 266 | BasicSetting* other_setting = nullptr) | 263 | BasicSetting* other_setting = nullptr) |
| 267 | requires(ranged) | 264 | requires(ranged) |
| 268 | : Setting<Type, true>{ | 265 | : Setting<Type, true>{ |