mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-19 01:15:32 -04:00
mainlist: fix retriving attributes of file
This requires a full path, but it was instead passing the file name. This caused files to only appear in the root directory.
This commit is contained in:
parent
12737bfbe2
commit
3c9b9088ef
@ -224,8 +224,7 @@ bool cMainList::enterDir(const std::string& dirName) {
|
||||
strcmp(entry->d_name, ".."))
|
||||
: extnameFilter(extNames, extName);
|
||||
showThis = showThis && (_showAllFiles || gs().showHiddenFiles ||
|
||||
!(FAT_getAttr(entry->d_name) & ATTR_HIDDEN));
|
||||
|
||||
!(FAT_getAttr((dirName + lfn).c_str()) & ATTR_HIDDEN));
|
||||
// 如果有后缀名,或者是个目录,就push进去
|
||||
if (showThis) {
|
||||
u32 row_count = getRowCount();
|
||||
|
Loading…
Reference in New Issue
Block a user