From 88b6d51643df40b4b78ca76b7569f9957206b1d1 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 12 Jun 2018 02:08:59 +0300 Subject: [PATCH] Fix cellGameContentPermit --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 68f1e0a75f..29ad3c1558 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -398,14 +398,16 @@ error_code cellGameContentPermit(vm::ptr contentInfoPa return CELL_GAME_ERROR_FAILURE; } - if (prm->can_create && prm->temp.empty()) + const std::string dir = prm->dir.empty() ? "/dev_bdvd/PS3_GAME"s : "/dev_hdd0/game/" + prm->dir; + + if (prm->can_create && prm->temp.empty() && !fs::is_dir(vfs::get(dir))) { + strcpy_trunc(*contentInfoPath, ""); + strcpy_trunc(*usrdirPath, ""); verify(HERE), fxm::remove(); return CELL_OK; } - const std::string dir = prm->dir.empty() ? "/dev_bdvd/PS3_GAME"s : "/dev_hdd0/game/" + prm->dir; - if (!prm->temp.empty()) { // Make temporary directory persistent