//
// GameManager::updateCustomFPS from 0x5f1340 to 0x5f13c4 (132 bytes)
//
// 4 xrefs:
// > LoadingLayer::loadAssets @ 0x5c499c
// > MoreVideoOptionsLayer::onToggle @ 0x7d0f90
// > MoreVideoOptionsLayer::onApplyFPS @ 0x7d11cc
// > ??> @ 0x76a58
//
// 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 GameManager::updateCustomFPS(GameManager *a1)
{
GameManager *v2; // x0
cocos2d::CCDirector *v3; // x0
cocos2d::CCDirector *v4; // x0
v2 = GameManager::sharedState();
if ( GameManager::getGameVariable(v2, "0116") )
{
if ( a1->m_customFPSTarget > 60.0 )
{
v4 = cocos2d::CCDirector::sharedDirector();
v4->setAnimationInterval(v4, (float)(1.0 / a1->m_customFPSTarget));
}
else
{
v3 = cocos2d::CCDirector::sharedDirector();
v3->setAnimationInterval(v3, 0.0166666675);
}
}
}