#include "stdafx.h" #include "Emu/System.h" #include "Emu/PSP2/ARMv7Module.h" #include "sceNpScore.h" logs::channel sceNpScore("sceNpScore"); s32 sceNpScoreInit(s32 threadPriority, s32 cpuAffinityMask, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreTerm(ARMv7Thread&) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreCreateTitleCtx(vm::cptr titleId, vm::cptr passphrase, vm::cptr selfNpId) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreDeleteTitleCtx(s32 titleCtxId) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreCreateRequest(s32 titleCtxId) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreDeleteRequest(s32 reqId) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreAbortRequest(s32 reqId) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreSetTimeout(s32 id, s32 resolveRetry, s32 resolveTimeout, s32 connTimeout, s32 sendTimeout, s32 recvTimeout) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreSetPlayerCharacterId(s32 id, s32 pcId) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetBoardInfo(s32 reqId, u32 boardId, vm::ptr boardInfo, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreRecordScore( s32 reqId, u32 boardId, s64 score, vm::cptr scoreComment, vm::cptr gameInfo, vm::ptr tmpRank, vm::cptr compareDate, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreRecordGameData( s32 reqId, u32 boardId, s64 score, u32 totalSize, u32 sendSize, vm::cptr data, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetGameData( s32 reqId, u32 boardId, vm::cptr npId, vm::ptr totalSize, u32 recvSize, vm::ptr data, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetRankingByNpId( s32 reqId, u32 boardId, vm::cptr npIdArray, u32 npIdArraySize, vm::ptr rankArray, u32 rankArraySize, vm::ptr commentArray, u32 commentArraySize, vm::ptr infoArray, u32 infoArraySize, u32 arrayNum, vm::ptr lastSortDate, vm::ptr totalRecord, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetRankingByRange( s32 reqId, u32 boardId, u32 startSerialRank, vm::ptr rankArray, u32 rankArraySize, vm::ptr commentArray, u32 commentArraySize, vm::ptr infoArray, u32 infoArraySize, u32 arrayNum, vm::ptr lastSortDate, vm::ptr totalRecord, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetRankingByNpIdPcId( s32 reqId, u32 boardId, vm::cptr idArray, u32 idArraySize, vm::ptr rankArray, u32 rankArraySize, vm::ptr commentArray, u32 commentArraySize, vm::ptr infoArray, u32 infoArraySize, u32 arrayNum, vm::ptr lastSortDate, vm::ptr totalRecord, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreCensorComment(s32 reqId, vm::cptr comment, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreSanitizeComment(s32 reqId, vm::cptr comment, vm::ptr sanitizedComment, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreWaitAsync(s32 id, vm::ptr result) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScorePollAsync(s32 reqId, vm::ptr result) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetBoardInfoAsync(s32 reqId, u32 boardId, vm::ptr boardInfo, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreRecordScoreAsync( s32 reqId, u32 boardId, s64 score, vm::cptr scoreComment, vm::cptr gameInfo, vm::ptr tmpRank, vm::cptr compareDate, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreRecordGameDataAsync( s32 reqId, u32 boardId, s64 score, u32 totalSize, u32 sendSize, vm::cptr data, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetGameDataAsync( s32 reqId, u32 boardId, vm::cptr npId, vm::ptr totalSize, u32 recvSize, vm::ptr data, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetRankingByNpIdAsync( s32 reqId, u32 boardId, vm::cptr npIdArray, u32 npIdArraySize, vm::ptr rankArray, u32 rankArraySize, vm::ptr commentArray, u32 commentArraySize, vm::ptr infoArray, u32 infoArraySize, u32 arrayNum, vm::ptr lastSortDate, vm::ptr totalRecord, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetRankingByRangeAsync( s32 reqId, u32 boardId, u32 startSerialRank, vm::ptr rankArray, u32 rankArraySize, vm::ptr commentArray, u32 commentArraySize, vm::ptr infoArray, u32 infoArraySize, u32 arrayNum, vm::ptr lastSortDate, vm::ptr totalRecord, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreGetRankingByNpIdPcIdAsync( s32 reqId, u32 boardId, vm::cptr idArray, u32 idArraySize, vm::ptr rankArray, u32 rankArraySize, vm::ptr commentArray, u32 commentArraySize, vm::ptr infoArray, u32 infoArraySize, u32 arrayNum, vm::ptr lastSortDate, vm::ptr totalRecord, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreCensorCommentAsync(s32 reqId, vm::cptr comment, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } s32 sceNpScoreSanitizeCommentAsync(s32 reqId, vm::cptr comment, vm::ptr sanitizedComment, vm::ptr option) { fmt::throw_exception("Unimplemented" HERE); } #define REG_FUNC(nid, name) REG_FNID(SceNpScore, nid, name) DECLARE(arm_module_manager::SceNpScore)("SceNpScore", []() { REG_FUNC(0x0433069F, sceNpScoreInit); REG_FUNC(0x2050F98F, sceNpScoreTerm); REG_FUNC(0x5685F225, sceNpScoreCreateTitleCtx); REG_FUNC(0xD30D1993, sceNpScoreCreateRequest); REG_FUNC(0xF52EA88A, sceNpScoreDeleteTitleCtx); REG_FUNC(0xFFF24BB1, sceNpScoreDeleteRequest); REG_FUNC(0x320C0277, sceNpScoreRecordScore); REG_FUNC(0x24B09634, sceNpScoreRecordScoreAsync); REG_FUNC(0xC2862B67, sceNpScoreRecordGameData); REG_FUNC(0x40573917, sceNpScoreRecordGameDataAsync); REG_FUNC(0xDFAD64D3, sceNpScoreGetGameData); REG_FUNC(0xCE416993, sceNpScoreGetGameDataAsync); REG_FUNC(0x427D3412, sceNpScoreGetRankingByRange); REG_FUNC(0xC45E3FCD, sceNpScoreGetRankingByRangeAsync); REG_FUNC(0xBAE55B34, sceNpScoreGetRankingByNpId); REG_FUNC(0x45CD1D00, sceNpScoreGetRankingByNpIdAsync); REG_FUNC(0x871F28AA, sceNpScoreGetRankingByNpIdPcId); REG_FUNC(0xCE3A9544, sceNpScoreGetRankingByNpIdPcIdAsync); REG_FUNC(0xA7E93CE1, sceNpScoreAbortRequest); REG_FUNC(0x31733BF3, sceNpScoreWaitAsync); REG_FUNC(0x9F2A7AC9, sceNpScorePollAsync); REG_FUNC(0x00F90E7B, sceNpScoreGetBoardInfo); REG_FUNC(0x3CD9974E, sceNpScoreGetBoardInfoAsync); REG_FUNC(0xA0C94D46, sceNpScoreCensorComment); REG_FUNC(0xAA0BBF8E, sceNpScoreCensorCommentAsync); REG_FUNC(0x6FD2041A, sceNpScoreSanitizeComment); REG_FUNC(0x15981858, sceNpScoreSanitizeCommentAsync); REG_FUNC(0x5EF44841, sceNpScoreSetTimeout); REG_FUNC(0x53D77883, sceNpScoreSetPlayerCharacterId); });