mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-27 23:50:13 +00:00
Fix RAM disk always patched, even if cdrEN or dbgEN
This commit is contained in:
parent
4b1db5839d
commit
43f3c37f99
Binary file not shown.
BIN
bin/rom8M.bin
BIN
bin/rom8M.bin
Binary file not shown.
4
rdisk.c
4
rdisk.c
@ -186,14 +186,14 @@ static void RDInit(IOParamPtr p, DCtlPtr d, RDiskStorage_t *c) {
|
||||
peek24L((long*)0x40851D9C, c->cdrDisPos);
|
||||
// Patch
|
||||
if (c->dbgDisPos < RDiskSize) {
|
||||
if (c->ramdisk) { poke24(c->ramdisk + c->dbgDisPos, c->dbgDisByte); }
|
||||
if (c->ramdisk && !dbgEN) { poke24(c->ramdisk + c->dbgDisPos, c->dbgDisByte); }
|
||||
else { peek24(dbgEN ?
|
||||
RDiskBuf + c->dbgDisPos :
|
||||
(char*)0x40851DA8, c->dbgDisByte);
|
||||
}
|
||||
}
|
||||
if (c->dbgDisPos < RDiskSize) {
|
||||
if (c->ramdisk) { poke24(c->ramdisk + c->cdrDisPos, c->cdrDisByte); }
|
||||
if (c->ramdisk && !cdrEN) { poke24(c->ramdisk + c->cdrDisPos, c->cdrDisByte); }
|
||||
else { peek24(cdrEN ?
|
||||
RDiskBuf + c->cdrDisPos :
|
||||
(char*)0x40851DA9, c->cdrDisByte);
|
||||
|
Loading…
Reference in New Issue
Block a user