// // DialogLayer::displayDialogObject from 0x60975c to 0x609996 (570 bytes) // // 2 xrefs: // > DialogLayer::displayNextObject @ 0x6099d8 // > DialogLayer::init @ 0x609db8 // // 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:47 +0000 // int __fastcall DialogLayer::displayDialogObject(int this, DialogObject *a2) { int v2; // r4 DialogObject *v3; // r6 int v4; // r0 int v5; // r3 int v6; // r5 void (__fastcall *v7)(int, char *, int); // r9 char *v8; // r1 int v9; // r0 char v10; // r1 char v11; // r2 void (__fastcall *v12)(int, _BYTE *); // r3 const char *v13; // r1 cocos2d::CCString *v14; // r0 cocos2d::CCSprite *CString; // r0 const char *v16; // r1 int v17; // r0 int v18; // r9 void (__fastcall *v19)(int, _BYTE *); // r10 float v20; // s17 size_t v21; // r0 int v22; // r6 void (__fastcall *v23)(int, _BYTE *); // r7 int v24; // r6 void (__fastcall *v25)(int, _BYTE *); // r7 _BYTE v26[8]; // [sp+14h] [bp-24h] BYREF int v27[3]; // [sp+1Ch] [bp-1Ch] BYREF int v28[2]; // [sp+28h] [bp-10h] BYREF char *v29; // [sp+30h] [bp-8h] v2 = this; v3 = a2; if ( a2 ) { *(_BYTE *)(this + 484) = 1; *(_BYTE *)(this + 485) = *((_BYTE *)a2 + 88); cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(this + 480)); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 480) + 456))(*(_DWORD *)(v2 + 480), 0); v4 = *(_DWORD *)(v2 + 468); if ( v4 ) { (*(void (__fastcall **)(int))(*(_DWORD *)v4 + 268))(v4); *(_DWORD *)(v2 + 468) = 0; } v5 = *(_DWORD *)(v2 + 464); if ( v5 ) { *(_DWORD *)(v5 + 588) = 0; (*(void (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 464) + 268))(*(_DWORD *)(v2 + 464)); *(_DWORD *)(v2 + 464) = 0; } v6 = *(_DWORD *)(v2 + 460); v7 = *(void (__fastcall **)(int, char *, int))(*(_DWORD *)v6 + 464); std::string::basic_string(v28, (int)v3 + 64); if ( (v28[0] & 1) != 0 ) v8 = v29; else v8 = (char *)v28 + 1; v7(v6, v8, LOBYTE(v28[0]) << 31); std::string::~string((int)v28); v9 = *(_DWORD *)(v2 + 460); v10 = *((_BYTE *)v3 + 81); v11 = *((_BYTE *)v3 + 82); v12 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 536); v26[0] = *((_BYTE *)v3 + 80); v26[1] = v10; v26[2] = v11; v12(v9, v26); v13 = *((const char **)v3 + 19); if ( (int)v13 > 0 ) { if ( (int)v13 >= 56 ) v13 = (const char *)&dword_38; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"dialogIcon_%03d.png", v13); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v14); v17 = cocos2d::CCSprite::create(CString, v16); *(_DWORD *)(v2 + 468) = v17; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(v2 + 456) + 232))(*(_DWORD *)(v2 + 456), v17, 2); v18 = *(_DWORD *)(v2 + 468); v19 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -143.0, 0.0); v19(v18, v26); } v20 = *((float *)v3 + 21); std::string::basic_string(v27, (int)v3 + 52); if ( (v27[0] & 1) == 0 ) v3 = (DialogObject *)((char *)v27 + 1); v28[0] = 0; if ( (v27[0] & 1) != 0 ) v3 = (DialogObject *)v27[2]; v28[1] = 0; v29 = nullptr; v21 = strlen((const char *)v3); std::string::__init(v28, v3, v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, 1.0); *(_DWORD *)(v2 + 464) = TextArea::create( (int)v28, "chatFont.fnt", 1065353216, COERCE_INT(242.0 / v20), (const cocos2d::CCPoint *)v26, 1101004800, 0, 0); std::string::~string((int)v28); std::string::~string((int)v27); v22 = *(_DWORD *)(v2 + 464); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v22 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, 0.5); v23(v22, v26); (*(void (__fastcall **)(_DWORD, float))(**(_DWORD **)(v2 + 464) + 80))( *(_DWORD *)(v2 + 464), COERCE_FLOAT(LODWORD(v20))); *(_DWORD *)(*(_DWORD *)(v2 + 464) + 588) = v2 + 440; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(v2 + 456) + 232))( *(_DWORD *)(v2 + 456), *(_DWORD *)(v2 + 464), 3); v24 = *(_DWORD *)(v2 + 464); v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, -92.0, 0.0); v25(v24, v26); return TextArea::fadeInCharacters(*(_DWORD *)(v2 + 464), 0.2, 0.02, 0, 0); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source