// // ParticleGameObject::addMainSpriteToParent from 0x74a848 to 0x74a918 (208 bytes) // // 2 xrefs: // > @ 0x793b0 // > @ 0x11662f0 // // 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 ParticleGameObject::addMainSpriteToParent(ParticleGameObject *a1, bool a2) { _BOOL4 v2; // w21 ZLayer ObjectZLayer; // w0 cocos2d::CCNode *v5; // x20 ParticleGameObject *v6; // x0 void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // x19 unsigned int ObjectZOrder; // w0 cocos2d::CCParticleSystemQuad *m_particle; // [xsp+38h] [xbp+38h] v2 = a2; GameObject::addMainSpriteToParent(a1, a2); if ( a1->m_particle ) { ObjectZLayer = GameObject::getObjectZLayer(a1); v5 = GameObject::parentForZLayer(a1, ObjectZLayer, 0, 4); if ( v5 != a1->m_particle->getParent(a1->m_particle) ) { a1->m_particle->removeFromParentAndCleanup(a1->m_particle, 0); v6 = a1; m_particle = a1->m_particle; addChild_0 = v5->addChild_0; LABEL_4: ObjectZOrder = GameObject::getObjectZOrder(v6); addChild_0(v5, m_particle, ObjectZOrder); return; } if ( v2 ) { v6 = a1; m_particle = a1->m_particle; addChild_0 = v5->reorderChild; goto LABEL_4; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source