diff options
author | Paul Gilbert | 2017-09-29 07:33:46 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-29 07:33:46 -0400 |
commit | 74f69ef4005c0aa4fcd1b4c54b0443b5e38c4da0 (patch) | |
tree | fa37149e66601187f82a782ad86dbafcc8ad6b41 /devtools/create_titanic | |
parent | 6f163b93252b18a46eeecf6b1318eea791915e49 (diff) | |
download | scummvm-rg350-74f69ef4005c0aa4fcd1b4c54b0443b5e38c4da0.tar.gz scummvm-rg350-74f69ef4005c0aa4fcd1b4c54b0443b5e38c4da0.tar.bz2 scummvm-rg350-74f69ef4005c0aa4fcd1b4c54b0443b5e38c4da0.zip |
DEVTOOLS: Added German bot word lists to create_titanic
Diffstat (limited to 'devtools/create_titanic')
-rw-r--r-- | devtools/create_titanic/create_titanic_dat.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/devtools/create_titanic/create_titanic_dat.cpp b/devtools/create_titanic/create_titanic_dat.cpp index 4280e09f5a..3a0646447f 100644 --- a/devtools/create_titanic/create_titanic_dat.cpp +++ b/devtools/create_titanic/create_titanic_dat.cpp @@ -57,7 +57,7 @@ */ #define VERSION_NUMBER 3 -#define HEADER_SIZE 0x1600 +#define HEADER_SIZE 0x1700 Common::File inputFile, outputFile; Common::PEResources resEng, resGer; @@ -1334,9 +1334,11 @@ void writeWords(const char *name, uint tableOffset, int recordCount = 2) { val = inputFile.readLong(); strOffset = inputFile.readLong(); - if (!val) + if (!val) { // Reached end of list + assert(idx >= 128); break; + } outputFile.writeLong(val); writeString(strOffset); @@ -1685,8 +1687,8 @@ void writeData() { writeSentenceMappings("Mappings/Parrot", MAPPINGS_PARROT[_version], 1); writeSentenceMappings("Mappings/SuccUBus", MAPPINGS_SUCCUBUS[_version], 1); writeWords("Words/Barbot", WORDS_BARBOT[_version]); - writeWords("Words/Bellbot", WORDS_BELLBOT[_version]); - writeWords("Words/Deskbot", WORDS_DESKBOT[_version]); + writeWords("Words/Bellbot", WORDS_BELLBOT[_version], 3); + writeWords("Words/Deskbot", WORDS_DESKBOT[_version], 3); writeWords("Words/Doorbot", WORDS_DOORBOT[_version], 3); writeWords("Words/Liftbot", WORDS_LIFTBOT[_version]); writePhrases("Phrases/Bellbot", BELLBOT_COMMON_PHRASES); @@ -1722,6 +1724,11 @@ void writeGermanData() { writeSentenceMappings("Mappings/MaitreD/DE", 0x232E30 + GERMAN_DIFF, 1); writeSentenceMappings("Mappings/Parrot/DE", 0x235FA8 + GERMAN_DIFF, 1); writeSentenceMappings("Mappings/SuccUBus/DE", 0x2399C8 + GERMAN_DIFF, 1); + writeWords("Words/Barbot/DE", 0x5C68B8); + writeWords("Words/Bellbot/DE", 0x5E8378, 3); + writeWords("Words/Deskbot/DE", 0x5FE8D8, 3); + writeWords("Words/Doorbot/DE", 0x61B398, 3); + writeWords("Words/Liftbot/DE", 0x629618); const int SENTENCES_BARBOT[2] = { 0x5B00C0, 0x5C5AC8 }; const int SENTENCES_BELLBOT[20] = { 0x5CACF8, 0x5D1670 }; |