//
// cocos2d::CCParticleSystemQuad::initWithTotalParticles from 0x18006aa10 to 0x18006aa80 (112 bytes)
//
// 25 xrefs:
// > cocos2d::CCParticleExplosion::initWithTotalParticles @ 0x180063c0c
// > cocos2d::CCParticleFire::initWithTotalParticles @ 0x180063e4c
// > cocos2d::CCParticleFireworks::initWithTotalParticles @ 0x18006402c
// > cocos2d::CCParticleFlower::initWithTotalParticles @ 0x18006422c
// > cocos2d::CCParticleGalaxy::initWithTotalParticles @ 0x18006446c
// > cocos2d::CCParticleMeteor::initWithTotalParticles @ 0x18006468c
// > cocos2d::CCParticleRain::initWithTotalParticles @ 0x1800648bc
// > cocos2d::CCParticleSmoke::initWithTotalParticles @ 0x180064aec
// > cocos2d::CCParticleSnow::initWithTotalParticles @ 0x180064cfc
// > cocos2d::CCParticleSpiral::initWithTotalParticles @ 0x180064f2c
// > cocos2d::CCParticleSun::initWithTotalParticles @ 0x18006516c
// > ??> @ 0x1800fad10
// > ??> @ 0x1800fb380
// > ??> @ 0x1800fb9f0
// > ??> @ 0x1800fc060
// > ??> @ 0x1800fc6d0
// > ??> @ 0x1800fcd40
// > ??> @ 0x1800fd3b0
// > ??> @ 0x1800fda20
// > ??> @ 0x1800fe090
// > ??> @ 0x1800fe700
// > ??> @ 0x1800fed70
// > ??> @ 0x180100058
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3cf0
//
// 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
//
char __fastcall cocos2d::CCParticleSystemQuad::initWithTotalParticles(
cocos2d::CCParticleSystemQuad *this,
unsigned int a2,
char a3)
{
cocos2d::CCParticleSystemQuad_vtbl *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 = this->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = cocos2d::CCShaderCache::sharedShaderCache();
v7 = cocos2d::CCShaderCache::programForKey(v6, "ShaderPositionTextureColor");
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, struct cocos2d::CCGLProgram *))v5->setShaderProgram)(this, v7);
return 1;
}