From 50ff987850027bf2542d4cf52843eb831575a6ce Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 22 Mar 2018 14:51:24 +0100 Subject: [PATCH] stub sceNpScoreWaitAsync and sceNpScorePollAsync and sceNpScoreCreateTransactionCtx --- rpcs3/Emu/Cell/Modules/sceNp.cpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/sceNp.cpp b/rpcs3/Emu/Cell/Modules/sceNp.cpp index 5a1503cb6f..eadd18ccc5 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp.cpp @@ -1406,9 +1406,9 @@ s32 sceNpScoreDestroyTitleCtx() return CELL_OK; } -s32 sceNpScoreCreateTransactionCtx() +s32 sceNpScoreCreateTransactionCtx(s32 titleCtxId) { - UNIMPLEMENTED_FUNC(sceNp); + sceNp.todo("sceNpScoreCreateTransactionCtx(titleCtxId=%d)", titleCtxId); return CELL_OK; } @@ -1430,15 +1430,27 @@ s32 sceNpScoreSetPlayerCharacterId() return CELL_OK; } -s32 sceNpScoreWaitAsync() +s32 sceNpScoreWaitAsync(s32 transId, vm::ptr result) { - UNIMPLEMENTED_FUNC(sceNp); + sceNp.todo("sceNpScoreWaitAsync(transId=%d, result=*0x%x)", transId, result); + + if (transId <= 0) + { + return SCE_NP_COMMUNITY_ERROR_INVALID_ID; + } + return CELL_OK; } -s32 sceNpScorePollAsync() +s32 sceNpScorePollAsync(s32 transId, vm::ptr result) { - UNIMPLEMENTED_FUNC(sceNp); + sceNp.todo("sceNpScorePollAsync(transId=%d, result=*0x%x)", transId, result); + + if (transId <= 0) + { + return SCE_NP_COMMUNITY_ERROR_INVALID_ID; + } + return CELL_OK; }