// // ParticleGameObject::addMainSpriteToParent from 0x100380e9c to 0x100380f5c (192 bytes) // // 1 xrefs: // > @ 0x1007f95d0 // // 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 __fastcall ParticleGameObject::addMainSpriteToParent(ParticleGameObject *a1, bool a2) { _BOOL4 v2; // w21 ZLayer ObjectZLayer; // w0 cocos2d::CCNode *v5; // x20 __int64 v6; // x22 cocos2d::CCParticleSystemQuad *m_particle; // x21 __int64 ObjectZOrder; // x2 v2 = a2; GameObject::addMainSpriteToParent(a1, a2); if ( a1->m_particle ) { ObjectZLayer = GameObject::getObjectZLayer(a1); v5 = GameObject::parentForZLayer(a1, ObjectZLayer, 0, 4); if ( (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getParent)(a1->m_particle) == v5 ) { if ( !v2 ) return; v6 = 576; } else { ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))a1->m_particle->removeFromParentAndCleanup)( a1->m_particle, 0); v6 = 448; } m_particle = a1->m_particle; ObjectZOrder = GameObject::getObjectZOrder(a1); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCParticleSystemQuad *, __int64))((char *)&v5->copyWithZone + v6))( v5, m_particle, ObjectZOrder); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source