// // cocos2d::CCParticleSun::initWithTotalParticles from 0x1800675a0 to 0x18006778a (490 bytes) // // 7 xrefs: // > cocos2d::CCParticleSun::createWithTotalParticles @ 0x180065e77 // > cocos2d::CCParticleSun::createWithTotalParticles @ 0x180065e66 // > @ 0x180101f78 // > @ 0x180142f18 // > @ 0x180142f28 // > @ 0x18014cf68 // > @ 0x1801bde58 // // 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:53 +0000 // char __fastcall cocos2d::CCParticleSun::initWithTotalParticles(cocos2d::CCParticleSun *this, unsigned int a2) { __int64 v3; // rdx __int64 v4; // rax __int64 v5; // rbx float *v6; // rax struct cocos2d::CCDirector *v7; // rax __int64 v8; // rbx float *v9; // rax int v10; // eax struct cocos2d::CCTexture2D *v11; // rax float v13; // [rsp+40h] [rbp+18h] BYREF float v14; // [rsp+44h] [rbp+1Ch] float v15; // [rsp+48h] [rbp+20h] BYREF if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) ) return 0; LOBYTE(v3) = 1; (*(void (__fastcall **)(cocos2d::CCParticleSun *, __int64))(*(_QWORD *)this + 1272LL))(this, v3); v4 = *(_QWORD *)this; *((_DWORD *)this + 117) = -1082130432; (*(void (__fastcall **)(cocos2d::CCParticleSun *, _QWORD))(v4 + 1560))(this, 0); v5 = *(_QWORD *)this; v6 = kmVec2Fill(&v15, 0.0, 0.0); (*(void (__fastcall **)(cocos2d::CCParticleSun *, float *))(v5 + 1040))(this, v6); (*(void (__fastcall **)(cocos2d::CCParticleSun *))(*(_QWORD *)this + 1120LL))(this); (*(void (__fastcall **)(cocos2d::CCParticleSun *))(*(_QWORD *)this + 1136LL))(this); (*(void (__fastcall **)(cocos2d::CCParticleSun *))(*(_QWORD *)this + 1056LL))(this); (*(void (__fastcall **)(cocos2d::CCParticleSun *))(*(_QWORD *)this + 1072LL))(this); *((_DWORD *)this + 124) = 1119092736; *((_DWORD *)this + 125) = 1135869952; v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v7, &v13); v8 = *(_QWORD *)this; v9 = kmVec2Fill(&v15, v13 * 0.5, v14 * 0.5); (*(void (__fastcall **)(cocos2d::CCParticleSun *, float *))(v8 + 184))(this, v9); (*(void (__fastcall **)(cocos2d::CCParticleSun *, void *))(*(_QWORD *)this + 952LL))(this, &unk_1801B2448); v10 = *((_DWORD *)this + 167); *((_DWORD *)this + 122) = 1065353216; *((_DWORD *)this + 123) = 1056964608; *((_DWORD *)this + 142) = 1106247680; *((_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; *((float *)this + 166) = (float)v10; *(_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; v11 = sub_180065EE0(); if ( v11 ) (*(void (__fastcall **)(char *, struct cocos2d::CCTexture2D *))(*((_QWORD *)this + 40) + 24LL))( (char *)this + 320, v11); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source