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-01-30 18:19:11 +01:00
|
|
|
#include "sceNpCommon.h"
|
|
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel sceNpCommon("sceNpCommon");
|
2016-02-01 22:53:16 +01:00
|
|
|
|
2015-01-30 18:19:11 +01:00
|
|
|
s32 sceNpAuthInit()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 sceNpAuthTerm()
|
|
|
|
|
{
|
2016-08-08 18:01:06 +02:00
|
|
|
fmt::throw_exception("Unimplemented" HERE);
|
2015-01-30 18:19:11 +01:00
|
|
|
}
|
|
|
|
|
|
2015-06-22 00:27:58 +02:00
|
|
|
s32 sceNpAuthCreateStartRequest(vm::cptr<SceNpAuthRequestParameter> param)
|
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 sceNpAuthDestroyRequest(s32 id)
|
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 sceNpAuthAbortRequest(s32 id)
|
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 sceNpAuthGetTicket(s32 id, vm::ptr<void> buf, u32 len)
|
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-22 00:27:58 +02:00
|
|
|
s32 sceNpAuthGetTicketParam(vm::cptr<u8> ticket, u32 ticketSize, s32 paramId, vm::ptr<SceNpTicketParam> param)
|
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-22 00:27:58 +02:00
|
|
|
s32 sceNpAuthGetEntitlementIdList(vm::cptr<u8> ticket, u32 ticketSize, vm::ptr<SceNpEntitlementId> entIdList, u32 entIdListNum)
|
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-22 00:27:58 +02:00
|
|
|
s32 sceNpAuthGetEntitlementById(vm::cptr<u8> ticket, u32 ticketSize, vm::cptr<char> entId, vm::ptr<SceNpEntitlement> ent)
|
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-22 00:27:58 +02:00
|
|
|
s32 sceNpCmpNpId(vm::cptr<SceNpId> npid1, vm::cptr<SceNpId> npid2)
|
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-22 00:27:58 +02:00
|
|
|
s32 sceNpCmpNpIdInOrder(vm::cptr<SceNpId> npid1, vm::cptr<SceNpId> npid2, vm::ptr<s32> order)
|
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-01-29 16:48:05 +01:00
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
#define REG_FUNC(nid, name) REG_FNID(SceNpCommon, nid, name)
|
2015-01-29 16:48:05 +01:00
|
|
|
|
2016-02-01 22:53:16 +01:00
|
|
|
DECLARE(arm_module_manager::SceNpCommon)("SceNpCommon", []()
|
2015-01-29 16:48:05 +01:00
|
|
|
{
|
2015-01-30 18:19:11 +01:00
|
|
|
REG_FUNC(0x441D8B4E, sceNpAuthInit);
|
|
|
|
|
REG_FUNC(0x6093B689, sceNpAuthTerm);
|
|
|
|
|
REG_FUNC(0xED42079F, sceNpAuthCreateStartRequest);
|
|
|
|
|
REG_FUNC(0x14FC18AF, sceNpAuthDestroyRequest);
|
|
|
|
|
REG_FUNC(0xE2582575, sceNpAuthAbortRequest);
|
|
|
|
|
REG_FUNC(0x59608D1C, sceNpAuthGetTicket);
|
|
|
|
|
REG_FUNC(0xC1E23E01, sceNpAuthGetTicketParam);
|
|
|
|
|
REG_FUNC(0x3377CD37, sceNpAuthGetEntitlementIdList);
|
|
|
|
|
REG_FUNC(0xF93842F0, sceNpAuthGetEntitlementById);
|
|
|
|
|
REG_FUNC(0xFB8D82E5, sceNpCmpNpId);
|
|
|
|
|
REG_FUNC(0x6BC8150A, sceNpCmpNpIdInOrder);
|
2015-01-29 16:48:05 +01:00
|
|
|
});
|