mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-13 13:35:14 +01:00
citra_qt/config: backport minor changes from yuzu
This commit is contained in:
parent
59dbc72e7b
commit
e5495e541d
@ -635,11 +635,11 @@ void Config::SaveValues() {
|
|||||||
qt_config->endGroup();
|
qt_config->endGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant Config::ReadSetting(const QString& name) {
|
QVariant Config::ReadSetting(const QString& name) const {
|
||||||
return qt_config->value(name);
|
return qt_config->value(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant Config::ReadSetting(const QString& name, const QVariant& default_value) {
|
QVariant Config::ReadSetting(const QString& name, const QVariant& default_value) const {
|
||||||
QVariant result;
|
QVariant result;
|
||||||
if (qt_config->value(name + "/default", false).toBool()) {
|
if (qt_config->value(name + "/default", false).toBool()) {
|
||||||
result = default_value;
|
result = default_value;
|
||||||
|
@ -27,8 +27,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
void ReadValues();
|
void ReadValues();
|
||||||
void SaveValues();
|
void SaveValues();
|
||||||
QVariant ReadSetting(const QString& name);
|
QVariant ReadSetting(const QString& name) const;
|
||||||
QVariant ReadSetting(const QString& name, const QVariant& default_value);
|
QVariant ReadSetting(const QString& name, const QVariant& default_value) const;
|
||||||
void WriteSetting(const QString& name, const QVariant& value);
|
void WriteSetting(const QString& name, const QVariant& value);
|
||||||
void WriteSetting(const QString& name, const QVariant& value, const QVariant& default_value);
|
void WriteSetting(const QString& name, const QVariant& value, const QVariant& default_value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user