[Scummvm-tracker] [ScummVM] #10861: Darby the dragon: ERROR: Archive does not contain 'ANIM' 2329!
ScummVM
trac at scummvm.org
Thu Jan 3 03:07:38 CET 2019
#10861: Darby the dragon: ERROR: Archive does not contain 'ANIM' 2329!
----------------------+------------------------------
Reporter: Rockin2 | Owner: (none)
Type: defect | Status: new
Priority: blocker | Component: Engine: Composer
Resolution: | Keywords: Darby Composer
Game: |
----------------------+------------------------------
Comment (by digitall):
Aha. I think I can see the cause of the issue, though not clear what
exactly the fix code should be.
The graphics.cpp changes in d91368aa1a2f7b4bc7b270cfbd72db9c97b9441f now
try to check for resources in all of the _libraries archives by calling
getResource() and then testing if the resulting stream is NULL i.e.
https://github.com/scummvm/scummvm/blob/master/engines/composer/graphics.cpp#L110
However, the getResource() call will make a fatal error() call aborting
the engine if you request a non-existent id i.e.
https://github.com/scummvm/scummvm/blob/master/engines/composer/resource.cpp#L85
The solution should be to replace this with hasResource() calls which are
not fatal and only when the resource is located, then do a getResource()
to get it's data...
--
Ticket URL: <https://bugs.scummvm.org/ticket/10861#comment:9>
ScummVM <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list