summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-24 11:20:07 +0000
committerrubidium <rubidium@openttd.org>2008-11-24 11:20:07 +0000
commit0f6583216b943901654503915763fe68eead50bf (patch)
tree06db0fdfd075a09707a8c1308125fb4ce774b75f /src/strings.cpp
parent965d0428bd25ff7eb6307a5c521a8cce67cf470e (diff)
downloadopenttd-0f6583216b943901654503915763fe68eead50bf.tar.xz
(svn r14617) -Change: unduplicate the languagepack(header).
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 8512a99c4..2fb3a7854 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -40,6 +40,7 @@
#include "engine_func.h"
#include "engine_base.h"
#include "saveload.h"
+#include "strgen/strgen.h"
#include "table/strings.h"
#include "table/control_codes.h"
@@ -53,16 +54,7 @@ static char *GetSpecialNameString(char *buff, int ind, const int64 *argv, const
static char *FormatString(char *buff, const char *str, const int64 *argv, uint casei, const char* last);
-struct LanguagePack {
- uint32 ident; // 32-bits identifier
- uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h
- char name[32]; // the international name of this language
- char own_name[32]; // the localized name of this language
- char isocode[16]; // the ISO code for the language (not country code)
- uint16 offsets[32]; // the offsets
- byte plural_form; // how to compute plural forms
- byte text_dir; // default direction of the text
- byte pad[2]; // pad header to be a multiple of 4
+struct LanguagePack : public LanguagePackHeader {
char data[VARARRAY_SIZE]; // list of strings
};