Explorar o código

CFG: Load the Config savedata file if it already exists.

Subv %!s(int64=11) %!d(string=hai) anos
pai
achega
95ca6ae1e1
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/core/hle/service/cfg_u.cpp

+ 4 - 3
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();
 }