Skip to content

Commit

Permalink
下载到当前目录
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbbaixue committed Dec 30, 2023
1 parent 0a539d5 commit a0f38a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Ra3.BattleNet.Downloader/Download.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit a0f38a1

Please sign in to comment.