From 4e84bbc547b6c8b1e09bc9102f7c5740c1e4f731 Mon Sep 17 00:00:00 2001 From: "nuri (smol)" <75618732+SMOLKEYS@users.noreply.github.com> Date: Thu, 15 May 2025 01:02:55 +0800 Subject: [PATCH] make launch args easily accessible (desktop) (#10802) * make launch args easily accessible * staticnt --- desktop/src/mindustry/desktop/DesktopLauncher.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/src/mindustry/desktop/DesktopLauncher.java b/desktop/src/mindustry/desktop/DesktopLauncher.java index 9e18ce5a54..5fd21d90f1 100644 --- a/desktop/src/mindustry/desktop/DesktopLauncher.java +++ b/desktop/src/mindustry/desktop/DesktopLauncher.java @@ -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");