From b5f9e8a570a25ff635265feee310feab299cc233 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Fri, 20 Aug 2021 09:53:57 +0200 Subject: [PATCH] Quick appendum to auto updater fix --- AM2RLauncher/AM2RLauncher/LauncherUpdater.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs index 2b02527..6bf8c21 100644 --- a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs +++ b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs @@ -172,7 +172,7 @@ namespace AM2RLauncher File.Copy(file.FullName, CrossPlatformOperations.CURRENTPATH + "/" + file.Name, true); } // for windows, the actual application is in "AM2RLauncher.dll". Which means, we need to update the lib folder as well. - if (currentPlatform.IsWinForms) + if (currentPlatform.IsWinForms && Directory.Exists(CrossPlatformOperations.CURRENTPATH + "/lib")) { // Directory.Move(CrossPlatformOperations.CURRENTPATH + "/lib", CrossPlatformOperations.CURRENTPATH + "/oldLib"); // So, because Windows behavior is dumb...