Plugins: Clear stack trace of failed plugins so they can be re-enabled
This commit is contained in:
@@ -354,6 +354,9 @@ namespace Il2CppInspector
|
|||||||
// Disable failing plugin
|
// Disable failing plugin
|
||||||
plugin.Enabled = false;
|
plugin.Enabled = false;
|
||||||
|
|
||||||
|
// Clear stack trace
|
||||||
|
plugin.StackTrace.Clear();
|
||||||
|
|
||||||
// Forward error to error handler
|
// Forward error to error handler
|
||||||
eventInfo.Error = new PluginErrorEventArgs { Plugin = plugin.Plugin, Exception = ex, Operation = hookName };
|
eventInfo.Error = new PluginErrorEventArgs { Plugin = plugin.Plugin, Exception = ex, Operation = hookName };
|
||||||
ErrorHandler?.Invoke(AsInstance, eventInfo);
|
ErrorHandler?.Invoke(AsInstance, eventInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user