mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-05-31 20:41:28 +00:00
Fixed wrong disk type for Return Drive Info cscode 23
This commit is contained in:
parent
9390716fa0
commit
b9657222e8
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/rom2M.bin
BIN
bin/rom2M.bin
Binary file not shown.
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
Binary file not shown.
4
rdisk.c
4
rdisk.c
|
@ -242,8 +242,8 @@ OSErr RDiskControl(CntrlParamPtr p, DCtlPtr d) {
|
||||||
// high word (bytes 2 & 3) clear
|
// high word (bytes 2 & 3) clear
|
||||||
// byte 1 = primary + fixed media + internal
|
// byte 1 = primary + fixed media + internal
|
||||||
// byte 0 = drive type (0x10 is RAM disk) / (0x11 is ROM disk)
|
// byte 0 = drive type (0x10 is RAM disk) / (0x11 is ROM disk)
|
||||||
if (c->status.writeProt) { *(long*)p->csParam = 0x00000410; }
|
if (c->status.writeProt) { *(long*)p->csParam = 0x00000411; }
|
||||||
else { *(long*)p->csParam = 0x00000411; }
|
else { *(long*)p->csParam = 0x00000410; }
|
||||||
return noErr;
|
return noErr;
|
||||||
case 24: // Return SCSI partition size
|
case 24: // Return SCSI partition size
|
||||||
*(long*)p->csParam = RDiskSize / 512;
|
*(long*)p->csParam = RDiskSize / 512;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user