aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/handle.cpp
diff options
context:
space:
mode:
authorFabio Battaglia2009-05-25 07:42:01 +0000
committerFabio Battaglia2009-05-25 07:42:01 +0000
commit6143da7ceab4eb6e5b76ced0df02e94e5eb96238 (patch)
tree709571a0dda2979d21bc8857c1694c42a7fac13a /engines/tinsel/handle.cpp
parent652bc72ed3753632a8fc76f7d6451a813d690e8a (diff)
downloadscummvm-rg350-6143da7ceab4eb6e5b76ced0df02e94e5eb96238.tar.gz
scummvm-rg350-6143da7ceab4eb6e5b76ced0df02e94e5eb96238.tar.bz2
scummvm-rg350-6143da7ceab4eb6e5b76ced0df02e94e5eb96238.zip
tinsel: Discworld PSX uses "index.dat" as scene index file, not "index"
svn-id: r40878
Diffstat (limited to 'engines/tinsel/handle.cpp')
-rw-r--r--engines/tinsel/handle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp
index cfe91f7216..220bf57aca 100644
--- a/engines/tinsel/handle.cpp
+++ b/engines/tinsel/handle.cpp
@@ -112,14 +112,14 @@ void SetupHandleTable(void) {
MEMHANDLE *pH;
Common::File f;
- if (f.open(INDEX_FILENAME)) {
+ if (f.open(TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME)) {
// get size of index file
len = f.size();
if (len > 0) {
if ((len % RECORD_SIZE) != 0) {
// index file is corrupt
- error(FILE_IS_CORRUPT, INDEX_FILENAME);
+ error(FILE_IS_CORRUPT, TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME);
}
// calc number of handles
@@ -145,16 +145,16 @@ void SetupHandleTable(void) {
if (f.ioFailed()) {
// index file is corrupt
- error(FILE_IS_CORRUPT, INDEX_FILENAME);
+ error(FILE_IS_CORRUPT, (TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME));
}
// close the file
f.close();
} else { // index file is corrupt
- error(FILE_IS_CORRUPT, INDEX_FILENAME);
+ error(FILE_IS_CORRUPT, (TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME));
}
} else { // cannot find the index file
- error(CANNOT_FIND_FILE, INDEX_FILENAME);
+ error(CANNOT_FIND_FILE, (TinselV1PSX? PSX_INDEX_FILENAME : INDEX_FILENAME));
}
// allocate memory nodes and load all permanent graphics