aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2007-02-12 17:59:47 +0000
committerJohannes Schickel2007-02-12 17:59:47 +0000
commit7107fcc2c693a077689a0969011e0e164f75b382 (patch)
treef3c3a2e0d4dab57859a3215b81d223f7972da423
parent65acaf50e771190e9879ff007e46f26853dfebac (diff)
downloadscummvm-rg350-7107fcc2c693a077689a0969011e0e164f75b382.tar.gz
scummvm-rg350-7107fcc2c693a077689a0969011e0e164f75b382.tar.bz2
scummvm-rg350-7107fcc2c693a077689a0969011e0e164f75b382.zip
Update. (contributed by Florian Kagerer)
svn-id: r25528
-rw-r--r--tools/create_kyradat/create_kyradat.cpp10
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;
}
+