2015-07-30 01:30:13 +03:00
|
|
|
#include "stdafx.h"
|
2016-03-21 22:43:03 +03:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2015-07-30 01:30:13 +03:00
|
|
|
|
2015-08-21 23:57:49 +03:00
|
|
|
#include "cellGame.h"
|
|
|
|
|
|
2016-05-13 16:55:34 +03:00
|
|
|
logs::channel cellGameExec("cellGameExec", logs::level::notice);
|
2015-07-30 01:30:13 +03:00
|
|
|
|
|
|
|
|
s32 cellGameSetExitParam()
|
|
|
|
|
{
|
|
|
|
|
throw EXCEPTION("");
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-10 17:30:14 +03:00
|
|
|
s32 cellGameGetHomeDataExportPath(vm::ptr<char> exportPath)
|
2015-07-30 01:30:13 +03:00
|
|
|
{
|
2016-01-13 00:57:16 +03:00
|
|
|
cellGameExec.warning("cellGameGetHomeDataExportPath(exportPath=0x%x)", exportPath);
|
2015-09-10 17:30:14 +03:00
|
|
|
|
|
|
|
|
// TODO: PlayStation home is defunct.
|
|
|
|
|
|
|
|
|
|
return CELL_GAME_ERROR_NOAPP;
|
2015-07-30 01:30:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellGameGetHomePath()
|
|
|
|
|
{
|
|
|
|
|
throw EXCEPTION("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellGameGetHomeDataImportPath()
|
|
|
|
|
{
|
|
|
|
|
throw EXCEPTION("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellGameGetHomeLaunchOptionPath()
|
|
|
|
|
{
|
|
|
|
|
throw EXCEPTION("");
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-21 23:57:49 +03:00
|
|
|
s32 cellGameGetBootGameInfo(vm::ptr<u32> type, vm::ptr<char> dirName, vm::ptr<u32> execData)
|
2015-07-30 01:30:13 +03:00
|
|
|
{
|
2016-01-13 00:57:16 +03:00
|
|
|
cellGameExec.todo("cellGameGetBootGameInfo(type=*0x%x, dirName=*0x%x, execData=*0x%x)", type, dirName, execData);
|
2015-07-30 01:30:13 +03:00
|
|
|
|
2015-08-21 23:57:49 +03:00
|
|
|
// TODO: Support more boot types
|
|
|
|
|
*type = CELL_GAME_GAMETYPE_SYS;
|
|
|
|
|
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
2015-07-30 01:30:13 +03:00
|
|
|
|
2016-03-21 22:43:03 +03:00
|
|
|
DECLARE(ppu_module_manager::cellGameExec)("cellGameExec", []()
|
2015-07-30 01:30:13 +03:00
|
|
|
{
|
|
|
|
|
REG_FUNC(cellGameExec, cellGameSetExitParam);
|
|
|
|
|
REG_FUNC(cellGameExec, cellGameGetHomeDataExportPath);
|
|
|
|
|
REG_FUNC(cellGameExec, cellGameGetHomePath);
|
|
|
|
|
REG_FUNC(cellGameExec, cellGameGetHomeDataImportPath);
|
|
|
|
|
REG_FUNC(cellGameExec, cellGameGetHomeLaunchOptionPath);
|
|
|
|
|
REG_FUNC(cellGameExec, cellGameGetBootGameInfo);
|
|
|
|
|
});
|