From 817dfe865139351256047cf8915f8f7f5292379e Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 12 Mar 2018 19:07:27 +0300 Subject: [PATCH] cellGameContentPermit workaround --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index b95abce25e..34cc98f4c6 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -402,18 +402,17 @@ error_code cellGameContentPermit(vm::ptr contentInfoPa // Make temporary directory persistent const auto vdir = vfs::get(dir); - if (fs::exists(vdir)) - { - fmt::throw_exception("cellGameContentPermit(): epic fail: directory '%s' already exists", dir); - } - if (fs::rename(prm->temp, vdir, false)) { cellGame.success("cellGameContentPermit(): directory '%s' has been created", dir); } else { - fmt::throw_exception("cellGameContentPermit(): failed to initialize directory '%s'", dir); + cellGame.error("cellGameContentPermit(): failed to initialize directory '%s' (%s)", dir, fs::g_tls_error); + strcpy_trunc(*contentInfoPath, dir); + strcpy_trunc(*usrdirPath, dir + "/USRDIR"); + verify(HERE), fxm::remove(); + return CELL_OK; } // Create PARAM.SFO