// // cocos2d::CCEGLView::toggleFullScreen from 0x18007bdf0 to 0x18007c03a (586 bytes) // // 5 xrefs: // > @ 0x1801448b0 // > @ 0x1801448c4 // > @ 0x1801448d4 // > @ 0x18014cf68 // > @ 0x1801bee0c // // 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:00 +0000 // void __fastcall cocos2d::CCEGLView::toggleFullScreen(cocos2d::CCEGLView *this, char a2, char a3, char a4) { __int64 v5; // rax int *v6; // rax cocos2d::CCRect *v7; // rax float v8; // xmm3_4 cocos2d::CCRect *v9; // rax cocos2d::CCRect *v10; // rax unsigned int v11; // ebx unsigned int v12; // edi HWND v13; // rax float v14; // [rsp+20h] [rbp-48h] _BYTE v15[8]; // [rsp+40h] [rbp-28h] BYREF float v16; // [rsp+48h] [rbp-20h] float v17; // [rsp+4Ch] [rbp-1Ch] _BYTE v18[24]; // [rsp+50h] [rbp-18h] BYREF if ( *((_BYTE *)this + 232) != a2 || *((_BYTE *)this + 233) != a3 || *((_BYTE *)this + 234) != a4 ) { *((_BYTE *)this + 232) = a2; *((_BYTE *)this + 233) = a3; *((_BYTE *)this + 234) = a4; *((_BYTE *)cocos2d::CCApplication::sharedApplication() + 213) = a2; sub_1800DC680(*((_QWORD *)this + 25)); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v15); if ( *((_BYTE *)this + 232) ) { v5 = sub_1800DBEE0(); *((_QWORD *)this + 26) = v5; v6 = (int *)sub_1800DBF20(v5); v7 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, 0.0, 0.0, (float)*v6, (float)v6[1]); cocos2d::CCRect::operator=((__int64)v15, (__int64)v7); if ( *((_BYTE *)this + 233) ) { sub_1800DCA30(131077, 0); if ( *((_BYTE *)this + 234) ) { v16 = v16 + 1.0; v17 = v17 + 1.0; } *((_QWORD *)this + 26) = 0; } } else { sub_1800DCA30(131077, 1); v8 = *((float *)this + 54); v14 = *((float *)this + 55); *((_QWORD *)this + 26) = 0; v9 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, 0.0, 0.0, v8, v14); cocos2d::CCRect::operator=((__int64)v15, (__int64)v9); } *((_DWORD *)this + 48) = 1065353216; v10 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, (const struct cocos2d::CCRect *)v15); cocos2d::CCEGLView::setupWindow((__int64)this, (__int64)v10); v11 = (int)v17; v12 = (int)v16; sub_1800DC9E0(*((_QWORD *)this + 25)); sub_1800DC880(*((_QWORD *)this + 25), v12, v11); cocos2d::CCEGLView::updateWindow(this, v12, v11); sub_1800DC200(*((_QWORD *)this + 25)); if ( *((_BYTE *)this + 232) && *((_BYTE *)this + 233) ) { if ( *((_BYTE *)this + 234) ) { v13 = (HWND)sub_1800D9CB0(*((_QWORD *)this + 25)); SetWindowPos(v13, HWND_MESSAGE|0x2LL, 0, 0, 0, 0, 0x53u); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source