summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-03-31 10:50:15 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-03-31 10:50:15 +0000
commit88d5aab5a1098c5636584ddf06bd3012dc8c5b4c (patch)
treefe153abcddff4662c9b352a8453f6ce64223e722
parentbd42d31e5eb1eed61da6c25064de1eed23c7163e (diff)
downloadrockbox-88d5aab5a1098c5636584ddf06bd3012dc8c5b4c.tar.gz
rockbox-88d5aab5a1098c5636584ddf06bd3012dc8c5b4c.zip
Better #ifdef for the RoLo functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6239 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/filetree.c2
-rw-r--r--apps/tree.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/filetree.c b/apps/filetree.c
index a3754ea190..db60526548 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -243,7 +243,7 @@ int ft_load(struct tree_context* c, const char* tempdir)
243 if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) ) 243 if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) )
244 dptr->attr |= filetype_get_attr(entry->d_name); 244 dptr->attr |= filetype_get_attr(entry->d_name);
245 245
246#ifndef SIMULATOR 246#ifdef BOOTFILE
247 /* memorize/compare details about the boot file */ 247 /* memorize/compare details about the boot file */
248 if ((c->currdir[1] == 0) && !strcasecmp(entry->d_name, BOOTFILE)) { 248 if ((c->currdir[1] == 0) && !strcasecmp(entry->d_name, BOOTFILE)) {
249 if (boot_size) { 249 if (boot_size) {
diff --git a/apps/tree.c b/apps/tree.c
index 69bc8bc244..d2b78f9872 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -80,7 +80,7 @@ const struct filetype filetypes[] = {
80 { ".fnt", TREE_ATTR_FONT,Font, VOICE_EXT_FONT }, 80 { ".fnt", TREE_ATTR_FONT,Font, VOICE_EXT_FONT },
81#endif 81#endif
82 { ".bmark",TREE_ATTR_BMARK, Bookmark, VOICE_EXT_BMARK }, 82 { ".bmark",TREE_ATTR_BMARK, Bookmark, VOICE_EXT_BMARK },
83#ifndef SIMULATOR 83#ifdef BOOTFILE_EXT
84 { BOOTFILE_EXT, TREE_ATTR_MOD, Mod_Ajz, VOICE_EXT_AJZ }, 84 { BOOTFILE_EXT, TREE_ATTR_MOD, Mod_Ajz, VOICE_EXT_AJZ },
85#endif /* #ifndef SIMULATOR */ 85#endif /* #ifndef SIMULATOR */
86}; 86};
@@ -691,7 +691,7 @@ static bool dirbrowse(void)
691 691
692 button = button_get_w_tmo(HZ/5); 692 button = button_get_w_tmo(HZ/5);
693 693
694#ifndef SIMULATOR 694#ifdef BOOTFILE
695 if (boot_changed) { 695 if (boot_changed) {
696 bool stop = false; 696 bool stop = false;
697 unsigned int button; 697 unsigned int button;