From 9d8330c0f2d4791b78aede0a09bcdaa16022d749 Mon Sep 17 00:00:00 2001 From: Miepee Date: Mon, 31 Oct 2022 11:53:54 +0100 Subject: [PATCH] Make auto update use actual temp path --- AM2RLauncher/AM2RLauncher/LauncherUpdater.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs index 7acff6f..ffa7b78 100644 --- a/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs +++ b/AM2RLauncher/AM2RLauncher/LauncherUpdater.cs @@ -166,8 +166,7 @@ public static class LauncherUpdater log.Info("Current version (" + VERSION + ") is outdated! Initiating update for version " + onlineVersion + "."); - // TODO: do we really want this to be in AM2rlauncherdata path, instead of in an actual temp folder? - string tmpUpdatePath = CrossPlatformOperations.CurrentPath + "/tmpupdate/"; + string tmpUpdatePath = Path.GetTempPath() + "/AM2RLauncherTmpUpdate/"; string zipPath = CrossPlatformOperations.CurrentPath + "/launcher.zip"; // Clean tmpupdate