コード例 #1
0
        internal static bool Run()
        {
            Load();

            if (RunMethod != null)
            {
                DisableCloseButton();
                int returnval = (int)RunMethod.Invoke(null, new object[0]);
                EnableCloseButton();
                MelonUtils.SetCurrentDomainBaseDirectory(MelonUtils.GameDirectory);
                return(returnval == 0);
            }

            return(false);
        }
コード例 #2
0
        internal static bool Run()
        {
            Load();

            if (RunMethod != null)
            {
                IntPtr windowHandle = Process.GetCurrentProcess().MainWindowHandle;
                DisableCloseButton(windowHandle);
                int returnval = (int)RunMethod.Invoke(null, new object[0]);
                EnableCloseButton(windowHandle);
                MelonUtils.SetCurrentDomainBaseDirectory(MelonUtils.GameDirectory);
                return(returnval == 0);
            }

            return(false);
        }
コード例 #3
0
        internal static void Run(AppDomain domain)
        {
            string gameDir = string.Copy(MelonUtils.GameDirectory);

            MelonUtils.SetCurrentDomainBaseDirectory(gameDir, domain);
        }