Virtual ISO: Initial commit

This commit is contained in:
RichardG867
2022-03-26 22:17:09 -03:00
parent 7d15a75cf4
commit eeeb7b258d
6 changed files with 1279 additions and 195 deletions

View File

@@ -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;