summaryrefslogtreecommitdiff
path: root/apps/filetree.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-03-31 08:47:02 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-03-31 08:47:02 +0000
commitbd42d31e5eb1eed61da6c25064de1eed23c7163e (patch)
tree8a5263c7171b49a23e1c729332299b6952893bf7 /apps/filetree.c
parente996e2ff912dfe5e6c5e58c254bd9948752c3bcb (diff)
downloadrockbox-bd42d31e5eb1eed61da6c25064de1eed23c7163e.tar.gz
rockbox-bd42d31e5eb1eed61da6c25064de1eed23c7163e.zip
RoLo now works on the iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6238 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetree.c')
-rw-r--r--apps/filetree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index c828f176ba..a3754ea190 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -39,8 +39,10 @@
39#include "rolo.h" 39#include "rolo.h"
40#include "sprintf.h" 40#include "sprintf.h"
41 41
42#ifndef SIMULATOR
42static int boot_size = 0; 43static int boot_size = 0;
43static int boot_cluster; 44static int boot_cluster;
45#endif
44extern bool boot_changed; 46extern bool boot_changed;
45 47
46int ft_build_playlist(struct tree_context* c, int start_index) 48int ft_build_playlist(struct tree_context* c, int start_index)
@@ -241,6 +243,7 @@ int ft_load(struct tree_context* c, const char* tempdir)
241 if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) ) 243 if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) )
242 dptr->attr |= filetype_get_attr(entry->d_name); 244 dptr->attr |= filetype_get_attr(entry->d_name);
243 245
246#ifndef SIMULATOR
244 /* memorize/compare details about the boot file */ 247 /* memorize/compare details about the boot file */
245 if ((c->currdir[1] == 0) && !strcasecmp(entry->d_name, BOOTFILE)) { 248 if ((c->currdir[1] == 0) && !strcasecmp(entry->d_name, BOOTFILE)) {
246 if (boot_size) { 249 if (boot_size) {
@@ -251,7 +254,8 @@ int ft_load(struct tree_context* c, const char* tempdir)
251 boot_size = entry->size; 254 boot_size = entry->size;
252 boot_cluster = entry->startcluster; 255 boot_cluster = entry->startcluster;
253 } 256 }
254 257#endif
258
255 /* filter out non-visible files */ 259 /* filter out non-visible files */
256 if (!(dptr->attr & ATTR_DIRECTORY) && ( 260 if (!(dptr->attr & ATTR_DIRECTORY) && (
257 (*c->dirfilter == SHOW_PLAYLIST && 261 (*c->dirfilter == SHOW_PLAYLIST &&