mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-07-10 01:34:42 -06:00
matching2 fixup - joinroom (#4644)
This commit is contained in:
parent
7da7a8e1f9
commit
91dfa4a958
@ -117,12 +117,16 @@ void DispatchRequestComplete(const PendingRequest& pr, ShadNet::ErrorType error,
|
||||
|
||||
if (error_code == 0) {
|
||||
const std::string proto = ExtractProtoBytes(body);
|
||||
if (pr.req_event == ORBIS_NP_MATCHING2_REQUEST_EVENT_CREATE_JOIN_ROOM ||
|
||||
pr.req_event == ORBIS_NP_MATCHING2_REQUEST_EVENT_JOIN_ROOM) {
|
||||
if (pr.req_event == ORBIS_NP_MATCHING2_REQUEST_EVENT_CREATE_JOIN_ROOM) {
|
||||
shadnet::CreateRoomReply reply;
|
||||
if (reply.ParseFromString(proto) && reply.has_details()) {
|
||||
request_data = BuildCreateJoinRoomPayload(*ctx, reply.details());
|
||||
}
|
||||
} else if (pr.req_event == ORBIS_NP_MATCHING2_REQUEST_EVENT_JOIN_ROOM) {
|
||||
shadnet::JoinRoomReply reply;
|
||||
if (reply.ParseFromString(proto) && reply.has_details()) {
|
||||
request_data = BuildCreateJoinRoomPayload(*ctx, reply.details());
|
||||
}
|
||||
} else if (pr.req_event == ORBIS_NP_MATCHING2_REQUEST_EVENT_GET_WORLD_INFO_LIST) {
|
||||
shadnet::GetWorldInfoListReply reply;
|
||||
if (reply.ParseFromString(proto)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user