// // TextGameObject::updateTextObject from 0x363000 to 0x363196 (406 bytes) // // 8 xrefs: // > TextGameObject::customObjectSetup @ 0x363214 // > LevelEditorLayer::updateLevelFont @ 0x368616 // > LevelEditorLayer::breakApartTextObject @ 0x37161e // > EditorUI::getCreateBtn @ 0x38641e // > EditorUI::getCreateBtn @ 0x386438 // > EditorUI::onCreateObject @ 0x3a3d0e // > CustomizeObjectLayer::onClear @ 0x4611b8 // > CustomizeObjectLayer::textChanged @ 0x461e5e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall TextGameObject::updateTextObject(int *a1, const char **a2, int a3) { int v6; // r5 cocos2d::CCArray *v7; // r0 int v8; // r5 cocos2d::CCArray *v9; // r0 cocos2d::CCArray *v10; // r0 const char *v11; // r8 cocos2d::CCArray *v12; // r10 GameManager *v13; // r11 GameManager *v14; // r0 const char *FontFile; // r1 cocos2d::CCLabelBMFont *Batched; // r0 void (__fastcall *v17)(int *, int); // r11 cocos2d::CCLabelBMFont *v18; // r8 int v19; // r0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 cocos2d::CCLabelBMFont *v21; // r0 unsigned int v22; // r8 int v23; // r0 int v24; // r9 int v25; // r3 int (__fastcall *v26)(int *, int); // r3 int result; // r0 int v28; // r0 int v29; // r0 unsigned __int8 v30; // r3 __int16 v31; // [sp+0h] [bp+0h] BYREF unsigned __int8 v32; // [sp+2h] [bp+2h] cocos2d::CCPoint v33; // [sp+4h] [bp+4h] BYREF if ( !*((_DWORD *)*a2 - 3) || (sub_776584((int)&v33, " "), v6 = sub_774DBC(a2, &v33), sub_774008(&v33), !v6) ) sub_7753D4((int)a2, "A"); sub_775D40(a1 + 290, a2); v7 = (cocos2d::CCArray *)a1[48]; v31 = -1; v32 = -1; if ( v7 && cocos2d::CCArray::count(v7) ) { v28 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)a1[48], 0); v29 = (*(int (__fastcall **)(int))(*(_DWORD *)v28 + 464))(v28); v30 = *(_BYTE *)(v29 + 2); v31 = *(_WORD *)v29; v32 = v30; } v8 = *((unsigned __int8 *)a1 + 981); if ( *((_BYTE *)a1 + 981) ) v8 = (unsigned __int8)v31 != 255 || HIBYTE(v31) != 255 || v32 != 255; v9 = (cocos2d::CCArray *)(*(int (__fastcall **)(int *, int))(*a1 + 284))(a1, 1); v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9); v11 = *a2; v12 = v10; if ( a3 ) { FontFile = "bigFont.fnt"; } else { v13 = GameManager::sharedState(); v14 = GameManager::sharedState(); FontFile = GameManager::getFontFile(v13, v14->m_loadedFont); } Batched = cocos2d::CCLabelBMFont::createBatched(v11, FontFile, v12, a1[291]); v17 = *(void (__fastcall **)(int *, int))(*a1 + 152); v18 = Batched; v19 = (int)Batched->getContentSize(Batched); v17(a1, v19); setPosition = v18->setPosition; cocos2d::CCNode::convertToNodeSpace(&v33, (cocos2d::CCNode *)a1, &stru_AC5CA0); v21 = v18; v22 = 0; setPosition(v21, &v33); while ( v22 < cocos2d::CCArray::count(v12) ) { v23 = cocos2d::CCArray::objectAtIndex(v12, v22); v24 = v23; if ( v8 ) (*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v23 + 472))(v23, &v31); ++v22; (*(void (__fastcall **)(int *, int))(*a1 + 220))(a1, v24); } v25 = *a1; *((_BYTE *)a1 + 746) = 1; *((_BYTE *)a1 + 724) = 1; v26 = *(int (__fastcall **)(int *, int))(v25 + 592); *((_BYTE *)a1 + 725) = 1; *((_BYTE *)a1 + 700) = 1; result = v26(a1, 1); *((_BYTE *)a1 + 471) = 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source