diff options
| author | 2014-10-23 18:51:54 -0400 | |
|---|---|---|
| committer | 2014-10-23 18:51:54 -0400 | |
| commit | ce8390ac03661ec2b16e48aeaca02ae8c9291ec5 (patch) | |
| tree | 0d4a4391fda3c58522b6d6ef056b78f67d2b0592 /src/citra_qt/config.cpp | |
| parent | Merge pull request #146 from yuriks/inttypes (diff) | |
| parent | Common: Return from CreateFullPath early if the directory creation fails (diff) | |
| download | yuzu-ce8390ac03661ec2b16e48aeaca02ae8c9291ec5.tar.gz yuzu-ce8390ac03661ec2b16e48aeaca02ae8c9291ec5.tar.xz yuzu-ce8390ac03661ec2b16e48aeaca02ae8c9291ec5.zip | |
Merge pull request #133 from archshift/sdmc-enabled
Use config files to store whether SDMC is enabled or not, auto-create SDMC dir.
Diffstat (limited to 'src/citra_qt/config.cpp')
| -rw-r--r-- | src/citra_qt/config.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index 1b116edc5..0c4f75a96 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp | |||
| @@ -64,12 +64,26 @@ void Config::SaveControls() { | |||
| 64 | qt_config->endGroup(); | 64 | qt_config->endGroup(); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void Config::ReadData() { | ||
| 68 | qt_config->beginGroup("Data Storage"); | ||
| 69 | Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool(); | ||
| 70 | qt_config->endGroup(); | ||
| 71 | } | ||
| 72 | |||
| 73 | void Config::SaveData() { | ||
| 74 | qt_config->beginGroup("Data Storage"); | ||
| 75 | qt_config->setValue("use_virtual_sd", Settings::values.use_virtual_sd); | ||
| 76 | qt_config->endGroup(); | ||
| 77 | } | ||
| 78 | |||
| 67 | void Config::Reload() { | 79 | void Config::Reload() { |
| 68 | ReadControls(); | 80 | ReadControls(); |
| 81 | ReadData(); | ||
| 69 | } | 82 | } |
| 70 | 83 | ||
| 71 | void Config::Save() { | 84 | void Config::Save() { |
| 72 | SaveControls(); | 85 | SaveControls(); |
| 86 | SaveData(); | ||
| 73 | } | 87 | } |
| 74 | 88 | ||
| 75 | Config::~Config() { | 89 | Config::~Config() { |