diff --git a/Dalamud/Interface/AssetManager.cs b/Dalamud/Interface/AssetManager.cs index b1fd3bdc1..108d3ab16 100644 --- a/Dalamud/Interface/AssetManager.cs +++ b/Dalamud/Interface/AssetManager.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; @@ -27,7 +28,7 @@ namespace Dalamud.Interface }; public static async Task EnsureAssets(string baseDir) { - using var client = new HttpClient(); + using var client = new WebClient(); Log.Verbose("Starting asset download"); @@ -39,7 +40,7 @@ namespace Dalamud.Interface if (!File.Exists(filePath)) { Log.Verbose("Downloading {0} to {1}...", entry.Key, entry.Value); try { - File.WriteAllBytes(filePath, await client.GetByteArrayAsync(entry.Key)); + File.WriteAllBytes(filePath, client.DownloadData(entry.Key)); } catch (Exception ex) { // If another game is running, we don't want to just fail in here Log.Error(ex, "Could not download asset.");