Improve cellGameBootCheck

This commit is contained in:
Raul Tambre 2015-07-06 14:47:49 +03:00
parent 30c25cb722
commit 61cd591ad5

View file

@ -106,10 +106,11 @@ s32 cellGameBootCheck(vm::ptr<u32> type, vm::ptr<u32> attributes, vm::ptr<CellGa
vfsFile f("/app_home/../PARAM.SFO"); vfsFile f("/app_home/../PARAM.SFO");
const PSFLoader psf(f); const PSFLoader psf(f);
if (!psf) if (!psf)
{ {
cellGame.Error("cellGameBootCheck(): CELL_GAME_ERROR_ACCESS_ERROR (cannot read PARAM.SFO)"); // According to testing (in debug mode) cellGameBootCheck doesn't return an error code, when PARAM.SFO doesn't exsist.
return CELL_GAME_ERROR_ACCESS_ERROR; cellGame.Error("cellGameBootCheck(): Cannot read PARAM.SFO)");
} }
std::string category = psf.GetString("CATEGORY"); std::string category = psf.GetString("CATEGORY");
@ -142,10 +143,9 @@ s32 cellGameBootCheck(vm::ptr<u32> type, vm::ptr<u32> attributes, vm::ptr<CellGa
usrdir = "/dev_bdvd/PS3_GAME/USRDIR"; usrdir = "/dev_bdvd/PS3_GAME/USRDIR";
path_set = true; path_set = true;
} }
else else if (psf)
{ {
cellGame.Error("cellGameBootCheck(): CELL_GAME_ERROR_FAILURE (unknown CATEGORY)"); cellGame.Error("cellGameBootCheck(): Unknown CATEGORY.");
return CELL_GAME_ERROR_FAILURE;
} }
return CELL_GAME_RET_OK; return CELL_GAME_RET_OK;