Virtual ISO: Initial commit
This commit is contained in:
@@ -285,11 +285,12 @@ cdrom_image_open(cdrom_t *dev, const char *fn)
|
||||
dev->image = img;
|
||||
|
||||
/* Open the image. */
|
||||
if (!cdi_set_device(img, fn))
|
||||
int i = cdi_set_device(img, fn);
|
||||
if (!i)
|
||||
return image_open_abort(dev);
|
||||
|
||||
/* All good, reset state. */
|
||||
if (! strcasecmp(plat_get_extension((char *) fn), "ISO"))
|
||||
if (i == 2)
|
||||
dev->cd_status = CD_STATUS_DATA_ONLY;
|
||||
else
|
||||
dev->cd_status = CD_STATUS_STOPPED;
|
||||
|
||||
Reference in New Issue
Block a user