diff options
-rw-r--r-- | tools/create_kyradat/create_kyradat.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/create_kyradat/create_kyradat.cpp b/tools/create_kyradat/create_kyradat.cpp index 8a58436614..e89011d8cf 100644 --- a/tools/create_kyradat/create_kyradat.cpp +++ b/tools/create_kyradat/create_kyradat.cpp @@ -25,7 +25,7 @@ #include "md5.h" enum { - kKyraDatVersion = 15, + kKyraDatVersion = 16, kIndexSize = 12 }; @@ -337,8 +337,8 @@ bool extractStrings(PAKFile &out, const Game *g, const byte *data, const uint32 } if (fmtPatch == 2) { - targetsize++; - entries++; + targetsize += (g->special - 1); + entries += (g->special - 1); } uint8 *buffer = new uint8[targetsize]; @@ -358,7 +358,8 @@ bool extractStrings(PAKFile &out, const Game *g, const byte *data, const uint32 // Write one empty string into intro strings file if (fmtPatch == 2) { if ((g->special == kFMTownsVersionE && input - data == 0x260) || - (g->special == kFMTownsVersionJ && input - data == 0x265)) + (g->special == kFMTownsVersionJ && input - data == 0x2BD) || + (g->special == kFMTownsVersionJ && input - data == 0x2BE)) *output++ = *input; } @@ -709,3 +710,4 @@ const Game *findGame(const byte *buffer, const uint32 size) { return 0; } + |