diff options
| author | 2014-10-09 19:43:40 -0700 | |
|---|---|---|
| committer | 2014-10-22 15:24:25 -0700 | |
| commit | a59f57d50467bd5dba1f28b8020278d6298babf7 (patch) | |
| tree | 62f1528fcb2815bcb382ea8c606b6fa8fc18ba95 /src/citra/config.cpp | |
| parent | Merge pull request #145 from yuriks/shader-log-crash (diff) | |
| download | yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar.gz yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar.xz yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.zip | |
Use config files to store whether SDMC is enabled or not
Before, it used to use whether the directory actually existed. As a result, .citra-emu/sdmc was never auto-created (something quite confusing to me until I read through the logs).
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() { |