From 556aba46b56db4790926a0662bebdf541808c76d Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 27 Feb 2020 17:07:54 +0200 Subject: [PATCH] cellSaveData: do not fail on empty directory --- rpcs3/Emu/Cell/Modules/cellSaveData.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp index 8e088ed984..079f215921 100644 --- a/rpcs3/Emu/Cell/Modules/cellSaveData.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSaveData.cpp @@ -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;