From 7923c7e658690e258f933d66360cddd09684a5a6 Mon Sep 17 00:00:00 2001
From: Miepee <38186597+Miepee@users.noreply.github.com>
Date: Tue, 17 Aug 2021 11:16:11 +0200
Subject: [PATCH] Another auto updating issue fix
---
AM2RLauncher/AM2RLauncher/LauncherUpdater.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs
index 164ea89..06be7eb 100644
--- a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs
+++ b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs
@@ -20,7 +20,7 @@ namespace AM2RLauncher
public class LauncherUpdater
{
/// The Version that identifies this current release.
- static readonly public string VERSION = "2.1.1";
+ static readonly public string VERSION = "2.1.0";
/// The current Running platform.
static readonly private Platform currentPlatform = Platform.Instance; //needs to be declared here as well, because I can't access the one from eto
@@ -136,7 +136,10 @@ namespace AM2RLauncher
return;
}
- if(!Directory.Exists(tmpUpdatePath)) // just in case it exists already
+ if (Directory.Exists(tmpUpdatePath)) //auto-updating issue fixes
+ Directory.Delete(tmpUpdatePath);
+
+ if (!Directory.Exists(tmpUpdatePath)) // just in case it exists already
Directory.CreateDirectory(tmpUpdatePath);
ZipFile.ExtractToDirectory(zipPath, tmpUpdatePath);