Plugins: Add StatusUpdate EventHandler<string> overload

This commit is contained in:
Katy Coe
2020-12-26 23:39:40 +01:00
parent 863aa5ed7d
commit 4901d9b4bc

View File

@@ -4,10 +4,9 @@
All rights reserved. All rights reserved.
*/ */
using System.Linq;
using Il2CppInspector.PluginAPI.V100; using Il2CppInspector.PluginAPI.V100;
namespace Il2CppInspector namespace Il2CppInspector.PluginAPI
{ {
/// <summary> /// <summary>
/// Plugin-related services we provide to plugins that they can call upon /// Plugin-related services we provide to plugins that they can call upon
@@ -33,5 +32,10 @@ namespace Il2CppInspector
/// </summary> /// </summary>
/// <param name="text">The text to report</param> /// <param name="text">The text to report</param>
public void StatusUpdate(string text) => PluginManager.StatusUpdate(plugin, text); public void StatusUpdate(string text) => PluginManager.StatusUpdate(plugin, text);
/// <summary>
/// An overload of StatusUpdate that can be cast to EventHandler<string>
/// </summary>
public void StatusUpdate(object sender, string text) => StatusUpdate(text);
} }
} }