// // cocos2d::CCDirector::showFPSLabel from 0x7ca1b4 to 0x7ca240 (140 bytes) // // 1 xrefs: // > cocos2d::CCDirector::drawScene @ 0x7caea2 // // 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:29 +0000 // int __fastcall cocos2d::CCDirector::showFPSLabel(int this) { int v1; // r4 float v2; // s15 float v3; // s13 int v4; // r3 float v5; // s15 int v6; // r5 int v7; // r0 v1 = this; if ( *(_DWORD *)(this + 280) ) { v2 = *(float *)(this + 180); v3 = *(float *)(this + 132); v4 = *(_DWORD *)(this + 212) + 1; *(_DWORD *)(this + 212) = v4; v5 = v2 + v3; *(float *)(this + 180) = v5; if ( v5 > 0.1 ) { v6 = *(_DWORD *)(this + 260); *(_DWORD *)(this + 212) = 0; *(_DWORD *)(this + 180) = 0; *(float *)(this + 188) = (float)(unsigned int)v4 / v5; v7 = lroundf(); sub_993B88(v6, 16, "FPS: %i", v7); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v1 + 280) + 464))( *(_DWORD *)(v1 + 280), *(_DWORD *)(v1 + 260)); } return (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 280) + 376))(*(_DWORD *)(v1 + 280)); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source