Stub some cellGameExec and cellResc functions

This commit is contained in:
scribam 2017-07-23 22:46:16 +02:00 committed by Ivan
parent be84dd73a9
commit 4c5921a7a4
2 changed files with 18 additions and 13 deletions

View file

@ -5,14 +5,15 @@
logs::channel cellGameExec("cellGameExec"); logs::channel cellGameExec("cellGameExec");
s32 cellGameSetExitParam() s32 cellGameSetExitParam(u32 execdata)
{ {
fmt::throw_exception("Unimplemented" HERE); cellGameExec.todo("cellGameSetExitParam(execdata=0x%x)", execdata);
return CELL_OK;
} }
s32 cellGameGetHomeDataExportPath(vm::ptr<char> exportPath) s32 cellGameGetHomeDataExportPath(vm::ptr<char> exportPath)
{ {
cellGameExec.warning("cellGameGetHomeDataExportPath(exportPath=0x%x)", exportPath); cellGameExec.warning("cellGameGetHomeDataExportPath(exportPath=*0x%x)", exportPath);
// TODO: PlayStation home is defunct. // TODO: PlayStation home is defunct.
@ -21,12 +22,17 @@ s32 cellGameGetHomeDataExportPath(vm::ptr<char> exportPath)
s32 cellGameGetHomePath() s32 cellGameGetHomePath()
{ {
fmt::throw_exception("Unimplemented" HERE); UNIMPLEMENTED_FUNC(cellGameExec);
return CELL_OK;
} }
s32 cellGameGetHomeDataImportPath() s32 cellGameGetHomeDataImportPath(vm::ptr<char> importPath)
{ {
fmt::throw_exception("Unimplemented" HERE); cellGameExec.warning("cellGameGetHomeDataImportPath(importPath=*0x%x)", importPath);
// TODO: PlayStation home is defunct.
return CELL_GAME_ERROR_NOAPP;
} }
s32 cellGameGetHomeLaunchOptionPath(vm::ptr<char> commonPath, vm::ptr<char> personalPath) s32 cellGameGetHomeLaunchOptionPath(vm::ptr<char> commonPath, vm::ptr<char> personalPath)
@ -37,9 +43,9 @@ s32 cellGameGetHomeLaunchOptionPath(vm::ptr<char> commonPath, vm::ptr<char> pers
return CELL_GAME_ERROR_NOAPP; return CELL_GAME_ERROR_NOAPP;
} }
s32 cellGameGetBootGameInfo(vm::ptr<u32> type, vm::ptr<char> dirName, vm::ptr<u32> execData) s32 cellGameGetBootGameInfo(vm::ptr<u32> type, vm::ptr<char> dirName, vm::ptr<u32> execdata)
{ {
cellGameExec.todo("cellGameGetBootGameInfo(type=*0x%x, dirName=%s, execData=*0x%x)", type, dirName, execData); cellGameExec.todo("cellGameGetBootGameInfo(type=*0x%x, dirName=%s, execdata=*0x%x)", type, dirName, execdata);
// TODO: Support more boot types // TODO: Support more boot types
*type = CELL_GAME_GAMETYPE_SYS; *type = CELL_GAME_GAMETYPE_SYS;

View file

@ -123,8 +123,8 @@ s32 cellRescGetFlipStatus()
s32 cellRescGetRegisterCount() s32 cellRescGetRegisterCount()
{ {
UNIMPLEMENTED_FUNC(cellResc); cellResc.todo("cellRescGetRegisterCount()");
return CELL_OK; return 0;
} }
u64 cellRescGetLastFlipTime() u64 cellRescGetLastFlipTime()
@ -134,10 +134,9 @@ u64 cellRescGetLastFlipTime()
return 0; return 0;
} }
s32 cellRescSetRegisterCount() void cellRescSetRegisterCount(s32 regCount)
{ {
UNIMPLEMENTED_FUNC(cellResc); cellResc.todo("cellRescSetRegisterCount(regCount=0x%x)", regCount);
return CELL_OK;
} }
void cellRescSetVBlankHandler(vm::ptr<void(u32)> handler) void cellRescSetVBlankHandler(vm::ptr<void(u32)> handler)