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
This commit is contained in:
Max Horn 2002-12-24 02:03:35 +00:00
parent 7692091a9c
commit 5135a409d0

View File

@ -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();