diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 40687323ed..bb9a5757ce 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -808,7 +808,7 @@ error_code cellGameDeleteGameData(vm::cptr dirName) auto remove_gd = [&]() -> error_code { - if (Emu.GetCat() == "GD" && Emu.GetDir().substr(Emu.GetDir().find_last_of('/') + 1) == name) + if (Emu.GetCat() == "GD" && Emu.GetDir().substr(Emu.GetDir().find_last_of('/') + 1) == vfs::escape(name)) { // Boot patch cannot delete its own directory return CELL_GAME_ERROR_NOTSUPPORTED; @@ -833,7 +833,7 @@ error_code cellGameDeleteGameData(vm::cptr dirName) } // Actually remove game data - if (!vfs::host::remove_all(dir, Emu.GetHddDir(), true)) + if (!vfs::host::remove_all(dir, Emu.GetHddDir(), &g_mp_sys_dev_hdd0, true)) { return {CELL_GAME_ERROR_ACCESS_ERROR, dir}; }