aboutsummaryrefslogtreecommitdiff
path: root/engines/chewy/console.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2016-09-24 11:49:54 +0300
committerFilippos Karapetis2016-10-03 00:33:45 +0300
commit0152b7c47f0eef04bd01ae6e1cb808d25ccdd9a0 (patch)
tree5572e128ccaafb11c62c65b57128fc04a922d690 /engines/chewy/console.cpp
parentf017940ca08e32a206982376df0bdc334acdea55 (diff)
downloadscummvm-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/console.cpp')
-rw-r--r--engines/chewy/console.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/chewy/console.cpp b/engines/chewy/console.cpp
index bf7e49c2d0..deaa1e3a62 100644
--- a/engines/chewy/console.cpp
+++ b/engines/chewy/console.cpp
@@ -157,11 +157,14 @@ bool Console::Cmd_PlayVideo(int argc, const char **argv) {
return true;
}
+ detach(); // close the console
+
int resNum = atoi(argv[1]);
- debugPrintf("TODO: Play video %d", resNum);
- // TODO
+ Graphics *g = new Graphics();
+ g->playVideo(resNum);
+ delete g;
- return true;
+ return false;
}
bool Console::Cmd_VideoInfo(int argc, const char **argv) {