fix for mounting CDROM after reboot

This commit is contained in:
kanjitalk755 2021-08-30 22:20:26 +09:00
parent ad6047ea24
commit f385c22ed2

View File

@ -56,6 +56,7 @@
void EmulOp(uint16 opcode, M68kRegisters *r) void EmulOp(uint16 opcode, M68kRegisters *r)
{ {
static bool bootflag;
D(bug("EmulOp %04x\n", opcode)); D(bug("EmulOp %04x\n", opcode));
switch (opcode) { switch (opcode) {
case M68K_EMUL_BREAK: { // Breakpoint case M68K_EMUL_BREAK: { // Breakpoint
@ -82,6 +83,11 @@ void EmulOp(uint16 opcode, M68kRegisters *r)
break; break;
case M68K_EMUL_OP_RESET: { // MacOS reset case M68K_EMUL_OP_RESET: { // MacOS reset
if (bootflag) {
CDROMExit();
CDROMInit();
}
bootflag = true;
D(bug("*** RESET ***\n")); D(bug("*** RESET ***\n"));
TimerReset(); TimerReset();
EtherReset(); EtherReset();