diff options
author | Travis Howell | 2008-12-21 04:36:11 +0000 |
---|---|---|
committer | Travis Howell | 2008-12-21 04:36:11 +0000 |
commit | 76624fc69c28bc422076740521e77f2ba83a2320 (patch) | |
tree | c5cc21ce21299c81721a7b8080e349ec0351136f /engines/agos/script_ff.cpp | |
parent | cba892a61b2449192dbf9db9d9502ead6d9be633 (diff) | |
download | scummvm-rg350-76624fc69c28bc422076740521e77f2ba83a2320.tar.gz scummvm-rg350-76624fc69c28bc422076740521e77f2ba83a2320.tar.bz2 scummvm-rg350-76624fc69c28bc422076740521e77f2ba83a2320.zip |
Add initial Smacker support for The Feeble Files.
svn-id: r35457
Diffstat (limited to 'engines/agos/script_ff.cpp')
-rw-r--r-- | engines/agos/script_ff.cpp | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/engines/agos/script_ff.cpp b/engines/agos/script_ff.cpp index 2bc04708f4..ec6c191db9 100644 --- a/engines/agos/script_ff.cpp +++ b/engines/agos/script_ff.cpp @@ -562,12 +562,29 @@ void AGOSEngine_Feeble::off_mouseOff() { void AGOSEngine_Feeble::off_loadVideo() { // 182: load video file const byte *filename = getStringPtrByID(getNextStringID()); - _moviePlay->load((const char *)filename); + + _moviePlayer = makeMoviePlayer(this, (const char *)filename); + + assert(_moviePlayer); + _moviePlayer->load(); } void AGOSEngine_Feeble::off_playVideo() { // 183: play video - _moviePlay->play(); + if (getBitFlag(40)) { + // Omni TV controls + if (_moviePlayer) { + _moviePlayer->play(); + } else { + _variableArray[254] = 6747; + } + } else { + assert(_moviePlayer); + _moviePlayer->play(); + + delete _moviePlayer; + _moviePlayer = NULL; + } } void AGOSEngine_Feeble::off_centreScroll() { |