1
0
Fork 0
forked from len0rd/rockbox

New way of handling the builtin language strings. Now the string pointers are no longer stored as initialised data, but calculated by walking one long string containing all language strings separated by \0. While this doesn't need more RAM, it fixes the problem that loading incomplete .lng files after complete ones did not reset the missing strings to the default, and it also decreases the binary size by >1700 bytes.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5608 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-01-19 21:43:15 +00:00
parent 3c2fefdb99
commit 0f04029293
4 changed files with 29 additions and 4 deletions

View file

@ -126,6 +126,7 @@ void init(void)
lcd_init();
font_init();
show_logo();
lang_init();
settings_reset();
settings_calc_config_sector();
settings_load(SETTINGS_ALL);
@ -171,6 +172,7 @@ void init(void)
font_init();
show_logo();
lang_init();
set_irq_level(0);
#ifdef DEBUG