summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp4
-rw-r--r--src/common/settings.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 38a82f6f7..b7a0c063f 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -144,6 +144,9 @@ float Volume() {
return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
}
+Linkage::Linkage() = default;
+Linkage::~Linkage() = default;
+
const char* TranslateCategory(Category category) {
switch (category) {
case Category::Audio:
@@ -176,6 +179,7 @@ const char* TranslateCategory(Category category) {
case Category::Controls:
return "Controls";
case Category::Ui:
+ case Category::UiGeneral:
return "UI";
case Category::UiLayout:
return "UiLayout";
diff --git a/src/common/settings.h b/src/common/settings.h
index 4ca8299b3..e60105059 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -143,6 +143,7 @@ enum class Category : u32 {
AddOns,
Controls,
Ui,
+ UiGeneral,
UiLayout,
UiGameList,
Screenshots,
@@ -209,8 +210,10 @@ public:
class Linkage {
public:
- std::map<Category, std::forward_list<BasicSetting*>> by_category;
- std::vector<std::function<void()>> restore_functions;
+ explicit Linkage();
+ ~Linkage();
+ std::map<Category, std::forward_list<BasicSetting*>> by_category{};
+ std::vector<std::function<void()>> restore_functions{};
u32 count;
};