internal static void Quit() { MelonHandler.OnApplicationQuit(); MelonPreferences.Save(); HarmonyInstance.UnpatchAll(); bHaptics.Quit(); MelonLogger.Flush(); Fixes.QuitFix.Run(); }
internal static void Quit() { MelonHandler.OnApplicationQuit(); try { MelonPreferences.Save(); } catch (Exception ex) { MelonLogger.Error("MelonPreferences.Save Exception: " + ex.ToString()); MelonPreferences.WasError = true; } Harmony.HarmonyInstance.UnpatchAllInstances(); try { bHaptics.Quit(); } catch (Exception ex) { MelonLogger.Error("bHaptics.Quit Exception: " + ex.ToString()); bHaptics.WasError = true; } MelonLogger.Flush(); if (QuitFix()) { System.Diagnostics.Process.GetCurrentProcess().Kill(); } }
internal static void Quit() { MelonHandler.OnApplicationQuit(); MelonPreferences.Save(); HarmonyInstance.UnpatchAll(); if (MelonLaunchOptions.Core.EnableBHapticsIntegration) { bHaptics.Quit(); } Fixes.QuitFix.Run(); }
internal static void Quit() { MelonHandler.OnApplicationQuit(); MelonPreferences.Save(); HarmonyInstance.UnpatchSelf(); bHaptics.Quit(); MelonLogger.Flush(); if (MelonLaunchOptions.Core.QuitFix) { Process.GetCurrentProcess().Kill(); } }