// // MenuGameLayer::destroyPlayer from 0x492c6c to 0x492e18 (428 bytes) // // 1 xrefs: // > MenuGameLayer::ccTouchBegan @ 0x492eaa // // 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 11:49:38 +0000 // int __fastcall MenuGameLayer::destroyPlayer(MenuGameLayer *this) { const char *v2; // r5 GameStatsManager *v3; // r0 FMODAudioEngine *v4; // r0 FMODAudioEngine *v5; // r6 _BYTE *v6; // r0 _DWORD *v7; // r3 int v8; // t1 char v9; // r5 bool v10; // r2 cocos2d::CCParticleSystem *v11; // r5 void (__fastcall *v12)(cocos2d::CCParticleSystem *, int); // r6 int v13; // r0 void (__fastcall *v14)(cocos2d::CCParticleSystem *, float *); // r11 unsigned __int8 *v15; // r3 int v16; // r8 int v17; // r6 int v18; // r7 CCCircleWave *v19; // r0 _BYTE *v20; // r3 char v21; // r2 char v22; // r1 CCCircleWave *v23; // r5 void (__fastcall *v24)(CCCircleWave *, int); // r6 int v25; // r0 bool v27; // [sp+0h] [bp-2Ch] _DWORD v28[2]; // [sp+8h] [bp-24h] BYREF void *v29; // [sp+10h] [bp-1Ch] float v30[4]; // [sp+14h] [bp-18h] BYREF v2 = "explode_11.ogg"; *((_BYTE *)this + 324) = 1; v3 = (GameStatsManager *)GameStatsManager::sharedState(this); v4 = (FMODAudioEngine *)GameStatsManager::incrementStat(v3, (const char *)&a1i2r3e45s789g[11]); v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4); v6 = (_BYTE *)operator new(0x10u); v28[0] = 17; v28[1] = 14; v7 = v6; v29 = v6; do { v8 = *(_DWORD *)v2; v2 += 4; *v7++ = v8; } while ( v2 != "gg" ); *(_WORD *)v7 = *(_WORD *)v2; v6[14] = 0; v9 = v28[0]; FMODAudioEngine::playEffect(v5, (int)v28, 1065353216, 0, 1056964608); v10 = 0; if ( (v9 & 1) != 0 ) operator delete(v29); v11 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"explodeEffect.plist", nullptr, v10); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v11 + 784))(v11, 2); (*(void (__fastcall **)(MenuGameLayer *, cocos2d::CCParticleSystem *, int))(*(_DWORD *)this + 232))(this, v11, 1); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v11 + 792))(v11, 1); v12 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v11 + 92); v13 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 85) + 96))(*((_DWORD *)this + 85)); v12(v11, v13); v14 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v11 + 680); v15 = *((unsigned __int8 **)this + 85); v16 = v15[2106]; v17 = v15[2108]; v18 = v15[2107]; v30[3] = 1.0; v30[0] = (float)v16 / 255.0; v30[1] = (float)v18 / 255.0; v30[2] = (float)v17 / 255.0; v14(v11, v30); cocos2d::CCParticleSystem::resetSystem(v11); v19 = CCCircleWave::create((CCCircleWave *)0x41200000, 1119092736, (cocos2d::CCActionTween *)0x3F000000, 0.0, v27); v20 = *((_BYTE **)this + 85); v21 = v20[2107]; v22 = v20[2106]; LOBYTE(v20) = v20[2108]; v23 = v19; *((_BYTE *)v19 + 281) = v21; *((_BYTE *)v19 + 280) = v22; *((_BYTE *)v19 + 282) = (_BYTE)v20; v24 = *(void (__fastcall **)(CCCircleWave *, int))(*(_DWORD *)v19 + 92); v25 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 85) + 96))(*((_DWORD *)this + 85)); v24(v23, v25); (*(void (__fastcall **)(MenuGameLayer *, CCCircleWave *, _DWORD))(*(_DWORD *)this + 232))(this, v23, 0); return MenuGameLayer::resetPlayer(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source