// // cocos2d::CCDirector::applySmoothFix from 0x1800c17b0 to 0x1800c1832 (130 bytes) // // 2 xrefs: // > cocos2d::CCDirector::calculateDeltaTime @ 0x1800c18cd // > @ 0x18014cf68 // // This function is hookable on this platform (idp: pc, 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:22:25 +0000 // void __fastcall cocos2d::CCDirector::applySmoothFix(cocos2d::CCDirector *this) { int v1; // edx float v2; // xmm2_4 int v3; // eax int v4; // edx if ( *((_BYTE *)this + 177) && *((_BYTE *)this + 178) ) { v1 = *((_DWORD *)this + 45); v2 = *((double *)this + 25); v3 = v1 - 2; v4 = v1 + 1; if ( fabs(*((float *)this + 42) - v2) <= (float)(v2 * 0.050000001) ) v4 = v3; if ( v4 >= 100 ) { v4 = 100; } else if ( v4 <= -100 ) { *((float *)this + 42) = v2; *((_DWORD *)this + 45) = -100; return; } *((_DWORD *)this + 45) = v4; if ( v4 <= 0 ) *((float *)this + 42) = v2; } }