// // cocos2d::CCDirector::applySmoothFix from 0x1800bdf90 to 0x1800be012 (130 bytes) // // 2 xrefs: // > cocos2d::CCDirector::calculateDeltaTime @ 0x1800be0ad // > @ 0x1801438a8 // // 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 cocos2d::CCDirector::applySmoothFix(cocos2d::CCDirector *this) { int m_nSmoothFixCounter; // edx float m_dAnimationInterval; // xmm2_4 int v3; // eax int v4; // edx if ( this->m_bSmoothFix && this->m_bSmoothFixCheck ) { m_nSmoothFixCounter = this->m_nSmoothFixCounter; m_dAnimationInterval = this->m_dAnimationInterval; v3 = m_nSmoothFixCounter - 2; v4 = m_nSmoothFixCounter + 1; if ( fabs(this->m_fDeltaTime - m_dAnimationInterval) <= (float)(m_dAnimationInterval * 0.050000001) ) v4 = v3; if ( v4 >= 100 ) { v4 = 100; } else if ( v4 <= -100 ) { this->m_fDeltaTime = m_dAnimationInterval; this->m_nSmoothFixCounter = -100; return; } this->m_nSmoothFixCounter = v4; if ( v4 <= 0 ) this->m_fDeltaTime = m_dAnimationInterval; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source