summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Subv2015-12-28 10:17:49 -0500
committerGravatar Subv2016-03-20 14:28:24 -0500
commit9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e (patch)
tree9fccac862948929927b2386560ded72bd9771d02
parentHLE/FS: Return the proper error codes when opening files. (diff)
downloadyuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar.gz
yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar.xz
yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.zip
HLE/FS: Don't return an error when deleting the ExtSaveData if it does not exist.
-rw-r--r--src/core/hle/service/fs/archive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp
index 2ce5f0fe7..b034de8f1 100644
--- a/src/core/hle/service/fs/archive.cpp
+++ b/src/core/hle/service/fs/archive.cpp
@@ -484,7 +484,7 @@ ResultCode DeleteExtSaveData(MediaType media_type, u32 high, u32 low) {
484 // Delete all directories (/user, /boss) and the icon file. 484 // Delete all directories (/user, /boss) and the icon file.
485 std::string base_path = FileSys::GetExtDataContainerPath(media_type_directory, media_type == MediaType::NAND); 485 std::string base_path = FileSys::GetExtDataContainerPath(media_type_directory, media_type == MediaType::NAND);
486 std::string extsavedata_path = FileSys::GetExtSaveDataPath(base_path, path); 486 std::string extsavedata_path = FileSys::GetExtSaveDataPath(base_path, path);
487 if (!FileUtil::DeleteDirRecursively(extsavedata_path)) 487 if (FileUtil::Exists(extsavedata_path) && !FileUtil::DeleteDirRecursively(extsavedata_path))
488 return ResultCode(-1); // TODO(Subv): Find the right error code 488 return ResultCode(-1); // TODO(Subv): Find the right error code
489 return RESULT_SUCCESS; 489 return RESULT_SUCCESS;
490} 490}