mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2025-04-10 01:37:07 +00:00
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 <laurent@vivier.eu>
This commit is contained in:
parent
ceb8d24303
commit
0c1e0071de
@ -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)
|
||||
)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user