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
1 changed files with 1 additions and 3 deletions

View File

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