Skip to content

Commit

Permalink
DIRECTOR: Read movie version
Browse files Browse the repository at this point in the history
  • Loading branch information
Iskrich authored and sev- committed Aug 3, 2016
1 parent 11c9bbd commit 60348aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engines/director/score.cpp
Expand Up @@ -61,6 +61,12 @@ Score::Score(Common::SeekableReadStream &stream) {
_frames.remove_at(0);
}

void Score::readVersion(uint32 rid) {
_versionMinor = rid & 0xffff;
_versionMajor = rid >> 16;
debug("%d.%d", _versionMajor, _versionMinor);
}

void Score::play() {
initGraphics(800, 800, true);
uint32 frameId = 0;
Expand Down
5 changes: 5 additions & 0 deletions engines/director/score.h
Expand Up @@ -117,8 +117,13 @@ class Score {
public:
Common::Array<Frame *> _frames;

private:
uint16 _versionMinor;
uint16 _versionMajor;

public:
Score(Common::SeekableReadStream &stream);
void readVersion(uint32 rid);
void play();
};

Expand Down

0 comments on commit 60348aa

Please sign in to comment.