// // GameManager::resolutionForKey from 0x10038c700 to 0x10038c955 (597 bytes) // // 4 xrefs: // > -[AppController applicationDidFinishLaunching:] @ 0x1000074fa // > VideoOptionsLayer::init @ 0x10079f2d7 // > VideoOptionsLayer::onApply @ 0x1007a03aa // > VideoOptionsLayer::updateResolution @ 0x1007a069b // // 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 // cocos2d::CCSize __fastcall GameManager::resolutionForKey(GameManager *a1, int a2) { int v2; // edx float v4; // xmm1_4 cocos2d::CCSize result; // 0:xmm0_8.8 switch ( v2 ) { case 1: result = (cocos2d::CCSize)1142947840LL; goto LABEL_16; case 2: result = (cocos2d::CCSize)1144258560LL; LABEL_16: v4 = 480.0; goto LABEL_30; case 3: result = (cocos2d::CCSize)1144258560LL; v4 = 576.0; goto LABEL_30; case 4: result = (cocos2d::CCSize)1145569280LL; v4 = 600.0; goto LABEL_30; case 5: result = (cocos2d::CCSize)1149239296LL; v4 = 768.0; goto LABEL_30; case 6: result = (cocos2d::CCSize)1150287872LL; v4 = 864.0; goto LABEL_30; case 7: result = (cocos2d::CCSize)1150484480LL; v4 = 664.0; goto LABEL_30; case 8: result = (cocos2d::CCSize)1151336448LL; v4 = 720.0; goto LABEL_30; case 9: result = (cocos2d::CCSize)1151336448LL; v4 = 768.0; goto LABEL_30; case 10: result = (cocos2d::CCSize)1151336448LL; v4 = 800.0; goto LABEL_30; case 11: result = (cocos2d::CCSize)1151336448LL; v4 = 960.0; goto LABEL_30; case 12: result = (cocos2d::CCSize)1151336448LL; v4 = 1024.0; goto LABEL_30; case 13: result = (cocos2d::CCSize)1151991808LL; v4 = 768.0; goto LABEL_30; case 14: result = (cocos2d::CCSize)1152040960LL; v4 = 768.0; goto LABEL_30; case 15: result = (cocos2d::CCSize)1152647168LL; v4 = 900.0; goto LABEL_30; case 16: result = (cocos2d::CCSize)1153957888LL; v4 = 900.0; goto LABEL_30; case 17: result = (cocos2d::CCSize)1153957888LL; v4 = 1024.0; goto LABEL_30; case 18: result = (cocos2d::CCSize)1153957888LL; v4 = 1200.0; goto LABEL_30; case 19: result = (cocos2d::CCSize)1154613248LL; v4 = 1050.0; goto LABEL_30; case 20: result = (cocos2d::CCSize)1155334144LL; v4 = 992.0; goto LABEL_30; case 21: result = (cocos2d::CCSize)1156579328LL; v4 = 1080.0; goto LABEL_30; case 22: result = (cocos2d::CCSize)1156579328LL; v4 = 1200.0; goto LABEL_30; case 23: result = (cocos2d::CCSize)1156579328LL; v4 = 1440.0; goto LABEL_30; case 24: result = (cocos2d::CCSize)1157627904LL; v4 = 1536.0; goto LABEL_30; case 25: result = (cocos2d::CCSize)1159725056LL; v4 = 1440.0; goto LABEL_30; case 26: result = (cocos2d::CCSize)1159725056LL; v4 = 1600.0; goto LABEL_30; case 27: result = (cocos2d::CCSize)1164967936LL; v4 = 2160.0; LABEL_30: sub_10028CBF0((float *)a1, result.width, v4); break; default: result = PlatformToolbox::getDisplaySize(); break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source