mirror of
https://github.com/coderkei/akmenu-next.git
synced 2025-06-19 09:25:33 -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, ".."))
|
strcmp(entry->d_name, ".."))
|
||||||
: extnameFilter(extNames, extName);
|
: extnameFilter(extNames, extName);
|
||||||
showThis = showThis && (_showAllFiles || gs().showHiddenFiles ||
|
showThis = showThis && (_showAllFiles || gs().showHiddenFiles ||
|
||||||
!(FAT_getAttr(entry->d_name) & ATTR_HIDDEN));
|
!(FAT_getAttr((dirName + lfn).c_str()) & ATTR_HIDDEN));
|
||||||
|
|
||||||
// 如果有后缀名,或者是个目录,就push进去
|
// 如果有后缀名,或者是个目录,就push进去
|
||||||
if (showThis) {
|
if (showThis) {
|
||||||
u32 row_count = getRowCount();
|
u32 row_count = getRowCount();
|
||||||
|
Loading…
Reference in New Issue
Block a user