From 0e3a82a67032e4a083ee2ef8b8bba9678f6e9996 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Sun, 15 May 2022 18:12:50 -0400 Subject: [PATCH] fix args out of range exception --- Patcher/PatchClient/App.axaml.cs | 2 +- Patcher/PatchGenerator/Resources/PatchClient.exe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Patcher/PatchClient/App.axaml.cs b/Patcher/PatchClient/App.axaml.cs index df555e1..fa637bb 100644 --- a/Patcher/PatchClient/App.axaml.cs +++ b/Patcher/PatchClient/App.axaml.cs @@ -19,7 +19,7 @@ namespace PatchClient { bool autoClose = false; - if(desktop.Args != null && desktop.Args[0].ToLower() == "autoclose") + if(desktop.Args != null && desktop.Args.Length >= 1 && desktop.Args[0]?.ToLower() == "autoclose") autoClose = true; desktop.MainWindow = new MainWindow diff --git a/Patcher/PatchGenerator/Resources/PatchClient.exe b/Patcher/PatchGenerator/Resources/PatchClient.exe index 01bfccf..13f6342 100644 --- a/Patcher/PatchGenerator/Resources/PatchClient.exe +++ b/Patcher/PatchGenerator/Resources/PatchClient.exe @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f185f3f789442bc39c716d632f7568fd7ea5162cebb594d8e8261aa073388047 +oid sha256:5fa52398d452db058d4f56aed63f71c3ea2de42ff5c3a83aea21aef0b1ac29ac size 25319596