// // cocos2d::CCDirector::toggleShowFPS from 0x100206fe8 to 0x1002070e8 (256 bytes) // // 2 xrefs: // > MoreVideoOptionsLayer::onToggle @ 0x10011624c // > LoadingLayer::loadAssets @ 0x10026efac // // 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 // _DWORD *__fastcall cocos2d::CCDirector::toggleShowFPS(__int64 a1, int a2, __int64 *a3, float *a4) { _DWORD *result; // x0 __int64 v9; // x0 __int64 v10; // x21 __int64 v11; // x0 __int64 v12; // x20 float v13; // [xsp+0h] [xbp-40h] BYREF __int64 v14; // [xsp+8h] [xbp-38h] BYREF result = *(_DWORD **)(a1 + 376); if ( result ) { result = cocos2d::CCObject::release(result); *(_QWORD *)(a1 + 376) = 0; } *(_BYTE *)(a1 + 368) = a2; if ( a2 ) { if ( *((char *)a3 + 23) < 0 ) a3 = (__int64 *)*a3; v9 = cocos2d::CCLabelBMFont::create_1("FPS: 0", a3); *(_QWORD *)(a1 + 376) = v9; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, 0.5); v10 = *(_QWORD *)(a1 + 376); sub_1000262BC((float *)&v14, 0.0, 1.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 296LL))(v10, &v14); cocos2d::CCObject::retain(*(_QWORD *)(a1 + 376)); v11 = cocos2d::CCDirector::sharedDirector(); sub_100026438(&v14, (double *)(v11 + 320)); v12 = *(_QWORD *)(a1 + 376); sub_1000262BC(&v13, *a4 + 1.0, *((float *)&v14 + 1) + a4[1]); return (_DWORD *)(*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 184LL))(v12, &v13); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source