diff options
| author | 2014-12-19 18:39:57 -0500 | |
|---|---|---|
| committer | 2014-12-21 16:39:05 -0500 | |
| commit | 95ca6ae1e1c96de395f9d75b953b8ebb7823e9fa (patch) | |
| tree | f009f39aaadab0d8d9fe4f25bf493bed0cbf239b /src | |
| parent | CFGU: Added block 0x000A0002 to the default savegame file (diff) | |
| download | yuzu-95ca6ae1e1c96de395f9d75b953b8ebb7823e9fa.tar.gz yuzu-95ca6ae1e1c96de395f9d75b953b8ebb7823e9fa.tar.xz yuzu-95ca6ae1e1c96de395f9d75b953b8ebb7823e9fa.zip | |
CFG: Load the Config savedata file if it already exists.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/cfg_u.cpp | 7 |
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 553045437..ee97cf3e5 100644 --- a/src/core/hle/service/cfg_u.cpp +++ b/src/core/hle/service/cfg_u.cpp | |||
| @@ -390,10 +390,11 @@ Interface::Interface() { | |||
| 390 | FileSys::Path path("config"); | 390 | FileSys::Path path("config"); |
| 391 | auto file = cfg_system_save_data->OpenFile(path, mode); | 391 | auto file = cfg_system_save_data->OpenFile(path, mode); |
| 392 | 392 | ||
| 393 | // Don't do anything if the file already exists | 393 | // Load the config if it already exists |
| 394 | if (file != nullptr) | 394 | if (file != nullptr) { |
| 395 | file->Read(0, CONFIG_SAVEFILE_SIZE, cfg_config_file_buffer.data()); | ||
| 395 | return; | 396 | return; |
| 396 | 397 | } | |
| 397 | FormatConfig(); | 398 | FormatConfig(); |
| 398 | } | 399 | } |
| 399 | 400 | ||