// // cocos2d::CCDirector::toggleShowFPS from 0x7ca768 to 0x7ca83a (210 bytes) // // 5 xrefs: // > LoadingLayer::loadAssets @ 0x3fbf80 // > GraphicsReloadLayer::performReload @ 0x52fd2e // > MoreOptionsLayer::onToggle @ 0x5319d8 // > MoreVideoOptionsLayer::onToggle @ 0x531cc0 // > cocos2d::CCDirector::removeStatsLabel @ 0x7caf8e // // 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:30 +0000 // _DWORD *__fastcall cocos2d::CCDirector::toggleShowFPS(int a1, int a2, int a3, float *a4) { _DWORD *result; // r0 const char *v9; // r2 const char *v10; // r1 int v11; // r0 int v12; // r8 void (__fastcall *v13)(int, float *); // r9 cocos2d::CCDirector *v14; // r0 int v15; // r0 int v16; // r4 int (__fastcall *v17)(int, float *); // r8 _BYTE v18[4]; // [sp+4h] [bp-18h] BYREF float v19; // [sp+8h] [bp-14h] float v20[2]; // [sp+Ch] [bp-10h] BYREF result = *(_DWORD **)(a1 + 280); v9 = (const char *)_stack_chk_guard; if ( result ) { result = cocos2d::CCObject::release(result); *(_DWORD *)(a1 + 280) = 0; } *(_BYTE *)(a1 + 276) = a2; if ( a2 ) { if ( (*(_BYTE *)a3 & 1) != 0 ) v10 = *(const char **)(a3 + 8); else v10 = (const char *)(a3 + 1); v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"FPS: 0", v10, v9); *(_DWORD *)(a1 + 280) = v11; (*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 80))(v11, 1056964608); v12 = *(_DWORD *)(a1 + 280); v13 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v12 + 148); cocos2d::CCPoint::CCPoint(v20, 0.0, 1.0); v13(v12, v20); v14 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(*(_DWORD *)(a1 + 280)); v15 = cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v18, v15); v16 = *(_DWORD *)(a1 + 280); v17 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint(v20, *a4 + 1.0, v19 + a4[1]); return (_DWORD *)v17(v16, v20); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source