예제 #1
0
 public static void Exit()
 {
     Log.Buffered = false;
     Log.Info("LifeCycle.Exit() called");
     HarmonyUtil.UninstallHarmony(HARMONY_ID_MANUAL);
     preloadPatchesApplied_ = false;
 }
예제 #2
0
 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
 }
예제 #3
0
 public static void Unload()
 {
     LogCalled();
     ARTool.Release();
     ObserverDisposable?.Dispose();
     HintBox.Release();
     HarmonyUtil.UninstallHarmony(HARMONY_ID);
     NetworkExtensionManager.RawInstance?.OnUnload();
 }
예제 #4
0
        public static void Disable()
        {
            LoadingManager.instance.m_simulationDataReady -= SimulationDataReady;
            Unload(); // in case of hot unload

            if (fastTestHarmony)
            {
                HarmonyUtil.UninstallHarmony(HARMONY_ID);
            }
        }
예제 #5
0
        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
        }
예제 #6
0
 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;
 }
예제 #7
0
 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;
        }
예제 #9
0
        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);
 }
예제 #11
0
 public void OnDisabled()
 {
     HarmonyUtil.UninstallHarmony(HARMONY_ID);
 }
 public override void OnReleased() =>
 HarmonyUtil.UninstallHarmony(HARMONY_ID);
예제 #13
0
 public static void UninstallHarmony() => HarmonyUtil.UninstallHarmony(HARMONY_ID);