// // cocos2d::CCDirector::showFPSLabel from 0x100206e60 to 0x100206f18 (184 bytes) // // 1 xrefs: // > cocos2d::CCDirector::drawScene @ 0x100206c24 // // This function is hookable on this platform (idp: arm, 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:00:57 +0000 // __int64 __fastcall cocos2d::CCDirector::showFPSLabel(__int64 a1) { __int64 result; // x0 unsigned int v3; // w8 float v4; // s0 float v5; // s0 result = *(_QWORD *)(a1 + 376); if ( result ) { v3 = *(_DWORD *)(a1 + 264) + 1; *(_DWORD *)(a1 + 264) = v3; v4 = *(float *)(a1 + 168) + *(float *)(a1 + 220); *(float *)(a1 + 220) = v4; if ( v4 > 0.1 ) { v5 = (float)v3 / v4; *(float *)(a1 + 228) = v5; *(_DWORD *)(a1 + 264) = 0; *(_DWORD *)(a1 + 220) = 0; snprintf(*(char **)(a1 + 336), 0x10u, "FPS: %i", llroundf(v5)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 376) + 928LL))( *(_QWORD *)(a1 + 376), *(_QWORD *)(a1 + 336)); result = *(_QWORD *)(a1 + 376); } return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 752LL))(result); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source