diff --git a/Il2CppInspector.Common/Plugins/PluginServices.cs b/Il2CppInspector.Common/Plugins/API/PluginServices.cs similarity index 82% rename from Il2CppInspector.Common/Plugins/PluginServices.cs rename to Il2CppInspector.Common/Plugins/API/PluginServices.cs index bdbc64b..adb45ca 100644 --- a/Il2CppInspector.Common/Plugins/PluginServices.cs +++ b/Il2CppInspector.Common/Plugins/API/PluginServices.cs @@ -4,10 +4,9 @@ All rights reserved. */ -using System.Linq; using Il2CppInspector.PluginAPI.V100; -namespace Il2CppInspector +namespace Il2CppInspector.PluginAPI { /// /// Plugin-related services we provide to plugins that they can call upon @@ -33,5 +32,10 @@ namespace Il2CppInspector /// /// The text to report public void StatusUpdate(string text) => PluginManager.StatusUpdate(plugin, text); + + /// + /// An overload of StatusUpdate that can be cast to EventHandler + /// + public void StatusUpdate(object sender, string text) => StatusUpdate(text); } }