CD-ROM emulation now reads multiple sectors at once.

This commit is contained in:
SarahW 2018-03-04 13:59:39 +00:00
commit bab6695b2c
7 changed files with 59 additions and 50 deletions

View file

@ -284,10 +284,10 @@ static void image_load(void)
{
}
static int image_readsector(uint8_t *b, int sector)
static int image_readsector(uint8_t *b, int sector, int count)
{
if (!cdrom) return -1;
return !cdrom->ReadSector(b, false, sector);
return !cdrom->ReadSectors((PhysPt)b, false, sector, count);
}
static void image_readsector_raw(uint8_t *b, int sector)