diff options
author | Eugene Sandulenko | 2016-10-26 10:04:09 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-26 10:48:37 +0200 |
commit | df2bd1a94c17b4cf4e6981b85d80d23172d31ba0 (patch) | |
tree | 2549d7751b81a9a7b8fb5e3e3b5a874c744c10fd /engines/director/archive.cpp | |
parent | 45d208b2ec058d2709c3a5da58abff41d08d782c (diff) | |
download | scummvm-rg350-df2bd1a94c17b4cf4e6981b85d80d23172d31ba0.tar.gz scummvm-rg350-df2bd1a94c17b4cf4e6981b85d80d23172d31ba0.tar.bz2 scummvm-rg350-df2bd1a94c17b4cf4e6981b85d80d23172d31ba0.zip |
DIRECTOR: Skipping useless movie scanning.
We can easily rely on the FS path resolving.
Diffstat (limited to 'engines/director/archive.cpp')
-rw-r--r-- | engines/director/archive.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp index 1af63a81b7..9976c253f7 100644 --- a/engines/director/archive.cpp +++ b/engines/director/archive.cpp @@ -194,7 +194,11 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) { debugC(1, kDebugLoading, "Loading Shared cast '%s'", filename.c_str()); - shardcst->openFile(filename); + if (!shardcst->openFile(filename)) { + warning("No shared cast %s", filename.c_str()); + + return; + } _sharedDIB = new Common::HashMap<int, Common::SeekableSubReadStreamEndian *>; _sharedSTXT = new Common::HashMap<int, Common::SeekableSubReadStreamEndian *>; |