Only attempt Cue sheet parsing on files that end in .cue (in any letter case), fixes errors with some .ISO images.

This commit is contained in:
OBattler
2025-01-03 01:19:52 +01:00
parent 92e5ed6aae
commit 370c560c34
2 changed files with 13 additions and 7 deletions

View File

@@ -2174,7 +2174,7 @@ cdrom_exit(uint8_t id)
memset(dev->image_path, 0, sizeof(dev->image_path));
pclog("cdrom_exit(%i): cdrom_insert(%i)\n", id, id);
cdrom_log("cdrom_exit(%i): cdrom_insert(%i)\n", id, id);
cdrom_insert(id);
}
@@ -2252,7 +2252,7 @@ cdrom_reload(uint8_t id)
#endif
/* Signal media change to the emulated machine. */
pclog("cdrom_reload(%i): cdrom_insert(%i)\n", id, id);
cdrom_log("cdrom_reload(%i): cdrom_insert(%i)\n", id, id);
cdrom_insert(id);
/* The drive was previously empty, transition directly to UNIT ATTENTION. */