diff options
author | Subv <subv2112@gmail.com> | 2015-12-28 16:17:49 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-03-20 20:28:24 +0100 |
commit | 9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e (patch) | |
tree | 9fccac862948929927b2386560ded72bd9771d02 /src/core/hle/service | |
parent | HLE/FS: Return the proper error codes when opening files. (diff) | |
download | yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar.gz yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar.bz2 yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar.lz yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar.xz yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.tar.zst yuzu-9b2d64345141fe9ed948fe3ce7ab2c603fdf5d9e.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/fs/archive.cpp | 2 |
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) { // Delete all directories (/user, /boss) and the icon file. std::string base_path = FileSys::GetExtDataContainerPath(media_type_directory, media_type == MediaType::NAND); std::string extsavedata_path = FileSys::GetExtSaveDataPath(base_path, path); - if (!FileUtil::DeleteDirRecursively(extsavedata_path)) + if (FileUtil::Exists(extsavedata_path) && !FileUtil::DeleteDirRecursively(extsavedata_path)) return ResultCode(-1); // TODO(Subv): Find the right error code return RESULT_SUCCESS; } |