Plugins: Clear stack trace of failed plugins so they can be re-enabled

This commit is contained in:
Katy Coe
2021-01-10 17:43:00 +01:00
parent df35fc1af9
commit 074f13b2f4

View File

@@ -354,6 +354,9 @@ namespace Il2CppInspector
// Disable failing plugin
plugin.Enabled = false;
// Clear stack trace
plugin.StackTrace.Clear();
// Forward error to error handler
eventInfo.Error = new PluginErrorEventArgs { Plugin = plugin.Plugin, Exception = ex, Operation = hookName };
ErrorHandler?.Invoke(AsInstance, eventInfo);