aboutsummaryrefslogtreecommitdiff
path: root/devtools/extract_mort
diff options
context:
space:
mode:
authorStrangerke2012-03-29 12:40:49 +0200
committerStrangerke2012-04-06 08:24:04 +0200
commitd8b8f93c4c51ac0ea8dbc105e3dad17c36866e18 (patch)
tree696b9ae7f78fb54422b3a1a765da6aaff63759e5 /devtools/extract_mort
parentf91e909afa4e3e839f29d2ba643ecd69da88c817 (diff)
downloadscummvm-rg350-d8b8f93c4c51ac0ea8dbc105e3dad17c36866e18.tar.gz
scummvm-rg350-d8b8f93c4c51ac0ea8dbc105e3dad17c36866e18.tar.bz2
scummvm-rg350-d8b8f93c4c51ac0ea8dbc105e3dad17c36866e18.zip
MORTEVIELLE: Start updating tools to add support to German DOS version
Diffstat (limited to 'devtools/extract_mort')
-rw-r--r--devtools/extract_mort/extract_mort.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/devtools/extract_mort/extract_mort.cpp b/devtools/extract_mort/extract_mort.cpp
index 192ea50723..477ca44631 100644
--- a/devtools/extract_mort/extract_mort.cpp
+++ b/devtools/extract_mort/extract_mort.cpp
@@ -272,11 +272,22 @@ static void export_strings(const char *textFilename) {
uint16 *strData;
// Open input and output files
- txxInp.open("TXX.INP", kFileReadMode);
- txxNtp.open("TXX.NTP", kFileReadMode);
+ if (!txxInp.open("TXX.INP", kFileReadMode)) {
+ if (!txxInp.open("TXX.MOR", kFileReadMode)) {
+ printf("Missing TXX.INP/MOR");
+ exit(-1);
+ }
+ }
+ if (!txxNtp.open("TXX.NTP", kFileReadMode)) {
+ if (!txxNtp.open("TXX.IND", kFileReadMode)) {
+ printf("Missing TXX.NTP/IND");
+ exit(-1);
+ }
+ }
textFile.open(textFilename, kFileWriteMode);
// Read all the compressed string data into a buffer
+ printf("%d %d", txxInp.size(), txxNtp.size());
strData = (uint16 *)malloc(txxInp.size());
txxInp.read(strData, txxInp.size());