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
This commit is contained in:
parent
9c32d1a1ef
commit
4ce3f72cc6
1 changed files with 6 additions and 1 deletions
|
@ -43,8 +43,13 @@ int lang_load(char *filename)
|
|||
while(filesize>3) {
|
||||
id = (ptr[0]<<8) | ptr[1]; /* get two-byte id */
|
||||
ptr+=2; /* pass the id */
|
||||
if(id < LANG_LAST_INDEX_IN_ARRAY)
|
||||
if(id < LANG_LAST_INDEX_IN_ARRAY) {
|
||||
#ifdef SIMULATOR
|
||||
printf("%2x New: %30s ", id, ptr);
|
||||
printf("Replaces: %s\n", language_strings[id]);
|
||||
#endif
|
||||
language_strings[id] = ptr; /* point to this string */
|
||||
}
|
||||
while(*ptr) { /* pass the string */
|
||||
filesize--;
|
||||
ptr++;
|
||||
|
|
Loading…
Reference in a new issue