|
@ -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>
|
|
|