// // cocos2d::CCParticleSystem::initWithTotalParticles from 0x180068bd0 to 0x180068ce6 (278 bytes) // // 4 xrefs: // > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa19 // > @ 0x1800ff5b8 // > @ 0x1801438a8 // > @ 0x1801b3be8 // // 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::initWithTotalParticles( cocos2d::CCParticleSystem *this, unsigned int a2, char a3) { cocos2d::tCCParticle *m_pParticles; // rcx cocos2d::tCCParticle *v7; // rax bool v9; // zf unsigned int i; // edx this->m_uTotalParticles = a2; m_pParticles = this->m_pParticles; if ( m_pParticles ) { free(m_pParticles); this->m_pParticles = nullptr; } v7 = (cocos2d::tCCParticle *)calloc(this->m_uTotalParticles, 0x94u); this->m_pParticles = v7; if ( v7 ) { v9 = this->m_pBatchNode == nullptr; this->m_uAllocatedParticles = a2; if ( !v9 ) { for ( i = 0; i < this->m_uTotalParticles; ++i ) *((_DWORD *)&this->m_pParticles->modeA.dir.x + 37 * i) = i; } this->m_bIsActive = 1; this->m_tBlendFunc.src = 1; this->m_tBlendFunc.dst = 771; this->m_ePositionType = kCCPositionTypeFree; this->m_nEmitterMode = 0; this->m_bIsAutoRemoveOnFinish = 0; this->m_bTransformSystemDirty = 0; if ( !a3 ) { cocos2d::CCNode::scheduleUpdateWithPriority(this, 1); this->m_bUsingSchedule = 1; } return 1; } else { cocos2d::CCObject::release(this); return 0; } }