// // GameLevelManager::invalidateRequests from 0x6fb368 to 0x6fb4d4 (364 bytes) // // 7 xrefs: // > GameLevelManager::onDeleteFriendRequestCompleted @ 0x6fb724 // > FRequestProfilePage::onUpdate @ 0x8f44cc // > ProfilePage::onUpdate @ 0x8fdcd8 // > ProfilePage::onUpdate @ 0x8fdce8 // > ProfilePage::init @ 0x8fe774 // > ProfilePage::init @ 0x8fe784 // > @ 0x83070 // // 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::invalidateRequests(GameLevelManager *a1, bool a2, bool a3) { _BOOL4 v4; // w23 int v5; // w20 _BOOL4 v6; // w27 char *FriendRequestKey; // x0 int v8; // w28 char *v9; // x0 FriendRequestDelegate *m_friendRequestDelegate; // x0 unsigned int *v11; // x1 int v12; // w2 std::string v13; // [xsp+70h] [xbp+70h] BYREF v4 = a2; v5 = 0; v6 = a3; do { while ( 1 ) { FriendRequestKey = (char *)GameLevelManager::getFriendRequestKey(a1, v4, v5); sub_D153B8((int)&v13, FriendRequestKey); if ( GameLevelManager::getStoredOnlineLevels(a1, (const char *)v13.m_data.m_data) ) { cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, &v13); v8 = 1; } else { v8 = 0; } ++v5; v9 = (char *)v13.m_data.m_data - 24; if ( (__int64 *)v13.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v12 - 1; } if ( v12 <= 0 ) break; } if ( !v8 ) goto LABEL_6; } operator delete(v9); } while ( v8 ); LABEL_6: if ( v6 ) { m_friendRequestDelegate = a1->m_friendRequestDelegate; if ( m_friendRequestDelegate ) m_friendRequestDelegate->forceReloadRequests(m_friendRequestDelegate, v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source