From 3372409590b92aa190acd08cf6a79d8ac8af515f Mon Sep 17 00:00:00 2001 From: Eladash Date: Wed, 23 Sep 2020 20:35:06 +0300 Subject: [PATCH] cellGameContentPermit: Fix missing PARAM.SFO writeback (#8934) --- rpcs3/Emu/Cell/Modules/cellGame.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/cellGame.cpp b/rpcs3/Emu/Cell/Modules/cellGame.cpp index 974558e464..4a0d74f91d 100644 --- a/rpcs3/Emu/Cell/Modules/cellGame.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGame.cpp @@ -567,6 +567,11 @@ error_code cellGameContentPermit(vm::ptr contentInfoPa cellGame.error("cellGameContentPermit(): failed to initialize directory '%s' (%s)", dir, fs::g_tls_error); } } + else if (perm->can_create) + { + // Update PARAM.SFO + psf::save_object(fs::file(vfs::get(dir + "/PARAM.SFO"), fs::rewrite), perm->sfo); + } // Cleanup perm->reset();