// // GameLevelManager::onDeleteUserMessagesCompleted from 0x4c220c to 0x4c22f2 (230 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4dad0a // // 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:24 +0000 // unsigned int __fastcall GameLevelManager::onDeleteUserMessagesCompleted( GameLevelManager *a1, unsigned __int8 *a2, char *a3) { cocos2d::CCDictionary *v5; // r9 char v6; // r1 const char *v7; // r4 size_t v8; // r0 int SplitIntFromKey; // r9 int v10; // r0 const char *v11; // r4 _BOOL4 v12; // r7 unsigned int result; // r0 const char *v14; // r2 int v15; // [sp+0h] [bp-14h] BYREF int v16; // [sp+4h] [bp-10h] int v17; // [sp+8h] [bp-Ch] v5 = *((cocos2d::CCDictionary **)a1 + 187); v15 = 0; v6 = *a3; v16 = 0; v17 = 0; if ( (v6 & 1) != 0 ) v7 = *((const char **)a3 + 2); else v7 = a3 + 1; v8 = strlen(v7); std::string::__init(&v15, v7, v8); cocos2d::CCDictionary::removeObjectForKey(v5); std::string::~string((int)&v15); SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v7, 1u); v10 = GameLevelManager::getSplitIntFromKey(a1, v7, 2u); v15 = 0; v16 = 0; v17 = 0; v11 = (const char *)v10; std::string::__init(&v15, "-1", 2u); v12 = sub_4A9CC4(a2, (unsigned __int8 *)&v15); std::string::~string((int)&v15); result = *((_DWORD *)a1 + 222); if ( v12 ) { if ( result ) return (*(int (__fastcall **)(unsigned int, int, int))(*(_DWORD *)result + 4))(result, SplitIntFromKey, 45); } else { if ( result ) (**(void (__fastcall ***)(unsigned int, int, int))result)(result, SplitIntFromKey, 45); v14 = v11; if ( v11 ) v14 = (_BYTE *)(&dword_0 + 1); if ( SplitIntFromKey == -1 ) return GameLevelManager::invalidateMessages((cocos2d::CCDictionary **)a1, v14, 1); else return GameLevelManager::messageWasRemoved(a1, SplitIntFromKey, v14); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source