From 4db79c458dccda1b03aee8e4f444f96f06553cd9 Mon Sep 17 00:00:00 2001 From: eladash Date: Wed, 4 Jul 2018 17:01:39 +0300 Subject: [PATCH] Fix cellSysCacheMount error checking --- rpcs3/Emu/Cell/Modules/cellSysutil.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellSysutil.cpp b/rpcs3/Emu/Cell/Modules/cellSysutil.cpp index 421aa2469f..f29a6939d5 100644 --- a/rpcs3/Emu/Cell/Modules/cellSysutil.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSysutil.cpp @@ -324,10 +324,13 @@ s32 cellSysCacheMount(vm::ptr param) strcpy_trunc(param->getCachePath, cache_path); // TODO: implement (what?) - fs::create_dir(vfs::get(cache_path)); fxm::make_always(*param); + if (!fs::create_dir(vfs::get(cache_path))) + { + return CELL_SYSCACHE_RET_OK_RELAYED; + } - return CELL_SYSCACHE_RET_OK_RELAYED; + return CELL_SYSCACHE_RET_OK_CLEARED; } bool g_bgm_playback_enabled = true;