aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2008-12-15 00:11:23 +0000
committerTravis Howell2008-12-15 00:11:23 +0000
commit8e03b72e63dd4b0caa0cc7528bfab0f997ad630c (patch)
treeb54baf70fad72519874e515606dcb0826e7c1bb6
parent96c0685879635f81e5b83ac01e66038bd2a0900c (diff)
downloadscummvm-rg350-8e03b72e63dd4b0caa0cc7528bfab0f997ad630c.tar.gz
scummvm-rg350-8e03b72e63dd4b0caa0cc7528bfab0f997ad630c.tar.bz2
scummvm-rg350-8e03b72e63dd4b0caa0cc7528bfab0f997ad630c.zip
Ignore BINK files.
svn-id: r35370
-rw-r--r--graphics/smk_player.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/smk_player.cpp b/graphics/smk_player.cpp
index dac51459d7..78de65f994 100644
--- a/graphics/smk_player.cpp
+++ b/graphics/smk_player.cpp
@@ -334,6 +334,13 @@ bool SMKPlayer::loadFile(const char *fileName) {
_currentSMKFrame = 0;
_header.signature = _fileStream->readUint32BE();
+ // No BINK support available
+ if (_header.signature == MKID_BE('BIKi')) {
+ delete _fileStream;
+ _fileStream = 0;
+ return false;
+ }
+
assert(_header.signature == MKID_BE('SMK2') || _header.signature == MKID_BE('SMK4'));
_header.width = _fileStream->readUint32LE();