Update DownloadManager.cs

This commit is contained in:
Sardelka9515 2022-08-08 10:19:48 +08:00 committed by GitHub
parent a50be5b869
commit 6b6125eb09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,13 +56,7 @@ namespace RageCoop.Client
}
});
}
public static string ResourceFolder
{
get
{
return Path.Combine(Main.Settings.DataDirectory, "Resources", Main.Settings.LastServerAddress.Replace(":", "."));
}
}
public static string ResourceFolder => Path.GetFullPath(Path.Combine(Main.Settings.DataDirectory, "Resources", Main.Settings.LastServerAddress.Replace(":", ".")));
private static readonly Dictionary<int, DownloadFile> InProgressDownloads = new Dictionary<int, DownloadFile>();
private static readonly HashSet<string> _resources = new HashSet<string>();
public static bool AddFile(int id, string name, long length)