feat: load plugings with load order <= 0 asynchronously

This commit is contained in:
goat 2021-04-28 17:58:51 +02:00
parent 0c5db3d0e6
commit 6356ad53b9
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 39 additions and 7 deletions

View file

@ -2,7 +2,7 @@ using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Dalamud.Configuration;
using Dalamud.Data;
using Dalamud.Game;
@ -325,7 +325,9 @@ namespace Dalamud
this,
this.StartInfo.PluginDirectory,
this.StartInfo.DefaultPluginDirectory);
this.PluginManager.LoadPlugins();
this.PluginManager.LoadSynchronousPlugins();
Task.Run(() => this.PluginManager.LoadDeferredPlugins());
Log.Information("[T3] PM OK!");
}