Fixed bug where modified images were being written back to the wrong foler.

This commit is contained in:
Stephen White 2018-05-30 19:52:38 +10:00
parent d0d497d2ce
commit c2300db00a

View file

@ -546,12 +546,6 @@ void emulator()
fileBrowser->ClearScreen(); fileBrowser->ClearScreen();
IEC_Bus::Reset(); IEC_Bus::Reset();
// Clearing the caddy now
// - will write back all changed/dirty/written to disk images now
// - TDOO: need to display the image names as they write back
// - pass in a call back function?
diskCaddy.Empty();
fileBrowserSelectedName = 0; fileBrowserSelectedName = 0;
fileBrowser->ClearSelections(); fileBrowser->ClearSelections();
@ -819,6 +813,12 @@ void emulator()
bool reset = IEC_Bus::IsReset(); bool reset = IEC_Bus::IsReset();
if (reset) if (reset)
{ {
// Clearing the caddy now
// - will write back all changed/dirty/written to disk images now
// - TDOO: need to display the image names as they write back
// - pass in a call back function?
diskCaddy.Empty();
IEC_Bus::WaitUntilReset(); IEC_Bus::WaitUntilReset();
//DEBUG_LOG("6502 resetting\r\n"); //DEBUG_LOG("6502 resetting\r\n");
if (onResetChangeToStartingFolder || selectedViaIECCommands) if (onResetChangeToStartingFolder || selectedViaIECCommands)