cellGameContentPermit: Fix missing PARAM.SFO writeback (#8934)

This commit is contained in:
Eladash 2020-09-23 20:35:06 +03:00 committed by GitHub
parent 4fe2951509
commit 3372409590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -567,6 +567,11 @@ error_code cellGameContentPermit(vm::ptr<char[CELL_GAME_PATH_MAX]> 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();