diff options
author | archshift <admin@archshift.com> | 2014-10-25 21:54:44 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-10-28 02:35:21 +0100 |
commit | 0783498f570e7d5c00174cd10a3c1ff105d1eae6 (patch) | |
tree | 10f64506a8f5111f56c4db17c95f6aba19baf0b9 /src/citra_qt | |
parent | Merge pull request #150 from lioncash/typo (diff) | |
download | yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.gz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.bz2 yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.lz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.xz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.zst yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.zip |
Diffstat (limited to 'src/citra_qt')
-rw-r--r-- | src/citra_qt/config.cpp | 15 | ||||
-rw-r--r-- | src/citra_qt/config.h | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index 0c4f75a96..ded44ea8d 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp @@ -6,6 +6,7 @@ #include <QStringList> #include "core/settings.h" +#include "core/core.h" #include "common/file_util.h" #include "config.h" @@ -64,6 +65,18 @@ void Config::SaveControls() { qt_config->endGroup(); } +void Config::ReadCore() { + qt_config->beginGroup("Core"); + Settings::values.cpu_core = qt_config->value("cpu_core", Core::CPU_Interpreter).toInt(); + qt_config->endGroup(); +} + +void Config::SaveCore() { + qt_config->beginGroup("Core"); + qt_config->setValue("cpu_core", Settings::values.cpu_core); + qt_config->endGroup(); +} + void Config::ReadData() { qt_config->beginGroup("Data Storage"); Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool(); @@ -78,11 +91,13 @@ void Config::SaveData() { void Config::Reload() { ReadControls(); + ReadCore(); ReadData(); } void Config::Save() { SaveControls(); + SaveCore(); SaveData(); } diff --git a/src/citra_qt/config.h b/src/citra_qt/config.h index 74c9ff11d..782c26287 100644 --- a/src/citra_qt/config.h +++ b/src/citra_qt/config.h @@ -14,7 +14,8 @@ class Config { void ReadControls(); void SaveControls(); - + void ReadCore(); + void SaveCore(); void ReadData(); void SaveData(); public: |