Update FileBrowser.cpp

Fixed issue #115 Alt-L writes all files in directory to autoswap.lst, not selected files
This commit is contained in:
Stephen White 2018-12-27 16:21:12 +11:00
parent cb04179fc9
commit bc030fe699

View file

@ -1259,9 +1259,11 @@ bool FileBrowser::MakeLST(const char* filenameLST)
FileBrowser::BrowsableList::Entry* entry = 0;
u32 bytes;
for (unsigned index = 0; index < folder.entries.size(); ++index)
BrowsableList& list = caddySelections.entries.size() > 1 ? caddySelections : folder;
for (unsigned index = 0; index < list.entries.size(); ++index)
{
entry = &folder.entries[index];
entry = &list.entries[index];
if (entry->filImage.fattrib & AM_DIR)
continue; // skip dirs