cellSaveData: Fix adding file entries to PARAM.SFO on error

This commit is contained in:
Eladash 2020-03-14 08:44:22 +02:00 committed by Ivan
parent 88ee198d78
commit db71d4852a

View File

@ -1648,8 +1648,6 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
break;
}
psf.emplace("*" + file_path, fileSet->fileType == CELL_SAVEDATA_FILETYPE_SECUREFILE);
// clang-format off
auto add_to_blist = [&](const std::string& to_add)
{
@ -1807,6 +1805,11 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
{
break;
}
if (fileSet->fileOperation != CELL_SAVEDATA_FILEOP_DELETE)
{
psf.emplace("*" + file_path, fileSet->fileType == CELL_SAVEDATA_FILETYPE_SECUREFILE);
}
}
// Write PARAM.SFO and savedata