| Home | Forums | Register | FAQ | Search | Today's Posts | Mark Forums Read |
|
Welcome to the misticriver forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hm.. little filetree editing help
using the 'supported' display option, i want to filter out .rockbox and such, but not folders beginning with '...' (like my Awesome Machine album, '...It's Ugly or Nothing')
i know enough to see that the relevant part of the code is here, in filetree.c: Code:
/* skip directories . and .. */
if ((entry->attribute & ATTR_DIRECTORY) &&
(((len == 1) && (!strncmp((char *)entry->d_name, ".", 1))) ||
((len == 2) && (!strncmp((char *)entry->d_name, "..", 2))))) {
i--;
continue;
}
/* Skip FAT volume ID */
if (entry->attribute & ATTR_VOLUME_ID) {
i--;
continue;
}
/* filter out dotfiles and hidden files */
if (*c->dirfilter != SHOW_ALL &&
((entry->d_name[0]=='.') ||
(entry->attribute & ATTR_HIDDEN))) {
i--;
continue;
-EGO
__________________
|
|
|||
|
Quote:
That looks like the right place... I believe you want to take the code that says: Code:
if (*c->dirfilter != SHOW_ALL &&
((entry->d_name[0]=='.') ||
(entry->attribute & ATTR_HIDDEN))) {
i--;
continue;
Code:
if (*c->dirfilter != SHOW_ALL &&
(((entry->d_name[0]=='.') && (entry->d_name[1]!='.')) ||
(entry->attribute & ATTR_HIDDEN))) {
i--;
continue;
|
|
|||
|
Quote:
|
|
|||
|
i don't really know how to submit a patch... i know just enough code to be able to guess at what it does, with help from the comments, but i've done the LCD color thing, this one, and changed the functions of the Navi with the Record button on the WPS. it's nothin too big, and they all have instructions for them here or there on the forum (and this one i can't really take credit for at all, my idea but i didn't write the code)
-EGO
__________________
|