mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix(PluginImageCache): throw when assets fail to load
This commit is contained in:
parent
ff20d81d79
commit
89240c0e1e
1 changed files with 6 additions and 0 deletions
|
|
@ -65,6 +65,12 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
this.ThirdIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "thirdIcon.png"))!;
|
||||
this.ThirdInstalledIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "thirdInstalledIcon.png"))!;
|
||||
|
||||
if (this.DefaultIcon == null || this.TroubleIcon == null || this.UpdateIcon == null || this.InstalledIcon == null ||
|
||||
this.ThirdIcon == null || this.ThirdInstalledIcon == null)
|
||||
{
|
||||
throw new Exception("Plugin overlay images could not be loaded.");
|
||||
}
|
||||
|
||||
this.downloadThread = new Thread(this.DownloadTask);
|
||||
this.downloadThread.Start();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue