internal static int Start() { if (!SupportModule.Initialize()) { return(1); } AddUnityDebugLog(); if (MelonLaunchOptions.Core.EnableBHapticsIntegration) { bHaptics.Start(); } if (MelonLaunchOptions.Core.EnableCompatibilityLayers) { MelonCompatibilityLayer.SetupModules(MelonCompatibilityLayer.SetupType.OnApplicationStart); } MelonHandler.OnApplicationStart_Plugins(); MelonHandler.LoadMods(); MelonHandler.OnApplicationStart_Mods(); MelonHandler.OnApplicationLateStart_Plugins(); MelonHandler.OnApplicationLateStart_Mods(); return(0); }
private static void Start() { if (!SupportModule.Initialize()) { return; } AddUnityDebugLog(); try { bHaptics.Start(); } catch (Exception ex) { MelonLogger.Error("bHaptics.Start Exception: " + ex.ToString()); bHaptics.WasError = true; } MelonHandler.OnApplicationStart_Plugins(); MelonHandler.LoadMods(); Main.LegacySupport(); MelonHandler.OnApplicationStart_Mods(); }
private static int Start() { if (!SupportModule.Setup()) { return(1); } AddUnityDebugLog(); bHaptics.Start(); MelonCompatibilityLayer.SetupModules(MelonCompatibilityLayer.SetupType.OnApplicationStart); MelonHandler.OnApplicationStart_Plugins(); MelonHandler.LoadMods(); MelonStartScreen.DisplayModLoadIssuesIfNeeded(); MelonHandler.OnApplicationStart_Mods(); return(0); }
private static int Start() { if (!SupportModule.Initialize()) { return(1); } AddUnityDebugLog(); bHaptics.Start(); MelonHandler.OnApplicationStart_Plugins(); MelonHandler.LoadMods(); MelonHandler.OnApplicationStart_Mods(); MelonHandler.OnApplicationLateStart_Plugins(); MelonHandler.OnApplicationLateStart_Mods(); return(0); }
private static int Start() { bHaptics.Start(); MelonHandler.OnApplicationStart_Plugins(); MelonHandler.LoadMods(); MelonHandler.OnPreSupportModule(); if (!SupportModule.Setup()) { return(1); } if (MelonUtils.IsGameIl2Cpp()) { HarmonyLib.Public.Patching.PatchManager.ResolvePatcher += HarmonyIl2CppMethodPatcher.TryResolve; } MelonCompatibilityLayer.SetupModules(MelonCompatibilityLayer.SetupType.OnApplicationStart); AddUnityDebugLog(); MelonHandler.OnApplicationStart_Mods(); //MelonStartScreen.DisplayModLoadIssuesIfNeeded(); return(0); }