From a0f38a1fa1a5d12141e29609a2dc48f6a25ef4a7 Mon Sep 17 00:00:00 2001 From: MrBBBaiXue Date: Sat, 30 Dec 2023 12:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=88=B0=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ra3.BattleNet.Downloader/Download.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ra3.BattleNet.Downloader/Download.cs b/Ra3.BattleNet.Downloader/Download.cs index 7451d8f..9d22349 100644 --- a/Ra3.BattleNet.Downloader/Download.cs +++ b/Ra3.BattleNet.Downloader/Download.cs @@ -14,8 +14,9 @@ public static class Download { public static async Task BitTorrentDownload(ViewModel viewModel) { - // Set download folder to RA3BattleNet Temp. - string downloadFolder = Path.Combine(Environment.GetEnvironmentVariable("appdata"), "RA3BattleNet", "temp"); + // Set download folder to Current file path. + //string downloadFolder = Path.Combine(Environment.GetEnvironmentVariable("appdata"), "RA3BattleNet", "temp"); + string downloadFolder = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); if (!Directory.Exists(downloadFolder)) {