diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-09 22:53:01 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:07 +0200 |
commit | 4c4bc134a90a248435786b1dff4f514d1c9c4464 (patch) | |
tree | 2774f70b40cc543179ebfbb978a679196a745a87 /src/common | |
parent | configure_system: Implement with for loop (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/common/settings.cpp | 2 | ||||
-rw-r--r-- | src/common/settings.h | 2 |
2 files changed, 2 insertions, 2 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{}; |