From e9ae459c9e4e63a66bd588e3c85db52612716ec5 Mon Sep 17 00:00:00 2001 From: goaaats Date: Mon, 31 Jan 2022 22:31:20 +0100 Subject: [PATCH] fix: load DalamudInterface before loading plugins --- Dalamud/Dalamud.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dalamud/Dalamud.cs b/Dalamud/Dalamud.cs index 62e860a5c..8d313a646 100644 --- a/Dalamud/Dalamud.cs +++ b/Dalamud/Dalamud.cs @@ -240,13 +240,18 @@ namespace Dalamud var pluginManager = Service.Set(); Service.Set(); + Log.Information("[T3] PM OK!"); + + Service.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.Set(); - Log.Information("[T3] DUI OK!"); - Troubleshooting.LogTroubleshooting(); Log.Information("Dalamud is ready.");