aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv <subv2112@gmail.com>2014-12-19 18:39:57 -0500
committerGravatar Subv <subv2112@gmail.com>2014-12-21 16:39:05 -0500
commit95ca6ae1e1c96de395f9d75b953b8ebb7823e9fa (patch)
treef009f39aaadab0d8d9fe4f25bf493bed0cbf239b /src
parentb49bdb6ba7700007240c207afb69c75f8fbd0f62 (diff)
CFG: Load the Config savedata file if it already exists.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/cfg_u.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/cfg_u.cpp b/src/core/hle/service/cfg_u.cpp
index 55304543..ee97cf3e 100644
--- a/src/core/hle/service/cfg_u.cpp
+++ b/src/core/hle/service/cfg_u.cpp
@@ -390,10 +390,11 @@ Interface::Interface() {
FileSys::Path path("config");
auto file = cfg_system_save_data->OpenFile(path, mode);
- // Don't do anything if the file already exists
- if (file != nullptr)
+ // Load the config if it already exists
+ if (file != nullptr) {
+ file->Read(0, CONFIG_SAVEFILE_SIZE, cfg_config_file_buffer.data());
return;
-
+ }
FormatConfig();
}