void OnApplicationQuit() { SceneManager.activeSceneChanged -= OnActiveSceneChanged; SceneManager.sceneLoaded -= OnSceneLoaded; SceneManager.sceneUnloaded -= OnSceneUnloaded; bsPlugins.OnApplicationQuit(); ipaPlugins.OnApplicationQuit(); foreach (var provider in PluginManager.configProviders) { if (provider.Key.HasChanged) { try { provider.Key.Save(); } catch (Exception e) { Logging.Logger.log.Error("Error when trying to save config"); Logging.Logger.log.Error(e); } } } quitting = true; }
void OnApplicationQuit() { SceneManager.activeSceneChanged -= OnActiveSceneChanged; SceneManager.sceneLoaded -= OnSceneLoaded; SceneManager.sceneUnloaded -= OnSceneUnloaded; bsPlugins.OnApplicationQuit(); ipaPlugins.OnApplicationQuit(); Config.Config.Save(); quitting = true; }
void OnApplicationQuit() { SceneManager.activeSceneChanged -= OnActiveSceneChanged; SceneManager.sceneLoaded -= OnSceneLoaded; SceneManager.sceneUnloaded -= OnSceneUnloaded; bsPlugins.OnApplicationQuit(); ipaPlugins.OnApplicationQuit(); ConfigRuntime.ShutdownRuntime(); // this seems to be needed quitting = true; }