From 0152b7c47f0eef04bd01ae6e1cb808d25ccdd9a0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 24 Sep 2016 11:49:54 +0300 Subject: 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 --- engines/chewy/resource.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/chewy/resource.cpp') 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 -- cgit v1.2.3