mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:45:40 +00:00
- improve error checking
svn path=/trunk/; revision=28819
This commit is contained in:
parent
e35de311ed
commit
2f0ada9276
1 changed files with 11 additions and 3 deletions
|
@ -261,17 +261,25 @@ namespace Sysreg_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
m_BootCmd = m_EmuPath + _T(" -L ") + qemudir + _T(" -m ") + m_MaxMem + _T(" -hda ") + m_HDDImage + _T(" -serial ") + pipe;
|
m_BootCmd = m_EmuPath + _T(" -L ") + qemudir + _T(" -m ") + m_MaxMem + _T(" -serial ") + pipe;
|
||||||
|
|
||||||
if (m_CDImage.length())
|
if (m_CDImage.length())
|
||||||
{
|
{
|
||||||
/* boot from cdrom */
|
/* boot from cdrom */
|
||||||
m_BootCmd += _T(" -boot d -cdrom ") + m_CDImage;
|
m_BootCmd += _T(" -boot d -cdrom ") + m_CDImage;
|
||||||
}
|
}
|
||||||
else
|
else if (m_HDDImage.length ())
|
||||||
{
|
{
|
||||||
/* boot from hdd */
|
/* boot from hdd */
|
||||||
m_BootCmd += _T(" -boot c ");
|
m_BootCmd += _T(" -boot c -hda ") + m_HDDImage;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* no boot device provided
|
||||||
|
*/
|
||||||
|
cerr << "Error: no bootdevice provided" << endl;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __LINUX__
|
#ifdef __LINUX__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue