mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-21 12:30:49 +00:00
Don't read legacy_ram in RDiskOpen
This commit is contained in:
parent
330f27caca
commit
c9788b080b
3
rdisk.c
3
rdisk.c
@ -59,14 +59,13 @@ static int RDiskFindDrvNum() {
|
||||
OSErr RDiskOpen(IOParamPtr p, DCtlPtr d) {
|
||||
int drvNum;
|
||||
RDiskStorage_t *c;
|
||||
char legacy_startup, legacy_ram;
|
||||
char legacy_startup;
|
||||
|
||||
// Do nothing if already opened
|
||||
if (d->dCtlStorage) { return noErr; }
|
||||
|
||||
// Do nothing if inhibited
|
||||
RDiskReadXPRAM(1, 4, &legacy_startup);
|
||||
RDiskReadXPRAM(1, 5, &legacy_ram);
|
||||
if ((legacy_startup & 0x07) == 0x04) { return noErr; }
|
||||
|
||||
// Allocate storage struct
|
||||
|
Loading…
Reference in New Issue
Block a user