mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
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:
parent
7692091a9c
commit
5135a409d0
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user