Browse Source

Added note that OnApplicationStart and OnApplicationQuit may not be called because of enabling/disabling

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
6d9d047411
2 changed files with 7 additions and 4 deletions
  1. +5
    -4
      BSIPA-ModList/Plugin.cs
  2. +2
    -0
      IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs

+ 5
- 4
BSIPA-ModList/Plugin.cs View File

@ -24,6 +24,11 @@ namespace BSIPA_ModList
Logger.log = logger;
IPA.Updating.BeatMods.Updater.ModListPresent = true;
// Load resources ahead of time
MarkdownView.StartLoadResourcesAsync();
SharedCoroutineStarter.instance.StartCoroutine(LoadPluginIcons());
}
public void OnActiveSceneChanged(Scene prevScene, Scene nextScene)
@ -36,10 +41,6 @@ namespace BSIPA_ModList
public void OnApplicationStart()
{
// Load resources ahead of time
MarkdownView.StartLoadResourcesAsync();
SharedCoroutineStarter.instance.StartCoroutine(LoadPluginIcons());
}
private static IEnumerator LoadPluginIcons()


+ 2
- 0
IPA.Loader/PluginInterfaces/BeatSaber/IBeatSaberPlugin.cs View File

@ -11,6 +11,8 @@ namespace IPA
{
/// <summary>
/// Gets invoked when the application is started.
///
/// THIS EVENT WILL NOT BE GUARANTEED TO FIRE. USE Init OR <see cref="IDisablablePlugin.OnEnable"/> INSTEAD.
/// </summary>
void OnApplicationStart();


Loading…
Cancel
Save