2015-01-29 16:48:05 +01:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/System.h"
|
2016-05-13 12:17:26 +02:00
|
|
|
#include "Emu/PSP2/ARMv7Module.h"
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
#include "sceNpManager.h"
|
2015-01-30 18:19:11 +01:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel sceNpManager("sceNpManager");
|
2016-02-01 22:53:16 +01:00
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
s32 sceNpInit(vm::cptr<SceNpCommunicationConfig> commConf, vm::ptr<SceNpOptParam> opt)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-08-07 23:37:32 +02:00
|
|
|
s32 sceNpTerm(ARMv7Thread&)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceNpCheckCallback()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-24 13:53:47 +02:00
|
|
|
s32 sceNpGetServiceState(vm::ptr<s32> state)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNpRegisterServiceStateCallback(vm::ptr<SceNpServiceStateCallback> callback, vm::ptr<void> userdata)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceNpUnregisterServiceStateCallback()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNpManagerGetNpId(vm::ptr<SceNpId> npId)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNpManagerGetAccountRegion(vm::ptr<SceNpCountryCode> countryCode, vm::ptr<s32> languageCode)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNpManagerGetContentRatingFlag(vm::ptr<s32> isRestricted, vm::ptr<s32> age)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-21 01:04:01 +02:00
|
|
|
s32 sceNpManagerGetChatRestrictionFlag(vm::ptr<s32> isRestricted)
|
2015-01-30 18:19:11 +01:00
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
#define REG_FUNC(nid, name) REG_FNID(SceNpManager, nid, name)
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
DECLARE(arm_module_manager::SceNpManager)("SceNpManager", []()
|
2015-01-29 16:48:05 +01:00
|
|
|
{
|
2015-01-30 18:19:11 +01:00
|
|
|
REG_FUNC(0x04D9F484, sceNpInit);
|
|
|
|
|
REG_FUNC(0x19E40AE1, sceNpTerm);
|
|
|
|
|
REG_FUNC(0x3C94B4B4, sceNpManagerGetNpId);
|
|
|
|
|
REG_FUNC(0x54060DF6, sceNpGetServiceState);
|
|
|
|
|
REG_FUNC(0x44239C35, sceNpRegisterServiceStateCallback);
|
|
|
|
|
REG_FUNC(0xD9E6E56C, sceNpUnregisterServiceStateCallback);
|
|
|
|
|
REG_FUNC(0x3B0AE9A9, sceNpCheckCallback);
|
|
|
|
|
REG_FUNC(0xFE835967, sceNpManagerGetAccountRegion);
|
|
|
|
|
REG_FUNC(0xAF0073B2, sceNpManagerGetContentRatingFlag);
|
|
|
|
|
REG_FUNC(0x60C575B1, sceNpManagerGetChatRestrictionFlag);
|
2015-01-29 16:48:05 +01:00
|
|
|
});
|