mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Warning if .rockbox is missing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5039 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c8e2791420
commit
717fae9e95
2 changed files with 23 additions and 0 deletions
|
|
@ -2829,3 +2829,15 @@ desc: in playback settings screen
|
|||
eng: "V2 then V1"
|
||||
voice: "Version 2 then version 1"
|
||||
new:
|
||||
|
||||
id: LANG_NO_ROCKBOX_DIR
|
||||
desc: in browse root
|
||||
eng: "No .rockbox directory"
|
||||
voice: "No .rockbox directory"
|
||||
new:
|
||||
|
||||
id: LANG_INSTALLATION_INCOMPLETE
|
||||
desc: in browse root
|
||||
eng: "Installation incomplete"
|
||||
voice: "Installation incomplete"
|
||||
new:
|
||||
|
|
|
|||
11
apps/tree.c
11
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue