// // InvitesPopup::threadUpdateFailed from 0x74c770 to 0x74c860 (240 bytes) // // 1 xrefs: // > `non-virtual thunk to'InvitesPopup::threadUpdateFailed @ 0x74c874 // // 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:58:47 +0000 // int __fastcall InvitesPopup::threadUpdateFailed(InvitesPopup *this, int a2, int a3) { int result; // r0 int v5; // r3 cocos2d::CCObject *v6; // r0 GameLevelManager *v7; // r0 GameLevelManager *ThreadInvites; // r0 int v9; // r1 int v10; // r2 int *v11; // r8 int v12; // r3 void (__fastcall *v13)(int *, cocos2d::CCNode *, int); // r9 cocos2d::CCNode *v14; // r0 int v15[3]; // [sp+Ch] [bp-20h] BYREF int v16[3]; // [sp+18h] [bp-14h] BYREF result = *((_DWORD *)this + 153); if ( a2 == result ) { v5 = *((_BYTE *)this + 616) ? 8 : 9; if ( a3 == v5 ) { v6 = *((cocos2d::CCObject **)this + 152); *((_DWORD *)this + 153) = 0; *((_BYTE *)this + 616) = 0; if ( v6 ) { v6 = (cocos2d::CCObject *)cocos2d::CCObject::release(v6); *((_DWORD *)this + 152) = 0; } v7 = (GameLevelManager *)GameLevelManager::sharedState(v6); ThreadInvites = (GameLevelManager *)GameLevelManager::getThreadInvites(v7); if ( ThreadInvites ) { *(_DWORD *)(GameLevelManager::sharedState(ThreadInvites) + 840) = (char *)this + 596; return PagedListPopup::showLoading(this, v9, v10); } else { result = GameToolbox::lastResponseHadServerPopup(nullptr); if ( !result ) { v11 = *(int **)(cocos2d::CCDirector::sharedDirector(nullptr) + 220); v12 = *v11; memset(v15, 0, sizeof(v15)); v13 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v12 + 232); std::string::__init(v15, "Action failed", 0xDu); memset(v16, 0, sizeof(v16)); std::string::__init(v16, &unk_B6B226, 0); v14 = TextAlertPopup::create((int)v15, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v16); v13(v11, v14, 1000); std::string::~string((int)v16); return std::string::~string((int)v15); } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source