//
// PlatformToolbox::getDisplaySize from 0x140078700 to 0x140078781 (129 bytes)
//
// 2 xrefs:
// > GameManager::resolutionForKey @ 0x14018abbd
// > ??> @ 0x1406c669c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
cocos2d::CCSize PlatformToolbox::getDisplaySize()
{
cocos2d::CCSize v0; // rcx
cocos2d::CCSize v1; // rbx
cocos2d::CCEGLView *v2; // rax
GameManager *v4; // rcx
void *v5; // [rsp+38h] [rbp+10h]
v1 = v0;
if ( cocos2d::CCEGLView::sharedOpenGLView() )
{
v2 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView();
cocos2d::CCEGLView::getDisplaySize(v2);
return v1;
}
else
{
v4 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = (GameManager *)qword_1406C2ED8;
}
GameManager::resolutionForKey(v4, SLODWORD(v1.width));
return v1;
}
}