2013-09-28 04:36:57 +02:00
|
|
|
#include "stdafx.h"
|
2014-06-02 19:27:24 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2014-07-10 21:07:46 +02:00
|
|
|
Module *cellSysutilAp = nullptr;
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Return Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_SYSUTIL_AP_ERROR_OUT_OF_MEMORY = 0x8002cd00,
|
|
|
|
|
CELL_SYSUTIL_AP_ERROR_FATAL = 0x8002cd01,
|
|
|
|
|
CELL_SYSUTIL_AP_ERROR_INVALID_VALUE = 0x8002cd02,
|
|
|
|
|
CELL_SYSUTIL_AP_ERROR_NOT_INITIALIZED = 0x8002cd03,
|
|
|
|
|
CELL_SYSUTIL_AP_ERROR_ZERO_REGISTERED = 0x8002cd13,
|
|
|
|
|
CELL_SYSUTIL_AP_ERROR_NETIF_DISABLED = 0x8002cd14,
|
|
|
|
|
CELL_SYSUTIL_AP_ERROR_NETIF_NO_CABLE = 0x8002cd15,
|
|
|
|
|
CELL_SYSUTIL_AP_ERROR_NETIF_CANNOT_CONNECT = 0x8002cd16,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2014-02-11 03:47:25 +01:00
|
|
|
s32 cellSysutilApGetRequiredMemSize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-05-02 08:30:32 +02:00
|
|
|
cellSysutilAp->Log("cellSysutilApGetRequiredMemSize()");
|
2014-02-11 03:47:25 +01:00
|
|
|
return 1024*1024; // Return 1 MB as required size
|
2013-09-28 04:36:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSysutilApOn()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSysutilAp);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSysutilApOff()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSysutilAp);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-13 22:00:17 +02:00
|
|
|
void cellSysutilAp_init(Module *pxThis)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-09-13 22:00:17 +02:00
|
|
|
cellSysutilAp = pxThis;
|
|
|
|
|
|
2014-05-02 08:30:32 +02:00
|
|
|
cellSysutilAp->AddFunc(0x9e67e0dd, cellSysutilApGetRequiredMemSize);
|
|
|
|
|
cellSysutilAp->AddFunc(0x3343824c, cellSysutilApOn);
|
|
|
|
|
cellSysutilAp->AddFunc(0x90c2bb19, cellSysutilApOff);
|
2014-07-10 21:07:46 +02:00
|
|
|
}
|