GUI: Load plugins even if plugin window never opened

This commit is contained in:
Katy Coe
2020-12-24 00:04:21 +01:00
parent 62451e5131
commit 2e7187795a
2 changed files with 6 additions and 0 deletions

View File

@@ -119,6 +119,9 @@ namespace Il2CppInspector
// If not used, all status updates are suppressed // If not used, all status updates are suppressed
public static event EventHandler<PluginStatusEventArgs> StatusHandler; public static event EventHandler<PluginStatusEventArgs> StatusHandler;
// Force plugins to load if they haven't already
public static PluginManager EnsureInit() => AsInstance;
// Find and load all available plugins from disk // Find and load all available plugins from disk
public static void Reload(string pluginPath = null) { public static void Reload(string pluginPath = null) {
// Update plugin folder if requested, otherwise use current setting // Update plugin folder if requested, otherwise use current setting

View File

@@ -47,6 +47,9 @@ namespace Il2CppInspectorGUI
ex = ex.InnerException; ex = ex.InnerException;
} }
}; };
// Load plugins
PluginManager.EnsureInit();
} }
private Metadata metadata; private Metadata metadata;