aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorPaul Gilbert2012-01-29 22:16:15 +1100
committerStrangerke2012-04-06 08:20:48 +0200
commit42ff1a89db077ede823425c75339ad235f047916 (patch)
tree81d5ebcb7725d2db92ce62de846bb27af3da0075 /devtools
parent74d6a7bd01133d89ffde196dfcd339679ac8ee14 (diff)
downloadscummvm-rg350-42ff1a89db077ede823425c75339ad235f047916.tar.gz
scummvm-rg350-42ff1a89db077ede823425c75339ad235f047916.tar.bz2
scummvm-rg350-42ff1a89db077ede823425c75339ad235f047916.zip
MORTEVIELLE: Minor bugfixes to string extraction tool
Diffstat (limited to 'devtools')
-rw-r--r--devtools/extract_mort/extract_mort.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/devtools/extract_mort/extract_mort.cpp b/devtools/extract_mort/extract_mort.cpp
index 9e5641759b..192ea50723 100644
--- a/devtools/extract_mort/extract_mort.cpp
+++ b/devtools/extract_mort/extract_mort.cpp
@@ -296,6 +296,9 @@ static void export_strings(const char *textFilename) {
printf("Extracted string exceeded allowed buffer size.\n");
exit(1);
}
+
+ if (indis >= (txxInp.size() / 2))
+ endFlag = true;
} while (!endFlag);
// Write out the string
@@ -347,7 +350,7 @@ static void import_strings(const char *textFilename) {
// Write out the compressed data
if (point != 16)
++indis;
- txxInp.write(strData, indis);
+ txxInp.write(strData, indis * 2);
// Close the files
txxInp.close();