//
// cocos2d::CCParticleSystem::addParticle from 0x1800659b0 to 0x1800659f0 (64 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3b88
//
// 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::CCParticleSystem::addParticle(cocos2d::CCParticleSystem *this)
{
__int64 m_uParticleCount; // rax
m_uParticleCount = this->m_uParticleCount;
if ( (_DWORD)m_uParticleCount == this->m_uTotalParticles )
return 0;
cocos2d::CCParticleSystem::initParticle(
this,
(struct cocos2d::sCCParticle *)((char *)this->m_pParticles + 148 * m_uParticleCount));
++this->m_uParticleCount;
return 1;
}