mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-18 02:29:34 +00:00
Force installation of floppy driver with NewWorld ROMs otherwise we fail
to open it and further install ExtFS & NQD acceleration.
This commit is contained in:
parent
dd4877eaf2
commit
f47379e887
@ -2135,6 +2135,20 @@ void InstallDrivers(void)
|
||||
M68kRegisters r;
|
||||
uint8 pb[SIZEOF_IOParam];
|
||||
|
||||
// Install floppy driver
|
||||
if (ROMType == ROMTYPE_NEWWORLD) {
|
||||
|
||||
// Force installation of floppy driver with NewWorld ROMs
|
||||
r.a[0] = ROM_BASE + sony_offset;
|
||||
r.d[0] = (uint32)SonyRefNum;
|
||||
Execute68kTrap(0xa43d, &r); // DrvrInstallRsrvMem()
|
||||
r.a[0] = ReadMacInt32(ReadMacInt32(0x11c) + ~SonyRefNum * 4); // Get driver handle from Unit Table
|
||||
Execute68kTrap(0xa029, &r); // HLock()
|
||||
uint32 dce = ReadMacInt32(r.a[0]);
|
||||
WriteMacInt32(dce + dCtlDriver, ROM_BASE + sony_offset);
|
||||
WriteMacInt16(dce + dCtlFlags, SonyDriverFlags);
|
||||
}
|
||||
|
||||
// Open .Sony driver
|
||||
WriteMacInt8((uint32)pb + ioPermssn, 0);
|
||||
WriteMacInt32((uint32)pb + ioNamePtr, (uint32)"\005.Sony");
|
||||
|
Loading…
Reference in New Issue
Block a user