From bc030fe699dd876100068f45a081e68829484a7b Mon Sep 17 00:00:00 2001 From: Stephen White Date: Thu, 27 Dec 2018 16:21:12 +1100 Subject: [PATCH] Update FileBrowser.cpp Fixed issue #115 Alt-L writes all files in directory to autoswap.lst, not selected files --- src/FileBrowser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/FileBrowser.cpp b/src/FileBrowser.cpp index 25829a5..6aee13b 100644 --- a/src/FileBrowser.cpp +++ b/src/FileBrowser.cpp @@ -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