aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/director.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index 5d646956d0..8c5e456781 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -122,7 +122,8 @@ Common::Error DirectorEngine::run() {
_movies = scanMovies(ConfMan.get("path"));
- loadSharedCastsFrom(_sharedCastFile);
+ if (!_sharedCastFile.empty())
+ loadSharedCastsFrom(_sharedCastFile);
loadMainArchive();
_currentScore = new Score(this, _mainArchive);
@@ -160,6 +161,7 @@ Common::HashMap<Common::String, Score *> *DirectorEngine::scanMovies(const Commo
Archive *arc = createArchive();
+ warning("name: %s", i->getName().c_str());
arc->openFile(i->getName());
Score *sc = new Score(this, arc);
nameMap->setVal(sc->getMacName(), sc);