// // cocos2d::CCParticleFlower::initWithTotalParticles from 0x5d9308 to 0x5d9498 (400 bytes) // // 1 xrefs: // > cocos2d::CCParticleFlower::createWithTotalParticles @ 0x5da466 // // 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 cocos2d::CCParticleFlower::initWithTotalParticles(cocos2d::CCParticleFlower *a1, unsigned int a2) { _BOOL4 v3; // r8 cocos2d::CCParticleFlower_vtbl *v4; // r3 void (__fastcall *setGravity)(cocos2d::CCParticleSystem *__hidden, const cocos2d::CCPoint *); // r10 cocos2d::CCDirector *v6; // r0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 unsigned int m_uTotalParticles; // s15 cocos2d::CCTexture2D *v9; // r1 cocos2d::CCSize v11; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF v3 = cocos2d::CCParticleSystemQuad::initWithTotalParticles(a1, a2, 0); if ( v3 ) { v4 = a1->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_fDuration = -1.0; v4->setEmitterMode(a1, 0); setGravity = a1->setGravity; cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0); setGravity(a1, &v12); ((void (__fastcall *)(cocos2d::CCParticleFlower *, int))a1->setSpeed)(a1, 1117782016); ((void (__fastcall *)(cocos2d::CCParticleFlower *, int))a1->setSpeedVar)(a1, 1092616192); ((void (__fastcall *)(cocos2d::CCParticleFlower *, int))a1->setRadialAccel)(a1, -1032847360); ((void (__fastcall *)(cocos2d::CCParticleFlower *, _DWORD))a1->setRadialAccelVar)(a1, 0); ((void (__fastcall *)(cocos2d::CCParticleFlower *, int))a1->setTangentialAccel)(a1, 1097859072); ((void (__fastcall *)(cocos2d::CCParticleFlower *, _DWORD))a1->setTangentialAccelVar)(a1, 0); a1->m_fAngle = 90.0; a1->m_fAngleVar = 360.0; v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v11, v6); setPosition = a1->setPosition; cocos2d::CCPoint::CCPoint(&v12, v11.width * 0.5, v11.height * 0.5); setPosition(a1, &v12); a1->setPosVar(a1, &stru_AC8DEC); m_uTotalParticles = a1->m_uTotalParticles; a1->m_fEndSize = -1.0; a1->m_fLife = 4.0; a1->m_fStartSize = 30.0; a1->m_fLifeVar = 1.0; a1->m_tStartColor.r = 0.5; a1->m_fStartSizeVar = 10.0; a1->m_tStartColor.a = 1.0; a1->m_tStartColor.g = 0.5; a1->m_tEndColor.r = 0.0; a1->m_tEndColor.g = 0.0; a1->m_fEmissionRate = vcvts_n_f32_u32(m_uTotalParticles, 2u); a1->m_tEndColor.b = 0.0; a1->m_tEndColor.a = 1.0; a1->m_tStartColor.b = 0.5; a1->m_tEndColorVar.r = 0.0; a1->m_tEndColorVar.g = 0.0; a1->m_tStartColorVar.r = 0.5; a1->m_tEndColorVar.b = 0.0; a1->m_tEndColorVar.a = 0.0; a1->m_tStartColorVar.g = 0.5; a1->m_tStartColorVar.b = 0.5; a1->m_tStartColorVar.a = 0.5; v9 = sub_5D8C44(); if ( v9 ) a1->setTexture(a1, v9); a1->setBlendAdditive(a1, 1); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source