mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12: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.
17 lines
276 B
C++
17 lines
276 B
C++
#include "stdafx.h"
|
|
#include "Emu/SysCalls/Modules.h"
|
|
|
|
Module *sys_io = nullptr;
|
|
|
|
extern void cellPad_init();
|
|
extern void cellKb_init();
|
|
extern void cellMouse_init();
|
|
|
|
void sys_io_init(Module *pxThis)
|
|
{
|
|
sys_io = pxThis;
|
|
|
|
cellPad_init();
|
|
cellKb_init();
|
|
cellMouse_init();
|
|
}
|