示例#1
0
        public async Task <Process> CreateProcessAsync(MLaunchOption option)
        {
            checkLaunchOption(option);
            var launch = new MLaunch(option);

            return(await Task.Run(launch.GetProcess).ConfigureAwait(false));
        }
示例#2
0
        public Process CreateProcess(MLaunchOption option)
        {
            checkLaunchOption(option);
            var launch = new MLaunch(option);

            return(launch.GetProcess());
        }
示例#3
0
        public Process CreateProcess(MLaunchOption option)
        {
            if (option.Path == null)
            {
                option.Path = MinecraftPath;
            }

            if (string.IsNullOrEmpty(option.JavaPath))
            {
                option.JavaPath = CheckJRE();
            }

            var launch = new MLaunch(option);

            return(launch.GetProcess());
        }