mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +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
No EOL
266 B
C++
17 lines
No EOL
266 B
C++
#include "stdafx.h"
|
|
#include "Emu/SysCalls/Modules.h"
|
|
#include "sceNpSns.h"
|
|
|
|
Module *sceNpSns = nullptr;
|
|
|
|
void sceNpSns_unload()
|
|
{
|
|
// TODO: Unload SNS module
|
|
}
|
|
|
|
void sceNpSns_init(Module *pxThis)
|
|
{
|
|
sceNpSns = pxThis;
|
|
|
|
// TODO: Register SNS module functions here
|
|
} |