#include "stdafx.h" #include "Emu/System.h" #include "Emu/PSP2/ARMv7Module.h" #include "sceNpCommon.h" logs::channel sceNpCommon("sceNpCommon"); s32 sceNpAuthInit() { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthTerm() { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthCreateStartRequest(vm::cptr param) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthDestroyRequest(s32 id) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthAbortRequest(s32 id) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthGetTicket(s32 id, vm::ptr buf, u32 len) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthGetTicketParam(vm::cptr ticket, u32 ticketSize, s32 paramId, vm::ptr param) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthGetEntitlementIdList(vm::cptr ticket, u32 ticketSize, vm::ptr entIdList, u32 entIdListNum) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpAuthGetEntitlementById(vm::cptr ticket, u32 ticketSize, vm::cptr entId, vm::ptr ent) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpCmpNpId(vm::cptr npid1, vm::cptr npid2) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpCmpNpIdInOrder(vm::cptr npid1, vm::cptr npid2, vm::ptr order) { fmt::throw_exception("Unimplemented" HERE); } #define REG_FUNC(nid, name) REG_FNID(SceNpCommon, nid, name) DECLARE(arm_module_manager::SceNpCommon)("SceNpCommon", []() { 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); });