// // cocos2d::CCDirector::calculateDeltaTime from 0xd48d80 to 0xd48e68 (232 bytes) // // 2 xrefs: // > cocos2d::CCDirector::drawScene @ 0xd4a1e0 // > @ 0x47a88 // // This function is hookable on this platform (idp: arm, 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 13:07:36 +0000 // __int64 __fastcall cocos2d::CCDirector::calculateDeltaTime(cocos2d::CCDirector *this) { float v2; // s0 _QWORD *v3; // x0 __int64 v4; // x3 __int64 v6; // [xsp+38h] [xbp+38h] BYREF __int64 v7; // [xsp+40h] [xbp+40h] if ( (unsigned int)cocos2d::CCTime::gettimeofdayCocos2d(&v6, 0) ) { *((_DWORD *)this + 42) = 0; *((_DWORD *)this + 43) = 0; } else { if ( *((_BYTE *)this + 312) ) { v2 = 0.0; *((_BYTE *)this + 312) = 0; *((_DWORD *)this + 42) = 0; } else { v2 = (float)(v6 - **((_QWORD **)this + 38)) + (float)((float)(v7 - *(_DWORD *)(*((_QWORD *)this + 38) + 8LL)) / 1000000.0); if ( v2 <= 0.0 ) { v2 = 0.0; *((_DWORD *)this + 42) = 0; } else { *((float *)this + 42) = v2; } } *((float *)this + 43) = v2; cocos2d::CCDirector::applySmoothFix((__int64)this); v3 = *((_QWORD **)this + 38); v4 = v7; *v3 = v6; v3[1] = v4; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source