summaryrefslogtreecommitdiff
path: root/apps/filetree.c
diff options
context:
space:
mode:
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 &&