// // -[AppController toggleFullScreen:] from 0x100003ea0 to 0x100003ff6 (342 bytes) // // 3 xrefs: // > -[AppController toggleFullScreenOn] @ 0x100003e71 // > -[AppController toggleFullScreenOff] @ 0x100003e8e // > @ 0x100bdb0a8 // // 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 12:18:45 +0000 // void __cdecl -[AppController toggleFullScreen:](AppController *self, SEL a2, char a3) { __m128d v3; // xmm0 int v4; // r14d __int64 v6; // rcx __int64 v7; // r8 __int64 v8; // r9 NSScreen *v9; // rax __int64 v10; // rax float v11; // xmm0_4 float v12; // xmm1_4 __int64 v13; // rdi __int64 v14; // r14 double v15; // xmm0_8 double v16; // xmm1_8 _BYTE v17[8]; // [rsp+28h] [rbp-48h] BYREF __int128 v18; // [rsp+30h] [rbp-40h] BYREF __m128d v19; // [rsp+40h] [rbp-30h] v4 = a3; self->_liveResizing = 1; +[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView"); if ( (((unsigned int)-[CCWindow styleMask](self->_window, "styleMask") >> 14) & 1) != v4 ) { -[CCWindow toggleFullScreenManual:](self->_window, "toggleFullScreenManual:", self); if ( (_BYTE)v4 ) { v9 = +[NSScreen mainScreen](&OBJC_CLASS___NSScreen, "mainScreen"); if ( v9 ) { objc_msgSend_stret(&v18, (SEL)v9, "frame"); } else { v3 = 0; v19 = 0; v18 = 0; } -[CCWindow backingScaleFactor](self->_window, "backingScaleFactor"); v19 = _mm_div_pd(v19, _mm_movedup_pd(v3)); v10 = cocos2d::CCEGLView::sharedOpenGLView(); v11 = v19.f64[0]; v12 = v19.f64[1]; v13 = v10; (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v10 + 56LL))(v10, v11, v12); v14 = cocos2d::CCDirector::sharedDirector(v13, "backingScaleFactor"); HIDWORD(v15) = HIDWORD(v19.f64[0]); HIDWORD(v16) = HIDWORD(v19.f64[1]); *(float *)&v15 = v19.f64[0]; *(float *)&v16 = v19.f64[1]; sub_100278260(v17, v15, v16); cocos2d::CCDirector::updateScreenScale(v14, v17); } else { -[AppController handleWindowResize:Center:]( self, "handleWindowResize:Center:", 0, v6, v7, v8, *(_QWORD *)&self->windowedSize_.origin.x, *(_QWORD *)&self->windowedSize_.origin.y, *(_QWORD *)&self->windowedSize_.size.width, *(_QWORD *)&self->windowedSize_.size.height); -[AppController centerWindow](self, "centerWindow"); } self->_liveResizing = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source