//
// PlatformToolbox::getDisplaySize from 0x14008bb90 to 0x14008bc14 (132 bytes)
//
// 2 xrefs:
// > GameManager::resolutionForKey @ 0x140287f7d
// > ??> @ 0x1409128b4
//
// 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:25:59 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall PlatformToolbox::getDisplaySize(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // rdx
__int64 v6; // rcx
__int64 v7; // r8
__int64 v8; // r9
__int64 v9; // rax
__int64 v11; // rcx
void *v12; // [rsp+38h] [rbp+10h]
if ( cocos2d::CCEGLView::sharedOpenGLView(a1, a2, a3, a4) )
{
v9 = cocos2d::CCEGLView::sharedOpenGLView(v6, v5, v7, v8);
cocos2d::CCEGLView::getDisplaySize(v9, a1);
return a1;
}
else
{
v11 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v12 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v11 = qword_14090BFD0;
}
GameManager::resolutionForKey(v11, a1, 1);
return a1;
}
}