// // cocos2d::CCParticleSystemQuad::setBatchNode from 0x18006aaf0 to 0x18006ac1b (299 bytes) // // 16 xrefs: // > @ 0x1800faa70 // > @ 0x1800fb0e0 // > @ 0x1800fb750 // > @ 0x1800fbdc0 // > @ 0x1800fc430 // > @ 0x1800fcaa0 // > @ 0x1800fd110 // > @ 0x1800fd780 // > @ 0x1800fddf0 // > @ 0x1800fe460 // > @ 0x1800fead0 // > @ 0x1800ffdb8 // > @ 0x18013a148 // > @ 0x18013a158 // > @ 0x1801438a8 // > @ 0x1801b3d08 // // 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 cocos2d::CCParticleSystemQuad::setBatchNode( cocos2d::CCParticleSystemQuad *this, struct cocos2d::CCParticleBatchNode *a2) { cocos2d::CCParticleBatchNode *m_pBatchNode; // rbp cocos2d::CCTextureProtocol_vtbl *v5; // rdi __int64 v6; // rax __int64 v7; // rax cocos2d::ccV3F_C4B_T2F_Quad *m_pQuads; // rcx GLushort *m_pIndices; // rcx m_pBatchNode = this->m_pBatchNode; if ( m_pBatchNode != a2 ) { cocos2d::CCParticleSystem::setBatchNode(this, a2); if ( a2 ) { if ( !m_pBatchNode ) { v7 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pBatchNode->m_pTextureAtlas->getQuads)(this->m_pBatchNode->m_pTextureAtlas); memcpy((void *)(v7 + 96LL * this->m_uAtlasIndex), this->m_pQuads, 96LL * this->m_uTotalParticles); m_pQuads = this->m_pQuads; if ( m_pQuads ) { free(m_pQuads); this->m_pQuads = nullptr; } m_pIndices = this->m_pIndices; if ( m_pIndices ) { free(m_pIndices); this->m_pIndices = nullptr; } _glewDeleteBuffers(2, this->m_pBuffersVBO); *(_QWORD *)this->m_pBuffersVBO = 0; } } else { cocos2d::CCParticleSystemQuad::allocMemory(this); cocos2d::CCParticleSystemQuad::initIndices(this); v5 = this->cocos2d::CCParticleSystem::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable; v6 = ((__int64 (__fastcall *)(cocos2d::CCTextureProtocol *))m_pBatchNode->getTexture)(&m_pBatchNode->cocos2d::CCTextureProtocol); ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v5->setTexture)( &this->cocos2d::CCTextureProtocol, v6); cocos2d::CCParticleSystemQuad::setupVBO(this); } } }