summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-29 12:31:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-29 12:31:34 +0000
commit4ce3f72cc66eb9e87830af59086a3604b29b4a38 (patch)
tree70abc5e78c390211b296fc151675152959037dff /apps
parent9c32d1a1ef785396c4abbcf562adee3c9e32f3a0 (diff)
downloadrockbox-4ce3f72cc66eb9e87830af59086a3604b29b4a38.tar.gz
rockbox-4ce3f72cc66eb9e87830af59086a3604b29b4a38.zip
made the language loader output all new strings on stdout when loaded in
the simulator, as it really helps to detect language-loading related problems git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2777 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/language.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/language.c b/apps/language.c
index 6ac8550e55..a8f90ddebe 100644
--- a/apps/language.c
+++ b/apps/language.c
@@ -43,8 +43,13 @@ int lang_load(char *filename)
43 while(filesize>3) { 43 while(filesize>3) {
44 id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */ 44 id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */
45 ptr+=2; /* pass the id */ 45 ptr+=2; /* pass the id */
46 if(id < LANG_LAST_INDEX_IN_ARRAY) 46 if(id < LANG_LAST_INDEX_IN_ARRAY) {
47#ifdef SIMULATOR
48 printf("%2x New: %30s ", id, ptr);
49 printf("Replaces: %s\n", language_strings[id]);
50#endif
47 language_strings[id] = ptr; /* point to this string */ 51 language_strings[id] = ptr; /* point to this string */
52 }
48 while(*ptr) { /* pass the string */ 53 while(*ptr) { /* pass the string */
49 filesize--; 54 filesize--;
50 ptr++; 55 ptr++;