mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[Bugfix] Plugin Viewer Don't display SYSTEM folders or Volumes
recent changes added first level folders to the plugin viewer inserting a drive enumerates new folders into the namespace of the plugin viewer filter these entries OUT Change-Id: I53c383584511b54940f9dffec4737107a69f6673
This commit is contained in:
parent
7e90760a48
commit
f24271c73c
1 changed files with 6 additions and 0 deletions
|
@ -348,6 +348,12 @@ int ft_load(struct tree_context* c, const char* tempdir)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (*c->dirfilter == SHOW_PLUGINS && (dptr->attr & ATTR_DIRECTORY) &&
|
||||
(dptr->attr &
|
||||
(ATTR_HIDDEN | ATTR_SYSTEM | ATTR_VOLUME_ID | ATTR_VOLUME)) != 0) {
|
||||
continue; /* skip non plugin folders */
|
||||
}
|
||||
|
||||
/* check for known file types */
|
||||
if ( !(dir_attr) )
|
||||
dptr->attr |= filetype_get_attr((char *)entry->d_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue