mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12: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
|
@ -19,8 +19,6 @@
|
|||
#include "Emu/Cell/RawSPUThread.h"
|
||||
#include "sysPrxForUser.h"
|
||||
|
||||
//void sysPrxForUser_init();
|
||||
//Module sysPrxForUser("sysPrxForUser", sysPrxForUser_init);
|
||||
Module *sysPrxForUser = nullptr;
|
||||
|
||||
extern u32 LoadSpuImage(vfsStream& stream, u32& spu_ep);
|
||||
|
@ -352,8 +350,10 @@ s32 _unnamed_E75C40F2(u32 dest)
|
|||
return CELL_ENOENT;
|
||||
}
|
||||
|
||||
void sysPrxForUser_init()
|
||||
void sysPrxForUser_init(Module *pxThis)
|
||||
{
|
||||
sysPrxForUser = pxThis;
|
||||
|
||||
// Setup random number generator
|
||||
srand(time(NULL));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue