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/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/config.cpp')
| -rw-r--r-- | src/citra/config.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 1d5e9c717..03a0ce606 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -55,9 +55,14 @@ void Config::ReadControls() { | |||
| 55 | Settings::values.pad_sright_key = glfw_config->GetInteger("Controls", "pad_sright", GLFW_KEY_RIGHT); | 55 | Settings::values.pad_sright_key = glfw_config->GetInteger("Controls", "pad_sright", GLFW_KEY_RIGHT); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | void Config::ReadData() { | ||
| 59 | Settings::values.use_virtual_sd = glfw_config->GetBoolean("Data Storage", "use_virtual_sd", true); | ||
| 60 | } | ||
| 61 | |||
| 58 | void Config::Reload() { | 62 | void Config::Reload() { |
| 59 | LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file); | 63 | LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file); |
| 60 | ReadControls(); | 64 | ReadControls(); |
| 65 | ReadData(); | ||
| 61 | } | 66 | } |
| 62 | 67 | ||
| 63 | Config::~Config() { | 68 | Config::~Config() { |