//
// GameManager::resolutionForKey from 0x414fa8 to 0x415076 (206 bytes)
//
// 3 xrefs:
// > VideoOptionsLayer::updateResolution @ 0x52d236
// > VideoOptionsLayer::onApply @ 0x52e3f8
// > VideoOptionsLayer::init @ 0x530e7c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:39 +0000
//
GameManager *__fastcall GameManager::resolutionForKey(GameManager *this, int a2, int a3, int a4)
{
int v4; // r2
float v6; // r1
float v7; // r2
v4 = a3 - 1;
switch ( v4 )
{
case 0:
v6 = 640.0;
goto LABEL_4;
case 1:
v6 = 720.0;
LABEL_4:
v7 = 480.0;
goto LABEL_35;
case 2:
v6 = 720.0;
v7 = 576.0;
goto LABEL_35;
case 3:
v6 = 800.0;
v7 = 600.0;
goto LABEL_35;
case 4:
v6 = 1024.0;
goto LABEL_17;
case 5:
v6 = 1152.0;
v7 = 864.0;
goto LABEL_35;
case 6:
v6 = 1176.0;
v7 = 664.0;
goto LABEL_35;
case 7:
v6 = 1280.0;
v7 = 720.0;
goto LABEL_35;
case 8:
v6 = 1280.0;
goto LABEL_17;
case 9:
v6 = 1280.0;
v7 = 800.0;
goto LABEL_35;
case 10:
v6 = 1280.0;
v7 = 960.0;
goto LABEL_35;
case 11:
v6 = 1280.0;
goto LABEL_22;
case 12:
v6 = 1360.0;
goto LABEL_17;
case 13:
v6 = 1366.0;
LABEL_17:
v7 = 768.0;
goto LABEL_35;
case 14:
v6 = 1440.0;
goto LABEL_20;
case 15:
v6 = 1600.0;
LABEL_20:
v7 = 900.0;
goto LABEL_35;
case 16:
v6 = 1600.0;
LABEL_22:
v7 = 1024.0;
goto LABEL_35;
case 17:
v6 = 1600.0;
goto LABEL_28;
case 18:
v6 = 1680.0;
v7 = 1050.0;
goto LABEL_35;
case 19:
v6 = 1768.0;
v7 = 992.0;
goto LABEL_35;
case 20:
v6 = 1920.0;
v7 = 1080.0;
goto LABEL_35;
case 21:
v6 = 1920.0;
LABEL_28:
v7 = 1200.0;
goto LABEL_35;
case 22:
v6 = 1920.0;
goto LABEL_32;
case 23:
v6 = 2048.0;
v7 = 1536.0;
goto LABEL_35;
case 24:
v6 = 2560.0;
LABEL_32:
v7 = 1440.0;
goto LABEL_35;
case 25:
v6 = 2560.0;
v7 = 1600.0;
goto LABEL_35;
case 26:
v6 = 3840.0;
v7 = 2160.0;
LABEL_35:
cocos2d::CCSize::CCSize(this, v6, v7);
break;
default:
PlatformToolbox::getDisplaySize(this, a2, v4, a4);
break;
}
return this;
}