- add disk param when booting from cdrom

- hardcode vnc 0 option to linux build
- make -no-reboot option available for windows hosts only

svn path=/trunk/; revision=28841
This commit is contained in:
Johannes Anderwald 2007-09-04 13:47:08 +00:00
parent 7700f97898
commit a6b6e781a2

View file

@ -266,6 +266,13 @@ namespace Sysreg_
{
/* boot from cdrom */
m_BootCmd += _T(" -boot d -cdrom ") + m_CDImage;
if (m_HDDImage.length ())
{
/* add disk when specified */
m_BootCmd += _T(" -hda ") + m_HDDImage;
}
}
else if (m_HDDImage.length ())
{
@ -291,11 +298,14 @@ namespace Sysreg_
m_PidFile += _T("/pid.txt");
m_BootCmd += _T(" -pidfile ");
m_BootCmd += m_PidFile;
#endif
m_BootCmd += _T(" -vnc 0");
#else
if (hasQemuNoRebootOption())
{
m_BootCmd += _T(" -no-reboot ");
}
#endif
return true;
}
//----------------------------------------------------------------------------------------