mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
rpcn 0.3.5 (#9227)
This commit is contained in:
parent
b32d989a10
commit
a83df01bfd
20 changed files with 613 additions and 405 deletions
|
|
@ -78,7 +78,7 @@ void np_handler::SearchRoomReponse_to_SceNpMatching2SearchRoomResponse(const Sea
|
|||
{
|
||||
search_resp->roomDataExternal = room_info;
|
||||
}
|
||||
|
||||
|
||||
previous_next = vm::cast(room_info.addr());
|
||||
|
||||
room_info->serverId = room->serverId();
|
||||
|
|
@ -357,33 +357,27 @@ void np_handler::RoomMessageInfo_to_SceNpMatching2RoomMessageInfo(const RoomMess
|
|||
|
||||
if (sce_mi->castType != SCE_NP_MATCHING2_CASTTYPE_BROADCAST)
|
||||
{
|
||||
vm::ptr<SceNpMatching2RoomMessageDestination> dst_info(allocate(sizeof(SceNpMatching2RoomMessageDestination)));
|
||||
vm::ptr<SceNpMatching2RoomMessageDestination> dst_info(allocate(sizeof(SceNpMatching2RoomMessageDestination)));
|
||||
sce_mi->dst = dst_info;
|
||||
}
|
||||
|
||||
switch(sce_mi->castType)
|
||||
switch (sce_mi->castType)
|
||||
{
|
||||
case SCE_NP_MATCHING2_CASTTYPE_BROADCAST:
|
||||
break;
|
||||
case SCE_NP_MATCHING2_CASTTYPE_UNICAST:
|
||||
sce_mi->dst->unicastTarget = mi->dst()->Get(0);
|
||||
break;
|
||||
case SCE_NP_MATCHING2_CASTTYPE_MULTICAST:
|
||||
case SCE_NP_MATCHING2_CASTTYPE_BROADCAST: break;
|
||||
case SCE_NP_MATCHING2_CASTTYPE_UNICAST: sce_mi->dst->unicastTarget = mi->dst()->Get(0); break;
|
||||
case SCE_NP_MATCHING2_CASTTYPE_MULTICAST:
|
||||
{
|
||||
sce_mi->dst->multicastTarget.memberIdNum = mi->dst()->size();
|
||||
vm::ptr<be_t<u16>> member_list(allocate(sizeof(u16) * mi->dst()->size()));
|
||||
sce_mi->dst->multicastTarget.memberId = member_list;
|
||||
for (u32 i = 0; i < mi->dst()->size(); i++)
|
||||
{
|
||||
sce_mi->dst->multicastTarget.memberIdNum = mi->dst()->size();
|
||||
vm::ptr<be_t<u16>> member_list(allocate(sizeof(u16) * mi->dst()->size()));
|
||||
sce_mi->dst->multicastTarget.memberId = member_list;
|
||||
for (u32 i = 0; i < mi->dst()->size(); i++)
|
||||
{
|
||||
sce_mi->dst->multicastTarget.memberId[i] = mi->dst()->Get(i);
|
||||
}
|
||||
break;
|
||||
sce_mi->dst->multicastTarget.memberId[i] = mi->dst()->Get(i);
|
||||
}
|
||||
case SCE_NP_MATCHING2_CASTTYPE_MULTICAST_TEAM:
|
||||
sce_mi->dst->multicastTargetTeamId = mi->dst()->Get(0);
|
||||
break;
|
||||
default:
|
||||
ASSERT(false);
|
||||
break;
|
||||
}
|
||||
case SCE_NP_MATCHING2_CASTTYPE_MULTICAST_TEAM: sce_mi->dst->multicastTargetTeamId = mi->dst()->Get(0); break;
|
||||
default: ASSERT(false);
|
||||
}
|
||||
|
||||
if (auto src_member = mi->srcMember())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue