mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Change ModuleManager::init function.
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.
This commit is contained in:
parent
7dafb164e8
commit
3caff5a107
46 changed files with 321 additions and 461 deletions
|
|
@ -2,8 +2,6 @@
|
|||
#include "Emu/Memory/Memory.h"
|
||||
#include "Emu/SysCalls/Modules.h"
|
||||
|
||||
//void cellSysutilAp_init();
|
||||
//Module cellSysutilAp(0x0039, cellSysutilAp_init);
|
||||
Module *cellSysutilAp = nullptr;
|
||||
|
||||
// Return Codes
|
||||
|
|
@ -37,8 +35,10 @@ int cellSysutilApOff()
|
|||
return CELL_OK;
|
||||
}
|
||||
|
||||
void cellSysutilAp_init()
|
||||
void cellSysutilAp_init(Module *pxThis)
|
||||
{
|
||||
cellSysutilAp = pxThis;
|
||||
|
||||
cellSysutilAp->AddFunc(0x9e67e0dd, cellSysutilApGetRequiredMemSize);
|
||||
cellSysutilAp->AddFunc(0x3343824c, cellSysutilApOn);
|
||||
cellSysutilAp->AddFunc(0x90c2bb19, cellSysutilApOff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue