mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-02 15:02:11 +00:00
Fix sceNpScoreGetRankingByNpId
This commit is contained in:
parent
0f00bb77fe
commit
397c2698ae
@ -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<u8>& reply_data);
|
||||
bool handle_GetScoreResponse(u32 req_id, std::vector<u8>& reply_data, bool simple_result = false);
|
||||
bool handle_tus_no_data(u32 req_id, std::vector<u8>& reply_data);
|
||||
bool handle_TusVarResponse(u32 req_id, std::vector<u8>& reply_data);
|
||||
bool handle_TusVariable(u32 req_id, std::vector<u8>& reply_data);
|
||||
|
@ -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<u8>& reply_data)
|
||||
bool np_handler::handle_GetScoreResponse(u32 req_id, std::vector<u8>& 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<u8>& 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<u8>& reply_data)
|
||||
|
Loading…
Reference in New Issue
Block a user