diff options
author | Nicolas Bacca | 2002-11-20 23:43:17 +0000 |
---|---|---|
committer | Nicolas Bacca | 2002-11-20 23:43:17 +0000 |
commit | c4bec837cc9ba599db21f62e60695e123c17636a (patch) | |
tree | 7912409af484475be0ef3d9226be88e6171f8147 | |
parent | a8f01c253236ac2339c1ae26822b20971d01a555 (diff) | |
download | scummvm-rg350-c4bec837cc9ba599db21f62e60695e123c17636a.tar.gz scummvm-rg350-c4bec837cc9ba599db21f62e60695e123c17636a.tar.bz2 scummvm-rg350-c4bec837cc9ba599db21f62e60695e123c17636a.zip |
Do not exit the engine if a video file is missing - apologies to the 1 Gb Microdrive market :)
svn-id: r5644
-rw-r--r-- | scumm/smush/player.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scumm/smush/player.cpp b/scumm/smush/player.cpp index 3ec5e94cff..999bacdfbf 100644 --- a/scumm/smush/player.cpp +++ b/scumm/smush/player.cpp @@ -731,6 +731,15 @@ bool SmushPlayer::play(const char * file, const char * directory) { } } } + + File test; + test.open(file, directory); + if (!test.isOpen()) { + warning("Missing smush file %s", file); + return true; + } + test.close(); + FileChunk base = FileChunk(file, directory); checkBlock(base, TYPE_ANIM); |