Exemplo n.º 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);
        }
Exemplo n.º 2
0
        private static int PreStart()
        {
            if (!MelonUtils.IsGameIl2Cpp())
            {
                GameVersionHandler.Setup();
            }

            MelonHandler.OnApplicationEarlyStart();

            return(MelonStartScreen.LoadAndRun(Il2CppGameSetup));
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 private static int PreStart()
 {
     MelonHandler.OnApplicationEarlyStart();
     return(MelonStartScreen.LoadAndRun(Il2CppGameSetup));
 }