diff --git a/.gitignore b/.gitignore index 990e547..a6d3a11 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ obj/ *.user *.userosscache *.sln.docstates +*GPUCache/ # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs diff --git a/src/DesktopMagic.Installer/DesktopMagic-Installer.exe b/src/DesktopMagic.Installer/DesktopMagic-Installer.exe index 00227d6..02ef4f5 100644 Binary files a/src/DesktopMagic.Installer/DesktopMagic-Installer.exe and b/src/DesktopMagic.Installer/DesktopMagic-Installer.exe differ diff --git a/src/DesktopMagic.Installer/Installer.iss b/src/DesktopMagic.Installer/Installer.iss index 3315a4f..14855d5 100644 --- a/src/DesktopMagic.Installer/Installer.iss +++ b/src/DesktopMagic.Installer/Installer.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "DesktopMagic" -#define MyAppVersion "0.0.3.0" +#define MyAppVersion "0.0.3.1" #define MyAppPublisher "Stone_Red" #define MyAppExeName "DesktopMagic.exe" diff --git a/src/DesktopMagic/App.xaml.cs b/src/DesktopMagic/App.xaml.cs index afca6ea..3b2842a 100644 --- a/src/DesktopMagic/App.xaml.cs +++ b/src/DesktopMagic/App.xaml.cs @@ -3,6 +3,7 @@ using Stone_Red_Utilities.Logging; using System; +using System.IO; using System.Threading; using System.Windows; @@ -117,6 +118,21 @@ namespace DesktopMagic DebugConsoleFormat = $"> {{{LogFormatType.DateTime}:hh:mm:ss}} | {{{LogFormatType.LogSeverity},-5}} | {{{LogFormatType.Message}}}\nat {{{LogFormatType.LineNumber}}} | {{{LogFormatType.FilePath}}}" } }; + + try + { + if (!Directory.Exists(ApplicationDataPath)) + { + _ = Directory.CreateDirectory(ApplicationDataPath); + } + Logger.Log("Created ApplicationData Folder", "Main"); + } + catch (Exception ex) + { + Logger.Log(ex.Message, "Setup", LogSeverity.Error); + _ = MessageBox.Show(ex.ToString()); + } + Logger.ClearLogFile(LogSeverity.Info); Logger.Log("Log setup complete.", "Setup"); } diff --git a/src/DesktopMagic/MainWindow.xaml.cs b/src/DesktopMagic/MainWindow.xaml.cs index b4ddf55..985ee05 100644 --- a/src/DesktopMagic/MainWindow.xaml.cs +++ b/src/DesktopMagic/MainWindow.xaml.cs @@ -90,12 +90,6 @@ namespace DesktopMagic { try { - if (!Directory.Exists(App.ApplicationDataPath)) - { - _ = Directory.CreateDirectory(App.ApplicationDataPath); - } - App.Logger.Log("Created ApplicationData Folder", "Main"); - if (!Directory.Exists(App.ApplicationDataPath + "\\Plugins")) { _ = Directory.CreateDirectory(App.ApplicationDataPath + "\\Plugins"); diff --git a/update/DesktopMagic.zip b/update/DesktopMagic.zip index 9497a52..61870de 100644 Binary files a/update/DesktopMagic.zip and b/update/DesktopMagic.zip differ diff --git a/update/updateInfo.json b/update/updateInfo.json index bbcf33e..31d47e2 100644 --- a/update/updateInfo.json +++ b/update/updateInfo.json @@ -1,4 +1,4 @@ { - "Version":"0.0.2.3", - "FileUrl":"http://github.com/Stone-Red-Code/DesktopMagic/blob/develop/update/DesktopMagic.zip?raw=true" + "Version":"0.0.3.1", + "FileUrl":"http://github.com/Stone-Red-Code/DesktopMagic/blob/main/update/DesktopMagic.zip?raw=true" }