瀏覽代碼

HLE/FS: Fixed creating the config savefile when it doesn't exist.

This fixes a regression.
Subv 10 年之前
父節點
當前提交
95380d8950
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/hle/service/cfg/cfg.cpp

+ 1 - 1
src/core/hle/service/cfg/cfg.cpp

@@ -310,7 +310,7 @@ ResultCode UpdateConfigNANDSavegame() {
 
 
 ResultCode FormatConfig() {
 ResultCode FormatConfig() {
     ResultCode res = DeleteConfigNANDSaveFile();
     ResultCode res = DeleteConfigNANDSaveFile();
-    if (!res.IsSuccess())
+    if (!res.IsSuccess() && res.description != ErrorDescription::FS_NotFound)
         return res;
         return res;
     // Delete the old data
     // Delete the old data
     cfg_config_file_buffer.fill(0);
     cfg_config_file_buffer.fill(0);