// // cocos2d::CCParticleExplosion::initWithTotalParticles from 0x7e1cfc to 0x7e1e9c (416 bytes) // // 1 xrefs: // > cocos2d::CCParticleExplosion::createWithTotalParticles @ 0x7e2ad6 // // 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::CCParticleExplosion::initWithTotalParticles( cocos2d::CCParticleExplosion *this, unsigned int a2) { int v3; // r8 int v4; // r3 void (__fastcall *v5)(cocos2d::CCParticleExplosion *, float *); // r10 cocos2d::CCDirector *v6; // r0 int v7; // r0 void (__fastcall *v8)(cocos2d::CCParticleExplosion *, float *); // r10 cocos2d::CCTextureCache *v9; // r0 unsigned int v10; // s15 float v11; // s14 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) = 1036831949; (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, _DWORD))(v4 + 800))(this, 0); v5 = *(void (__fastcall **)(cocos2d::CCParticleExplosion *, float *))(*(_DWORD *)this + 524); cocos2d::CCPoint::CCPoint(v15, 0.0, 0.0); v5(this, v15); (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, int))(*(_DWORD *)this + 532))(this, 1116471296); (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, int))(*(_DWORD *)this + 540))(this, 1109393408); (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, _DWORD))(*(_DWORD *)this + 564))(this, 0); (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, _DWORD))(*(_DWORD *)this + 572))(this, 0); (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, _DWORD))(*(_DWORD *)this + 548))(this, 0); v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCParticleExplosion *, _DWORD))(*(_DWORD *)this + 556))( this, 0); *((_DWORD *)this + 102) = 1119092736; *((_DWORD *)this + 103) = 1135869952; v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14, v7); v8 = *(void (__fastcall **)(cocos2d::CCParticleExplosion *, float *))(*(_DWORD *)this + 92); cocos2d::CCPoint::CCPoint(v15, v14[0] * 0.5, v14[1] * 0.5); v8(this, v15); v9 = (cocos2d::CCTextureCache *)(*(int (__fastcall **)(cocos2d::CCParticleExplosion *, void *))(*(_DWORD *)this + 480))( this, &unk_D2F53C); v10 = *((_DWORD *)this + 145); *((_DWORD *)this + 125) = 1036831949; v11 = *((float *)this + 95); *((_DWORD *)this + 100) = 1084227584; *((_DWORD *)this + 101) = 0x40000000; *((float *)this + 128) = 0.5; *((_DWORD *)this + 131) = 0; *((_DWORD *)this + 120) = 1097859072; *((float *)this + 129) = 0.5; *((_DWORD *)this + 135) = 0; *((_DWORD *)this + 121) = 1092616192; *((float *)this + 130) = 0.5; *((_DWORD *)this + 139) = 0; *((_DWORD *)this + 122) = -1082130432; *((float *)this + 132) = 0.5; *((_DWORD *)this + 124) = 1060320051; *((float *)this + 133) = 0.5; *((_DWORD *)this + 126) = 1045220557; *((float *)this + 134) = 0.5; *((_DWORD *)this + 127) = 1065353216; *((float *)this + 136) = 0.5; *((float *)this + 137) = 0.5; *((float *)this + 138) = 0.5; *((float *)this + 144) = (float)v10 / v11; v12 = sub_7E10F8(v9); if ( v12 ) (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, int))(*(_DWORD *)this + 760))(this, v12); (*(void (__fastcall **)(cocos2d::CCParticleExplosion *, _DWORD))(*(_DWORD *)this + 640))(this, 0); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source