make launch args easily accessible (desktop) (#10802)

* make launch args easily accessible

* staticnt
This commit is contained in:
nuri (smol)
2025-05-15 01:02:55 +08:00
committed by GitHub
parent e1e5bd5b3f
commit 4e84bbc547

View File

@ -30,6 +30,8 @@ import static mindustry.Vars.*;
public class DesktopLauncher extends ClientLauncher{
public final static long discordID = 610508934456934412L;
public final String[] args;
boolean useDiscord = !OS.hasProp("nodiscord"), loadError = false;
Throwable steamError;
@ -72,6 +74,8 @@ public class DesktopLauncher extends ClientLauncher{
}
public DesktopLauncher(String[] args){
this.args = args;
Version.init();
boolean useSteam = Version.modifier.contains("steam");
testMobile = Seq.with(args).contains("-testMobile");