fix: load DalamudInterface before loading plugins

This commit is contained in:
goaaats 2022-01-31 22:31:20 +01:00
parent ca70bf91b0
commit e9ae459c9e
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -240,13 +240,18 @@ namespace Dalamud
var pluginManager = Service<PluginManager>.Set();
Service<CallGate>.Set();
Log.Information("[T3] PM OK!");
Service<DalamudInterface>.Set();
Log.Information("[T3] DUI OK!");
try
{
_ = pluginManager.SetPluginReposFromConfigAsync(false);
pluginManager.OnInstalledPluginsChanged += Troubleshooting.LogTroubleshooting;
Log.Information("[T3] PM OK!");
Log.Information("[T3] Sync plugins OK!");
pluginManager.CleanupPlugins();
Log.Information("[T3] PMC OK!");
@ -259,9 +264,6 @@ namespace Dalamud
Log.Error(ex, "Plugin load failed.");
}
Service<DalamudInterface>.Set();
Log.Information("[T3] DUI OK!");
Troubleshooting.LogTroubleshooting();
Log.Information("Dalamud is ready.");