// // GameManager::updateCustomFPS from 0x10031dd80 to 0x10031de04 (132 bytes) // // 2 xrefs: // > MoreVideoOptionsLayer::onToggle @ 0x1000f2418 // > LoadingLayer::loadAssets @ 0x1001d6a88 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GameManager::updateCustomFPS(GameManager *a1) { GameManager *v2; // x0 float m_customFPSTarget; // s8 cocos2d::CCDirector *v4; // x0 __n128 v5; // q0 v2 = GameManager::sharedState(); if ( GameManager::getGameVariable(v2, "0116") ) { m_customFPSTarget = a1->m_customFPSTarget; v4 = cocos2d::CCDirector::sharedDirector(); if ( m_customFPSTarget <= 60.0 ) v5.n128_u64[0] = 0x3F91111120000000LL; else v5.n128_f64[0] = (float)(1.0 / a1->m_customFPSTarget); ((void (__fastcall *)(cocos2d::CCDirector *, __n128))v4->setAnimationInterval)(v4, v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source