summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-19 03:19:12 +0000
committerDave Chapman <dave@dchapman.com>2005-11-19 03:19:12 +0000
commitfe772405beb9e49e5c83c885763628985f81fc5f (patch)
tree23cb659d94c404e3a6426f26705ef8d5ff86f243 /apps/tree.c
parenta807fca49be192b676719c2aecc5056754d04c7f (diff)
iPod: First attempt to implement sensible button mappings. Changes to all targets to replace a small number of references to raw button codes (BUTTON_???) with their abstract equivalents.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7983 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 89a8522743..f484463d2d 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -997,11 +997,7 @@ static bool add_dir(char* dirname, int len, int fd)
DIRCACHED* dir;
/* check for user abort */
-#ifdef BUTTON_STOP
- if (button_get(false) == BUTTON_STOP)
-#else
- if (button_get(false) == BUTTON_OFF)
-#endif
+ if (button_get(false) == TREE_ABORT)
return true;
dir = opendir_cached(dirname);