From f385c22ed2ba60c9c1e41b8defda5df8c9c4b957 Mon Sep 17 00:00:00 2001 From: kanjitalk755 Date: Mon, 30 Aug 2021 22:20:26 +0900 Subject: [PATCH] fix for mounting CDROM after reboot --- BasiliskII/src/emul_op.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BasiliskII/src/emul_op.cpp b/BasiliskII/src/emul_op.cpp index bdab4f63..e18b40bc 100644 --- a/BasiliskII/src/emul_op.cpp +++ b/BasiliskII/src/emul_op.cpp @@ -56,6 +56,7 @@ void EmulOp(uint16 opcode, M68kRegisters *r) { + static bool bootflag; D(bug("EmulOp %04x\n", opcode)); switch (opcode) { case M68K_EMUL_BREAK: { // Breakpoint @@ -82,6 +83,11 @@ void EmulOp(uint16 opcode, M68kRegisters *r) break; case M68K_EMUL_OP_RESET: { // MacOS reset + if (bootflag) { + CDROMExit(); + CDROMInit(); + } + bootflag = true; D(bug("*** RESET ***\n")); TimerReset(); EtherReset();