Fixed bug - when backing out of a disk image the disk would not be written back.

This commit is contained in:
Stephen White 2018-06-19 19:11:26 +10:00
parent 34e53d7ea7
commit cf64cf1c2e

View file

@ -765,8 +765,6 @@ void emulator()
// Exit full emulation back to IEC commands level simulation. // Exit full emulation back to IEC commands level simulation.
snoopIndex = 0; snoopIndex = 0;
emulating = false; emulating = false;
IEC_Bus::Reset(); // TO CHECK - remove this
break;
} }
} }
else else
@ -860,7 +858,7 @@ void emulator()
} }
bool reset = IEC_Bus::IsReset(); bool reset = IEC_Bus::IsReset();
if (reset || exitEmulation) if (!emulating || reset || exitEmulation)
{ {
// Clearing the caddy now // Clearing the caddy now
// - will write back all changed/dirty/written to disk images now // - will write back all changed/dirty/written to disk images now