2015-01-27 01:19:51 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
2016-05-13 12:17:26 +02:00
|
|
|
#include "Emu/PSP2/ARMv7Module.h"
|
2015-01-27 01:19:51 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
#include "sceSysmodule.h"
|
2015-01-27 01:19:51 +01:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel sceSysmodule("sceSysmodule");
|
2016-02-01 22:53:16 +01:00
|
|
|
|
2015-01-27 01:19:51 +01:00
|
|
|
s32 sceSysmoduleLoadModule(u16 id)
|
|
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
sceSysmodule.warning("sceSysmoduleLoadModule(id=0x%04x) -> SCE_OK", id);
|
2015-01-27 01:19:51 +01:00
|
|
|
|
|
|
|
|
return SCE_OK; // loading succeeded
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceSysmoduleUnloadModule(u16 id)
|
|
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
sceSysmodule.warning("sceSysmoduleUnloadModule(id=0x%04x) -> SCE_OK", id);
|
2015-01-27 01:19:51 +01:00
|
|
|
|
|
|
|
|
return SCE_OK; // unloading succeeded
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceSysmoduleIsLoaded(u16 id)
|
|
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
sceSysmodule.warning("sceSysmoduleIsLoaded(id=0x%04x) -> SCE_OK", id);
|
2015-01-27 01:19:51 +01:00
|
|
|
|
|
|
|
|
return SCE_OK; // module is loaded
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
#define REG_FUNC(nid, name) REG_FNID(SceSysmodule, nid, name)
|
2015-01-27 01:19:51 +01:00
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
DECLARE(arm_module_manager::SceSysmodule)("SceSysmodule", []()
|
2015-01-27 01:19:51 +01:00
|
|
|
{
|
|
|
|
|
REG_FUNC(0x79A0160A, sceSysmoduleLoadModule);
|
|
|
|
|
REG_FUNC(0x31D87805, sceSysmoduleUnloadModule);
|
|
|
|
|
REG_FUNC(0x53099B7A, sceSysmoduleIsLoaded);
|
|
|
|
|
});
|