Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: icons problem with the win32 simulator
From: Hardeep Sidhu (hardeeps_at_pobox.com)
Date: 2003-06-18


Hi Roland,

Please try the attached patch and see if it fixes your
problem.

-Hardeep

--- for_spam_at_gmx.de wrote:
> hello again,
> i have recognized that there is a minor issue with
> the simulator on win32.
> icons don`t show up correctly for me in the
> dir-browser.
> I think this is related to the underlying filesystem
> being used.
> I have ntfs (on winXP) - and so, getting the
> directory/file information with
>
> routines written for fat32 seems to give us
> different values. for me, this
> seems the
> rockbox routines aren`t "generic" enough. my
> windows explorer always shows
> a directory
> icon if it`s a directory - regardles if the fs is
> fat16,fat32,ntfs,iso9660.....or whatelse... ;)
> so should the rockbox-simulator - shouldn`t it ? but
> it is not that trivial
> to fix, i think.....
>
> regards
> roland
>
> --
> +++ GMX - Mail, Messaging & more http://www.gmx.net
> +++
> Bitte lächeln! Fotogalerie online mit GMX ohne
> eigene Homepage!
>
>

Index: rockbox//apps/tree.c
===================================================================
RCS file: /cvsroot/rockbox/apps/tree.c,v
retrieving revision 1.197
diff -u -r1.197 tree.c
--- rockbox//apps/tree.c 5 Jun 2003 09:38:25 -0000 1.197
+++ rockbox//apps/tree.c 17 Jun 2003 23:05:00 -0000
@@ -292,7 +292,7 @@
                 continue;
             }
 
- dptr->attr = entry->attribute;
+ dptr->attr = entry->attribute & 0x3f;
 
             /* mark mp? and m3u files as such */
             if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) ) {



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa