// // cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006cbc0 to 0x18006cc30 (112 bytes) // // 25 xrefs: // > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x18006603c // > cocos2d::CCParticleFire::initWithTotalParticles @ 0x18006627c // > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006645c // > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006665c // > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006689c // > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x180066abc // > cocos2d::CCParticleRain::initWithTotalParticles @ 0x180066cec // > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180066f1c // > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x18006712c // > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x18006736c // > cocos2d::CCParticleSun::initWithTotalParticles @ 0x1800675ac // > @ 0x180101250 // > @ 0x1801018d0 // > @ 0x180101f50 // > @ 0x1801025d0 // > @ 0x180102c50 // > @ 0x1801032d0 // > @ 0x180103950 // > @ 0x180103fd0 // > @ 0x180104650 // > @ 0x180104cd0 // > @ 0x180105350 // > @ 0x1801066a8 // > @ 0x18014cf68 // > @ 0x1801be038 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:55 +0000 // char __fastcall cocos2d::CCParticleSystemQuad::initWithTotalParticles( cocos2d::CCParticleSystemQuad *this, int a2, char a3) { __int64 v5; // rbx cocos2d::CCShaderCache *v6; // rax struct cocos2d::CCGLProgram *v7; // rax if ( !cocos2d::CCParticleSystem::initWithTotalParticles(this, a2, a3) ) return 0; if ( !cocos2d::CCParticleSystemQuad::allocMemory(this) ) { cocos2d::CCObject::release(this); return 0; } cocos2d::CCParticleSystemQuad::initIndices(this); cocos2d::CCParticleSystemQuad::setupVBO(this); v5 = *(_QWORD *)this; v6 = cocos2d::CCShaderCache::sharedShaderCache(); v7 = cocos2d::CCShaderCache::programForKey(v6, "ShaderPositionTextureColor"); (*(void (__fastcall **)(cocos2d::CCParticleSystemQuad *, struct cocos2d::CCGLProgram *))(v5 + 656))(this, v7); return 1; }