cellSaveData: do not fail on empty directory

This commit is contained in:
Eladash 2020-02-27 17:07:54 +02:00 committed by Ivan
parent 2b853cc8bc
commit 556aba46b5
1 changed files with 1 additions and 3 deletions

View File

@ -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;