diff options
Diffstat (limited to 'tools/create_lure')
-rw-r--r-- | tools/create_lure/create_lure_dat.cpp | 23 | ||||
-rw-r--r-- | tools/create_lure/create_lure_dat.h | 9 |
2 files changed, 31 insertions, 1 deletions
diff --git a/tools/create_lure/create_lure_dat.cpp b/tools/create_lure/create_lure_dat.cpp index f1d4e39011..840789d98f 100644 --- a/tools/create_lure/create_lure_dat.cpp +++ b/tools/create_lure/create_lure_dat.cpp @@ -1812,7 +1812,28 @@ void createFile(const char *outFilename) { // Write out the position of the next language set outputFile.seek(6 + 5 * (langIndex - 1)); - outputFile.writeByte(language); + + switch (language) { + case IT_ITA: + outputFile.writeByte(LANG_IT_ITA); + break; + case FR_FRA: + outputFile.writeByte(LANG_FR_FRA); + break; + case DE_DEU: + outputFile.writeByte(LANG_DE_DEU); + break; + case ES_ESP: + outputFile.writeByte(LANG_ES_ESP); + break; + case EN_ANY: + outputFile.writeByte(LANG_EN_ANY); + break; + default: + printf("Unknown language encountered\n"); + exit(1); + } + outputFile.writeLong(outputStart); // Write out start header diff --git a/tools/create_lure/create_lure_dat.h b/tools/create_lure/create_lure_dat.h index 3cb1976ec4..93da90d56c 100644 --- a/tools/create_lure/create_lure_dat.h +++ b/tools/create_lure/create_lure_dat.h @@ -415,6 +415,15 @@ public: extern File lureExe; extern void add_talk_offset(uint16 offset); +enum LureLanguage { + LANG_IT_ITA = 10, + LANG_FR_FRA = 6, + LANG_DE_DEU = 7, + LANG_ES_ESP = 17, + LANG_EN_ANY = 3, + LANG_UNKOWN = -1 +}; + extern Common::Language language; extern uint16 dataSegment; |