cdrom/cdrom.c: Fix some nonsense with labels, fixes compile error on... I think Linux?
This commit is contained in:
@@ -1894,14 +1894,14 @@ cdrom_readsector_raw(cdrom_t *dev, uint8_t *buffer, int sector, int ismsf, int c
|
|||||||
case 0x00:
|
case 0x00:
|
||||||
lba = sector;
|
lba = sector;
|
||||||
break;
|
break;
|
||||||
case 0x40:
|
case 0x40: {
|
||||||
int m = bcd2bin((sector >> 24) & 0xff);
|
int m = bcd2bin((sector >> 24) & 0xff);
|
||||||
int s = bcd2bin((sector >> 16) & 0xff);
|
int s = bcd2bin((sector >> 16) & 0xff);
|
||||||
int f = bcd2bin((sector >> 8) & 0xff);
|
int f = bcd2bin((sector >> 8) & 0xff);
|
||||||
|
|
||||||
lba = MSFtoLBA(m, s, f) - 150;
|
lba = MSFtoLBA(m, s, f) - 150;
|
||||||
break;
|
break;
|
||||||
case 0x80:
|
} case 0x80:
|
||||||
lba = bcd2bin((sector >> 24) & 0xff);
|
lba = bcd2bin((sector >> 24) & 0xff);
|
||||||
break;
|
break;
|
||||||
/* Never used values but the compiler complains. */
|
/* Never used values but the compiler complains. */
|
||||||
|
|||||||
Reference in New Issue
Block a user