From bd42d31e5eb1eed61da6c25064de1eed23c7163e Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 31 Mar 2005 08:47:02 +0000 Subject: RoLo now works on the iRiver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6238 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetree.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/filetree.c') 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 @@ #include "rolo.h" #include "sprintf.h" +#ifndef SIMULATOR static int boot_size = 0; static int boot_cluster; +#endif extern bool boot_changed; int ft_build_playlist(struct tree_context* c, int start_index) @@ -241,6 +243,7 @@ int ft_load(struct tree_context* c, const char* tempdir) if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) ) dptr->attr |= filetype_get_attr(entry->d_name); +#ifndef SIMULATOR /* memorize/compare details about the boot file */ if ((c->currdir[1] == 0) && !strcasecmp(entry->d_name, BOOTFILE)) { if (boot_size) { @@ -251,7 +254,8 @@ int ft_load(struct tree_context* c, const char* tempdir) boot_size = entry->size; boot_cluster = entry->startcluster; } - +#endif + /* filter out non-visible files */ if (!(dptr->attr & ATTR_DIRECTORY) && ( (*c->dirfilter == SHOW_PLAYLIST && -- cgit v1.2.3