From 309d85caea36661ef8b947f9753347766292a028 Mon Sep 17 00:00:00 2001 From: ZestyTS Date: Thu, 5 Oct 2023 14:16:53 -0700 Subject: [PATCH] Fixed wad by removing the 7za requirement --- UWUVCI AIO WPF/Classes/Injection.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/UWUVCI AIO WPF/Classes/Injection.cs b/UWUVCI AIO WPF/Classes/Injection.cs index 6ff305b..c795758 100644 --- a/UWUVCI AIO WPF/Classes/Injection.cs +++ b/UWUVCI AIO WPF/Classes/Injection.cs @@ -448,18 +448,9 @@ namespace UWUVCI_AIO_WPF mvvm.msg = "Extracting Forwarder Base..."; if (Directory.Exists(Path.Combine(tempPath, "TempBase"))) Directory.Delete(Path.Combine(tempPath, "TempBase"), true); Directory.CreateDirectory(Path.Combine(tempPath, "TempBase")); - using (Process zip = new Process()) - { - if (!mvm.debug) - { - zip.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; - } - zip.StartInfo.FileName = Path.Combine(toolsPath, "7za.exe"); - zip.StartInfo.Arguments = $"x \"{Path.Combine(toolsPath, "BASE.zip")}\" -o\"{Path.Combine(tempPath)}\""; - zip.Start(); - zip.WaitForExit(); - } + var zipLocation = Path.Combine(toolsPath, "BASE.zip"); + ZipFile.ExtractToDirectory(zipLocation, Path.Combine(tempPath)); DirectoryCopy(Path.Combine(tempPath, "BASE"), Path.Combine(tempPath, "TempBase"), true); mvvm.Progress = 20;