public override bool Execute() { IHost xHost = null; switch (mLaunchType) { case LaunchTypeEnum.Bochs: xHost = new Bochs(false, Path.GetFullPath(ConfigurationFile), Path.GetFullPath(ISO), null, false, false); break; case LaunchTypeEnum.VMware: //xHost = new VMware(); break; case LaunchTypeEnum.HyperV: //xHost = new HyperV(true, "", ""); break; default: Log.LogError($"Unknown launch type! Launch type: '{mLaunchType}'"); return(false); } Log.LogMessage(MessageImportance.High, "LAUNCHING"); xHost.Start(); return(true); }
public override bool Execute() { var xParams = new Dictionary <string, string>() { ["ISOFile"] = IsoFile, [BuildPropertyNames.EnableBochsDebugString] = "False", [BuildPropertyNames.StartBochsDebugGui] = "False", ["VisualStudioDebugPort"] = @"Pipe: Cosmos\Serial" }; var xBochs = new Bochs(xParams, false, new FileInfo(ConfigurationFile)); xBochs.Start(); return(true); }