From 747c6186d4ccaa444b89e2b4e7fe2e20cf60a474 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 15 Aug 2021 22:17:17 -0400 Subject: [PATCH] DesktopLauncher -debug argument --- 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 1de468f504..1e74170914 100644 --- a/desktop/src/mindustry/desktop/DesktopLauncher.java +++ b/desktop/src/mindustry/desktop/DesktopLauncher.java @@ -11,6 +11,7 @@ import arc.func.*; import arc.math.*; import arc.struct.*; import arc.util.*; +import arc.util.Log.*; import arc.util.serialization.*; import com.codedisaster.steamworks.*; import mindustry.*; @@ -44,6 +45,9 @@ public class DesktopLauncher extends ClientLauncher{ if(Structs.contains(arg, "-gl3")){ gl30 = true; } + if(Structs.contains(arg, "-debug")){ + Log.level = LogLevel.debug; + } setWindowIcon(FileType.internal, "icons/icon_64.png"); }}); }catch(Throwable e){