diff options
author | Iskrich | 2016-05-26 14:51:51 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 60348aa02a95154f6a0b36b9a9097b4255c85888 (patch) | |
tree | 39b4fc18d26935a40c589bde480f655422aa2a1b /engines | |
parent | 11c9bbd9cb78ea4229e9cd64ad1d31e46d32ec41 (diff) | |
download | scummvm-rg350-60348aa02a95154f6a0b36b9a9097b4255c85888.tar.gz scummvm-rg350-60348aa02a95154f6a0b36b9a9097b4255c85888.tar.bz2 scummvm-rg350-60348aa02a95154f6a0b36b9a9097b4255c85888.zip |
DIRECTOR: Read movie version
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 6 | ||||
-rw-r--r-- | engines/director/score.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 964ea39df7..733e96a2f9 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -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; diff --git a/engines/director/score.h b/engines/director/score.h index cadd130312..fe09b1c504 100644 --- a/engines/director/score.h +++ b/engines/director/score.h @@ -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(); }; |