1
0
Fork 0
forked from len0rd/rockbox

replaced all the splash calls by gui_sync_splash, added some missing remote key in the playlist viewer

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7909 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Kevin Ferrare 2005-11-16 15:12:15 +00:00
parent 76b75efa06
commit e991beed6d
21 changed files with 102 additions and 236 deletions

View file

@ -35,6 +35,7 @@
#include "dir.h"
#include "file.h"
#include "icons.h"
#include "splash.h"
/* max plugin name size without extensions and path */
#define MAX_PLUGIN_LENGTH 32
@ -316,14 +317,14 @@ static void scan_plugins(void)
/* exttypes[] full, bail out */
if (cnt_exttypes >= MAX_EXTTYPES)
{
splash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL));
gui_syncsplash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL));
break;
}
/* filetypes[] full, bail out */
if (cnt_filetypes >= MAX_FILETYPES)
{
splash(HZ,true,str(LANG_FILETYPES_FULL));
gui_syncsplash(HZ,true,str(LANG_FILETYPES_FULL));
break;
}
@ -356,7 +357,7 @@ static void scan_plugins(void)
/* filter out to long filenames */
if (strlen(entry->d_name) > MAX_PLUGIN_LENGTH + 5)
{
splash(HZ,true,str(LANG_FILETYPES_PLUGIN_NAME_LONG));
gui_syncsplash(HZ,true,str(LANG_FILETYPES_PLUGIN_NAME_LONG));
continue;
}
@ -537,13 +538,13 @@ bool read_config(const char* file)
{
if (cnt_exttypes >= MAX_EXTTYPES)
{
splash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL));
gui_syncsplash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL));
break;
}
if (cnt_filetypes >= MAX_FILETYPES)
{
splash(HZ,true,str(LANG_FILETYPES_FULL));
gui_syncsplash(HZ,true,str(LANG_FILETYPES_FULL));
break;
}
@ -612,7 +613,7 @@ bool read_config(const char* file)
{
if (strlen(str[plugin]) > MAX_PLUGIN_LENGTH)
{
splash(HZ, true, str(LANG_FILETYPES_PLUGIN_NAME_LONG));
gui_syncsplash(HZ, true, str(LANG_FILETYPES_PLUGIN_NAME_LONG));
str[plugin] = NULL;
continue;
}
@ -712,7 +713,7 @@ static char* string2icon(const char* str)
(unsigned long) string_buffer -
(unsigned long) next_free_string) < ICON_LENGTH)
{
splash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY));
gui_syncsplash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY));
return NULL;
}
@ -768,7 +769,7 @@ static char* get_string(const char* str)
}
else
{
splash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY));
gui_syncsplash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY));
return NULL;
}
}