MORTEVIELLE: Minor bugfixes to string extraction tool
This commit is contained in:
parent
74d6a7bd01
commit
42ff1a89db
1 changed files with 4 additions and 1 deletions
|
@ -296,6 +296,9 @@ static void export_strings(const char *textFilename) {
|
||||||
printf("Extracted string exceeded allowed buffer size.\n");
|
printf("Extracted string exceeded allowed buffer size.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (indis >= (txxInp.size() / 2))
|
||||||
|
endFlag = true;
|
||||||
} while (!endFlag);
|
} while (!endFlag);
|
||||||
|
|
||||||
// Write out the string
|
// Write out the string
|
||||||
|
@ -347,7 +350,7 @@ static void import_strings(const char *textFilename) {
|
||||||
// Write out the compressed data
|
// Write out the compressed data
|
||||||
if (point != 16)
|
if (point != 16)
|
||||||
++indis;
|
++indis;
|
||||||
txxInp.write(strData, indis);
|
txxInp.write(strData, indis * 2);
|
||||||
|
|
||||||
// Close the files
|
// Close the files
|
||||||
txxInp.close();
|
txxInp.close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue