aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorMax Horn2002-12-24 02:03:35 +0000
committerMax Horn2002-12-24 02:03:35 +0000
commit5135a409d019fddf4aa68e694bfb1012c0f1a7c2 (patch)
tree9a3cef9ccb8ea6e162d022cb9ee7c2195e2f13a4 /scumm/resource.cpp
parent7692091a9cc1d53400f5fe704d14e713ccf8b0ac (diff)
downloadscummvm-rg350-5135a409d019fddf4aa68e694bfb1012c0f1a7c2.tar.gz
scummvm-rg350-5135a409d019fddf4aa68e694bfb1012c0f1a7c2.tar.bz2
scummvm-rg350-5135a409d019fddf4aa68e694bfb1012c0f1a7c2.zip
upon res load error, print out from which file we tried to load, and also print the correc index (was 'type' instead of 'idx')
svn-id: r6090
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index efd3124a75..c904bb0ab9 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -519,7 +519,7 @@ int Scumm::loadResource(int type, int idx)
uint32 fileOffs;
uint32 size, tag;
- //debug(1, "loadResource(%s,%d)", resTypeFromId(type),idx);
+ debug(1, "loadResource(%s,%d)", resTypeFromId(type),idx);
if (type == rtCharset && (_features & GF_SMALL_HEADER)) {
loadCharset(idx);
@@ -567,7 +567,9 @@ int Scumm::loadResource(int type, int idx)
tag = fileReadDword();
if (tag != res.tags[type]) {
- error("%s %d not in room %d at %d+%d", res.name[type], type, roomNr, _fileOffset, fileOffs);
+ error("%s %d not in room %d at %d+%d in file %s",
+ res.name[type], idx, roomNr,
+ _fileOffset, fileOffs, _fileHandle.name());
}
size = _fileHandle.readUint32BE();