public static void Exit() { Log.Buffered = false; Log.Info("LifeCycle.Exit() called"); HarmonyUtil.UninstallHarmony(HARMONY_ID_MANUAL); preloadPatchesApplied_ = false; }
public static void Disable() { LogCalled(); LoadingManager.instance.m_levelPreLoaded -= PreLoad; //install harmony LoadingManager.instance.m_simulationDataReady -= SimulationDataReady; LoadingManager.instance.m_levelPreUnloaded -= ExitToMainMenu; HarmonyUtil.UninstallHarmony(HarmonyId); ExitToMainMenu(); // in case of hot unload }
public static void Unload() { LogCalled(); ARTool.Release(); ObserverDisposable?.Dispose(); HintBox.Release(); HarmonyUtil.UninstallHarmony(HARMONY_ID); NetworkExtensionManager.RawInstance?.OnUnload(); }
public static void Disable() { LoadingManager.instance.m_simulationDataReady -= SimulationDataReady; Unload(); // in case of hot unload if (fastTestHarmony) { HarmonyUtil.UninstallHarmony(HARMONY_ID); } }
public static void Disable() { Log.Buffered = false; //LoadingManager.instance.m_simulationDataReady -= SimulationDataReady; LoadingManager.instance.m_levelPreLoaded -= Preload; Unload(); // in case of hot unload Exit(); #if FAST_TEST_HARMONY HarmonyUtil.UninstallHarmony(HARMONY_ID); #endif }
public static void Unload() { if (!Loaded) { return; //protect against disabling from main menu. } Log.Info("LifeCycle.Unload() called"); HarmonyUtil.UninstallHarmony(HARMONY_ID); Settings.GameConfig = null; NodeControllerTool.Remove(); Loaded = false; }
public static void Unload() { try { LogCalled(); UI.Debug.PWSelector.Release(); UI.Debug.PWModifier.Release(); ARTool.Release(); ObserverDisposable?.Dispose(); HintBox.Release(); HarmonyUtil.UninstallHarmony(HARMONY_ID); NetworkExtensionManager.RawInstance?.OnUnload(); }catch (Exception ex) { Log.Exception(ex); } }
public void OnDisabled() { Log.Info("OnDisabled() called Name:" + Name); _isEnabled = false; if (HelpersExtensions.InGameOrEditor) { HarmonyUtil.UninstallHarmony(LoadingExtension.HARMONY_ID); } PrefabUtils.ClearCache(); LoadingWrapperPatch.OnPostLevelLoaded -= PrefabUtils.CachePrefabs; LoadingManager.instance.m_levelUnloaded -= PrefabUtils.ClearCache; #if DEBUG LoadingWrapperPatch.OnPostLevelLoaded -= TestOnLoad.Test; #endif Options.instance = null; }
public void OnDisabled() { try { foreach (var item in GameObject.FindObjectsOfType <EntryStatusPanel>()) { GameObject.DestroyImmediate(item?.gameObject); } LoadingManager.instance.m_introLoaded -= CacheUtil.CacheData; LoadingManager.instance.m_introLoaded -= LoadOrderUtil.TurnOffSteamPanels; LoadingManager.instance.m_introLoaded -= CheckPatchLoader; HarmonyUtil.UninstallHarmony(HARMONY_ID); MonoStatus.Release(); LOMAssetDataExtension.Release(); Settings.ConfigUtil.Terminate(); CheckSubsUtil.RemoveEvents(); Log.Buffered = false; } catch (Exception ex) { Log.Exception(ex); } }
public void OnDisabled() { LifeCycle.Release(); HarmonyUtil.UninstallHarmony(HarmonyId); }
public void OnDisabled() { HarmonyUtil.UninstallHarmony(HARMONY_ID); }
public override void OnReleased() => HarmonyUtil.UninstallHarmony(HARMONY_ID);
public static void UninstallHarmony() => HarmonyUtil.UninstallHarmony(HARMONY_ID);