From e17441a1a99006124019c4f4e084156c7da69e28 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Mon, 25 Mar 2024 14:28:34 -0400 Subject: [PATCH] always stream 7z out of assembly during client setup task --- SPTInstaller/Installer Tasks/SetupClientTask.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/SPTInstaller/Installer Tasks/SetupClientTask.cs b/SPTInstaller/Installer Tasks/SetupClientTask.cs index 0c2a610..12c7a34 100644 --- a/SPTInstaller/Installer Tasks/SetupClientTask.cs +++ b/SPTInstaller/Installer Tasks/SetupClientTask.cs @@ -25,16 +25,15 @@ public class SetupClientTask : InstallerTaskBase var progress = new Progress((d) => { SetStatus(null, null, (int)Math.Floor(d)); }); + SetStatus("Preparing 7z", "", null, ProgressStyle.Indeterminate); + + if (!FileHelper.StreamAssemblyResourceOut("7z.dll", Path.Join(DownloadCacheHelper.CachePath, "7z.dll"))) + { + return Result.FromError("Failed to prepare 7z"); + } if (_data.PatchNeeded) { - SetStatus("Preparing 7z", "", null, ProgressStyle.Indeterminate); - - if (!FileHelper.StreamAssemblyResourceOut("7z.dll", Path.Join(DownloadCacheHelper.CachePath, "7z.dll"))) - { - return Result.FromError("Failed to prepare 7z"); - } - // extract patcher files SetStatus("Extrating Patcher", "", 0);