RAM disk seems to work too

but only 32-bit mode tested for RAM and ROM disk. Need to test RAM and ROM disk in 24-bit mode next
This commit is contained in:
Zane Kaminski 2020-06-26 03:25:30 -04:00
parent 0380b7f819
commit b9f83090ee
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -93,7 +93,7 @@ OSErr RDiskInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
c->ramdisk_alloc = NULL;
c->ramdisk_valid = 0;
// If RAM disk set in PRAM or A pressed, enable RAM disk
/*if (ram || RDiskISAPressed()) {
if (ram || RDiskIsAPressed()) {
unsigned long minBufPtr, newBufPtr;
// Clearing write protect marks RAM disk enabled
c->drvsts.writeProt = 0;
@ -111,7 +111,7 @@ OSErr RDiskInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
// Enable accRun to allocate and copy later
d->dCtlFlags |= dNeedTimeMask;
d->dCtlDelay = 0x10;
}*/
}
return noErr;
} else { // Otherwise if R not held down and ROM boot not set in PRAM,
// Remove our driver from the drive queue