diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-01-19 21:43:15 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-01-19 21:43:15 +0000 |
commit | 0f0402929397bc020fa6e8f3fd9b78185cf76318 (patch) | |
tree | b51cdd3cd365f0b587e88246c8cf5ef6de459bf4 /apps/language.h | |
parent | 3c2fefdb99b24a000a5d896097cba479ad0e62a7 (diff) | |
download | rockbox-0f0402929397bc020fa6e8f3fd9b78185cf76318.tar.gz rockbox-0f0402929397bc020fa6e8f3fd9b78185cf76318.zip |
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
Diffstat (limited to 'apps/language.h')
-rw-r--r-- | apps/language.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/language.h b/apps/language.h index 62974459a5..80242962ea 100644 --- a/apps/language.h +++ b/apps/language.h | |||
@@ -24,5 +24,8 @@ | |||
24 | #define LANGUAGE_COOKIE 0x1a | 24 | #define LANGUAGE_COOKIE 0x1a |
25 | #define LANGUAGE_VERSION 0x02 | 25 | #define LANGUAGE_VERSION 0x02 |
26 | 26 | ||
27 | /* Initialize language array with the builtin strings */ | ||
28 | void lang_init(void); | ||
29 | |||
27 | /* load a given language file */ | 30 | /* load a given language file */ |
28 | int lang_load(const char *filename); | 31 | int lang_load(const char *filename); |