// // GameObject::duplicateValues from 0x64a3a4 to 0x64a534 (400 bytes) // // 3 xrefs: // > LevelEditorLayer::breakApartTextObject @ 0x6722f8 // > EditorUI::onCreateObject @ 0x6c0168 // > @ 0xb0580 // // 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 // void GameObject::duplicateValues(GameObject *a1) { GameObject *v1; // x1 GameObject *v2; // x20 float v4; // s8 float v5; // s0 GameObject_vtbl *v6; // x1 GameObject_vtbl *v7; // x2 void (__fastcall *setRotationX)(GameObject *__hidden, float); // x19 void (__fastcall *setRotation)(GameObject *__hidden, float); // x19 int v10; // w19 void (__fastcall *setFlipX)(GameObject *__hidden, bool); // x22 int v12; // w0 void (__fastcall *setFlipY)(GameObject *__hidden, bool); // x22 int v14; // w0 ZLayer CustomZLayer; // w0 int m_groupCount; // w0 int v17; // w1 int (__fastcall *addToGroup)(GameObject *__hidden, int); // x22 unsigned int GroupID; // w0 v2 = v1; v4 = ((float (__fastcall *)())v1->getRotationX)(); v5 = v2->getRotationY(v2); v6 = v2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v4 == v5 ) { setRotation = v7->setRotation; v6->getRotation(v2); } else { setRotationX = v7->setRotationX; v6->getRotationX(v2); ((void (__fastcall *)(GameObject *))setRotationX)(a1); setRotation = a1->setRotationY; v2->getRotationY(v2); } ((void (__fastcall *)(GameObject *))setRotation)(a1); v10 = 0; setFlipX = a1->setFlipX; v12 = ((__int64 (__fastcall *)(GameObject *))v2->isFlipX)(v2); setFlipX(a1, v12); setFlipY = a1->setFlipY; v14 = ((__int64 (__fastcall *)(GameObject *))v2->isFlipY)(v2); setFlipY(a1, v14); GameObject::duplicateColorMode(a1); a1->m_zOrder = v2->m_zOrder; CustomZLayer = GameObject::getCustomZLayer(v2); GameObject::setCustomZLayer(a1, CustomZLayer); a1->m_isDontFade = v2->m_isDontFade; m_groupCount = v2->m_groupCount; a1->m_isDontEnter = v2->m_isDontEnter; a1->m_hasNoEffects = v2->m_hasNoEffects; if ( m_groupCount > 0 ) { do { v17 = v10++; addToGroup = a1->addToGroup; GroupID = GameObject::getGroupID(v2, v17); addToGroup(a1, GroupID); } while ( v2->m_groupCount > v10 ); } GameObject::updateCustomScaleX(a1, v2->m_scaleX); GameObject::updateCustomScaleY(a1, v2->m_scaleY); }
GD Web Decomp Icon

GD Web Decomp

Raw Source