diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/apps/tree.c b/apps/tree.c index 7be258c4db..90d7010d03 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -120,20 +120,27 @@ static bool boot_changed = false; | |||
120 | static bool start_wps = false; | 120 | static bool start_wps = false; |
121 | static bool dirbrowse(const char *root, const int *dirfilter); | 121 | static bool dirbrowse(const char *root, const int *dirfilter); |
122 | 122 | ||
123 | void browse_root(void) | 123 | bool check_rockboxdir(void) |
124 | { | 124 | { |
125 | filetype_init(); | ||
126 | |||
127 | #ifndef SIMULATOR | ||
128 | DIR *dir = opendir(ROCKBOX_DIR); | 125 | DIR *dir = opendir(ROCKBOX_DIR); |
129 | if(!dir) | 126 | if(!dir) |
130 | { | 127 | { |
131 | lcd_clear_display(); | 128 | lcd_clear_display(); |
132 | splash(HZ*5, true, str(LANG_NO_ROCKBOX_DIR)); | 129 | splash(HZ*2, true, str(LANG_NO_ROCKBOX_DIR)); |
133 | lcd_clear_display(); | 130 | lcd_clear_display(); |
134 | splash(HZ*5, true, str(LANG_INSTALLATION_INCOMPLETE)); | 131 | splash(HZ*2, true, str(LANG_INSTALLATION_INCOMPLETE)); |
132 | return false; | ||
135 | } | 133 | } |
136 | closedir(dir); | 134 | closedir(dir); |
135 | return true; | ||
136 | } | ||
137 | |||
138 | void browse_root(void) | ||
139 | { | ||
140 | filetype_init(); | ||
141 | check_rockboxdir(); | ||
142 | |||
143 | #ifndef SIMULATOR | ||
137 | dirbrowse("/", &global_settings.dirfilter); | 144 | dirbrowse("/", &global_settings.dirfilter); |
138 | 145 | ||
139 | #else | 146 | #else |