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:
Henrik Backe 2004-09-05 16:50:07 +00:00
parent c8e2791420
commit 717fae9e95
2 changed files with 23 additions and 0 deletions

View file

@ -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:

View file

@ -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");