mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-08 18:41:30 -06:00
cellSaveData: do not fail on empty directory
This commit is contained in:
parent
2b853cc8bc
commit
556aba46b5
@ -1303,10 +1303,8 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Create save directory if necessary
|
||||
if (!psf.empty() && save_entry.isNew && !fs::create_dir(dir_path))
|
||||
if (!psf.empty() && save_entry.isNew && !fs::create_dir(dir_path) && fs::g_tls_error != fs::error::exist)
|
||||
{
|
||||
cellSaveData.warning("savedata_op(): failed to create %s (%s)", dir_path, fs::g_tls_error);
|
||||
return CELL_SAVEDATA_ERROR_ACCESS_ERROR;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user