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
1 changed files with 2 additions and 1 deletions

View File

@ -483,13 +483,14 @@ error_code cellGameDataCheck(u32 type, vm::cptr<char> dirName, vm::ptr<CellGameC
perm->can_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;
}