From 88d5aab5a1098c5636584ddf06bd3012dc8c5b4c Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 31 Mar 2005 10:50:15 +0000 Subject: Better #ifdef for the RoLo functionality git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6239 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetree.c | 2 +- apps/tree.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') 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) if ( !(dptr->attr & ATTR_DIRECTORY) && (len > 4) ) dptr->attr |= filetype_get_attr(entry->d_name); -#ifndef SIMULATOR +#ifdef BOOTFILE /* memorize/compare details about the boot file */ if ((c->currdir[1] == 0) && !strcasecmp(entry->d_name, BOOTFILE)) { 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[] = { { ".fnt", TREE_ATTR_FONT,Font, VOICE_EXT_FONT }, #endif { ".bmark",TREE_ATTR_BMARK, Bookmark, VOICE_EXT_BMARK }, -#ifndef SIMULATOR +#ifdef BOOTFILE_EXT { BOOTFILE_EXT, TREE_ATTR_MOD, Mod_Ajz, VOICE_EXT_AJZ }, #endif /* #ifndef SIMULATOR */ }; @@ -691,7 +691,7 @@ static bool dirbrowse(void) button = button_get_w_tmo(HZ/5); -#ifndef SIMULATOR +#ifdef BOOTFILE if (boot_changed) { bool stop = false; unsigned int button; -- cgit