// // cocos2d::CCEGLView::updateFrameSize from 0x18007c0b0 to 0x18007c218 (360 bytes) // // 6 xrefs: // > cocos2d::CCEGLView::setFrameSize @ 0x18007b696 // > cocos2d::CCEGLView::setFrameZoomFactor @ 0x18007b6c8 // > @ 0x180144a78 // > @ 0x180144a88 // > @ 0x18014cf68 // > @ 0x1801bee48 // // 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::updateFrameSize(cocos2d::CCEGLView *this) { __int64 v2; // rcx __int64 v3; // rcx float *v4; // rcx int v5; // ecx int v6; // [rsp+40h] [rbp+8h] BYREF int v7; // [rsp+48h] [rbp+10h] BYREF int v8; // [rsp+50h] [rbp+18h] BYREF int v9; // [rsp+58h] [rbp+20h] BYREF if ( *((float *)this + 4) > 0.0 && *((float *)this + 5) > 0.0 ) { v2 = *((_QWORD *)this + 25); v6 = 0; v8 = 0; sub_1800DC750(v2, &v6, &v8); v3 = *((_QWORD *)this + 25); v7 = 0; v9 = 0; sub_1800DC750(v3, &v7, &v9); v4 = (float *)((char *)this + 16); if ( v7 == 2 * v6 ) { if ( v9 == 2 * v8 ) { v5 = 2 - (*((_BYTE *)this + 179) != 0); *((_DWORD *)this + 45) = v5; sub_1800DC970( *((_QWORD *)this + 25), (unsigned int)(int)(float)((float)((float)(*((float *)this + 4) * 0.5) * (float)v5) * *((float *)this + 48)), (unsigned int)(int)(float)((float)((float)(*((float *)this + 5) * 0.5) * (float)v5) * *((float *)this + 48))); *((_BYTE *)this + 178) = 1; return; } v4 = (float *)((char *)this + 16); } if ( *((_BYTE *)this + 178) ) *((_DWORD *)this + 45) = 1; else v4 = (float *)((char *)this + 16); sub_1800DC970( *((_QWORD *)this + 25), (unsigned int)(int)(float)((float)((float)*((int *)this + 45) * *v4) * *((float *)this + 48)), (unsigned int)(int)(float)((float)((float)*((int *)this + 45) * *((float *)this + 5)) * *((float *)this + 48))); *((_BYTE *)this + 178) = 0; } }