mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
SCUMM: limit 'Unrecognized base tag' warning to valid cases
This warning will not only show up if a tag is actually unrecognized but also in cases where the tag is recognized, but the resource size is 0. This happens quite a lot in the Amiga version of MI2 with 'SOU ' tags.
This commit is contained in:
parent
4ee4d2d9af
commit
19643175a8
@ -1335,7 +1335,8 @@ int ScummEngine::readSoundResource(ResId idx) {
|
||||
}
|
||||
}
|
||||
|
||||
warning("Unrecognized base tag 0x%08x in sound %d", basetag, idx);
|
||||
if (total_size)
|
||||
warning("Unrecognized base tag 0x%08x in sound %d", basetag, idx);
|
||||
_res->_types[rtSound][idx]._roomoffs = RES_INVALID_OFFSET;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user