diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-21 09:23:36 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:55 +0200 |
commit | b2438f1fb7d083ffe8c8afdc30e9c612631d6ace (patch) | |
tree | 7c7f44552f286e3289a09c621b960e082ec8fb60 /src/common/settings_common.cpp | |
parent | configuration: Use a builder to create widgets (diff) | |
download | yuzu-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.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp index fb42991fa..3e86c7347 100644 --- a/src/common/settings_common.cpp +++ b/src/common/settings_common.cpp @@ -7,9 +7,10 @@ namespace Settings { BasicSetting::BasicSetting(Linkage& linkage, const std::string& name, enum Category category_, - bool save_, bool runtime_modifiable_) - : label{name}, category{category_}, id{linkage.count}, save{save_}, runtime_modifiable{ - runtime_modifiable_} { + bool save_, bool runtime_modifiable_, + enum Specialization specialization_) + : label{name}, category{category_}, id{linkage.count}, save{save_}, + runtime_modifiable{runtime_modifiable_}, specialization{specialization_} { linkage.by_category[category].push_front(this); linkage.count++; } @@ -38,6 +39,10 @@ Category BasicSetting::Category() const { return category; } +Specialization BasicSetting::Specialization() const { + return specialization; +} + const std::string& BasicSetting::GetLabel() const { return label; } |