From da15f468e2df908eb9e8fe52666b55deb701feb9 Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Sun, 28 Aug 2022 12:02:39 +1000 Subject: [PATCH] v1.2 --- Form1.cs | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Form1.cs b/Form1.cs index 454f917..bbc4c45 100644 --- a/Form1.cs +++ b/Form1.cs @@ -55,9 +55,22 @@ namespace ARCHBLOXLauncher_XP { if (lastword == "host") { + if (!System.IO.File.Exists(filePath)) + { + DialogResult res = MessageBox.Show("An error occoured while starting ARCHBLOX\n\nDetails: Out of date client! To update the client, select Yes.", "ARCHBLOX", MessageBoxButtons.YesNo, MessageBoxIcon.Error); + if (res == DialogResult.Yes) + { + ARCHBLOXLauncher_XP.Form2 form2 = new ARCHBLOXLauncher_XP.Form2(); + form2.Show(); + } + else + { + Environment.Exit(0); + } + } exitafterarg = true; lastword = "stop"; - string[] info = word.Split('|'); + string[] info = word.Split(':'); foreach (var word2 in info) { if (info1 == "") @@ -86,9 +99,22 @@ namespace ARCHBLOXLauncher_XP } if (lastword == "join") { + if (!System.IO.File.Exists(filePath)) + { + DialogResult res = MessageBox.Show("An error occoured while starting ARCHBLOX\n\nDetails: Out of date client! To update the client, select Yes.", "ARCHBLOX", MessageBoxButtons.YesNo, MessageBoxIcon.Error); + if (res == DialogResult.Yes) + { + ARCHBLOXLauncher_XP.Form2 form2 = new ARCHBLOXLauncher_XP.Form2(); + form2.Show(); + } + else + { + Environment.Exit(0); + } + } exitafterarg = true; lastword = "stop"; - string[] info = word.Split('|'); + string[] info = word.Split(':'); foreach (var word2 in info) { if (info1 == "")