// // cocos2d::CCParticleSystemQuad::allocMemory from 0x5ddff8 to 0x5de07e (134 bytes) // // 2 xrefs: // > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x5de0be // > cocos2d::CCParticleSystemQuad::setBatchNode @ 0x5de202 // // 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 // bool cocos2d::CCParticleSystemQuad::allocMemory(cocos2d::CCParticleSystemQuad *a1) { cocos2d::ccV3F_C4B_T2F_Quad *m_pQuads; // r0 GLushort *m_pIndices; // r0 unsigned int m_uTotalParticles; // r7 size_t v5; // r8 size_t v6; // r7 cocos2d::ccV3F_C4B_T2F_Quad *v7; // r0 cocos2d::ccV3F_C4B_T2F_Quad *v8; // r6 GLushort *v9; // r0 GLushort *v10; // r4 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); m_uTotalParticles = a1->m_uTotalParticles; v5 = 96 * m_uTotalParticles; v6 = 12 * m_uTotalParticles; v7 = (cocos2d::ccV3F_C4B_T2F_Quad *)malloc(v5); a1->m_pQuads = v7; v8 = v7; v9 = (GLushort *)malloc(v6); v10 = v9; a1->m_pIndices = v9; if ( v8 ) { if ( v9 ) { memset(v8, 0, v5); memset(v10, 0, v6); return 1; } free(v8); a1->m_pQuads = nullptr; } else if ( v9 ) { free(v9); a1->m_pIndices = nullptr; return 0; } return (char)v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source