Just checking to see if desugaring of the desktop module works

This commit is contained in:
Anuken
2025-07-22 00:23:04 -04:00
parent 73a628f426
commit 88b1fc014b

View File

@@ -49,16 +49,23 @@ public class DesktopLauncher extends ClientLauncher{
if(arg[i].charAt(0) == '-'){ if(arg[i].charAt(0) == '-'){
String name = arg[i].substring(1); String name = arg[i].substring(1);
switch(name){ switch(name){
case "width": width = Strings.parseInt(arg[i + 1], width); break; case "width" -> width = Strings.parseInt(arg[i + 1], width);
case "height": height = Strings.parseInt(arg[i + 1], height); break; case "height" -> height = Strings.parseInt(arg[i + 1], height);
case "glMajor": gl30Major = Strings.parseInt(arg[i + 1], gl30Major); case "glMajor" -> {
case "glMinor": gl30Minor = Strings.parseInt(arg[i + 1], gl30Minor); gl30Major = Strings.parseInt(arg[i + 1], gl30Major);
case "gl3": gl30 = true; break; gl30Minor = Strings.parseInt(arg[i + 1], gl30Minor);
case "gl2": gl30 = false; break; gl30 = true;
case "coreGl": coreProfile = true; break; }
case "antialias": samples = 16; break; case "glMinor" -> {
case "debug": Log.level = LogLevel.debug; break; gl30Minor = Strings.parseInt(arg[i + 1], gl30Minor);
case "maximized": maximized = Boolean.parseBoolean(arg[i + 1]); break; gl30 = true;
}
case "gl3" -> gl30 = true;
case "gl2" -> gl30 = false;
case "coreGl" -> coreProfile = true;
case "antialias" -> samples = 16;
case "debug" -> Log.level = LogLevel.debug;
case "maximized" -> maximized = Boolean.parseBoolean(arg[i + 1]);
} }
} }
} }