GUI: Load plugins even if plugin window never opened
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ namespace Il2CppInspectorGUI
|
|||||||
ex = ex.InnerException;
|
ex = ex.InnerException;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Load plugins
|
||||||
|
PluginManager.EnsureInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Metadata metadata;
|
private Metadata metadata;
|
||||||
|
|||||||
Reference in New Issue
Block a user