Plugins: Prevent app from starting without plugins

This commit is contained in:
Katy Coe
2021-01-12 01:11:05 +01:00
parent 930b00f588
commit a9ab4e627c
3 changed files with 27 additions and 13 deletions

View File

@@ -131,7 +131,7 @@ namespace Il2CppInspectorGUI
// Load plugins if they aren't already
try {
PluginManager.EnsureInit();
} catch (InvalidOperationException ex) {
} catch (Exception ex) when (ex is InvalidOperationException || ex is DirectoryNotFoundException) {
MessageBox.Show(ex.Message, "Fatal error loading plugins");
Environment.Exit(1);
}