mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-12-27 18:30:52 +00:00
...
This commit is contained in:
parent
d7e4ba44a3
commit
5be7255d9e
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
6
rdisk.c
6
rdisk.c
@ -62,7 +62,7 @@ void P24(Ptr dbg, Ptr cdrom, char dbgByte, char cdromByte) {
|
|||||||
SwapMMUMode(&mode);
|
SwapMMUMode(&mode);
|
||||||
// Patch debug and CD-ROM disable bytes
|
// Patch debug and CD-ROM disable bytes
|
||||||
if (dbg) { *dbg = dbgByte; }
|
if (dbg) { *dbg = dbgByte; }
|
||||||
//if (cdrom) { *cdrom = cdromByte; }
|
if (cdrom) { *cdrom = cdromByte; }
|
||||||
SwapMMUMode(&mode);
|
SwapMMUMode(&mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ OSErr RDCtl(CntrlParamPtr p, DCtlPtr d) {
|
|||||||
switch (p->csCode) {
|
switch (p->csCode) {
|
||||||
case killCode:
|
case killCode:
|
||||||
return noErr;
|
return noErr;
|
||||||
case kFormat:
|
/*case kFormat:
|
||||||
if (!c->status.diskInPlace || c->status.writeProt ||
|
if (!c->status.diskInPlace || c->status.writeProt ||
|
||||||
!c->ramdisk) { return controlErr; }
|
!c->ramdisk) { return controlErr; }
|
||||||
long zero[32];
|
long zero[32];
|
||||||
@ -251,7 +251,7 @@ OSErr RDCtl(CntrlParamPtr p, DCtlPtr d) {
|
|||||||
for (int i = 0; i < 32; i++) {
|
for (int i = 0; i < 32; i++) {
|
||||||
copy24((Ptr)zero, c->ramdisk + i * sizeof(zero), sizeof(zero));
|
copy24((Ptr)zero, c->ramdisk + i * sizeof(zero), sizeof(zero));
|
||||||
}
|
}
|
||||||
return noErr;
|
return noErr;*/
|
||||||
case kVerify:
|
case kVerify:
|
||||||
if (!c->status.diskInPlace) { return controlErr; }
|
if (!c->status.diskInPlace) { return controlErr; }
|
||||||
return noErr;
|
return noErr;
|
||||||
|
Loading…
Reference in New Issue
Block a user