From 2e34ea6b86ea682c6c3d22366089bbd56c100def Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Mon, 2 May 2022 23:45:51 +0200 Subject: [PATCH] fixed a crashing bug --- WeeXnes/App.xaml.cs | 6 +++++- WeeXnes/Core/Globals.cs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WeeXnes/App.xaml.cs b/WeeXnes/App.xaml.cs index 9be500f..5e5e464 100644 --- a/WeeXnes/App.xaml.cs +++ b/WeeXnes/App.xaml.cs @@ -1,5 +1,8 @@ -using System.Windows; +using System; +using System.Windows; using WeeXnes.Core; +using System.IO; +using Application = System.Windows.Forms.Application; namespace WeeXnes { @@ -10,6 +13,7 @@ namespace WeeXnes { private void App_OnStartup(object sender, StartupEventArgs e) { + Environment.CurrentDirectory = Application.StartupPath; if (e.Args.Length > 0) { for (int i = 0; i != e.Args.Length; ++i) diff --git a/WeeXnes/Core/Globals.cs b/WeeXnes/Core/Globals.cs index fdfa915..f0a54d3 100644 --- a/WeeXnes/Core/Globals.cs +++ b/WeeXnes/Core/Globals.cs @@ -15,7 +15,7 @@ namespace WeeXnes.Core public static string encryptionKey = "8zf5#RdyQ]$4x4_"; public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes"); public static string SettingsFileName = "settings.ini"; - public static string version = "2.7.6"; + public static string version = "2.7.7"; public static bool info_isRpcRunning = false; public static bool info_RpcAutoStart; public static string apiUrl = "http://www.weexnes.com:5169/";