// // cocos2d::CCParticleSun::initWithTotalParticles from 0x180065160 to 0x180065347 (487 bytes) // // 7 xrefs: // > cocos2d::CCParticleSun::createWithTotalParticles @ 0x180063a57 // > cocos2d::CCParticleSun::createWithTotalParticles @ 0x180063a46 // > @ 0x1800fba18 // > @ 0x180139b84 // > @ 0x180139b94 // > @ 0x1801438a8 // > @ 0x1801b3b04 // // 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::CCParticleSun::initWithTotalParticles(cocos2d::CCParticleSun *this, unsigned int a2) { __int64 v3; // rdx cocos2d::CCParticleSun_vtbl *v4; // rax cocos2d::CCParticleSun_vtbl *v5; // rbx float *v6; // rax cocos2d::CCDirector *v7; // rax cocos2d::CCParticleSun_vtbl *v8; // rbx float *v9; // rax signed int m_uTotalParticles; // eax struct cocos2d::CCTexture2D *v11; // rax float v13; // [rsp+40h] [rbp+18h] float v14; // [rsp+44h] [rbp+1Ch] float v15; // [rsp+48h] [rbp+20h] BYREF if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) ) return 0; LOBYTE(v3) = 1; ((void (__fastcall *)(cocos2d::CCParticleSun *, __int64))this->setBlendAdditive)(this, v3); v4 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; this->m_fDuration = -1.0; ((void (__fastcall *)(cocos2d::CCParticleSun *, _QWORD))v4->setEmitterMode)(this, 0); v5 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6 = kmVec2Fill(&v15, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCParticleSun *, float *))v5->setGravity)(this, v6); ((void (__fastcall *)(cocos2d::CCParticleSun *))this->setRadialAccel)(this); ((void (__fastcall *)(cocos2d::CCParticleSun *))this->setRadialAccelVar)(this); ((void (__fastcall *)(cocos2d::CCParticleSun *))this->setSpeed)(this); ((void (__fastcall *)(cocos2d::CCParticleSun *))this->setSpeedVar)(this); this->m_fAngle = 90.0; this->m_fAngleVar = 360.0; v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v7); v8 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v9 = kmVec2Fill(&v15, v13 * 0.5, v14 * 0.5); ((void (__fastcall *)(cocos2d::CCParticleSun *, float *))v8->setPosition_0)(this, v9); ((void (__fastcall *)(cocos2d::CCParticleSun *, void *))this->setPosVar)(this, &unk_1801A8408); m_uTotalParticles = this->m_uTotalParticles; this->m_fLife = 1.0; this->m_fLifeVar = 0.5; this->m_fStartSize = 30.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; this->m_fEmissionRate = (float)m_uTotalParticles; *(_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; v11 = sub_180063AC0(); if ( v11 ) ((void (__fastcall *)(cocos2d::CCTextureProtocol *, struct cocos2d::CCTexture2D *))this->setTexture)( &this->cocos2d::CCTextureProtocol, v11); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source