diff --git a/rpcs3/Emu/Cell/Modules/sceNp2.cpp b/rpcs3/Emu/Cell/Modules/sceNp2.cpp index db16223533..b44b9df6cc 100644 --- a/rpcs3/Emu/Cell/Modules/sceNp2.cpp +++ b/rpcs3/Emu/Cell/Modules/sceNp2.cpp @@ -1290,7 +1290,7 @@ error_code sceNpMatching2GrantRoomOwner( error_code sceNpMatching2CreateContext( vm::cptr npId, vm::cptr commId, vm::cptr passPhrase, vm::ptr ctxId, s32 option) { - sceNp2.warning("sceNpMatching2CreateContext(npId=*0x%x, commId=*0x%x(%s), passPhrase=*0x%x, ctxId=*0x%x, option=%d)", npId, commId, commId ? commId->data : "", ctxId, option); + sceNp2.warning("sceNpMatching2CreateContext(npId=*0x%x, commId=*0x%x(%s), passPhrase=*0x%x, ctxId=*0x%x, option=%d)", npId, commId, commId ? commId->data : "", passPhrase, ctxId, option); auto& nph = g_fxo->get>(); diff --git a/rpcs3/Emu/NP/np_cache.cpp b/rpcs3/Emu/NP/np_cache.cpp index 6b53cbd502..8d1b028e40 100644 --- a/rpcs3/Emu/NP/np_cache.cpp +++ b/rpcs3/Emu/NP/np_cache.cpp @@ -248,7 +248,16 @@ namespace np ptr_member->flagAttr = member.flagAttr; } - u32 needed_data_size = sizeof(SceNpOnlineName) + sizeof(SceNpAvatarUrl) + sizeof(SceNpMatching2RoomGroup); + u32 needed_data_size = 0; + + if (member.userInfo.onlineName) + needed_data_size += sizeof(SceNpOnlineName); + + if (member.userInfo.avatarUrl) + needed_data_size += sizeof(SceNpAvatarUrl); + + if (member.group_id) + needed_data_size += sizeof(SceNpMatching2RoomGroup); for (usz i = 0; i < binattrs_list.size(); i++) {