mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
settings, uisettings: Initialize linkage counter
This commit is contained in:
parent
8e15146026
commit
4c4bc134a9
|
@ -144,7 +144,7 @@ float Volume() {
|
||||||
return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
|
return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault());
|
||||||
}
|
}
|
||||||
|
|
||||||
Linkage::Linkage() = default;
|
Linkage::Linkage(u32 initial_count) : count{initial_count} {}
|
||||||
Linkage::~Linkage() = default;
|
Linkage::~Linkage() = default;
|
||||||
|
|
||||||
const char* TranslateCategory(Category category) {
|
const char* TranslateCategory(Category category) {
|
||||||
|
|
|
@ -291,7 +291,7 @@ public:
|
||||||
|
|
||||||
class Linkage {
|
class Linkage {
|
||||||
public:
|
public:
|
||||||
explicit Linkage();
|
explicit Linkage(u32 initial_count = 0);
|
||||||
~Linkage();
|
~Linkage();
|
||||||
std::map<Category, std::forward_list<BasicSetting*>> by_category{};
|
std::map<Category, std::forward_list<BasicSetting*>> by_category{};
|
||||||
std::vector<std::function<void()>> restore_functions{};
|
std::vector<std::function<void()>> restore_functions{};
|
||||||
|
|
|
@ -59,7 +59,7 @@ struct GameDir {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Values {
|
struct Values {
|
||||||
Settings::Linkage linkage{};
|
Settings::Linkage linkage{1000};
|
||||||
|
|
||||||
QByteArray geometry;
|
QByteArray geometry;
|
||||||
QByteArray state;
|
QByteArray state;
|
||||||
|
|
Loading…
Reference in a new issue