|
@ -42,6 +42,9 @@ namespace IPA.Loader |
|
|
SceneManager.activeSceneChanged += OnActiveSceneChanged; |
|
|
SceneManager.activeSceneChanged += OnActiveSceneChanged; |
|
|
SceneManager.sceneLoaded += OnSceneLoaded; |
|
|
SceneManager.sceneLoaded += OnSceneLoaded; |
|
|
SceneManager.sceneUnloaded += OnSceneUnloaded; |
|
|
SceneManager.sceneUnloaded += OnSceneUnloaded; |
|
|
|
|
|
|
|
|
|
|
|
foreach (var provider in PluginManager.configProviders) |
|
|
|
|
|
if (provider.HasChanged) provider.Save(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void Update() |
|
|
void Update() |
|
@ -54,6 +57,9 @@ namespace IPA.Loader |
|
|
{ |
|
|
{ |
|
|
bsPlugins.OnLateUpdate(); |
|
|
bsPlugins.OnLateUpdate(); |
|
|
ipaPlugins.OnLateUpdate(); |
|
|
ipaPlugins.OnLateUpdate(); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var provider in PluginManager.configProviders) |
|
|
|
|
|
if (provider.HasChanged) provider.Save(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void FixedUpdate() |
|
|
void FixedUpdate() |
|
@ -79,6 +85,9 @@ namespace IPA.Loader |
|
|
bsPlugins.OnApplicationQuit(); |
|
|
bsPlugins.OnApplicationQuit(); |
|
|
ipaPlugins.OnApplicationQuit(); |
|
|
ipaPlugins.OnApplicationQuit(); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var provider in PluginManager.configProviders) |
|
|
|
|
|
if (provider.HasChanged) provider.Save(); |
|
|
|
|
|
|
|
|
quitting = true; |
|
|
quitting = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|