// // cocos2d::CCDirector::showFPSLabel from 0x1800c35d0 to 0x1800c3691 (193 bytes) // // 3 xrefs: // > cocos2d::CCDirector::drawScene @ 0x1800c1c92 // > @ 0x18014cf68 // > @ 0x1801c36a8 // // 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:22:26 +0000 // void __fastcall cocos2d::CCDirector::showFPSLabel(cocos2d::CCDirector *this) { int v2; // eax float v3; // xmm1_4 float v4; // xmm0_4 if ( *((_QWORD *)this + 47) ) { v2 = *((_DWORD *)this + 66) + 1; v3 = *((float *)this + 42) + *((float *)this + 55); *((_DWORD *)this + 66) = v2; *((float *)this + 55) = v3; if ( v3 > 0.1 ) { *((_DWORD *)this + 66) = 0; *((_DWORD *)this + 55) = 0; v4 = (float)v2 / v3; *((float *)this + 57) = v4; roundf(v4); sub_1800C3B80(*((char **)this + 42), 0x10u, "FPS: %i"); (**(void (__fastcall ***)(__int64, _QWORD))(*((_QWORD *)this + 47) + 360LL))( *((_QWORD *)this + 47) + 360LL, *((_QWORD *)this + 42)); } (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 744LL))(*((_QWORD *)this + 47)); } }