From e5495e541de0903938cff05c0c487fa3c107b8d6 Mon Sep 17 00:00:00 2001 From: fearlessTobi Date: Tue, 5 Feb 2019 22:09:02 +0100 Subject: [PATCH] citra_qt/config: backport minor changes from yuzu --- src/citra_qt/configuration/config.cpp | 4 ++-- src/citra_qt/configuration/config.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/citra_qt/configuration/config.cpp b/src/citra_qt/configuration/config.cpp index 9fe88e8929..95df2208b1 100644 --- a/src/citra_qt/configuration/config.cpp +++ b/src/citra_qt/configuration/config.cpp @@ -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; diff --git a/src/citra_qt/configuration/config.h b/src/citra_qt/configuration/config.h index 70aab4f8c2..781926f3f7 100644 --- a/src/citra_qt/configuration/config.h +++ b/src/citra_qt/configuration/config.h @@ -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);