This commit is contained in:
Zane Kaminski 2021-03-31 19:28:51 -04:00
parent 700f95c776
commit dd43379d92
3 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -158,10 +158,10 @@ static void RDInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
// Patch debug and CD-ROM enable bytes
char dis = 0x44;
//if (!c->dbgEN) {
copy24(&dis/*RDiskDBGDisByte*/, &c->ramdisk[*RDiskDBGDisPos], 1);
//copy24(&dis/*RDiskDBGDisByte*/, &c->ramdisk[*RDiskDBGDisPos], 1);
//}
//if (!c->cdromEN) {
copy24(&dis/*RDiskCDROMDisByte*/, &c->ramdisk[*RDiskCDROMDisPos], 1);
//copy24(&dis/*RDiskCDROMDisByte*/, &c->ramdisk[*RDiskCDROMDisPos], 1);
//}
}
@ -208,12 +208,12 @@ OSErr RDPrime(IOParamPtr p, DCtlPtr d) {
if (/*!c->dbgEN && */!c->ramdisk &&
*RDiskDBGDisPos >= d->dCtlPosition &&
*RDiskDBGDisPos < d->dCtlPosition + p->ioReqCount) {
p->ioBuffer[*RDiskDBGDisPos - d->dCtlPosition] = 0x44;//*RDiskDBGDisByte;
//p->ioBuffer[*RDiskDBGDisPos - d->dCtlPosition] = 0x44;//*RDiskDBGDisByte;
}
if (/*!c->cdromEN && */!c->ramdisk &&
*RDiskCDROMDisPos >= d->dCtlPosition &&
*RDiskCDROMDisPos < d->dCtlPosition + p->ioReqCount) {
p->ioBuffer[*RDiskCDROMDisPos - d->dCtlPosition] = 0x44;//*RDiskCDROMDisByte;
//p->ioBuffer[*RDiskCDROMDisPos - d->dCtlPosition] = 0x44;//*RDiskCDROMDisByte;
}
} else if (cmd == aWrCmd) { // Write
// Fail if write protected or RAM disk buffer not set up