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); 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