first buildable orbis version. a bit ugly.
This commit is contained in:
@@ -1976,8 +1976,9 @@ void ClientConnection::handlePreLogin(shared_ptr<PreLoginPacket> packet)
|
||||
}
|
||||
}
|
||||
#else // __ORBIS__
|
||||
|
||||
sce::Toolkit::NP::Utilities::Future<sce::Toolkit::NP::FriendsList> friendList;
|
||||
/*
|
||||
//sce::Toolkit::NP::Utilities::Future<sce::Toolkit::NP::FriendsList> friendList;
|
||||
std::vector<sce::Toolkit::NP::FriendsList> friendList;
|
||||
|
||||
sce::Toolkit::NP::FriendInfoRequest requestParam;
|
||||
memset(&requestParam,0,sizeof(requestParam));
|
||||
@@ -1986,14 +1987,16 @@ void ClientConnection::handlePreLogin(shared_ptr<PreLoginPacket> packet)
|
||||
requestParam.offset = 0;
|
||||
requestParam.userInfo.userId = ProfileManager.getUserID(ProfileManager.GetPrimaryPad());
|
||||
|
||||
int ret = sce::Toolkit::NP::Friends::Interface::getFriendslist(&friendList, &requestParam, false);
|
||||
//int ret = sce::Toolkit::NP::Friends::Interface::getFriendslist(&friendList, &requestParam, false);
|
||||
int ret = 42069;
|
||||
if( ret == 0 )
|
||||
{
|
||||
if( friendList.hasResult() )
|
||||
if( friendList.hasResult())
|
||||
{
|
||||
friendCount = friendList.get()->size();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
int ret = 42069;
|
||||
#endif
|
||||
if( ret == 0 )
|
||||
{
|
||||
@@ -2003,12 +2006,18 @@ void ClientConnection::handlePreLogin(shared_ptr<PreLoginPacket> packet)
|
||||
{
|
||||
#ifdef __PS3__
|
||||
ret = sceNpBasicGetFriendListEntry( i, &npid );
|
||||
#elif defined __ORBIS__
|
||||
//dont touch npid
|
||||
#else
|
||||
npid = friendList.get()->at(i).npid;
|
||||
#endif
|
||||
if( ret == 0 )
|
||||
{
|
||||
#ifndef __ORBIS__
|
||||
if(strcmp(npid.handle.data, packet->m_playerXuids[packet->m_hostIndex].getOnlineID()) == 0)
|
||||
#else
|
||||
if(1==2)
|
||||
#endif
|
||||
{
|
||||
isFriend = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user