citra-emu
/
citra-canary
Archived
1
0
Fork 0

citra_qt/config: backport minor changes from yuzu

This commit is contained in:
fearlessTobi 2019-02-05 22:09:02 +01:00
parent 59dbc72e7b
commit e5495e541d
2 changed files with 4 additions and 4 deletions

View File

@ -635,11 +635,11 @@ void Config::SaveValues() {
qt_config->endGroup();
}
QVariant Config::ReadSetting(const QString& name) {
QVariant Config::ReadSetting(const QString& name) const {
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;
if (qt_config->value(name + "/default", false).toBool()) {
result = default_value;

View File

@ -27,8 +27,8 @@ public:
private:
void ReadValues();
void SaveValues();
QVariant ReadSetting(const QString& name);
QVariant ReadSetting(const QString& name, const QVariant& default_value);
QVariant ReadSetting(const QString& name) const;
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, const QVariant& default_value);