summaryrefslogtreecommitdiff
path: root/apps/filetypes.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2005-11-16 15:12:15 +0000
committerKevin Ferrare <kevin@rockbox.org>2005-11-16 15:12:15 +0000
commite991beed6df8700b41796c4c14ef786f45fb54c5 (patch)
tree63543693276236f18a91c3de87e2353625eb85dc /apps/filetypes.c
parent76b75efa060b55bc7cbf66bae3401af57d907440 (diff)
downloadrockbox-e991beed6df8700b41796c4c14ef786f45fb54c5.tar.gz
rockbox-e991beed6df8700b41796c4c14ef786f45fb54c5.zip
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
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index d5a900317f..e2240089ce 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -35,6 +35,7 @@
35#include "dir.h" 35#include "dir.h"
36#include "file.h" 36#include "file.h"
37#include "icons.h" 37#include "icons.h"
38#include "splash.h"
38 39
39/* max plugin name size without extensions and path */ 40/* max plugin name size without extensions and path */
40#define MAX_PLUGIN_LENGTH 32 41#define MAX_PLUGIN_LENGTH 32
@@ -316,14 +317,14 @@ static void scan_plugins(void)
316 /* exttypes[] full, bail out */ 317 /* exttypes[] full, bail out */
317 if (cnt_exttypes >= MAX_EXTTYPES) 318 if (cnt_exttypes >= MAX_EXTTYPES)
318 { 319 {
319 splash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL)); 320 gui_syncsplash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL));
320 break; 321 break;
321 } 322 }
322 323
323 /* filetypes[] full, bail out */ 324 /* filetypes[] full, bail out */
324 if (cnt_filetypes >= MAX_FILETYPES) 325 if (cnt_filetypes >= MAX_FILETYPES)
325 { 326 {
326 splash(HZ,true,str(LANG_FILETYPES_FULL)); 327 gui_syncsplash(HZ,true,str(LANG_FILETYPES_FULL));
327 break; 328 break;
328 } 329 }
329 330
@@ -356,7 +357,7 @@ static void scan_plugins(void)
356 /* filter out to long filenames */ 357 /* filter out to long filenames */
357 if (strlen(entry->d_name) > MAX_PLUGIN_LENGTH + 5) 358 if (strlen(entry->d_name) > MAX_PLUGIN_LENGTH + 5)
358 { 359 {
359 splash(HZ,true,str(LANG_FILETYPES_PLUGIN_NAME_LONG)); 360 gui_syncsplash(HZ,true,str(LANG_FILETYPES_PLUGIN_NAME_LONG));
360 continue; 361 continue;
361 } 362 }
362 363
@@ -537,13 +538,13 @@ bool read_config(const char* file)
537 { 538 {
538 if (cnt_exttypes >= MAX_EXTTYPES) 539 if (cnt_exttypes >= MAX_EXTTYPES)
539 { 540 {
540 splash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL)); 541 gui_syncsplash(HZ,true,str(LANG_FILETYPES_EXTENSION_FULL));
541 break; 542 break;
542 } 543 }
543 544
544 if (cnt_filetypes >= MAX_FILETYPES) 545 if (cnt_filetypes >= MAX_FILETYPES)
545 { 546 {
546 splash(HZ,true,str(LANG_FILETYPES_FULL)); 547 gui_syncsplash(HZ,true,str(LANG_FILETYPES_FULL));
547 break; 548 break;
548 } 549 }
549 550
@@ -612,7 +613,7 @@ bool read_config(const char* file)
612 { 613 {
613 if (strlen(str[plugin]) > MAX_PLUGIN_LENGTH) 614 if (strlen(str[plugin]) > MAX_PLUGIN_LENGTH)
614 { 615 {
615 splash(HZ, true, str(LANG_FILETYPES_PLUGIN_NAME_LONG)); 616 gui_syncsplash(HZ, true, str(LANG_FILETYPES_PLUGIN_NAME_LONG));
616 str[plugin] = NULL; 617 str[plugin] = NULL;
617 continue; 618 continue;
618 } 619 }
@@ -712,7 +713,7 @@ static char* string2icon(const char* str)
712 (unsigned long) string_buffer - 713 (unsigned long) string_buffer -
713 (unsigned long) next_free_string) < ICON_LENGTH) 714 (unsigned long) next_free_string) < ICON_LENGTH)
714 { 715 {
715 splash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY)); 716 gui_syncsplash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY));
716 return NULL; 717 return NULL;
717 } 718 }
718 719
@@ -768,7 +769,7 @@ static char* get_string(const char* str)
768 } 769 }
769 else 770 else
770 { 771 {
771 splash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY)); 772 gui_syncsplash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY));
772 return NULL; 773 return NULL;
773 } 774 }
774} 775}