示例#1
0
        internal static void Quit()
        {
            MelonHandler.OnApplicationQuit();
            MelonPreferences.Save();

            HarmonyInstance.UnpatchAll();
            bHaptics.Quit();

            MelonLogger.Flush();
            Fixes.QuitFix.Run();
        }
示例#2
0
 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();
     }
 }
示例#3
0
        internal static void Quit()
        {
            MelonHandler.OnApplicationQuit();
            MelonPreferences.Save();

            HarmonyInstance.UnpatchAll();

            if (MelonLaunchOptions.Core.EnableBHapticsIntegration)
            {
                bHaptics.Quit();
            }

            Fixes.QuitFix.Run();
        }
示例#4
0
        internal static void Quit()
        {
            MelonHandler.OnApplicationQuit();
            MelonPreferences.Save();

            HarmonyInstance.UnpatchSelf();
            bHaptics.Quit();

            MelonLogger.Flush();

            if (MelonLaunchOptions.Core.QuitFix)
            {
                Process.GetCurrentProcess().Kill();
            }
        }