mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-25 17:21:55 +01:00
HLE/FS: Don't return an error when deleting the ExtSaveData if it does not exist.
This commit is contained in:
parent
95b34f8081
commit
9b2d643451
@ -484,7 +484,7 @@ ResultCode DeleteExtSaveData(MediaType media_type, u32 high, u32 low) {
|
|||||||
// Delete all directories (/user, /boss) and the icon file.
|
// Delete all directories (/user, /boss) and the icon file.
|
||||||
std::string base_path = FileSys::GetExtDataContainerPath(media_type_directory, media_type == MediaType::NAND);
|
std::string base_path = FileSys::GetExtDataContainerPath(media_type_directory, media_type == MediaType::NAND);
|
||||||
std::string extsavedata_path = FileSys::GetExtSaveDataPath(base_path, path);
|
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 ResultCode(-1); // TODO(Subv): Find the right error code
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user