Ejemplo n.º 1
0
        public async Task <Process> CreateProcessAsync(MLaunchOption option)
        {
            checkLaunchOption(option);
            var launch = new MLaunch(option);

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

            return(launch.GetProcess());
        }
Ejemplo n.º 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());
        }