1
0
mirror of https://github.com/YellowberryHN/WACCALauncher synced 2024-11-12 01:30:45 +01:00

what do you know, stuff was indeed broken.

This commit is contained in:
Zsolt Zitting 2023-08-14 00:13:04 -07:00
parent d7beb37d0a
commit c7dab1a42b
2 changed files with 8 additions and 2 deletions

View File

@ -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());

View File

@ -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")]