Skip to content

Commit

Permalink
DIRECTOR: Fix cast scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 29, 2016
1 parent d5009ee commit 64587bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion engines/director/archive.cpp
Expand Up @@ -191,7 +191,7 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) {

shardcst->openFile(filename);

Score *castScore = new Score(this);
Score *castScore = new Score(this, shardcst);
Common::SeekableSubReadStreamEndian *castStream = shardcst->getResource(MKTAG('V','W','C','R'), 1024);

castScore->loadCastData(*castStream);
Expand Down
4 changes: 2 additions & 2 deletions engines/director/director.cpp
Expand Up @@ -114,7 +114,7 @@ Common::Error DirectorEngine::run() {
loadMMMNames(ConfMan.get("path"));
loadMainArchive();

_currentScore = new Score(this);
_currentScore = new Score(this, _mainArchive);
debug(0, "Score name %s", _currentScore->getMacName().c_str());

_currentScore->loadArchive();
Expand Down Expand Up @@ -149,7 +149,7 @@ Common::HashMap<Common::String, Score *> DirectorEngine::loadMMMNames(Common::St
Archive *arc = createArchive();

arc->openFile(i->getPath());
Score *sc = new Score(this);
Score *sc = new Score(this, arc);
nameMap[sc->getMacName()] = sc;
}
}
Expand Down
4 changes: 2 additions & 2 deletions engines/director/score.cpp
Expand Up @@ -87,11 +87,11 @@ static byte defaultPalette[768] = {
204, 51, 255, 204, 102, 255, 204, 153, 255, 204, 204, 255, 204, 255, 255, 255,
0, 255, 255, 51, 255, 255, 102, 255, 255, 153, 255, 255, 204, 255, 255, 255 };

Score::Score(DirectorEngine *vm) {
Score::Score(DirectorEngine *vm, Archive *archive) {
_vm = vm;
_surface = new Graphics::ManagedSurface;
_trailSurface = new Graphics::ManagedSurface;
_movieArchive = _vm->getMainArchive();
_movieArchive = archive;
_lingo = _vm->getLingo();
_soundManager = _vm->getSoundManager();
_lingo->processEvent(kEventPrepareMovie, 0);
Expand Down
2 changes: 1 addition & 1 deletion engines/director/score.h
Expand Up @@ -170,7 +170,7 @@ struct Label {

class Score {
public:
Score(DirectorEngine *vm);
Score(DirectorEngine *vm, Archive *);
~Score();

static Common::Rect readRect(Common::SeekableSubReadStreamEndian &stream);
Expand Down

0 comments on commit 64587bb

Please sign in to comment.