mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 03:08:36 +12:00
Fix get_member_and_attrs
This commit is contained in:
parent
b57ab74ee7
commit
ec53adc2b7
1 changed files with 9 additions and 2 deletions
|
@ -232,8 +232,15 @@ namespace np
|
||||||
ptr_member->flagAttr = member.flagAttr;
|
ptr_member->flagAttr = member.flagAttr;
|
||||||
}
|
}
|
||||||
|
|
||||||
const u32 needed_data_size = sizeof(SceNpOnlineName) + sizeof(SceNpAvatarUrl) + sizeof(SceNpMatching2RoomGroup) +
|
u32 needed_data_size = sizeof(SceNpOnlineName) + sizeof(SceNpAvatarUrl) + sizeof(SceNpMatching2RoomGroup);
|
||||||
(binattrs_list.size() * (sizeof(SceNpMatching2RoomMemberBinAttrInternal) + SCE_NP_MATCHING2_ROOMMEMBER_BIN_ATTR_INTERNAL_MAX_SIZE));
|
|
||||||
|
for (usz i = 0; i < binattrs_list.size(); i++)
|
||||||
|
{
|
||||||
|
if (member.bins.contains(binattrs_list[i]))
|
||||||
|
{
|
||||||
|
needed_data_size += (sizeof(SceNpMatching2RoomMemberBinAttrInternal) + ::at32(member.bins, binattrs_list[i]).data.size());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!addr_data || !ptr_member)
|
if (!addr_data || !ptr_member)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue