Skip to content

Commit

Permalink
Change download path to executable path instead of startup path
Browse files Browse the repository at this point in the history
  • Loading branch information
xackery committed Feb 28, 2024
1 parent 63e8ddd commit 3e65a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EQEmu Patcher/EQEmu Patcher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public static async Task<string> DownloadFile(CancellationTokenSource cts, strin
{
path = path.Replace("/", "\\");
if (path.Contains("\\")) { //Make directory if needed.
string dir = Application.StartupPath + "\\" + path.Substring(0, path.LastIndexOf("\\"));
string dir = Application.ExecutablePath + "\\" + path.Substring(0, path.LastIndexOf("\\"));
Directory.CreateDirectory(dir);
}
return await UtilityLibrary.DownloadFile(cts, url, path);
Expand Down

0 comments on commit 3e65a59

Please sign in to comment.