mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-01 03:32:07 +00:00
cellSaveData: Fix adding file entries to PARAM.SFO on error
This commit is contained in:
parent
88ee198d78
commit
db71d4852a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user