Just checking to see if desugaring of the desktop module works
This commit is contained in:
@@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user