public void OnDisabled() { if (Application.platform == RuntimePlatform.OSXPlayer) { Debug.Log("PatchLoader disabled"); return; } if (_doorstopManager.IsInstalled() && !_pluginInfo.isEnabled) { _doorstopManager.Disable(); } if (_doorstopManager.RequiresRestart) { ShowRestartGameModal($"The '{Name}' was uninstalled.\n{_doorstopManager.UninstallMessage}"); } _doorstopManager = null; _pluginInfo = null; _logger = null; _patchLoaderConfigFilePath = null; _configManager = null; Debug.Log("PatchLoader disabled"); }
public void OnDisabled() { if (_doorstopManager != null) { if (_doorstopManager.IsInstalled() && !_pluginInfo.isEnabled) { _doorstopManager.Disable(); } if (_doorstopManager.RequiresRestart) { ShowRestartGameModal($"The '{Name}' was uninstalled.\n{_doorstopManager.UninstallMessage}", logger: _logger); Debug.Log($"The '{Name}' was uninstalled \n{_doorstopManager.InstallMessage}"); } _doorstopManager = null; } _pluginInfo = null; _logger = null; _patchLoaderConfigFilePath = null; _configManager = null; Debug.Log("PatchLoader disabled"); }