// // cocos2d::CCParticleBatchNode::insertChild from 0xb0272c to 0xb028b0 (388 bytes) // // 2 xrefs: // > cocos2d::CCParticleBatchNode::addChild @ 0xb0298c // > @ 0x7d7f0 // // 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 cocos2d::CCParticleBatchNode::insertChild( cocos2d::CCParticleBatchNode *a1, cocos2d::CCParticleSystem *a2, unsigned int a3) { cocos2d::CCTextureAtlas *m_pTextureAtlas; // x0 cocos2d::CCTextureAtlas_vtbl *v6; // x1 unsigned int v8; // w21 unsigned int v9; // w21 unsigned int m_uAtlasIndex; // w21 int v11; // w21 cocos2d::CCTextureAtlas *v12; // x21 unsigned int v13; // w0 cocos2d::CCParticleSystem_vtbl *v14; // x1 cocos2d::CCParticleSystem *v15; // x0 cocos2d::CCTextureAtlas *v16; // x19 unsigned int v17; // w0 unsigned int v18; // w21 unsigned int v19; // w0 cocos2d::CCTextureAtlas *v20; // x23 unsigned int v21; // w21 unsigned int v22; // w0 unsigned int v23; // [xsp+48h] [xbp+48h] m_pTextureAtlas = a1->m_pTextureAtlas; v6 = m_pTextureAtlas->__vftable; a2->m_uAtlasIndex = a3; v8 = v6->getTotalQuads(m_pTextureAtlas); v9 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystem *))a2->getTotalParticles)(a2) + v8; if ( v9 > a1->m_pTextureAtlas->getCapacity(a1->m_pTextureAtlas) ) { v18 = a1->m_pTextureAtlas->getTotalQuads(a1->m_pTextureAtlas); v19 = a2->getTotalParticles(a2); cocos2d::CCParticleBatchNode::increaseAtlasCapacityTo(a1, v19 + v18); v20 = a1->m_pTextureAtlas; v21 = v20->getCapacity(v20); v23 = v21 - ((__int64 (__fastcall *)(cocos2d::CCParticleSystem *))a2->getTotalParticles)(a2); v22 = a2->getTotalParticles(a2); cocos2d::CCTextureAtlas::fillWithEmptyQuadsFromIndex(v20, v23, v22); } m_uAtlasIndex = a2->m_uAtlasIndex; v11 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystem *))a2->getTotalParticles)(a2) + m_uAtlasIndex; if ( v11 != a1->m_pTextureAtlas->getTotalQuads(a1->m_pTextureAtlas) ) { v12 = a1->m_pTextureAtlas; v13 = a2->getTotalParticles(a2); cocos2d::CCTextureAtlas::moveQuadsFromIndex(v12, a3, v13 + a3); } v14 = a2->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v15 = a2; v16 = a1->m_pTextureAtlas; v17 = v14->getTotalParticles(v15); cocos2d::CCTextureAtlas::increaseTotalQuadsWith(v16, v17); cocos2d::CCParticleBatchNode::updateAllAtlasIndexes(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source