summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-09 22:53:01 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:07 +0200
commit4c4bc134a90a248435786b1dff4f514d1c9c4464 (patch)
tree2774f70b40cc543179ebfbb978a679196a745a87 /src
parentconfigure_system: Implement with for loop (diff)
downloadyuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar
yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar.gz
yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar.bz2
yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar.lz
yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar.xz
yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar.zst
yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/settings.cpp2
-rw-r--r--src/common/settings.h2
-rw-r--r--src/yuzu/uisettings.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 605fe7f86..c8651925e 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -144,7 +144,7 @@ float Volume() {
return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
}
-Linkage::Linkage() = default;
+Linkage::Linkage(u32 initial_count) : count{initial_count} {}
Linkage::~Linkage() = default;
const char* TranslateCategory(Category category) {
diff --git a/src/common/settings.h b/src/common/settings.h
index 1f95bd7d5..51708706b 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -291,7 +291,7 @@ public:
class Linkage {
public:
- explicit Linkage();
+ explicit Linkage(u32 initial_count = 0);
~Linkage();
std::map<Category, std::forward_list<BasicSetting*>> by_category{};
std::vector<std::function<void()>> restore_functions{};
diff --git a/src/yuzu/uisettings.h b/src/yuzu/uisettings.h
index 9e2cea4d6..a734513ea 100644
--- a/src/yuzu/uisettings.h
+++ b/src/yuzu/uisettings.h
@@ -59,7 +59,7 @@ struct GameDir {
};
struct Values {
- Settings::Linkage linkage{};
+ Settings::Linkage linkage{1000};
QByteArray geometry;
QByteArray state;