mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 16:58:01 +00:00
DIRECTOR: Load shared cast only when it exists
This commit is contained in:
parent
012cf1b561
commit
31ffd4d2e8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user