From c6bc46316b1e248da3efcdb5044ca3a67b8a8674 Mon Sep 17 00:00:00 2001 From: kenjiuno Date: Sat, 28 Dec 2024 18:24:34 +0900 Subject: [PATCH] Remove dependency of DotNetZip. --- OpenKh.Egs/OpenKh.Egs.csproj | 1 - OpenKh.Imaging/OpenKh.Imaging.csproj | 2 +- OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/OpenKh.Egs/OpenKh.Egs.csproj b/OpenKh.Egs/OpenKh.Egs.csproj index 12aee7126..abb08c4cd 100644 --- a/OpenKh.Egs/OpenKh.Egs.csproj +++ b/OpenKh.Egs/OpenKh.Egs.csproj @@ -5,7 +5,6 @@ - diff --git a/OpenKh.Imaging/OpenKh.Imaging.csproj b/OpenKh.Imaging/OpenKh.Imaging.csproj index 1fc4d379e..de0a52bae 100644 --- a/OpenKh.Imaging/OpenKh.Imaging.csproj +++ b/OpenKh.Imaging/OpenKh.Imaging.csproj @@ -10,7 +10,7 @@ - + diff --git a/OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs b/OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs index 849604c1c..bbe666d29 100644 --- a/OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs +++ b/OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs @@ -12,9 +12,9 @@ using Xe.Tools; using Xe.Tools.Wpf.Commands; using Xe.Tools.Wpf.Dialogs; -using Ionic.Zip; using System.Text.RegularExpressions; using System.Threading; +using System.IO.Compression; namespace OpenKh.Tools.ModsManager.ViewModels { @@ -990,9 +990,9 @@ public SetupWizardViewModel() _client.DownloadFile(new System.Uri(releases.Assets[0].BrowserDownloadUrl), DownPath); try { - using (ZipFile zip = new ZipFile(DownPath)) + using (var zip = ZipFile.OpenRead(DownPath)) { - zip.ExtractAll(TempExtractionLocation, ExtractExistingFileAction.OverwriteSilently); + zip.ExtractToDirectory(TempExtractionLocation, true); } } catch