// // LevelEditorLayer::createObject from 0x46eac4 to 0x46ec2c (360 bytes) // // 3 xrefs: // > LevelEditorLayer::addSpecial @ 0x46e444 // > LevelEditorLayer::breakApartTextObject @ 0x46edb6 // > EditorUI::createObject @ 0x4820f6 // // 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:49:03 +0000 // cocos2d::CCObject **__fastcall LevelEditorLayer::createObject( cocos2d::CCArray **a1, GameObject *a2, const cocos2d::CCPoint *a3, int a4) { GameObject *v8; // r0 cocos2d::CCObject **v9; // r4 ObjectToolbox *v10; // r0 const char *v11; // r11 size_t v12; // r0 cocos2d::CCObject *v13; // r3 void (__fastcall *v14)(cocos2d::CCObject **, int *); // r11 __int16 v15; // r3 void (__fastcall *v16)(cocos2d::CCObject **, _BYTE *); // r11 UndoObject *v17; // r0 _BYTE v19[8]; // [sp+0h] [bp-34h] BYREF int v20[3]; // [sp+8h] [bp-2Ch] BYREF int v21[3]; // [sp+14h] [bp-20h] BYREF int v22[3]; // [sp+20h] [bp-14h] BYREF v8 = GameObject::createWithKey(a2, (int)a2); v9 = (cocos2d::CCObject **)v8; if ( v8 ) { if ( !a4 ) a1[3026] = (cocos2d::CCArray *)((char *)a1[3026] + 1); v10 = (ObjectToolbox *)ObjectToolbox::sharedState(v8); memset(v20, 0, sizeof(v20)); v11 = (const char *)ObjectToolbox::intKeyToFrame(v10, (int)a2); v12 = strlen(v11); std::string::__init(v20, v11, v12); (*((void (__fastcall **)(cocos2d::CCObject **, _DWORD))*v9 + 43))(v9, 0); v13 = v9[223]; if ( v13 == (cocos2d::CCObject *)byte_9 || v13 == (cocos2d::CCObject *)((char *)&stru_6AC.st_value + 3) ) v9[228] = (cocos2d::CCObject *)(&dword_0 + 2); (*((void (__fastcall **)(cocos2d::CCObject **))*v9 + 157))(v9); (*((void (__fastcall **)(cocos2d::CCObject **))*v9 + 158))(v9); std::string::basic_string(v21, (int)v20); GameObject::addColorSprite(v9, (int)v21); std::string::~string((int)v21); v14 = *((void (__fastcall **)(cocos2d::CCObject **, int *))*v9 + 159); std::string::basic_string(v22, (int)v20); v14(v9, v22); std::string::~string((int)v22); (*((void (__fastcall **)(cocos2d::CCObject **))*v9 + 202))(v9); v15 = *((_WORD *)a1 + 5913); if ( v15 != -1 ) *((_WORD *)v9 + 519) = v15; v16 = *((void (__fastcall **)(cocos2d::CCObject **, _BYTE *))*v9 + 171); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, a3); v16(v9, v19); (*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCObject **))*a1 + 168))(a1, v9); LevelEditorLayer::addSpecial((LevelEditorLayer *)a1, (GameObject *)v9); if ( !a4 ) { cocos2d::CCArray::removeAllObjects(a1[2966]); v17 = UndoObject::create((GameObjectCopy *)v9, 2); LevelEditorLayer::addToUndoList(a1, v17, 0); } std::string::~string((int)v20); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source