// // cocos2d::CCDirector::applySmoothFix from 0x5c2e00 to 0x5c2e58 (88 bytes) // // 1 xrefs: // > cocos2d::CCDirector::calculateDeltaTime @ 0x5c2ed8 // // 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 cocos2d::CCDirector::applySmoothFix(cocos2d::CCDirector *a1) { float m_dAnimationInterval; // s14 int m_nSmoothFixCounter; // r3 int v3; // r3 if ( a1->m_bSmoothFix && a1->m_bSmoothFixCheck ) { m_dAnimationInterval = a1->m_dAnimationInterval; m_nSmoothFixCounter = a1->m_nSmoothFixCounter; if ( fabsf(a1->m_fDeltaTime - m_dAnimationInterval) <= (float)(m_dAnimationInterval * 0.05) ) v3 = m_nSmoothFixCounter - 2; else v3 = m_nSmoothFixCounter + 1; if ( v3 >= 100 ) v3 = 100; if ( v3 < -100 ) v3 = -100; a1->m_nSmoothFixCounter = v3; if ( v3 <= 0 ) a1->m_fDeltaTime = m_dAnimationInterval; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source