diff --git a/App.config b/App.config index b087d5e..4275dd1 100644 --- a/App.config +++ b/App.config @@ -15,7 +15,7 @@ - + diff --git a/App.xaml.cs b/App.xaml.cs index 39a6171..2095d82 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -1,5 +1,6 @@ using Microsoft.Win32; using Newtonsoft.Json.Linq; +using SevenZip; using System; using System.Collections.Generic; using System.Diagnostics; @@ -13,7 +14,7 @@ namespace BetterHI3Launcher { public partial class App : Application { - public static readonly LauncherVersion LocalLauncherVersion = new LauncherVersion("1.4.20230329.0"); + public static readonly LauncherVersion LocalLauncherVersion = new LauncherVersion("1.4.20230628.0"); public static readonly string LauncherRootPath = AppDomain.CurrentDomain.BaseDirectory; public static readonly string LocalLowPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}Low"; public static readonly string LauncherDataPath = Path.Combine(LocalLowPath, @"Bp\Better HI3 Launcher"); @@ -35,6 +36,7 @@ public partial class App : Application public static readonly int ParallelDownloadSessions = 4; public static Dictionary TextStrings = new Dictionary(); public static Mutex Mutex = null; + private static readonly string AssemblyTempPath = Path.GetDirectoryName(typeof(ArchiveFileInfo).Assembly.GetFile("sevenzipsharp.dll").Name); public App() : base() { @@ -148,6 +150,7 @@ protected override void OnStartup(StartupEventArgs e) LauncherLanguage = "en"; break; } + SevenZipBase.SetLibraryPath(Path.Combine(AssemblyTempPath, "7zxa.dll")); base.OnStartup(e); } diff --git a/BetterHI3Launcher.csproj b/BetterHI3Launcher.csproj index 000566b..de66dc0 100644 --- a/BetterHI3Launcher.csproj +++ b/BetterHI3Launcher.csproj @@ -176,6 +176,7 @@ Settings.settings True + ResXFileCodeGenerator Resources.Designer.cs @@ -254,14 +255,14 @@ all - 6.6.4 + 6.7.0 all 2.5.2 - 7.0.1 + 7.0.3 2.0.3 @@ -269,8 +270,8 @@ 13.0.3 - - 0.33.0 + + 1.6.1.23 7.0.2 @@ -315,7 +316,7 @@ 1.1.1 - 2.1.1 + 2.2.0 diff --git a/Costura64/7zxa.dll b/Costura64/7zxa.dll new file mode 100644 index 0000000..979af37 Binary files /dev/null and b/Costura64/7zxa.dll differ diff --git a/DialogWindow.xaml b/DialogWindow.xaml index 70925ce..9a44b95 100644 --- a/DialogWindow.xaml +++ b/DialogWindow.xaml @@ -164,7 +164,7 @@ - +