// // ParticleGameObject::addMainSpriteToParent from 0x14049ff40 to 0x1404a0025 (229 bytes) // // 5 xrefs: // > @ 0x14060d858 // > @ 0x1406a7848 // > @ 0x1406a785c // > @ 0x1406a786c // > @ 0x1406dc4ac // // 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) { ZLayer m_zLayer; // edx cocos2d::CCNode *v5; // rdi GameObject::addMainSpriteToParent(a1, a2); if ( a1->m_particle ) { m_zLayer = a1->m_zLayer; if ( !m_zLayer ) m_zLayer = a1->m_defaultZLayer; v5 = GameObject::parentForZLayer(a1, m_zLayer, 0, 4); if ( a1->m_particle->getParent(a1->m_particle) == v5 ) { if ( a2 ) ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCParticleSystemQuad *))v5->reorderChild)(v5, a1->m_particle); } else { a1->m_particle->removeFromParentAndCleanup(a1->m_particle, 0); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCParticleSystemQuad *))v5->addChild_0)(v5, a1->m_particle); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source