// // cocos2d::CCParticleSystemQuad::setBatchNode from 0x100254004 to 0x10025410c (264 bytes) // // 1 xrefs: // > @ 0x1007cf548 // // 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 *a1, cocos2d::CCParticleBatchNode *a2) { cocos2d::CCParticleBatchNode *m_pBatchNode; // x20 __int64 v5; // x0 cocos2d::ccV3F_C4B_T2F_Quad *m_pQuads; // x0 GLushort *m_pIndices; // x0 __int64 v8; // x0 m_pBatchNode = a1->m_pBatchNode; if ( m_pBatchNode != a2 ) { cocos2d::CCParticleSystem::setBatchNode(a1, a2); if ( a2 ) { if ( !m_pBatchNode ) { v5 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))a1->m_pBatchNode->m_pTextureAtlas->getQuads)(a1->m_pBatchNode->m_pTextureAtlas); memcpy((void *)(v5 + 96LL * a1->m_uAtlasIndex), a1->m_pQuads, 96LL * a1->m_uTotalParticles); m_pQuads = a1->m_pQuads; if ( m_pQuads ) { free(m_pQuads); a1->m_pQuads = nullptr; } m_pIndices = a1->m_pIndices; if ( m_pIndices ) { free(m_pIndices); a1->m_pIndices = nullptr; } glDeleteBuffers(2, &a1->m_pBuffersVBO[1]); *(_QWORD *)&a1->m_pBuffersVBO[1] = 0; glDeleteVertexArraysOES(1, a1->m_pBuffersVBO); cocos2d::ccGLBindVAO(0); a1->m_pBuffersVBO[0] = 0; } } else { cocos2d::CCParticleSystemQuad::allocMemory(a1); cocos2d::CCParticleSystemQuad::initIndices(a1); v8 = ((__int64 (__fastcall *)(cocos2d::CCParticleBatchNode *))m_pBatchNode->getTexture)(m_pBatchNode); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))a1->setTexture)(a1, v8); cocos2d::CCParticleSystemQuad::setupVBOandVAO(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source