// // GJMessagePopup::loadFromGJMessage from 0x5e03c0 to 0x5e0714 (852 bytes) // // 2 xrefs: // > GJMessagePopup::init @ 0x5e0e1c // > GJMessagePopup::downloadMessageFinished @ 0x5e10b8 // // 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:54:15 +0000 // int __fastcall GJMessagePopup::loadFromGJMessage(int this, GJUserMessage *a2) { int v2; // r4 cocos2d::CCObject *v4; // r0 cocos2d::CCDirector *v5; // r0 const char *v6; // r5 int v7; // r0 int v8; // r1 char *v9; // r2 size_t v10; // r0 EmoteSprite *v11; // r0 int v12; // r0 float *v13; // r5 void (__fastcall *v14)(float *, _DWORD *); // r11 void (__fastcall *v15)(float *, _DWORD *); // r11 void (__fastcall *v16)(float *, _DWORD *); // r11 cocos2d::CCArray *v17; // r0 cocos2d::CCArray *v18; // r0 int v19; // r3 cocos2d::CCArray *v20; // r5 ButtonSprite *v21; // r0 ButtonSprite *v22; // r0 cocos2d::CCObject *v23; // r10 cocos2d::CCObject *v24; // r10 int v25; // r3 ButtonSprite *v26; // r0 cocos2d::CCObject *v27; // r9 float v28; // [sp+10h] [bp-74h] float v29; // [sp+10h] [bp-74h] float v30[2]; // [sp+14h] [bp-70h] BYREF _BYTE v31[8]; // [sp+1Ch] [bp-68h] BYREF _BYTE v32[8]; // [sp+24h] [bp-60h] BYREF _BYTE v33[8]; // [sp+2Ch] [bp-58h] BYREF _DWORD (*v34)(GJMessagePopup *__hidden, cocos2d::CCObject *); // [sp+34h] [bp-50h] int v35; // [sp+38h] [bp-4Ch] _DWORD v36[2]; // [sp+3Ch] [bp-48h] BYREF _DWORD v37[2]; // [sp+44h] [bp-40h] BYREF int v38; // [sp+4Ch] [bp-38h] BYREF int v39; // [sp+50h] [bp-34h] char *v40; // [sp+54h] [bp-30h] int v41[3]; // [sp+58h] [bp-2Ch] BYREF int v42; // [sp+64h] [bp-20h] BYREF int v43; // [sp+68h] [bp-1Ch] char *v44; // [sp+6Ch] [bp-18h] int v45[3]; // [sp+70h] [bp-14h] BYREF v2 = this; if ( a2 ) { cocos2d::CCObject::retain(a2); v4 = *(cocos2d::CCObject **)(v2 + 544); if ( v4 ) v4 = (cocos2d::CCObject *)cocos2d::CCObject::release(v4); *(_DWORD *)(v2 + 544) = a2; v5 = (cocos2d::CCDirector *)GameLevelManager::sharedState(v4); *((_DWORD *)v5 + 222) = v2 + 520; cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v30); v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, "No message", 0xAu); std::string::basic_string(v41, *(_DWORD *)(v2 + 544) + 288); if ( (v41[0] & 1) != 0 ) v6 = (const char *)v41[1]; else v6 = (const char *)((int)LOBYTE(v41[0]) >> 1); std::string::~string((int)v41); if ( v6 ) { v6 = (const char *)&v42; std::string::basic_string(&v42, *(_DWORD *)(v2 + 544) + 288); if ( (v38 & 1) != 0 ) { *v40 = 0; v39 = 0; } else { LOWORD(v38) = 0; } std::string::reserve(&v38, 0); v7 = v42; v8 = v43; v9 = v44; v42 = 0; v43 = 0; v44 = nullptr; v38 = v7; v39 = v8; v40 = v9; std::string::~string((int)&v42); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v30[0] * 0.5, (float)(v30[1] * 0.5) - 4.0); if ( (v38 & 1) == 0 ) v6 = (char *)&v38 + 1; v45[0] = 0; if ( (v38 & 1) != 0 ) v6 = v40; v45[1] = 0; v45[2] = 0; v10 = strlen(v6); std::string::__init(v45, v6, v10); v11 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 0.5); v12 = EmoteSprite::maxEmotesMessage(v11); v13 = (float *)TextArea::create( (int)v45, "chatFont.fnt", 1065353216, 1134526464, (const cocos2d::CCPoint *)v37, 1101004800, 1, v12); std::string::~string((int)v45); (*(void (__fastcall **)(_DWORD, float *, int))(**(_DWORD **)(v2 + 460) + 232))(*(_DWORD *)(v2 + 460), v13, 6); v14 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, 0.0, 2.0); cocos2d::CCPoint::operator+(v37, v31, v36); v14(v13, v37); v15 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v13 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 0.5); v15(v13, v37); v16 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, (float)((float)(370.0 - v13[144]) * 0.5) - 185.0, 4.0); cocos2d::CCPoint::operator+(v37, v31, v36); v16(v13, v37); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v13 + 80))(v13, 1065353216); v17 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, 0.0, -98.0); v18 = (cocos2d::CCArray *)cocos2d::CCArray::create(v17); v19 = *(_DWORD *)(v2 + 544); v20 = v18; if ( !*(_BYTE *)(v19 + 325) ) { v22 = ButtonSprite::create( (ButtonSprite *)"Reply", (const char *)&dword_50, *(unsigned __int8 *)(v19 + 325), 0.55, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41D00000, v28); v35 = 0; v34 = GJMessagePopup::onNewThread; v23 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v22, 0, v2, (int)GJMessagePopup::onNewThread, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(v2 + 444) + 228))(*(_DWORD *)(v2 + 444), v23); cocos2d::CCArray::addObject(v20, v23); } v21 = ButtonSprite::create( (ButtonSprite *)"Remove", (const char *)&dword_40 + 1, 0, 0.55, 1, "bigFont.fnt", "GJ_button_04.png", (const char *)0x41D00000, v28); v36[1] = 0; v36[0] = GJMessagePopup::onRemove; v24 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v21, 0, v2, (int)GJMessagePopup::onRemove, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(v2 + 444) + 228))(*(_DWORD *)(v2 + 444), v24); cocos2d::CCArray::addObject(v20, v24); v25 = *(_DWORD *)(v2 + 544); if ( !*(_BYTE *)(v25 + 325) ) { v26 = ButtonSprite::create( (ButtonSprite *)"Block", (const char *)&dword_40 + 1, *(unsigned __int8 *)(v25 + 325), 0.55, 1, "bigFont.fnt", "GJ_button_06.png", (const char *)0x41D00000, v29); v37[1] = 0; v37[0] = GJMessagePopup::onBlock; v27 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v26, 0, v2, (int)GJMessagePopup::onBlock, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(v2 + 444) + 228))(*(_DWORD *)(v2 + 444), v27); cocos2d::CCArray::addObject(v20, v27); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (const cocos2d::CCPoint *)v32); GameToolbox::alignItemsHorisontally(*(float *)&v20, 35.0, (int)v33, 0); return std::string::~string((int)&v38); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source