aboutsummaryrefslogtreecommitdiff
path: root/tools/skycpt/cptcompiler.cpp
diff options
context:
space:
mode:
authorDavid Turner2010-09-29 02:57:11 +0000
committerDavid Turner2010-09-29 02:57:11 +0000
commit05a08d61c738472c9a49d973b62e10be3d6b1118 (patch)
tree2958e0306cf10f16ae2ea63d86ec573540e44dc4 /tools/skycpt/cptcompiler.cpp
parente400554c2dae4890338b89b0f87444949909e732 (diff)
downloadscummvm-rg350-05a08d61c738472c9a49d973b62e10be3d6b1118.tar.gz
scummvm-rg350-05a08d61c738472c9a49d973b62e10be3d6b1118.tar.bz2
scummvm-rg350-05a08d61c738472c9a49d973b62e10be3d6b1118.zip
TOOLS : Fixes for skycpt use, particularly on case-sensitive OS
In order to allow for work on bug #1507756 "BASS: Officer Blunt wrong animation (?)", the skycpt tool needs to be run, but this was only previously used on case-insensitive OS i.e. Win32. To get this to work normally on case-sensitive OS i.e. Unix, a number of corrections were made to the hardcoded filenames to ensure the same case as the input files. Minor corrections : The README was also amended to deal with the pitfall of decompressing savefiles. Added output of each RESET.* file as processed so offending file can be seen on assertion. Corrected segfault on missing COMPACT.TXT, so exit is more graceful. svn-id: r52941
Diffstat (limited to 'tools/skycpt/cptcompiler.cpp')
-rw-r--r--tools/skycpt/cptcompiler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/skycpt/cptcompiler.cpp b/tools/skycpt/cptcompiler.cpp
index 75434a4618..956f575d7d 100644
--- a/tools/skycpt/cptcompiler.cpp
+++ b/tools/skycpt/cptcompiler.cpp
@@ -475,7 +475,7 @@ void doCompile(FILE *inf, FILE *debOutf, FILE *resOutf, TextFile *cptDef, FILE *
bool filesExist = true;
char inName[32];
for (int i = 0; i < 7; i++) {
- sprintf(inName, "reset.%03d", gameVers[i]);
+ sprintf(inName, "RESET.%03d", gameVers[i]);
FILE *test = fopen(inName, "rb");
if (test)
fclose(test);
@@ -505,8 +505,9 @@ void doCompile(FILE *inf, FILE *debOutf, FILE *resOutf, TextFile *cptDef, FILE *
fwrite(&tmp, 2, 1, debOutf);
printf("reset destination: %ld\n", ftell(debOutf));
for (int cnt = 0; cnt < 6; cnt++) {
+ printf("Processing diff v0.0%03d\n", gameVers[cnt]);
uint16 diffPos = 0;
- sprintf(inName, "reset.%03d", gameVers[cnt]);
+ sprintf(inName, "RESET.%03d", gameVers[cnt]);
FILE *resDiff = fopen(inName, "rb");
fseek(resDiff, 0, SEEK_END);
assert(ftell(resDiff) == (resSize * 2));