diff options
author | Paul Gilbert | 2010-01-05 09:59:25 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-01-05 09:59:25 +0000 |
commit | 4cc1d4ffb884501a8f912e0548e98da3d9359b1b (patch) | |
tree | ede39c16d3d115e780c768c330b4ecf4e1c129ae /tools/create_lure/create_lure_dat.cpp | |
parent | 43f19bc722977d5df1d200ecb9dce750f6b579be (diff) | |
download | scummvm-rg350-4cc1d4ffb884501a8f912e0548e98da3d9359b1b.tar.gz scummvm-rg350-4cc1d4ffb884501a8f912e0548e98da3d9359b1b.tar.bz2 scummvm-rg350-4cc1d4ffb884501a8f912e0548e98da3d9359b1b.zip |
Changed the create_lure tool to use the explicitly defined lure language list
svn-id: r47021
Diffstat (limited to 'tools/create_lure/create_lure_dat.cpp')
-rw-r--r-- | tools/create_lure/create_lure_dat.cpp | 23 |
1 files changed, 22 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 |