From a7f3f989bb09818ac012adbadf6fe8310e69b383 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Sun, 24 Mar 2024 09:14:51 -0400 Subject: [PATCH 1/2] make sure file doesn't exist before trying to download --- .../Models/Mirrors/Downloaders/MegaMirrorDownloader.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SPTInstaller/Models/Mirrors/Downloaders/MegaMirrorDownloader.cs b/SPTInstaller/Models/Mirrors/Downloaders/MegaMirrorDownloader.cs index 5d4f949..5f08e4b 100644 --- a/SPTInstaller/Models/Mirrors/Downloaders/MegaMirrorDownloader.cs +++ b/SPTInstaller/Models/Mirrors/Downloaders/MegaMirrorDownloader.cs @@ -22,6 +22,11 @@ public class MegaMirrorDownloader : MirrorDownloaderBase try { var file = new FileInfo(Path.Join(DownloadCacheHelper.CachePath, "patcher")); + + if (file.Exists) + { + file.Delete(); + } await megaClient.DownloadFileAsync(new Uri(MirrorInfo.Link), file.FullName, progress); From 360b85ae336d1730a3712e97855d6ad6f84ef278 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Sun, 24 Mar 2024 09:15:31 -0400 Subject: [PATCH 2/2] bump version --- SPTInstaller/SPTInstaller.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPTInstaller/SPTInstaller.csproj b/SPTInstaller/SPTInstaller.csproj index 4a702e0..1672b24 100644 --- a/SPTInstaller/SPTInstaller.csproj +++ b/SPTInstaller/SPTInstaller.csproj @@ -9,8 +9,8 @@ icon.ico Assets\icon.ico Debug;Release;TEST - 2.44 - 2.44 + 2.45 + 2.45 SPT-AKI