diff options
author | Filippos Karapetis | 2008-09-09 15:59:52 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-09-09 15:59:52 +0000 |
commit | 64228b19731b1995eee7e75ef7849849fdd36525 (patch) | |
tree | 58a3bf61e11163d97019cb9b6389ff60c15fabe2 /tools/create_drascula/create_drascula.cpp | |
parent | 932399481a4463eb3f7a018913b2d7330a292c12 (diff) | |
download | scummvm-rg350-64228b19731b1995eee7e75ef7849849fdd36525.tar.gz scummvm-rg350-64228b19731b1995eee7e75ef7849849fdd36525.tar.bz2 scummvm-rg350-64228b19731b1995eee7e75ef7849849fdd36525.zip |
New version of the create_drascula tool
svn-id: r34465
Diffstat (limited to 'tools/create_drascula/create_drascula.cpp')
-rw-r--r-- | tools/create_drascula/create_drascula.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/create_drascula/create_drascula.cpp b/tools/create_drascula/create_drascula.cpp index 2676376e42..4917b1cb32 100644 --- a/tools/create_drascula/create_drascula.cpp +++ b/tools/create_drascula/create_drascula.cpp @@ -38,7 +38,7 @@ #include "create_drascula.h" #include "staticdata.h" -#define DRASCULA_DAT_VER 2 // 1 byte +#define DRASCULA_DAT_VER 3 // 1 byte static void writeByte(FILE *fp, uint8 b) { fwrite(&b, 1, 1, fp); @@ -172,6 +172,16 @@ int main(int argc, char *argv[]) { writeSint16BE(outFile, roomActions[i].speechID); } + // Write talk sequences + writeUint16BE(outFile, ARRAYSIZE(talkSequences)); + + for (i = 0; i < ARRAYSIZE(talkSequences); i++) { + writeSint16BE(outFile, talkSequences[i].chapter); + writeSint16BE(outFile, talkSequences[i].sequence); + writeSint16BE(outFile, talkSequences[i].commandType); + writeSint16BE(outFile, talkSequences[i].action); + } + // langs writeUint16BE(outFile, NUM_LANGS); |