Example #1
0
        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);
        }
Example #2
0
        private static int Initialize()
        {
            Il2CppAssemblyGenerator.Load();
            bHaptics.Load();

            MelonHandler.LoadPlugins();
            MelonHandler.OnPreInitialization();

            return(0);
        }
Example #3
0
        private static int PreStart()
        {
            MelonHandler.OnApplicationEarlyStart();

            if (!Il2CppAssemblyGenerator.Run())
            {
                return(1);
            }

            if (MelonUtils.IsGameIl2Cpp())
            {
                HarmonyLib.Public.Patching.PatchManager.ResolvePatcher += HarmonyIl2CppMethodPatcher.TryResolve;
            }

            return(0);
        }
Example #4
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();
 }
Example #6
0
 private static int Il2CppGameSetup()
 => (MelonUtils.IsGameIl2Cpp() &&
     !Il2CppAssemblyGenerator.Run())
         ? 1 : 0;