From 97448ac5fbae76893eee6b1e80c0d4c4b3071e84 Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Sat, 23 Jul 2022 01:53:12 +1000 Subject: [PATCH] comments!! --- Form2.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Form2.cs b/Form2.cs index 6e9429e..7a2aa57 100644 --- a/Form2.cs +++ b/Form2.cs @@ -12,6 +12,7 @@ namespace ARCHBLOXBootstrapper { public partial class ARCHBLOX : Form { + // set up variables public bool IsCompleted = false; public bool DontEvenBother = false; private static WebClient wc = new WebClient(); @@ -19,6 +20,7 @@ namespace ARCHBLOXBootstrapper private void CreateShortcut() { + // create a shorcut on the user's desktop object shDesktop = (object)"Desktop"; WshShell shell = new WshShell(); string shortcutAddress = (string)shell.SpecialFolders.Item(ref shDesktop) + @"\ARCHBLOX Studio.lnk"; @@ -31,6 +33,7 @@ namespace ARCHBLOXBootstrapper public ARCHBLOX() { InitializeComponent(); + // setup paths byte[] raw = wc.DownloadData("https://archblox.com/studio/version.txt"); string webData = Encoding.UTF8.GetString(raw); string version_string = webData; @@ -40,7 +43,7 @@ namespace ARCHBLOXBootstrapper string studioPath = Path.Combine(clientPath, "ArchbloxStudio.exe"); if (Directory.Exists(clientPath) & System.IO.File.Exists(studioPath)) { - // studio exists, create shortcut and laucnh studio + // studio exists, create shortcut and launch studio label1.Text = "Launching Studio..."; DontEvenBother = true; CreateShortcut();