yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

settings, uisettings: Initialize linkage counter

This commit is contained in:
lat9nq 2023-06-09 16:53:01 -04:00
parent 8e15146026
commit 4c4bc134a9
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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{};

View File

@ -59,7 +59,7 @@ struct GameDir {
};
struct Values {
Settings::Linkage linkage{};
Settings::Linkage linkage{1000};
QByteArray geometry;
QByteArray state;