// // cocos2d::CCParticleSystemQuad::initIndices from 0x10025342c to 0x10025349c (112 bytes) // // 3 xrefs: // > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x10025330c // > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x100253fc8 // > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x1002540d0 // // 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::initIndices(cocos2d::CCParticleSystemQuad *a1) { __int64 m_uTotalParticles; // x8 int v2; // w9 __int64 v3; // x10 GLushort *m_pIndices; // x11 GLushort v5; // w12 GLushort v6; // w13 GLushort v7; // w12 m_uTotalParticles = a1->m_uTotalParticles; if ( (_DWORD)m_uTotalParticles ) { v2 = 0; v3 = 0; m_pIndices = a1->m_pIndices; do { m_pIndices[v2] = 4 * v3; v5 = (4 * v3) | 1; m_pIndices[v2 + 1] = v5; v6 = (4 * v3) | 2; m_pIndices[v2 + 5] = v5; m_pIndices[v2 + 2] = v6; m_pIndices[v2 + 4] = v6; v7 = (4 * v3++) | 3; m_pIndices[v2 + 3] = v7; v2 += 6; } while ( m_uTotalParticles != v3 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source