// // cocos2d::CCParticleSnow::initWithTotalParticles from 0x180064cf0 to 0x180064f1f (559 bytes) // // 7 xrefs: // > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638b7 // > cocos2d::CCParticleSnow::createWithTotalParticles @ 0x1800638a6 // > @ 0x1800fe728 // > @ 0x180139c88 // > @ 0x180139c98 // > @ 0x1801438a8 // > @ 0x1801b3abc // // 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::CCParticleSnow::initWithTotalParticles(cocos2d::CCParticleSnow *this, unsigned int a2) { cocos2d::CCParticleSnow_vtbl *v3; // rax cocos2d::CCParticleSnow_vtbl *v4; // rbx float *v5; // rax cocos2d::CCDirector *v6; // rax cocos2d::CCParticleSnow_vtbl *v7; // rbx float *v8; // rax cocos2d::CCParticleSnow_vtbl *v9; // rbx float *v10; // rax struct cocos2d::CCTexture2D *v11; // rax float v13; // [rsp+50h] [rbp+18h] float v14; // [rsp+54h] [rbp+1Ch] float v15; // [rsp+58h] [rbp+20h] BYREF if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) ) return 0; v3 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; this->m_fDuration = -1.0; ((void (__fastcall *)(cocos2d::CCParticleSnow *, _QWORD))v3->setEmitterMode)(this, 0); v4 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v5 = kmVec2Fill(&v15, 0.0, -1.0); ((void (__fastcall *)(cocos2d::CCParticleSnow *, float *))v4->setGravity)(this, v5); ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setSpeed)(this); ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setSpeedVar)(this); ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setRadialAccel)(this); ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setRadialAccelVar)(this); ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setTangentialAccel)(this); ((void (__fastcall *)(cocos2d::CCParticleSnow *))this->setTangentialAccelVar)(this); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); v7 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v8 = kmVec2Fill(&v15, v13 * 0.5, v14 + 10.0); ((void (__fastcall *)(cocos2d::CCParticleSnow *, float *))v7->setPosition_0)(this, v8); v9 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v10 = kmVec2Fill(&v15, v13 * 0.5, 0.0); ((void (__fastcall *)(cocos2d::CCParticleSnow *, float *))v9->setPosVar)(this, v10); this->m_fAngle = -90.0; *(_QWORD *)&this->m_tStartColorVar.g = 0; this->m_tStartColorVar.a = 0.0; this->m_fAngleVar = 5.0; this->m_fLife = 45.0; this->m_fLifeVar = 15.0; this->m_fStartSize = 10.0; this->m_fStartSizeVar = 5.0; this->m_fEndSize = -1.0; this->m_fEmissionRate = 10.0; this->m_tStartColor.r = 1.0; this->m_tStartColor.g = 1.0; this->m_tStartColor.b = 1.0; *(_QWORD *)&this->m_tStartColor.a = 1065353216; this->m_tEndColor.r = 1.0; this->m_tEndColor.g = 1.0; *(_QWORD *)&this->m_tEndColor.b = 1065353216; *(_QWORD *)&this->m_tEndColorVar.r = 0; *(_QWORD *)&this->m_tEndColorVar.b = 0; v11 = sub_180063AC0(); if ( v11 ) ((void (__fastcall *)(cocos2d::CCTextureProtocol *, struct cocos2d::CCTexture2D *))this->setTexture)( &this->cocos2d::CCTextureProtocol, v11); ((void (__fastcall *)(cocos2d::CCParticleSnow *, _QWORD))this->setBlendAdditive)(this, 0); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source