Some functions added

This commit is contained in:
Nekotekina 2015-01-30 20:19:11 +03:00
parent 6cab4d7100
commit bdd458d2ae
10 changed files with 2946 additions and 174 deletions

View file

@ -2,7 +2,62 @@
#include "Emu/System.h"
#include "Emu/ARMv7/PSVFuncList.h"
extern psv_log_base sceNpCommon;
#include "sceNpCommon.h"
s32 sceNpAuthInit()
{
throw __FUNCTION__;
}
s32 sceNpAuthTerm()
{
throw __FUNCTION__;
}
s32 sceNpAuthCreateStartRequest(vm::psv::ptr<const SceNpAuthRequestParameter> param)
{
throw __FUNCTION__;
}
s32 sceNpAuthDestroyRequest(SceNpAuthRequestId id)
{
throw __FUNCTION__;
}
s32 sceNpAuthAbortRequest(SceNpAuthRequestId id)
{
throw __FUNCTION__;
}
s32 sceNpAuthGetTicket(SceNpAuthRequestId id, vm::psv::ptr<void> buf, u32 len)
{
throw __FUNCTION__;
}
s32 sceNpAuthGetTicketParam(vm::psv::ptr<const u8> ticket, u32 ticketSize, s32 paramId, vm::psv::ptr<SceNpTicketParam> param)
{
throw __FUNCTION__;
}
s32 sceNpAuthGetEntitlementIdList(vm::psv::ptr<const u8> ticket, u32 ticketSize, vm::psv::ptr<SceNpEntitlementId> entIdList, u32 entIdListNum)
{
throw __FUNCTION__;
}
s32 sceNpAuthGetEntitlementById(vm::psv::ptr<const u8> ticket, u32 ticketSize, vm::psv::ptr<const char> entId, vm::psv::ptr<SceNpEntitlement> ent)
{
throw __FUNCTION__;
}
s32 sceNpCmpNpId(vm::psv::ptr<const SceNpId> npid1, vm::psv::ptr<const SceNpId> npid2)
{
throw __FUNCTION__;
}
s32 sceNpCmpNpIdInOrder(vm::psv::ptr<const SceNpId> npid1, vm::psv::ptr<const SceNpId> npid2, vm::psv::ptr<s32> order)
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceNpCommon, #name, name)
@ -12,15 +67,15 @@ psv_log_base sceNpCommon("SceNpCommon", []()
sceNpCommon.on_unload = nullptr;
sceNpCommon.on_stop = nullptr;
//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);
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);
});