mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-19 17:39:58 +00:00
settings, uisettings: Initialize linkage counter
This commit is contained in:
parent
8e15146026
commit
4c4bc134a9
3 changed files with 3 additions and 3 deletions
|
@ -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