code cleanup
This commit is contained in:
parent
1039cca757
commit
ea071f0b46
2 changed files with 10 additions and 15 deletions
|
@ -1100,9 +1100,6 @@ void IEC_Commands::New(void)
|
|||
{
|
||||
FILINFO filInfo;
|
||||
|
||||
if(!(strstr(filenameNew, ".d64") || strstr(filenameNew, ".D64")))
|
||||
strcat(filenameNew, ".d64");
|
||||
|
||||
int ret = CreateD64(filenameNew, ID, true);
|
||||
|
||||
if (ret==0)
|
||||
|
|
22
src/main.cpp
22
src/main.cpp
|
@ -737,17 +737,14 @@ void emulator()
|
|||
CheckAutoMountImage(EXIT_UNKNOWN, fileBrowser);
|
||||
break;
|
||||
case IEC_Commands::NONE:
|
||||
{
|
||||
fileBrowser->Update();
|
||||
fileBrowser->Update();
|
||||
|
||||
// Check selections made via FileBrowser
|
||||
if (fileBrowser->SelectionsMade())
|
||||
emulating = BeginEmulating(fileBrowser, fileBrowser->LastSelectionName());
|
||||
}
|
||||
// Check selections made via FileBrowser
|
||||
if (fileBrowser->SelectionsMade())
|
||||
emulating = BeginEmulating(fileBrowser, fileBrowser->LastSelectionName());
|
||||
break;
|
||||
case IEC_Commands::IMAGE_SELECTED:
|
||||
{
|
||||
// Check selections made via FileBrowser
|
||||
// Check selections made via IEC commands (like fb64)
|
||||
|
||||
fileBrowserSelectedName = m_IEC_Commands.GetNameOfImageSelected();
|
||||
|
||||
|
@ -769,8 +766,10 @@ void emulator()
|
|||
DEBUG_LOG("IEC mounting %s\r\n", filInfoSelected->fname);
|
||||
bool readOnly = (filInfoSelected->fattrib & AM_RDO) != 0;
|
||||
|
||||
if (diskCaddy.Insert(filInfoSelected, readOnly)) emulating = BeginEmulating(fileBrowser, filInfoSelected->fname);
|
||||
else fileBrowserSelectedName = 0;
|
||||
if (diskCaddy.Insert(filInfoSelected, readOnly))
|
||||
emulating = BeginEmulating(fileBrowser, filInfoSelected->fname);
|
||||
else
|
||||
fileBrowserSelectedName = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -781,8 +780,7 @@ void emulator()
|
|||
m_IEC_Commands.Reset();
|
||||
|
||||
selectedViaIECCommands = true;
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case IEC_Commands::DIR_PUSHED:
|
||||
fileBrowser->FolderChanged();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue