Fix cellGameDataCheck's game data creation with PARAM.SFO set/get

This commit is contained in:
Eladash 2020-03-03 17:02:22 +02:00 committed by Ivan
parent 01db83bc36
commit 5c3d417b35

View File

@ -483,13 +483,14 @@ error_code cellGameDataCheck(u32 type, vm::cptr<char> dirName, vm::ptr<CellGameC
perm->can_create = true; perm->can_create = true;
} }
perm->restrict_sfo_params = false;
if (!fs::is_dir(vfs::get(dir))) if (!fs::is_dir(vfs::get(dir)))
{ {
cellGame.warning("cellGameDataCheck(): directory '%s' not found", dir); cellGame.warning("cellGameDataCheck(): directory '%s' not found", dir);
return not_an_error(CELL_GAME_RET_NONE); 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"))); perm->sfo = psf::load_object(fs::file(vfs::get(dir + "/PARAM.SFO")));
return CELL_OK; return CELL_OK;
} }