Browse Source

Features now recieve the instance of the plugin being initialized in AfterInit

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
4f4ecd597e
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      IPA.Loader/Loader/Features/Feature.cs

+ 7
- 0
IPA.Loader/Loader/Features/Feature.cs View File

@ -57,6 +57,13 @@ namespace IPA.Loader.Features
/// <returns>whether or not to call the Init method</returns> /// <returns>whether or not to call the Init method</returns>
public virtual bool BeforeInit(PluginLoader.PluginInfo plugin) => true; public virtual bool BeforeInit(PluginLoader.PluginInfo plugin) => true;
/// <summary>
/// Called after a plugin has been fully initialized, whether or not there is an Init method. This should never throw an exception.
/// </summary>
/// <param name="plugin">the plugin that was just initialized</param>
/// <param name="pluginInstance">the instance of the plugin being initialized</param>
public virtual void AfterInit(PluginLoader.PluginInfo plugin, IBeatSaberPlugin pluginInstance) => AfterInit(plugin);
/// <summary> /// <summary>
/// Called after a plugin has been fully initialized, whether or not there is an Init method. This should never throw an exception. /// Called after a plugin has been fully initialized, whether or not there is an Init method. This should never throw an exception.
/// </summary> /// </summary>


Loading…
Cancel
Save