mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-25 18:31:14 +00:00
fix for mounting CDROM after reboot
This commit is contained in:
parent
ad6047ea24
commit
f385c22ed2
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user