Enabling post-boot mode enables accRun

This commit is contained in:
Zane Kaminski 2020-07-15 02:13:06 -04:00
parent da40ea1d5f
commit 8876749ae0

View File

@ -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;
} }