From c7dab1a42b0d18fdf4c6e5496ea6eac17fe40dd5 Mon Sep 17 00:00:00 2001 From: Zsolt Zitting Date: Mon, 14 Aug 2023 00:13:04 -0700 Subject: [PATCH] what do you know, stuff was indeed broken. --- Program.cs | 6 ++++++ Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index ea64dfb..85cadb0 100644 --- a/Program.cs +++ b/Program.cs @@ -3,7 +3,9 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; +using System.IO; using System.Linq; +using System.Reflection; using System.Windows.Forms; namespace WACCALauncher @@ -43,6 +45,10 @@ namespace WACCALauncher if(Screen.AllScreens.Length > 1) CurrentScreen = Screen.AllScreens[1]; + // when running as system shell, we must set our working directory manually + if(Directory.GetCurrentDirectory() == Environment.GetFolderPath(Environment.SpecialFolder.System)) + Directory.SetCurrentDirectory(Path.GetPathRoot(Assembly.GetExecutingAssembly().Location)); + Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index a9c6d6a..1c74b7f 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.9.0.0")] -[assembly: AssemblyFileVersion("0.9.0.0")] +[assembly: AssemblyVersion("0.9.0.1")] +[assembly: AssemblyFileVersion("0.9.0.1")]