cellGameContentPermit: Don't set content and usrdir path on gamedata if cellGameCreateGameData was never called

This commit is contained in:
isJuhn 2018-06-08 19:56:16 +02:00 committed by Ivan
parent 3dd45fc859
commit 88bfdb0c05

View File

@ -398,6 +398,12 @@ error_code cellGameContentPermit(vm::ptr<char[CELL_GAME_PATH_MAX]> contentInfoPa
return CELL_GAME_ERROR_FAILURE;
}
if (prm->can_create && prm->temp.empty())
{
verify(HERE), fxm::remove<content_permission>();
return CELL_OK;
}
const std::string dir = prm->dir.empty() ? "/dev_bdvd/PS3_GAME"s : "/dev_hdd0/game/" + prm->dir;
if (!prm->temp.empty())