// // cocos2d::CCParticleFire::initWithTotalParticles from 0x180063e40 to 0x180064016 (470 bytes) // // 7 xrefs: // > cocos2d::CCParticleFire::createWithTotalParticles @ 0x180063307 // > cocos2d::CCParticleFire::createWithTotalParticles @ 0x1800632f6 // > @ 0x1800fad38 // > @ 0x180139ae8 // > @ 0x180139af8 // > @ 0x1801438a8 // > @ 0x1801b39c0 // // 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::CCParticleFire::initWithTotalParticles(cocos2d::CCParticleFire *this, unsigned int a2) { float *v3; // rax cocos2d::CCDirector *v4; // rax cocos2d::CCParticleFire_vtbl *v5; // rbx float *v6; // rax float *v7; // rax signed int m_uTotalParticles; // eax struct cocos2d::CCTexture2D *v9; // rax __int64 v10; // rdx float v12; // [rsp+40h] [rbp+18h] float v13; // [rsp+48h] [rbp+20h] BYREF if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) ) return 0; this->m_fDuration = -1.0; this->m_nEmitterMode = 0; v3 = kmVec2Fill(&v13, 0.0, 0.0); cocos2d::CCSize::operator=(&this->modeA.gravity, v3); *(_QWORD *)&this->modeA.radialAccel = 0; this->modeA.speed = 60.0; this->modeA.speedVar = 20.0; this->m_fAngle = 90.0; this->m_fAngleVar = 10.0; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v5 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6 = kmVec2Fill(&v13, v12 * 0.5, 60.0); ((void (__fastcall *)(cocos2d::CCParticleFire *, float *))v5->setPosition_0)(this, v6); v7 = kmVec2Fill(&v13, 40.0, 20.0); cocos2d::CCSize::operator=(&this->m_tPosVar, v7); m_uTotalParticles = this->m_uTotalParticles; this->m_fLife = 3.0; this->m_fLifeVar = 0.25; this->m_fStartSize = 54.0; this->m_fStartSizeVar = 10.0; this->m_fEndSize = -1.0; this->m_tStartColor.r = 0.75999999; this->m_tStartColor.g = 0.25; this->m_tStartColor.b = 0.12; *(_QWORD *)&this->m_tStartColor.a = 1065353216; *(_QWORD *)&this->m_tStartColorVar.g = 0; *(_QWORD *)&this->m_tStartColorVar.a = 0; *(_QWORD *)&this->m_tEndColor.g = 0; *(_QWORD *)&this->m_tEndColor.a = 1065353216; *(_QWORD *)&this->m_tEndColorVar.g = 0; this->m_tEndColorVar.a = 0.0; this->m_fEmissionRate = (float)m_uTotalParticles / 3.0; v9 = sub_180063AC0(); if ( v9 ) ((void (__fastcall *)(cocos2d::CCTextureProtocol *, struct cocos2d::CCTexture2D *))this->setTexture)( &this->cocos2d::CCTextureProtocol, v9); LOBYTE(v10) = 1; ((void (__fastcall *)(cocos2d::CCParticleFire *, __int64))this->setBlendAdditive)(this, v10); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source