mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
fix: load DalamudInterface before loading plugins
This commit is contained in:
parent
ca70bf91b0
commit
e9ae459c9e
1 changed files with 6 additions and 4 deletions
|
|
@ -240,13 +240,18 @@ namespace Dalamud
|
||||||
var pluginManager = Service<PluginManager>.Set();
|
var pluginManager = Service<PluginManager>.Set();
|
||||||
Service<CallGate>.Set();
|
Service<CallGate>.Set();
|
||||||
|
|
||||||
|
Log.Information("[T3] PM OK!");
|
||||||
|
|
||||||
|
Service<DalamudInterface>.Set();
|
||||||
|
Log.Information("[T3] DUI OK!");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_ = pluginManager.SetPluginReposFromConfigAsync(false);
|
_ = pluginManager.SetPluginReposFromConfigAsync(false);
|
||||||
|
|
||||||
pluginManager.OnInstalledPluginsChanged += Troubleshooting.LogTroubleshooting;
|
pluginManager.OnInstalledPluginsChanged += Troubleshooting.LogTroubleshooting;
|
||||||
|
|
||||||
Log.Information("[T3] PM OK!");
|
Log.Information("[T3] Sync plugins OK!");
|
||||||
|
|
||||||
pluginManager.CleanupPlugins();
|
pluginManager.CleanupPlugins();
|
||||||
Log.Information("[T3] PMC OK!");
|
Log.Information("[T3] PMC OK!");
|
||||||
|
|
@ -259,9 +264,6 @@ namespace Dalamud
|
||||||
Log.Error(ex, "Plugin load failed.");
|
Log.Error(ex, "Plugin load failed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Service<DalamudInterface>.Set();
|
|
||||||
Log.Information("[T3] DUI OK!");
|
|
||||||
|
|
||||||
Troubleshooting.LogTroubleshooting();
|
Troubleshooting.LogTroubleshooting();
|
||||||
|
|
||||||
Log.Information("Dalamud is ready.");
|
Log.Information("Dalamud is ready.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue