mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Partial commit: Modules (cell)
This commit is contained in:
parent
7e30a0f464
commit
5637c22363
140 changed files with 7290 additions and 8243 deletions
42
rpcs3/Emu/Cell/Modules/cellSysutilAp.cpp
Normal file
42
rpcs3/Emu/Cell/Modules/cellSysutilAp.cpp
Normal file
|
@ -0,0 +1,42 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
|
||||
LOG_CHANNEL(cellSysutilAp);
|
||||
|
||||
// Return Codes
|
||||
enum
|
||||
{
|
||||
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,
|
||||
};
|
||||
|
||||
s32 cellSysutilApGetRequiredMemSize()
|
||||
{
|
||||
cellSysutilAp.trace("cellSysutilApGetRequiredMemSize()");
|
||||
return 1024*1024; // Return 1 MB as required size
|
||||
}
|
||||
|
||||
s32 cellSysutilApOn()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellSysutilAp);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
s32 cellSysutilApOff()
|
||||
{
|
||||
UNIMPLEMENTED_FUNC(cellSysutilAp);
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
DECLARE(ppu_module_manager::cellSysutilAp)("cellSysutilAp", []()
|
||||
{
|
||||
REG_FUNC(cellSysutilAp, cellSysutilApGetRequiredMemSize);
|
||||
REG_FUNC(cellSysutilAp, cellSysutilApOn);
|
||||
REG_FUNC(cellSysutilAp, cellSysutilApOff);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue