// // GameLevelManager::friendRequestWasRemoved from 0x4b0074 to 0x4b0192 (286 bytes) // // 3 xrefs: // > GameLevelManager::onDeleteFriendRequestCompleted @ 0x4c265a // > GameLevelManager::onAcceptFriendRequestCompleted @ 0x4c275a // > GameLevelManager::onBlockUserCompleted @ 0x4c2990 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:50:02 +0000 // cocos2d::CCString *__fastcall GameLevelManager::friendRequestWasRemoved( cocos2d::CCDictionary **this, int a2, const char *a3) { int v4; // r6 const char *FriendRequestKey; // r8 _BOOL4 StoredOnlineLevels; // r11 int v8; // r2 unsigned int i; // r10 int v10; // r10 void (__fastcall ***v11)(_DWORD, _BOOL4, const char *); // r0 cocos2d::CCDictionary *v12; // r3 size_t v13; // r0 cocos2d::CCString *result; // r0 cocos2d::CCDictionary *v16; // [sp+14h] [bp-18h] int v17; // [sp+18h] [bp-14h] BYREF int v18; // [sp+1Ch] [bp-10h] int v19; // [sp+20h] [bp-Ch] v4 = 0; do { v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, &unk_B6B226, 0); FriendRequestKey = (const char *)GameLevelManager::getFriendRequestKey( (int)this, (int)a3, v4, (unsigned __int8 *)&v17, 0); std::string::~string((int)&v17); StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels((GameLevelManager *)this, FriendRequestKey); if ( StoredOnlineLevels ) { for ( i = 0; i < cocos2d::CCArray::count((cocos2d::CCArray *)StoredOnlineLevels); ++i ) { if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)StoredOnlineLevels, i) + 296) == a2 ) { cocos2d::CCArray::removeObjectAtIndex((cocos2d::CCArray *)StoredOnlineLevels, i, 1); v8 = 1; goto LABEL_8; } } v8 = 0; v10 = 1; } else { v8 = 0; LABEL_8: v10 = 0; } ++v4; if ( v8 ) { v11 = (void (__fastcall ***)(_DWORD, _BOOL4, const char *))*(this + 224); if ( v11 ) { (**v11)(v11, StoredOnlineLevels, FriendRequestKey); if ( !cocos2d::CCArray::count((cocos2d::CCArray *)StoredOnlineLevels) ) { v12 = *(this + 181); v17 = 0; v18 = 0; v19 = 0; v16 = v12; v13 = strlen(FriendRequestKey); std::string::__init(&v17, FriendRequestKey, v13); cocos2d::CCDictionary::removeObjectForKey(v16); std::string::~string((int)&v17); } } } } while ( v10 ); result = (cocos2d::CCString *)GameLevelManager::purgeFriendRequestSearchCache(this, a3, a2); if ( !a3 ) return GameLevelManager::dropIgnoredRequestLists(this); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source