Assorted CD-ROM fixes (now cue sheets starting at a non-zero sector work correctly) and increased the maximum number of CD-ROM drives to 8.

This commit is contained in:
OBattler
2023-10-04 02:49:22 +02:00
parent 7fed7c1510
commit 209c8fbbda
4 changed files with 15 additions and 9 deletions

View File

@@ -2256,7 +2256,7 @@ begin:
another variable. */
if (dev->drv->cd_status == CD_STATUS_EMPTY)
max_len = 70; /* No media inserted. */
else if (dev->drv->cdrom_capacity > 405000)
else if (dev->drv->cdrom_capacity > CD_MAX_SECTORS)
max_len = 65; /* DVD. */
else if (dev->drv->cd_status == CD_STATUS_DATA_ONLY)
max_len = 1; /* Data CD. */