// // cocos2d::CCParticleFire::initWithTotalParticles from 0x180066270 to 0x180066449 (473 bytes) // // 7 xrefs: // > cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065727 // > cocos2d::CCParticleFire::createWithTotalParticles @ 0x180065716 // > @ 0x180101278 // > @ 0x180142e7c // > @ 0x180142e8c // > @ 0x18014cf68 // > @ 0x1801bdd14 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:52 +0000 // char __fastcall cocos2d::CCParticleFire::initWithTotalParticles(cocos2d::CCParticleFire *this, unsigned int a2) { float *v3; // rax struct cocos2d::CCDirector *v4; // rax __int64 v5; // rbx float *v6; // rax float *v7; // rax int v8; // eax struct cocos2d::CCTexture2D *v9; // rax __int64 v10; // rdx float v12; // [rsp+40h] [rbp+18h] BYREF float v13; // [rsp+48h] [rbp+20h] BYREF if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) ) return 0; *((_DWORD *)this + 117) = -1082130432; *((_DWORD *)this + 175) = 0; v3 = kmVec2Fill(&v13, 0.0, 0.0); cocos2d::CCSize::operator=((_DWORD *)this + 91, v3); *(_QWORD *)((char *)this + 388) = 0; *((_DWORD *)this + 93) = 1114636288; *((_DWORD *)this + 94) = 1101004800; *((_DWORD *)this + 124) = 1119092736; *((_DWORD *)this + 125) = 1092616192; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4, &v12); v5 = *(_QWORD *)this; v6 = kmVec2Fill(&v13, v12 * 0.5, 60.0); (*(void (__fastcall **)(cocos2d::CCParticleFire *, float *))(v5 + 184))(this, v6); v7 = kmVec2Fill(&v13, 40.0, 20.0); cocos2d::CCSize::operator=((_DWORD *)this + 120, v7); v8 = *((_DWORD *)this + 167); *((_DWORD *)this + 122) = 1077936128; *((_DWORD *)this + 123) = 1048576000; *((_DWORD *)this + 142) = 1113063424; *((_DWORD *)this + 143) = 1092616192; *((_DWORD *)this + 144) = -1082130432; *((_DWORD *)this + 146) = 1061326684; *((_DWORD *)this + 147) = 1048576000; *((_DWORD *)this + 148) = 1039516303; *(_QWORD *)((char *)this + 596) = 1065353216; *(_QWORD *)((char *)this + 604) = 0; *(_QWORD *)((char *)this + 612) = 0; *(_QWORD *)((char *)this + 620) = 0; *(_QWORD *)((char *)this + 628) = 1065353216; *(_QWORD *)((char *)this + 636) = 0; *((_DWORD *)this + 161) = 0; *((float *)this + 166) = (float)v8 / 3.0; v9 = sub_180065EE0(); if ( v9 ) (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))( (char *)this + 320, v9); LOBYTE(v10) = 1; (*(void (__fastcall **)(cocos2d::CCParticleFire *, __int64))(*(_QWORD *)this + 1272LL))(this, v10); return 1; }