fix: consoles & dpad being binded to 2 settings

This commit is contained in:
str1k3r committed 2026-09-29 16:41:13 -04:00
1 parent 02da402490
commit fed6871356
150 files changed
+19314 -431

No files matched your search

+6 -4
View File
@@ -1787,8 +1787,7 @@ 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;
sce::Toolkit::NP::FriendInfoRequest requestParam;
memset(&requestParam,0,sizeof(requestParam));
@@ -1804,7 +1803,8 @@ void ClientConnection::handlePreLogin(shared_ptr<PreLoginPacket> packet)
{
friendCount = friendList.get()->size();
}
}
}*/
int ret = 1;
#endif
if( ret == 0 )
{
@@ -1814,12 +1814,14 @@ void ClientConnection::handlePreLogin(shared_ptr<PreLoginPacket> packet)
{
#ifdef __PS3__
ret = sceNpBasicGetFriendListEntry( i, &npid );
#else
#elif !(defined __ORBIS__) //no no dont touch
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)
#endif
{
isFriend = true;
break;