// // LevelEditorLayer::copyObjectState from 0x792ba0 to 0x792d18 (376 bytes) // // 4 xrefs: // > CustomizeObjectLayer::onCopy @ 0x982ac0 // > SetGroupIDLayer::onCopy @ 0xab8e00 // > EditorUI::onCopyState @ 0xbd8bf4 // > @ 0xfda20 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:53:30 +0000 // __int64 __fastcall LevelEditorLayer::copyObjectState(LevelEditorLayer *this, GameObject *a2) { GameObject *v4; // x0 _DWORD *v6; // x0 cocos2d::CCObject **v7; // x23 __int64 v8; // x23 void (__fastcall *v9)(__int64, __int64 *); // x24 __int64 v10; // [xsp+40h] [xbp+40h] BYREF __int64 v11; // [xsp+48h] [xbp+48h] void *v12; // [xsp+50h] [xbp+50h] if ( a2 ) { v4 = *((GameObject **)this + 1765); if ( !v4 ) { v6 = GameObject::createWithKey((GameObject *)((char *)&qword_C8 + 7)); *((_QWORD *)this + 1765) = v6; (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v6 + 1264LL))(v6); v7 = *((cocos2d::CCObject ***)this + 1765); v10 = 0; v11 = 0; v12 = nullptr; std::string::__init(&v10, "lightsquare_01_01_001.png", 0x19u); GameObject::addColorSprite(v7, (unsigned __int8 *)&v10); if ( (v10 & 1) != 0 ) operator delete(v12); v8 = *((_QWORD *)this + 1765); v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 1272LL); v10 = 0; v11 = 0; v12 = nullptr; std::string::__init(&v10, "lightsquare_01_01_001.png", 0x19u); v9(v8, &v10); if ( (v10 & 1) != 0 ) operator delete(v12); cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 1765)); v4 = *((GameObject **)this + 1765); } GameObject::setDefaultMainColorMode(v4, 0); GameObject::setDefaultSecondaryColorMode(*((GameObject **)this + 1765), 0); GameObject::duplicateColorMode(*((_QWORD *)this + 1765), a2); GameObject::duplicateAttributes(*((GameObject **)this + 1765), a2); LevelEditorLayer::applyGroupState(this, *((GameObject **)this + 1765), a2); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source