// // GameObject::addMainSpriteToParent from 0x6465f0 to 0x646700 (272 bytes) // // 48 xrefs: // > ParticleGameObject::addMainSpriteToParent @ 0x74a864 // > LabelGameObject::addMainSpriteToParent @ 0x750654 // > @ 0x7bc18 // > @ 0x1152bd0 // > @ 0x11539a0 // > @ 0x1154170 // > @ 0x1154970 // > @ 0x1162320 // > @ 0x1162b20 // > @ 0x1163320 // > @ 0x1163b20 // > @ 0x1164320 // > @ 0x1164b20 // > @ 0x1165320 // > @ 0x1165b20 // > @ 0x1166af0 // > @ 0x11672f0 // > @ 0x1167af0 // > @ 0x11682f0 // > @ 0x1168b30 // > @ 0x1169330 // > @ 0x1169b30 // > @ 0x116a330 // > @ 0x116ab30 // > @ 0x116bb40 // > @ 0x116c340 // > @ 0x116cb40 // > @ 0x116d340 // > @ 0x116db40 // > @ 0x116e340 // > @ 0x116eb40 // > @ 0x116f340 // > @ 0x116fb40 // > @ 0x1170340 // > @ 0x1170b40 // > @ 0x1171340 // > @ 0x1171b40 // > @ 0x1172340 // > @ 0x1172b40 // > @ 0x1173340 // > @ 0x1173b40 // > @ 0x1174340 // > @ 0x1174b40 // > @ 0x1175340 // > @ 0x1175b40 // > @ 0x1176340 // > @ 0x1176b40 // > @ 0x1177360 // // 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::addMainSpriteToParent(GameObject *a1, bool a2) { _BOOL4 v3; // w22 cocos2d::CCSprite *m_colorSprite; // x21 ZLayer ObjectZLayer; // w0 bool m_shouldBlendBase; // w20 ZLayer v7; // w1 int ParentMode; // w0 cocos2d::CCNode *v9; // x20 GameObject *v10; // x0 void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // x21 unsigned int ObjectZOrder; // w0 int m_shouldBlendDetail; // w0 int m_baseOrDetailBlending; // w1 int v15; // [xsp+38h] [xbp+38h] v3 = a2; GameObject::updateBlendMode(a1); m_colorSprite = a1->m_colorSprite; ObjectZLayer = GameObject::getObjectZLayer(a1); m_shouldBlendBase = a1->m_shouldBlendBase; v7 = ObjectZLayer; if ( m_colorSprite && a1->m_shouldBlendBase && !a1->m_shouldBlendDetail && !a1->m_colorZLayerRelated ) v7 = ObjectZLayer + 1; v15 = v7; ParentMode = GameObject::getParentMode(a1); v9 = GameObject::parentForZLayer(a1, v15, m_shouldBlendBase, ParentMode); if ( v9 != a1->getParent(a1) ) { a1->removeFromParentAndCleanup(a1, 0); v10 = a1; addChild_0 = v9->addChild_0; LABEL_6: ObjectZOrder = GameObject::getObjectZOrder(v10); addChild_0(v9, a1, ObjectZOrder); goto LABEL_7; } if ( v3 ) { v10 = a1; addChild_0 = v9->reorderChild; goto LABEL_6; } LABEL_7: m_shouldBlendDetail = a1->m_shouldBlendBase; m_baseOrDetailBlending = a1->m_baseOrDetailBlending; if ( !a1->m_shouldBlendBase ) m_shouldBlendDetail = a1->m_shouldBlendDetail; a1->m_baseOrDetailBlending = m_shouldBlendDetail; if ( m_shouldBlendDetail != m_baseOrDetailBlending ) a1->blendModeChanged(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source