// // cocos2d::CCParticleFire::initWithTotalParticles from 0xd6b9ac to 0xd6bb88 (476 bytes) // // 4 xrefs: // > cocos2d::CCParticleFire::create @ 0xd6d698 // > cocos2d::CCParticleFire::createWithTotalParticles @ 0xd6d724 // > @ 0xd8310 // > @ 0x1528190 // // This function is hookable on this platform (idp: arm, 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 13:07:56 +0000 // __int64 __fastcall cocos2d::CCParticleFire::initWithTotalParticles(cocos2d::CCParticleFire *this, unsigned int a2) { unsigned __int8 v3; // w0 unsigned int v4; // w22 cocos2d::CCDirector *v6; // x0 void (__fastcall *v7)(cocos2d::CCParticleFire *, float *); // x23 float v8; // s0 __int64 v9; // x1 __int64 v10; // [xsp+78h] [xbp+78h] BYREF float v11; // [xsp+80h] [xbp+80h] BYREF v3 = cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0); v4 = v3; if ( v3 ) { *((_DWORD *)this + 173) = 0; *((float *)this + 115) = -1.0; cocos2d::CCPoint::CCPoint(&v11, 0.0, 0.0); cocos2d::CCPoint::operator=((float *)this + 89, &v11); *((_DWORD *)this + 95) = 0; *((_DWORD *)this + 96) = 0; *((float *)this + 92) = 20.0; *((float *)this + 123) = 10.0; *((_DWORD *)this + 91) = 1114636288; *((_DWORD *)this + 122) = 1119092736; v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)0x42B40000); cocos2d::CCDirector::getWinSize(&v10, v6); v7 = *(void (__fastcall **)(cocos2d::CCParticleFire *, float *))(*(_QWORD *)this + 184LL); cocos2d::CCPoint::CCPoint(&v11, *(float *)&v10 * 0.5, 60.0); v7(this, &v11); cocos2d::CCPoint::CCPoint(&v11, 40.0, 20.0); cocos2d::CCPoint::operator=((float *)this + 118, &v11); v8 = (float)*((unsigned int *)this + 165); *((float *)this + 120) = 3.0; *((_DWORD *)this + 140) = 1113063424; *((float *)this + 121) = 0.25; *((float *)this + 141) = 10.0; *((float *)this + 142) = -1.0; *((_DWORD *)this + 144) = 1061326684; *((float *)this + 145) = 0.25; *((float *)this + 147) = 1.0; *((_DWORD *)this + 148) = 0; *((_DWORD *)this + 146) = 1039516303; *((_DWORD *)this + 149) = 0; *((_DWORD *)this + 150) = 0; *((float *)this + 164) = v8 / 3.0; *((_DWORD *)this + 151) = 0; *((_DWORD *)this + 152) = 0; *((_DWORD *)this + 153) = 0; *((_DWORD *)this + 154) = 0; *((float *)this + 155) = 1.0; *((_DWORD *)this + 156) = 0; *((_DWORD *)this + 157) = 0; *((_DWORD *)this + 158) = 0; *((_DWORD *)this + 159) = 0; v9 = sub_D6B8F8((cocos2d::CCTextureCache *)0x3DF5C28F); if ( v9 ) (*(void (__fastcall **)(cocos2d::CCParticleFire *, __int64))(*(_QWORD *)this + 1520LL))(this, v9); (*(void (__fastcall **)(cocos2d::CCParticleFire *, __int64))(*(_QWORD *)this + 1280LL))(this, 1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source