mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: handle errors during EnsureAssets
This commit is contained in:
parent
d66a195697
commit
9b591e71d2
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ using Dalamud.Game.Network;
|
|||
using Dalamud.Interface;
|
||||
using Dalamud.Plugin;
|
||||
using ImGuiNET;
|
||||
using Lumina.Excel.GeneratedSheets;
|
||||
using Newtonsoft.Json;
|
||||
using Serilog;
|
||||
using Serilog.Core;
|
||||
|
|
@ -92,6 +93,10 @@ namespace Dalamud {
|
|||
this.WinSock2 = new WinSockHandlers();
|
||||
|
||||
AssetManager.EnsureAssets(this.baseDirectory).ContinueWith(async task => {
|
||||
if (task.IsCanceled || task.IsFaulted) {
|
||||
throw new Exception("Could not ensure assets.", task.Exception);
|
||||
}
|
||||
|
||||
this.localizationMgr = new Localization(this.StartInfo.WorkingDirectory);
|
||||
if (!string.IsNullOrEmpty(this.Configuration.LanguageOverride)) {
|
||||
this.localizationMgr.SetupWithLangCode(this.Configuration.LanguageOverride);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue