// // cocos2d::CCParticleSun::initWithTotalParticles from 0x7e1450 to 0x7e15cc (380 bytes) // // 1 xrefs: // > cocos2d::CCParticleSun::createWithTotalParticles @ 0x7e27f2 // // 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:49 +0000 // int __fastcall cocos2d::CCParticleSun::initWithTotalParticles(cocos2d::CCParticleSun *this, unsigned int a2) { int v3; // r8 int v4; // r3 void (__fastcall *v5)(cocos2d::CCParticleSun *, float *); // r10 cocos2d::CCDirector *v6; // r0 int v7; // r0 void (__fastcall *v8)(cocos2d::CCParticleSun *, float *); // r10 cocos2d::CCTextureCache *v9; // r0 unsigned int v10; // s15 int v11; // r1 float v13[2]; // [sp+4h] [bp-14h] BYREF float v14[2]; // [sp+Ch] [bp-Ch] BYREF v3 = cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0); if ( v3 ) { (*(void (__fastcall **)(cocos2d::CCParticleSun *, int))(*(_DWORD *)this + 640))(this, 1); v4 = *(_DWORD *)this; *((_DWORD *)this + 95) = -1082130432; (*(void (__fastcall **)(cocos2d::CCParticleSun *, _DWORD))(v4 + 800))(this, 0); v5 = *(void (__fastcall **)(cocos2d::CCParticleSun *, float *))(*(_DWORD *)this + 524); cocos2d::CCPoint::CCPoint(v14, 0.0, 0.0); v5(this, v14); (*(void (__fastcall **)(cocos2d::CCParticleSun *, _DWORD))(*(_DWORD *)this + 564))(this, 0); (*(void (__fastcall **)(cocos2d::CCParticleSun *, _DWORD))(*(_DWORD *)this + 572))(this, 0); (*(void (__fastcall **)(cocos2d::CCParticleSun *, int))(*(_DWORD *)this + 532))(this, 1101004800); v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCParticleSun *, int))(*(_DWORD *)this + 540))( this, 1084227584); *((_DWORD *)this + 102) = 1119092736; *((_DWORD *)this + 103) = 1135869952; v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13, v7); v8 = *(void (__fastcall **)(cocos2d::CCParticleSun *, float *))(*(_DWORD *)this + 92); cocos2d::CCPoint::CCPoint(v14, v13[0] * 0.5, v13[1] * 0.5); v8(this, v14); v9 = (cocos2d::CCTextureCache *)(*(int (__fastcall **)(cocos2d::CCParticleSun *, void *))(*(_DWORD *)this + 480))( this, &unk_D2F53C); v10 = *((_DWORD *)this + 145); *((_DWORD *)this + 122) = -1082130432; *((_DWORD *)this + 120) = 1106247680; *((_DWORD *)this + 100) = 1065353216; *((float *)this + 101) = 0.5; *((_DWORD *)this + 121) = 1092616192; *((_DWORD *)this + 127) = 1065353216; *((_DWORD *)this + 128) = 0; *((_DWORD *)this + 124) = 1061326684; *((_DWORD *)this + 125) = 1048576000; *((float *)this + 144) = (float)v10; *((_DWORD *)this + 129) = 0; *((_DWORD *)this + 126) = 1039516303; *((_DWORD *)this + 130) = 0; *((_DWORD *)this + 131) = 0; *((_DWORD *)this + 132) = 0; *((_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; v11 = sub_7E10F8(v9); if ( v11 ) (*(void (__fastcall **)(cocos2d::CCParticleSun *, int))(*(_DWORD *)this + 760))(this, v11); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source