KYRA1: Game will crash if bitmap is missing
|Reported by:||SF/njoly||Owned by:||lordhoto|
I noticed that scummvm will crash in KyraEngine::loadBitmap() if bitmap is missing.
I discovered this one because i forgot to copy *.CPS files from CD, and tried to run the game ... I can reproduce it at will if i remove the file `MAIN_FRE.CPS' from the game directory.
The attached patch adds and assertion to verify that the file was successfully loaded before trying to use it.
Hope this helps, Regards.
The legend of Kyrandia French CD version.
njoly@cixy [temp/scummvm]> scummvm -v ScummVM 0.9.0svn (Feb 24 2006 00:25:14) Features compiled in: MP3 zLib njoly@cixy [temp/scummvm]> uname -a NetBSD cixy.dial.pasteur.fr 3.99.15 NetBSD 3.99.15 (CIXY) #2: Tue Feb 21 01:39:35 CET 2006 email@example.com:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY i386
Ticket imported from: #1437774. Ticket imported from: patches/625.