//
// cocos2d::CCParticleSystem::addParticle from 0x100194808 to 0x100194860 (88 bytes)
//
// 1 xrefs:
// > cocos2d::CCParticleSystem::update @ 0x10019565c
//
// 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 __fastcall cocos2d::CCParticleSystem::addParticle(cocos2d::CCParticleSystem *a1)
{
unsigned int m_uParticleCount; // w20
unsigned int m_uTotalParticles; // w21
m_uParticleCount = a1->m_uParticleCount;
m_uTotalParticles = a1->m_uTotalParticles;
if ( m_uParticleCount != m_uTotalParticles )
{
cocos2d::CCParticleSystem::initParticle(
a1,
(cocos2d::sCCParticle *)((char *)a1->m_pParticles + 148 * m_uParticleCount));
++a1->m_uParticleCount;
}
return m_uParticleCount != m_uTotalParticles;
}