mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2025-08-07 23:25:11 +00:00
Enabling post-boot mode enables accRun
This commit is contained in:
6
rdisk.c
6
rdisk.c
@@ -420,8 +420,10 @@ OSErr RDiskControl(CntrlParamPtr p, DCtlPtr d) {
|
||||
case 24: // Return SCSI partition size
|
||||
*(long*)p->csParam = RDiskSize / 512;
|
||||
return noErr;
|
||||
case 2351: // Enable post-boot mode
|
||||
c->postBoot = 1;
|
||||
case 2351: // Post-boot
|
||||
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;
|
||||
default: return controlErr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user