Fixed bug where modified images were being written back to the wrong foler.
This commit is contained in:
parent
d0d497d2ce
commit
c2300db00a
1 changed files with 6 additions and 6 deletions
12
src/main.cpp
12
src/main.cpp
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue