// // GameLevelManager::friendRequestWasRemoved from 0x6fac8c to 0x6fae3c (432 bytes) // // 4 xrefs: // > GameLevelManager::onAcceptFriendRequestCompleted @ 0x6fb004 // > GameLevelManager::onBlockUserCompleted @ 0x6fb27c // > GameLevelManager::onDeleteFriendRequestCompleted @ 0x6fb6a4 // > @ 0x91da0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GameLevelManager::friendRequestWasRemoved(GameLevelManager *a1, int a2, bool a3) { int v6; // w24 char *FriendRequestKey; // x23 cocos2d::CCArray *StoredOnlineLevels; // x20 unsigned int i; // w19 FriendRequestDelegate *m_friendRequestDelegate; // x0 cocos2d::CCDictionary *m_storedLevels; // x20 char *v12; // x0 unsigned int *v13; // x2 int v14; // w1 std::string v15; // [xsp+60h] [xbp+60h] BYREF v6 = 0; LABEL_2: FriendRequestKey = (char *)GameLevelManager::getFriendRequestKey(a1, a3, v6); StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, FriendRequestKey); if ( StoredOnlineLevels ) { for ( i = 0; ; ++i ) { if ( i >= (unsigned int)cocos2d::CCArray::count(StoredOnlineLevels) ) { ++v6; goto LABEL_2; } if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(StoredOnlineLevels, i) + 344) == a2 ) break; } cocos2d::CCArray::removeObjectAtIndex(StoredOnlineLevels, i, 1); m_friendRequestDelegate = a1->m_friendRequestDelegate; if ( m_friendRequestDelegate ) { m_friendRequestDelegate->loadFRequestsFinished( m_friendRequestDelegate, StoredOnlineLevels, (const unsigned __int8 *)FriendRequestKey); if ( !(unsigned int)cocos2d::CCArray::count(StoredOnlineLevels) ) { m_storedLevels = a1->m_storedLevels; sub_D153B8((int)&v15, FriendRequestKey); cocos2d::CCDictionary::removeObjectForKey(m_storedLevels, &v15); v12 = (char *)v15.m_data.m_data - 24; if ( (__int64 *)v15.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)((char *)v15.m_data.m_data - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v15.m_data.m_data - 2); *((_DWORD *)v15.m_data.m_data - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v12); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source