mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
[patch from Kelvin Delbarre]
The CDROM status call "WhoIsThere" (csCode 97) is now implemented. Apart from eliminating "WARNING: Unknown CDROMStatus(97)" complaints from the console log, this does not appear to have had any effects whatsoever. A typo in the implementation of the CDROM status call "GetCDFeatures" has been corrected per Technical Note DV22: http://developer.apple.com/technotes/dv/dv_22.html
This commit is contained in:
parent
c23511080e
commit
a9086a8165
@ -910,6 +910,17 @@ int16 CDROMStatus(uint32 pb, uint32 dce)
|
||||
}
|
||||
return noErr;
|
||||
}
|
||||
|
||||
case 97: { // WhoIsThere
|
||||
uint8 drives_present = 0;
|
||||
drive_vec::iterator info, end = drives.end();
|
||||
for (info = drives.begin(); info != end; ++info) {
|
||||
if (info->num <= 6)
|
||||
drives_present |= (1 << info->num);
|
||||
}
|
||||
WriteMacInt8(pb + csParam + 1, drives_present);
|
||||
return noErr;
|
||||
}
|
||||
}
|
||||
|
||||
// Drive valid?
|
||||
@ -961,7 +972,7 @@ int16 CDROMStatus(uint32 pb, uint32 dce)
|
||||
|
||||
case 121: // Get CD features
|
||||
WriteMacInt16(pb + csParam, 0x0200); // 300 KB/s
|
||||
WriteMacInt16(pb + csParam, 0x0300); // SCSI-2, stereo
|
||||
WriteMacInt16(pb + csParam + 2, 0x0c00); // SCSI-2, stereo
|
||||
return noErr;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user