// // GameManager::resolutionForKey from 0x10031dbd8 to 0x10031dd80 (424 bytes) // // 3 xrefs: // > VideoOptionsLayer::init @ 0x1000eff00 // > VideoOptionsLayer::onApply @ 0x1000f0d60 // > VideoOptionsLayer::updateResolution @ 0x1000f0fec // // 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) { float *v2; // x8 int v3; // w9 int v4; // w9 int v5; // w9 float v6; // s0 int v7; // w9 int v8; // w9 int v9; // w9 int v10; // w9 float v11; // s1 cocos2d::CCSize DisplaySize; // 0:kr00_8.8 cocos2d::CCSize result; // 0:s0.4,4:s1.4 switch ( a2 ) { case 1: v3 = 1142947840; goto LABEL_18; case 2: v3 = 1144258560; LABEL_18: v6 = *(float *)&v3; v7 = 1139802112; goto LABEL_36; case 3: v6 = 720.0; v7 = 1141899264; goto LABEL_36; case 4: v6 = 800.0; v7 = 1142292480; goto LABEL_36; case 5: v8 = 1149239296; goto LABEL_29; case 6: v6 = 1152.0; v7 = 1146617856; goto LABEL_36; case 7: v6 = 1176.0; v7 = 1143341056; goto LABEL_36; case 8: v6 = 1280.0; v7 = 1144258560; goto LABEL_36; case 9: v8 = 1151336448; goto LABEL_29; case 10: v6 = 1280.0; v7 = 1145569280; goto LABEL_36; case 11: v6 = 1280.0; v7 = 1148190720; goto LABEL_36; case 12: v4 = 1151336448; goto LABEL_6; case 13: v8 = 1151991808; LABEL_29: v6 = *(float *)&v8; goto LABEL_30; case 14: v6 = 1366.0; LABEL_30: v7 = 1145044992; goto LABEL_36; case 15: v5 = 1152647168; goto LABEL_14; case 16: v5 = 1153957888; LABEL_14: v6 = *(float *)&v5; v7 = 1147207680; goto LABEL_36; case 17: v4 = 1153957888; LABEL_6: v6 = *(float *)&v4; v7 = 1149239296; goto LABEL_36; case 18: v10 = 1153957888; goto LABEL_23; case 19: v6 = 1680.0; v11 = 1050.0; goto LABEL_37; case 20: v6 = 1768.0; v7 = 1148715008; goto LABEL_36; case 21: v6 = 1920.0; v7 = 1149698048; goto LABEL_36; case 22: v10 = 1156579328; LABEL_23: v6 = *(float *)&v10; v7 = 1150681088; goto LABEL_36; case 23: v9 = 1156579328; goto LABEL_32; case 24: v11 = 1536.0; v6 = 2048.0; goto LABEL_37; case 25: v9 = 1159725056; LABEL_32: v6 = *(float *)&v9; v7 = 1152647168; goto LABEL_36; case 26: v6 = 2560.0; v7 = 1153957888; goto LABEL_36; case 27: v6 = 3840.0; v7 = 1158086656; LABEL_36: v11 = *(float *)&v7; LABEL_37: sub_100022988(v2, v6, v11); break; default: DisplaySize = PlatformToolbox::getDisplaySize(); result.width = DisplaySize.width; result.height = DisplaySize.height; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source