public async Task <Process> CreateProcessAsync(MLaunchOption option) { checkLaunchOption(option); var launch = new MLaunch(option); return(await Task.Run(launch.GetProcess).ConfigureAwait(false)); }
public Process CreateProcess(MLaunchOption option) { checkLaunchOption(option); var launch = new MLaunch(option); return(launch.GetProcess()); }
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()); }