// // cocos2d::CCDirector::calculateDeltaTime from 0x7ca0fc to 0x7ca19c (160 bytes) // // 1 xrefs: // > cocos2d::CCDirector::drawScene @ 0x7cae38 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:29 +0000 // int __fastcall cocos2d::CCDirector::calculateDeltaTime(cocos2d::CCDirector *this, int a2, int a3, int a4) { int result; // r0 float v6; // s15 int *v7; // r3 int v8; // r1 int v9; // [sp+4h] [bp-Ch] BYREF int v10; // [sp+8h] [bp-8h] int v11; // [sp+Ch] [bp-4h] v9 = a2; v10 = a3; v11 = a4; result = cocos2d::CCTime::gettimeofdayCocos2d(&v9, 0); if ( result ) { *((_DWORD *)this + 33) = 0; *((_DWORD *)this + 34) = 0; } else { if ( *((_BYTE *)this + 240) ) { *((_DWORD *)this + 33) = 0; *((_BYTE *)this + 240) = 0; } else { v6 = (float)(v9 - **((_DWORD **)this + 59)) + (float)((float)(v10 - *(_DWORD *)(*((_DWORD *)this + 59) + 4)) / 1000000.0); if ( v6 <= 0.0 ) v6 = 0.0; *((float *)this + 33) = v6; } *((_DWORD *)this + 34) = *((_DWORD *)this + 33); cocos2d::CCDirector::applySmoothFix((int)this); v7 = *((int **)this + 59); result = v9; v8 = v10; *v7 = v9; v7[1] = v8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source