diff options
| author | 2023-06-09 16:53:01 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:07 -0400 | |
| commit | 4c4bc134a90a248435786b1dff4f514d1c9c4464 (patch) | |
| tree | 2774f70b40cc543179ebfbb978a679196a745a87 /src/common | |
| parent | configure_system: Implement with for loop (diff) | |
| download | yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar.gz yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.tar.xz yuzu-4c4bc134a90a248435786b1dff4f514d1c9c4464.zip | |
settings, uisettings: Initialize linkage counter
Diffstat (limited to 'src/common')
| -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() { | |||
| 144 | return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault()); | 144 | return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault()); |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | Linkage::Linkage() = default; | 147 | Linkage::Linkage(u32 initial_count) : count{initial_count} {} |
| 148 | Linkage::~Linkage() = default; | 148 | Linkage::~Linkage() = default; |
| 149 | 149 | ||
| 150 | const char* TranslateCategory(Category category) { | 150 | 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: | |||
| 291 | 291 | ||
| 292 | class Linkage { | 292 | class Linkage { |
| 293 | public: | 293 | public: |
| 294 | explicit Linkage(); | 294 | explicit Linkage(u32 initial_count = 0); |
| 295 | ~Linkage(); | 295 | ~Linkage(); |
| 296 | std::map<Category, std::forward_list<BasicSetting*>> by_category{}; | 296 | std::map<Category, std::forward_list<BasicSetting*>> by_category{}; |
| 297 | std::vector<std::function<void()>> restore_functions{}; | 297 | std::vector<std::function<void()>> restore_functions{}; |