mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
First step to help refactor Module management. Add every module in the static ModuleInfo list. Module without id are assigned to 0xffff. The init function is called after constructor and take a pointer to Module as an input. This pointer is used to set the Module's global pointer in its file.
47 lines
888 B
C++
47 lines
888 B
C++
#include "stdafx.h"
|
|
#include "Emu/SysCalls/Modules.h"
|
|
|
|
Module *cellOvis = nullptr;
|
|
|
|
// Return Codes
|
|
enum
|
|
{
|
|
CELL_OVIS_ERROR_INVAL = 0x80410402,
|
|
CELL_OVIS_ERROR_ABORT = 0x8041040C,
|
|
CELL_OVIS_ERROR_ALIGN = 0x80410410,
|
|
};
|
|
|
|
int cellOvisGetOverlayTableSize()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellOvis);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellOvisInitializeOverlayTable()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellOvis);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellOvisFixSpuSegments()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellOvis);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellOvisInvalidateOverlappedSegments()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellOvis);
|
|
return CELL_OK;
|
|
}
|
|
|
|
void cellOvis_init(Module *pxThis)
|
|
{
|
|
cellOvis = pxThis;
|
|
|
|
cellOvis->AddFunc(0x82f294b2, cellOvisGetOverlayTableSize);
|
|
cellOvis->AddFunc(0xa876c911, cellOvisInitializeOverlayTable);
|
|
cellOvis->AddFunc(0xce6cb776, cellOvisFixSpuSegments);
|
|
cellOvis->AddFunc(0x629ba0c0, cellOvisInvalidateOverlappedSegments);
|
|
}
|