mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Improve cellGameBootCheck
This commit is contained in:
parent
30c25cb722
commit
61cd591ad5
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue