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