mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-24 17:32:39 +00:00
Enabling post-boot mode enables accRun
This commit is contained in:
parent
da40ea1d5f
commit
8876749ae0
6
rdisk.c
6
rdisk.c
@ -420,8 +420,10 @@ OSErr RDiskControl(CntrlParamPtr p, DCtlPtr d) {
|
|||||||
case 24: // Return SCSI partition size
|
case 24: // Return SCSI partition size
|
||||||
*(long*)p->csParam = RDiskSize / 512;
|
*(long*)p->csParam = RDiskSize / 512;
|
||||||
return noErr;
|
return noErr;
|
||||||
case 2351: // Enable post-boot mode
|
case 2351: // Post-boot
|
||||||
c->postBoot = 1;
|
c->postBoot = 1; // Enable post-boot mode
|
||||||
|
d->dCtlFlags |= dNeedTimeMask; // Enable accRun
|
||||||
|
d->dCtlDelay = 150; // Set accRun delay (150 ticks is 2.5 sec.)
|
||||||
return noErr;
|
return noErr;
|
||||||
default: return controlErr;
|
default: return controlErr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user