// // cocos2d::CCDirector::drawScene from 0x1800c1bf0 to 0x1800c1d05 (277 bytes) // // 3 xrefs: // > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22e6 // > @ 0x18014cf68 // > @ 0x1801c3444 // // 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::drawScene(cocos2d::CCDirector *this) { __int64 v2; // rcx __int64 v3; // rcx __int64 v4; // rcx struct cocos2d::timezone *v5; // r8 __int64 v6; // rcx int v7; // [rsp+30h] [rbp+8h] BYREF int v8; // [rsp+34h] [rbp+Ch] if ( !*((_BYTE *)this + 256) ) (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 13) + 32LL))(*((_QWORD *)this + 13)); v2 = *((_QWORD *)this + 24); if ( v2 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 168LL))(v2); glClear(0x4100u); if ( *((_QWORD *)this + 35) ) cocos2d::CCDirector::setNextScene(this); kmGLPushMatrix(); v3 = *((_QWORD *)this + 34); if ( v3 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 744LL))(v3); v4 = *((_QWORD *)this + 43); if ( v4 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 744LL))(v4); if ( *((_BYTE *)this + 217) ) cocos2d::CCDirector::showStats(this); if ( *((_BYTE *)this + 368) ) cocos2d::CCDirector::showFPSLabel(this); kmGLPopMatrix(); v6 = *((_QWORD *)this + 24); ++*((_DWORD *)this + 65); if ( v6 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 24LL))(v6); if ( *((_BYTE *)this + 217) ) { cocos2d::CCTime::gettimeofdayCocos2d((struct cocos2d::cc_timeval *)&v7, nullptr, v5); *((float *)this + 67) = (float)((float)(v8 - *(_DWORD *)(*((_QWORD *)this + 38) + 4LL)) / 1000000.0) + (float)(v7 - **((_DWORD **)this + 38)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source