Enabled some code on proAdhoc by @lightfirst

Fix #7962
This commit is contained in:
sum2012 2015-09-13 21:07:13 +08:00
parent 4815046ba6
commit 14bbfc8c96

View File

@ -273,7 +273,7 @@ void deleteFriendByIP(uint32_t ip) {
peer->last_recv = 0;
// Multithreading Lock
/*peerlock.lock();
peerlock.lock();
// Unlink Left (Beginning)
if(prev == NULL)friends = peer->next;
@ -286,7 +286,7 @@ void deleteFriendByIP(uint32_t ip) {
// Free Memory
free(peer);
peer = NULL;*/
peer = NULL;
// Stop Search
break;
@ -1167,7 +1167,7 @@ int friendFinder(){
peerlock.lock();
// Should only add non-existing group (or replace an existing group) to prevent Ford Street Racing from showing a strange game session list
/*SceNetAdhocctlScanInfo * group = findGroup(&packet->mac);
SceNetAdhocctlScanInfo * group = findGroup(&packet->mac);
if (group != NULL) {
// Copy Group Name
@ -1176,7 +1176,7 @@ int friendFinder(){
// Set Group Host
group->bssid.mac_addr = packet->mac;
}
else*/
else
{
// Allocate Structure Data
SceNetAdhocctlScanInfo * group = (SceNetAdhocctlScanInfo *)malloc(sizeof(SceNetAdhocctlScanInfo));