aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush
diff options
context:
space:
mode:
authorNicolas Bacca2002-11-20 23:43:17 +0000
committerNicolas Bacca2002-11-20 23:43:17 +0000
commitc4bec837cc9ba599db21f62e60695e123c17636a (patch)
tree7912409af484475be0ef3d9226be88e6171f8147 /scumm/smush
parenta8f01c253236ac2339c1ae26822b20971d01a555 (diff)
downloadscummvm-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
Diffstat (limited to 'scumm/smush')
-rw-r--r--scumm/smush/player.cpp9
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);