mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-03-08 08:30:34 +00:00
cdrom.cpp: implemented Status(6)
This commit is contained in:
parent
129e9cd85d
commit
b6f3185c3b
@ -22,6 +22,8 @@ V0.8 (snapshot) - <date>
|
|||||||
- include/macos_util.h: defines FOURCC() macro to make MacOS-like
|
- include/macos_util.h: defines FOURCC() macro to make MacOS-like
|
||||||
four-character-codes, replaced most instances of multi-character
|
four-character-codes, replaced most instances of multi-character
|
||||||
constants in the sources by this macro to avoid compiler warnings
|
constants in the sources by this macro to avoid compiler warnings
|
||||||
|
- cdrom.cpp: implemented Status(6) call (return format list)
|
||||||
|
[Landon Fuller]
|
||||||
- Imported some changes from the Windows port, most notably FPU fixes
|
- Imported some changes from the Windows port, most notably FPU fixes
|
||||||
and the 1Hz interrupt [Lauri Pesonen]
|
and the 1Hz interrupt [Lauri Pesonen]
|
||||||
- Ported Lauri Pesonen's FPU core to GCC/i386 [Gwenole Beauchesne]
|
- Ported Lauri Pesonen's FPU core to GCC/i386 [Gwenole Beauchesne]
|
||||||
|
@ -917,6 +917,16 @@ int16 CDROMStatus(uint32 pb, uint32 dce)
|
|||||||
|
|
||||||
// Drive-specific codes
|
// Drive-specific codes
|
||||||
switch (code) {
|
switch (code) {
|
||||||
|
case 6: // Return format list
|
||||||
|
if (ReadMacInt16(pb + csParam) > 0) {
|
||||||
|
uint32 adr = ReadMacInt32(pb + csParam + 2);
|
||||||
|
WriteMacInt16(pb + csParam, 1); // 1 format
|
||||||
|
WriteMacInt32(adr, SysGetFileSize(info->fh) / 512); // Number of blocks
|
||||||
|
WriteMacInt32(adr + 4, 0); // heads/track/sectors
|
||||||
|
return noErr;
|
||||||
|
} else
|
||||||
|
return paramErr;
|
||||||
|
|
||||||
case 8: // DriveStatus
|
case 8: // DriveStatus
|
||||||
Mac2Mac_memcpy(pb + csParam, info->status, 22);
|
Mac2Mac_memcpy(pb + csParam, info->status, 22);
|
||||||
return noErr;
|
return noErr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user