diff options
author | Filippos Karapetis | 2016-09-24 11:49:54 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-10-03 00:33:45 +0300 |
commit | 0152b7c47f0eef04bd01ae6e1cb808d25ccdd9a0 (patch) | |
tree | 5572e128ccaafb11c62c65b57128fc04a922d690 /engines/chewy/resource.cpp | |
parent | f017940ca08e32a206982376df0bdc334acdea55 (diff) | |
download | scummvm-rg350-0152b7c47f0eef04bd01ae6e1cb808d25ccdd9a0.tar.gz scummvm-rg350-0152b7c47f0eef04bd01ae6e1cb808d25ccdd9a0.tar.bz2 scummvm-rg350-0152b7c47f0eef04bd01ae6e1cb808d25ccdd9a0.zip |
CHEWY: Add initial video (CFO) player
The game's videos are modified FLICs. There are some changes needed
to our FLIC decoder, which are included in a separate commit
Diffstat (limited to 'engines/chewy/resource.cpp')
-rw-r--r-- | engines/chewy/resource.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/chewy/resource.cpp b/engines/chewy/resource.cpp index 6a1b860d5b..a873edf563 100644 --- a/engines/chewy/resource.cpp +++ b/engines/chewy/resource.cpp @@ -22,6 +22,7 @@ #include "common/debug.h" #include "common/stream.h" +#include "common/substream.h" #include "common/textconsole.h" #include "chewy/chewy.h" @@ -247,4 +248,11 @@ VideoChunk *VideoResource::getVideoHeader(uint num) { return vid; } +Common::SeekableReadStream *VideoResource::getVideoStream(uint num) { + assert(num < _chunkList.size()); + + Chunk *chunk = &_chunkList[num]; + return new Common::SeekableSubReadStream(&_stream, chunk->pos, chunk->pos + chunk->size); +} + } // End of namespace Chewy |