// // cocos2d::CCParticleSmoke::initWithTotalParticles from 0x7e1ed0 to 0x7e2042 (370 bytes) // // 1 xrefs: // > cocos2d::CCParticleSmoke::createWithTotalParticles @ 0x7e2b6a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:50 +0000 // int __fastcall cocos2d::CCParticleSmoke::initWithTotalParticles(cocos2d::CCParticleSmoke *this, unsigned int a2) { int v3; // r8 int v4; // r3 void (__fastcall *v5)(cocos2d::CCParticleSmoke *, float *); // r10 cocos2d::CCDirector *v6; // r0 int v7; // r0 void (__fastcall *v8)(cocos2d::CCParticleSmoke *, float *); // r10 int (__fastcall *v9)(cocos2d::CCParticleSmoke *, float *); // r10 cocos2d::CCTextureCache *v10; // r0 unsigned int v11; // s15 int v12; // r1 float v14[2]; // [sp+4h] [bp-14h] BYREF float v15[2]; // [sp+Ch] [bp-Ch] BYREF v3 = cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0); if ( v3 ) { v4 = *(_DWORD *)this; *((_DWORD *)this + 95) = -1082130432; (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, _DWORD))(v4 + 800))(this, 0); v5 = *(void (__fastcall **)(cocos2d::CCParticleSmoke *, float *))(*(_DWORD *)this + 524); cocos2d::CCPoint::CCPoint(v15, 0.0, 0.0); v5(this, v15); (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, _DWORD))(*(_DWORD *)this + 564))(this, 0); (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, _DWORD))(*(_DWORD *)this + 572))(this, 0); (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, int))(*(_DWORD *)this + 532))(this, 1103626240); v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCParticleSmoke *, int))(*(_DWORD *)this + 540))( this, 1092616192); *((_DWORD *)this + 102) = 1119092736; *((_DWORD *)this + 103) = 1084227584; v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14, v7); v8 = *(void (__fastcall **)(cocos2d::CCParticleSmoke *, float *))(*(_DWORD *)this + 92); cocos2d::CCPoint::CCPoint(v15, v14[0] * 0.5, 0.0); v8(this, v15); v9 = *(int (__fastcall **)(cocos2d::CCParticleSmoke *, float *))(*(_DWORD *)this + 480); cocos2d::CCPoint::CCPoint(v15, 20.0, 0.0); v10 = (cocos2d::CCTextureCache *)v9(this, v15); v11 = *((_DWORD *)this + 145); *((_DWORD *)this + 122) = -1082130432; *((_DWORD *)this + 120) = 1114636288; *((_DWORD *)this + 100) = 1082130432; *((_DWORD *)this + 131) = 0; *((_DWORD *)this + 121) = 1092616192; *((_DWORD *)this + 101) = 1065353216; *((_DWORD *)this + 127) = 1065353216; *((_DWORD *)this + 124) = 1061997773; *((_DWORD *)this + 125) = 1061997773; *((_DWORD *)this + 126) = 1061997773; *((float *)this + 144) = vcvts_n_f32_u32(v11, 2u); *((_DWORD *)this + 132) = 0; *((_DWORD *)this + 128) = 1017370378; *((_DWORD *)this + 129) = 1017370378; *((_DWORD *)this + 130) = 1017370378; *((_DWORD *)this + 133) = 0; *((_DWORD *)this + 134) = 0; *((_DWORD *)this + 135) = 1065353216; *((_DWORD *)this + 136) = 0; *((_DWORD *)this + 137) = 0; *((_DWORD *)this + 138) = 0; *((_DWORD *)this + 139) = 0; v12 = sub_7E10F8(v10); if ( v12 ) (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, int))(*(_DWORD *)this + 760))(this, v12); (*(void (__fastcall **)(cocos2d::CCParticleSmoke *, _DWORD))(*(_DWORD *)this + 640))(this, 0); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source