From 0c1e0071de622b9b68ef9dd65978db6ca67240a3 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 25 Sep 2015 00:45:58 +0200 Subject: [PATCH] CDROM: allow to boot from MacOS 7.6 CDROM Reading one sector from the CDROM is always reading several (4) from the SD card, so always set multBlock to one in this case. Signed-off-by: Laurent Vivier --- software/SCSI2SD/src/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/SCSI2SD/src/disk.c b/software/SCSI2SD/src/disk.c index edda97e5..7a599390 100755 --- a/software/SCSI2SD/src/disk.c +++ b/software/SCSI2SD/src/disk.c @@ -244,7 +244,7 @@ static void doRead(uint32 lba, uint32 blocks) scsiDev.phase = DATA_IN; scsiDev.dataLen = 0; // No data yet - if ((blocks == 1) || + if ((blocks * SDSectorsPerSCSISector(scsiDev.target->liveCfg.bytesPerSector) == 1) || unlikely(((uint64) lba) + blocks == capacity) ) { -- 2.26.2