internal static int PreStart() { if (!MelonUtils.IsGameIl2Cpp()) { GameVersionHandler.Setup(); } MelonHandler.OnApplicationEarlyStart(); if (MelonUtils.IsGameIl2Cpp()) { if (MelonLaunchOptions.Core.EnableAssemblyGeneration) { if (!Il2CppAssemblyGenerator.Run()) { return(1); } } HarmonyLib.Public.Patching.PatchManager.ResolvePatcher += HarmonyIl2CppMethodPatcher.TryResolve; GameVersionHandler.Setup(); } return(0); }
private static int Initialize() { Il2CppAssemblyGenerator.Load(); bHaptics.Load(); MelonHandler.LoadPlugins(); MelonHandler.OnPreInitialization(); return(0); }
private static int PreStart() { MelonHandler.OnApplicationEarlyStart(); if (!Il2CppAssemblyGenerator.Run()) { return(1); } if (MelonUtils.IsGameIl2Cpp()) { HarmonyLib.Public.Patching.PatchManager.ResolvePatcher += HarmonyIl2CppMethodPatcher.TryResolve; } return(0); }
private static int Il2CppGameSetup() { if (MelonUtils.IsGameIl2Cpp()) { if (!Il2CppAssemblyGenerator.Run()) { return(1); } HarmonyLib.Public.Patching.PatchManager.ResolvePatcher += HarmonyIl2CppMethodPatcher.TryResolve; GameVersionHandler.Setup(); } return(0); }
static MelonLaunchOptions() { Core.Setup(); Console.Setup(); Il2CppAssemblyGenerator.Setup(); }
private static int Il2CppGameSetup() => (MelonUtils.IsGameIl2Cpp() && !Il2CppAssemblyGenerator.Run()) ? 1 : 0;