diff options
| author | 2014-10-25 12:54:44 -0700 | |
|---|---|---|
| committer | 2014-10-27 18:35:21 -0700 | |
| commit | 0783498f570e7d5c00174cd10a3c1ff105d1eae6 (patch) | |
| tree | 10f64506a8f5111f56c4db17c95f6aba19baf0b9 /src/citra_qt/config.cpp | |
| parent | Merge pull request #150 from lioncash/typo (diff) | |
| download | yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.gz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.tar.xz yuzu-0783498f570e7d5c00174cd10a3c1ff105d1eae6.zip | |
Use configuration files to enable or disable the new dyncom interpreter.
Diffstat (limited to 'src/citra_qt/config.cpp')
| -rw-r--r-- | src/citra_qt/config.cpp | 15 |
1 files changed, 15 insertions, 0 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 @@ | |||
| 6 | #include <QStringList> | 6 | #include <QStringList> |
| 7 | 7 | ||
| 8 | #include "core/settings.h" | 8 | #include "core/settings.h" |
| 9 | #include "core/core.h" | ||
| 9 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 10 | 11 | ||
| 11 | #include "config.h" | 12 | #include "config.h" |
| @@ -64,6 +65,18 @@ void Config::SaveControls() { | |||
| 64 | qt_config->endGroup(); | 65 | qt_config->endGroup(); |
| 65 | } | 66 | } |
| 66 | 67 | ||
| 68 | void Config::ReadCore() { | ||
| 69 | qt_config->beginGroup("Core"); | ||
| 70 | Settings::values.cpu_core = qt_config->value("cpu_core", Core::CPU_Interpreter).toInt(); | ||
| 71 | qt_config->endGroup(); | ||
| 72 | } | ||
| 73 | |||
| 74 | void Config::SaveCore() { | ||
| 75 | qt_config->beginGroup("Core"); | ||
| 76 | qt_config->setValue("cpu_core", Settings::values.cpu_core); | ||
| 77 | qt_config->endGroup(); | ||
| 78 | } | ||
| 79 | |||
| 67 | void Config::ReadData() { | 80 | void Config::ReadData() { |
| 68 | qt_config->beginGroup("Data Storage"); | 81 | qt_config->beginGroup("Data Storage"); |
| 69 | Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool(); | 82 | Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool(); |
| @@ -78,11 +91,13 @@ void Config::SaveData() { | |||
| 78 | 91 | ||
| 79 | void Config::Reload() { | 92 | void Config::Reload() { |
| 80 | ReadControls(); | 93 | ReadControls(); |
| 94 | ReadCore(); | ||
| 81 | ReadData(); | 95 | ReadData(); |
| 82 | } | 96 | } |
| 83 | 97 | ||
| 84 | void Config::Save() { | 98 | void Config::Save() { |
| 85 | SaveControls(); | 99 | SaveControls(); |
| 100 | SaveCore(); | ||
| 86 | SaveData(); | 101 | SaveData(); |
| 87 | } | 102 | } |
| 88 | 103 | ||