// // cocos2d::CCParticleSystemQuad::setBatchNode from 0x5de1ec to 0x5de28e (162 bytes) // // 0 xrefs: // // 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::CCParticleSystemQuad::setBatchNode(cocos2d::CCParticleSystemQuad *a1, cocos2d::CCParticleBatchNode *a2) { cocos2d::CCParticleBatchNode *m_pBatchNode; // r5 void (__fastcall *setTexture)(cocos2d::CCParticleSystemQuad *__hidden, cocos2d::CCTexture2D *); // r6 int v6; // r0 cocos2d::ccV3F_C4B_T2F_Quad *v7; // r0 cocos2d::ccV3F_C4B_T2F_Quad *m_pQuads; // r0 GLushort *m_pIndices; // r0 m_pBatchNode = a1->m_pBatchNode; if ( m_pBatchNode != a2 ) { cocos2d::CCParticleSystem::setBatchNode(a1, a2); if ( a2 ) { if ( !m_pBatchNode ) { v7 = a1->m_pBatchNode->m_pTextureAtlas->getQuads(a1->m_pBatchNode->m_pTextureAtlas); memcpy(&v7[a1->m_uAtlasIndex], a1->m_pQuads, 96 * 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(); j_memset(a1->m_pBuffersVBO, 0, sizeof(a1->m_pBuffersVBO)); } } else { cocos2d::CCParticleSystemQuad::allocMemory(a1); cocos2d::CCParticleSystemQuad::initIndices(a1); setTexture = a1->setTexture; v6 = (int)m_pBatchNode->getTexture(m_pBatchNode); setTexture(a1, (cocos2d::CCTexture2D *)v6); cocos2d::CCParticleSystemQuad::setupVBO(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source