From 5c3d417b35404c75de69c9c5185b631008c7cf06 Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 3 Mar 2020 17:02:22 +0200 Subject: [PATCH] Fix cellGameDataCheck's game data creation with PARAM.SFO set/get --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 78b90dc460..43bd286911 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -483,13 +483,14 @@ error_code cellGameDataCheck(u32 type, vm::cptr dirName, vm::ptrcan_create = true; } + perm->restrict_sfo_params = false; + if (!fs::is_dir(vfs::get(dir))) { cellGame.warning("cellGameDataCheck(): directory '%s' not found", dir); return not_an_error(CELL_GAME_RET_NONE); } - perm->restrict_sfo_params = false; perm->sfo = psf::load_object(fs::file(vfs::get(dir + "/PARAM.SFO"))); return CELL_OK; }