- check if qemu-img exists for attempting to create hdd image

svn path=/trunk/; revision=28659
This commit is contained in:
Johannes Anderwald 2007-08-29 22:09:07 +00:00
parent 628a33b902
commit be17f95ee8

View file

@ -155,6 +155,13 @@ namespace Sysreg_
NULL
};
if (!isFileExisting(qemuimgdir))
{
cerr << "Error: ROS_EMU_PATH must contain the path to qemu and qemu-img" << endl;
return false;
}
getDefaultHDDImage(output);
options[1] = (TCHAR*)output.c_str();