From 6164b3d2e2f1b59fdfbc811c9f544403b3d6e231 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 24 Sep 2020 20:37:49 +0300 Subject: [PATCH] Compilation fix --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}; }