// // MemberListPopup::applyAddOutcome from 0x75570c to 0x755a34 (808 bytes) // // 2 xrefs: // > MemberListPopup::threadUpdateFinished @ 0x755abe // > ThreadViewPopup::threadUpdateFinished @ 0x75da34 // // 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:54 +0000 // int __fastcall MemberListPopup::applyAddOutcome(MemberListPopup *this, GJMessageThread *a2) { GameLevelManager *v3; // r0 cocos2d::CCArray *v4; // r11 GameLevelManager *v5; // r0 cocos2d::CCArray *v6; // r9 char *v7; // r0 cocos2d::CCArray *v8; // r8 char *v9; // r5 char *v10; // r7 int v11; // r6 int v12; // r8 cocos2d::CCString *v13; // r0 const char *CString; // r7 void (__fastcall *v15)(int, cocos2d::CCNode *, int); // r9 size_t v16; // r0 cocos2d::CCNode *v17; // r0 int *v18; // r0 int *v19; // r0 int v20; // r1 int v21; // r2 int *v22; // r0 int v23; // r1 int v24; // r2 char *v25; // r1 size_t v26; // r2 int *v27; // r0 int v28; // r1 int v29; // r2 int *v30; // r0 int v31; // r1 int v32; // r2 char *v33; // r1 size_t v34; // r2 int *v35; // r0 int v36; // r1 int v37; // r2 int *v38; // r0 int v39; // r1 int v40; // r2 char *v41; // r1 size_t v42; // r2 size_t v43; // r0 int *v44; // r0 _DWORD v46[2]; // [sp+14h] [bp-50h] BYREF char *v47; // [sp+1Ch] [bp-48h] _DWORD v48[3]; // [sp+20h] [bp-44h] BYREF _DWORD v49[3]; // [sp+2Ch] [bp-38h] BYREF _DWORD v50[3]; // [sp+38h] [bp-2Ch] BYREF int v51; // [sp+44h] [bp-20h] BYREF int v52; // [sp+48h] [bp-1Ch] int v53; // [sp+4Ch] [bp-18h] int v54; // [sp+50h] [bp-14h] BYREF size_t v55; // [sp+54h] [bp-10h] char *v56; // [sp+58h] [bp-Ch] v3 = (GameLevelManager *)GameLevelManager::sharedState(this); v4 = *((cocos2d::CCArray **)v3 + 127); v5 = (GameLevelManager *)GameLevelManager::sharedState(v3); v6 = *((cocos2d::CCArray **)v5 + 128); v7 = (char *)GameLevelManager::sharedState(v5); v8 = *((cocos2d::CCArray **)v7 + 129); if ( v4 ) { v7 = (char *)cocos2d::CCArray::count(v4); v9 = v7; } else { v9 = nullptr; } if ( v6 ) { v7 = (char *)cocos2d::CCArray::count(v6); v10 = v7; } else { v10 = nullptr; } if ( v8 ) { v7 = (char *)cocos2d::CCArray::count(v8); v11 = (int)v7; } else { v11 = 0; } *((_DWORD *)this + 29) += v9; if ( !v10 && !v11 ) { v12 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v7) + 220); if ( v9 == (_BYTE *)&dword_0 + 1 ) { CString = "Member added"; } else { v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i members added", v9); CString = (const char *)cocos2d::CCString::getCString(v13); } v15 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v12 + 232); v51 = 0; v52 = 0; v53 = 0; v16 = strlen(CString); std::string::__init(&v51, CString, v16); v54 = 0; v55 = 0; v56 = nullptr; std::string::__init(&v54, &unk_B6B226, 0); v17 = TextAlertPopup::create((int)&v51, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v54); v15(v12, v17, 1000); std::string::~string((int)&v54); v18 = &v51; return std::string::~string((int)v18); } v46[0] = 0; v46[1] = 0; v47 = nullptr; if ( (int)v9 > 0 ) { sub_751744(v48, v4); v19 = std::string::insert(v48, 0, "Added: "); v20 = v19[1]; v21 = v19[2]; v51 = *v19; v52 = v20; v53 = v21; *v19 = 0; v19[1] = 0; v19[2] = 0; v22 = std::string::append(&v51, "\n"); v23 = v22[1]; v24 = v22[2]; v54 = *v22; v55 = v23; v56 = (char *)v24; *v22 = 0; v22[1] = 0; v22[2] = 0; if ( (v54 & 1) != 0 ) { v25 = v56; v26 = v55; } else { v26 = (int)(unsigned __int8)v54 >> 1; v25 = (char *)&v54 + 1; } std::string::append(v46, v25, v26); std::string::~string((int)&v54); std::string::~string((int)&v51); std::string::~string((int)v48); } if ( (int)v10 <= 0 ) { if ( v11 <= 0 ) goto LABEL_29; goto LABEL_26; } sub_751744(v49, v6); v27 = std::string::insert(v49, 0, "Invited: "); v28 = v27[1]; v29 = v27[2]; v51 = *v27; v52 = v28; v53 = v29; *v27 = 0; v27[1] = 0; v27[2] = 0; v30 = std::string::append(&v51, "\n"); v31 = v30[1]; v32 = v30[2]; v54 = *v30; v55 = v31; v56 = (char *)v32; *v30 = 0; v30[1] = 0; v30[2] = 0; if ( (v54 & 1) != 0 ) { v33 = v56; v34 = v55; } else { v34 = (int)(unsigned __int8)v54 >> 1; v33 = (char *)&v54 + 1; } std::string::append(v46, v33, v34); std::string::~string((int)&v54); std::string::~string((int)&v51); std::string::~string((int)v49); if ( v11 > 0 ) { LABEL_26: sub_751744(v50, v8); v35 = std::string::insert(v50, 0, "Unavailable: "); v36 = v35[1]; v37 = v35[2]; v51 = *v35; v52 = v36; v53 = v37; *v35 = 0; v35[1] = 0; v35[2] = 0; v38 = std::string::append(&v51, "\n"); v39 = v38[1]; v40 = v38[2]; v54 = *v38; v55 = v39; v56 = (char *)v40; *v38 = 0; v38[1] = 0; v38[2] = 0; if ( (v54 & 1) != 0 ) { v41 = v56; v42 = v55; } else { v42 = (int)(unsigned __int8)v54 >> 1; v41 = (char *)&v54 + 1; } std::string::append(v46, v41, v42); std::string::~string((int)&v54); std::string::~string((int)&v51); std::string::~string((int)v50); if ( (int)v10 <= 0 ) goto LABEL_29; } std::string::append(v46, "\nInvited users join when they accept."); LABEL_29: v54 = 0; v55 = 0; if ( (v46[0] & 1) == 0 ) v10 = (char *)v46 + 1; v56 = nullptr; if ( (v46[0] & 1) != 0 ) v10 = v47; v43 = strlen(v10); std::string::__init(&v54, v10, v43); v44 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Add Members", (int)&v54, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(int *))(*v44 + 656))(v44); std::string::~string((int)&v54); v18 = v46; return std::string::~string((int)v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source