summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorHenrik Backe <henrik@backe.eu>2004-09-05 16:50:07 +0000
committerHenrik Backe <henrik@backe.eu>2004-09-05 16:50:07 +0000
commit717fae9e95b865d7f42cfd0e3bbacd379d075e95 (patch)
tree242d42f9db31e7078885b48975aadc53710fe648 /apps/tree.c
parentc8e279142049ad2b6f6d94e4fc5c9f806368f7ff (diff)
Warning if .rockbox is missing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5039 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index bcf44a2d59..7be258c4db 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -123,8 +123,19 @@ static bool dirbrowse(const char *root, const int *dirfilter);
void browse_root(void)
{
filetype_init();
+
#ifndef SIMULATOR
+ DIR *dir = opendir(ROCKBOX_DIR);
+ if(!dir)
+ {
+ lcd_clear_display();
+ splash(HZ*5, true, str(LANG_NO_ROCKBOX_DIR));
+ lcd_clear_display();
+ splash(HZ*5, true, str(LANG_INSTALLATION_INCOMPLETE));
+ }
+ closedir(dir);
dirbrowse("/", &global_settings.dirfilter);
+
#else
if (!dirbrowse("/", &global_settings.dirfilter)) {
DEBUGF("No filesystem found. Have you forgotten to create it?\n");