// // cocos2d::CCParticleFire::initWithTotalParticles from 0x100485030 to 0x1004851ca (410 bytes) // // 3 xrefs: // > cocos2d::CCParticleFire::create @ 0x100484f6c // > cocos2d::CCParticleFire::createWithTotalParticles @ 0x100484fed // > @ 0x10093da28 // // 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 // bool __fastcall cocos2d::CCParticleFire::initWithTotalParticles(cocos2d::CCParticleFire *a1, unsigned int a2) { bool result; // al bool v3; // r15 __int64 v4; // rax double v5; // [rsp+8h] [rbp-28h] BYREF double v6[4]; // [rsp+10h] [rbp-20h] BYREF result = cocos2d::CCParticleSystemQuad::initWithTotalParticles(a1, a2, 0); if ( result ) { v3 = result; a1->m_fDuration = -1.0; a1->m_nEmitterMode = 0; sub_10028CBE0((float *)v6, 0.0, 0.0); sub_10028CC90(&a1->modeA.gravity, v6); *(_QWORD *)&a1->modeA.radialAccel = 0; *(_QWORD *)&a1->modeA.speed = 0x41A0000042700000LL; *(_QWORD *)&a1->m_fAngle = 0x4120000042B40000LL; cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v6); sub_10028CBE0((float *)&v5, *(float *)v6 * 0.5, 60.0); ((void (__fastcall *)(cocos2d::CCParticleFire *, double *))a1->setPosition)(a1, &v5); sub_10028CBE0((float *)&v5, 40.0, 20.0); sub_10028CC90(&a1->m_tPosVar, &v5); *(_QWORD *)&a1->m_fLife = 0x3E80000040400000LL; *(_QWORD *)&a1->m_fStartSize = 0x4120000042580000LL; a1->m_fEndSize = -1.0; a1->m_fEmissionRate = (float)(int)a1->m_uTotalParticles / 3.0; a1->m_tStartColor = (cocos2d::ccColor4F)xmmword_10081CB90; a1->m_tStartColorVar = 0; *(_OWORD *)&a1->m_tStartColorVar.a = 0; a1->m_tEndColor.a = 1.0; a1->m_tEndColorVar = 0; v4 = sub_1004851D0(); if ( v4 ) ((void (__fastcall *)(cocos2d::CCParticleFire *, __int64))a1->setTexture)(a1, v4); ((void (__fastcall *)(cocos2d::CCParticleFire *, __int64))a1->setBlendAdditive)(a1, 1); return v3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source