diff --git a/rpcs3/Emu/NP/np_handler.h b/rpcs3/Emu/NP/np_handler.h index bc83f26440..91821f478f 100644 --- a/rpcs3/Emu/NP/np_handler.h +++ b/rpcs3/Emu/NP/np_handler.h @@ -328,7 +328,7 @@ namespace np void RoomMessageInfo_to_SceNpMatching2RoomMessageInfo(event_data& edata, const RoomMessageInfo* mi, SceNpMatching2RoomMessageInfo* sce_mi); void RoomDataInternalUpdateInfo_to_SceNpMatching2RoomDataInternalUpdateInfo(event_data& edata, const RoomDataInternalUpdateInfo* update_info, SceNpMatching2RoomDataInternalUpdateInfo* sce_update_info, const SceNpId& npid); void RoomMemberDataInternalUpdateInfo_to_SceNpMatching2RoomMemberDataInternalUpdateInfo(event_data& edata, const RoomMemberDataInternalUpdateInfo* update_info, SceNpMatching2RoomMemberDataInternalUpdateInfo* sce_update_info); - bool handle_GetScoreResponse(u32 req_id, std::vector& reply_data); + bool handle_GetScoreResponse(u32 req_id, std::vector& reply_data, bool simple_result = false); bool handle_tus_no_data(u32 req_id, std::vector& reply_data); bool handle_TusVarResponse(u32 req_id, std::vector& reply_data); bool handle_TusVariable(u32 req_id, std::vector& reply_data); diff --git a/rpcs3/Emu/NP/np_requests.cpp b/rpcs3/Emu/NP/np_requests.cpp index 6f9bf76b04..2f8198508b 100644 --- a/rpcs3/Emu/NP/np_requests.cpp +++ b/rpcs3/Emu/NP/np_requests.cpp @@ -1080,7 +1080,7 @@ namespace np transaction_async_handler(std::move(lock), trans_ctx, req_id, async); } - bool np_handler::handle_GetScoreResponse(u32 req_id, std::vector& reply_data) + bool np_handler::handle_GetScoreResponse(u32 req_id, std::vector& reply_data, bool simple_result) { std::lock_guard lock_trans(mutex_async_transactions); if (!async_transactions.count(req_id)) @@ -1195,7 +1195,7 @@ namespace np *tdata->totalRecord = resp->totalRecord(); if (fb_rankarray->size()) - score_trans->result = not_an_error(fb_rankarray->size()); + score_trans->result = simple_result ? CELL_OK : not_an_error(fb_rankarray->size()); else score_trans->result = SCE_NP_COMMUNITY_SERVER_ERROR_GAME_RANKING_NOT_FOUND; @@ -1259,7 +1259,7 @@ namespace np } bool np_handler::reply_get_score_npid(u32 req_id, std::vector& reply_data) { - return handle_GetScoreResponse(req_id, reply_data); + return handle_GetScoreResponse(req_id, reply_data, true); } bool np_handler::handle_tus_no_data(u32 req_id, std::vector& reply_data)