diff options
author | Filippos Karapetis | 2011-02-07 12:24:09 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-02-07 12:24:09 +0000 |
commit | 6f9ac84f77f140c8008ffec0e57fcf2ddd17a10e (patch) | |
tree | dbf6c0eae66fe09f7ab9e397ba41c60e2b01c970 /engines/sci/sci.cpp | |
parent | d7fb5239e7ed9b95442b8a481cdd9e6c25a9acc5 (diff) | |
download | scummvm-rg350-6f9ac84f77f140c8008ffec0e57fcf2ddd17a10e.tar.gz scummvm-rg350-6f9ac84f77f140c8008ffec0e57fcf2ddd17a10e.tar.bz2 scummvm-rg350-6f9ac84f77f140c8008ffec0e57fcf2ddd17a10e.zip |
SCI: Converted the robot decoder into a regular video decoder, and decoupled it from the
SciEngine class
- Robot videos are now shown in frameOut(), like they should, and kRobot(sync) is only
used for syncing with the game scripts
- Hooked video playing into the "play_video" console command
svn-id: r55801
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 978762968e..ce2f2de85d 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -66,8 +66,8 @@ #include "sci/graphics/transitions.h" #ifdef ENABLE_SCI32 -#include "sci/graphics/robot.h" #include "sci/graphics/frameout.h" +#include "sci/video/robot_decoder.h" #endif namespace Sci { @@ -151,7 +151,7 @@ SciEngine::~SciEngine() { DebugMan.clearAllDebugChannels(); #ifdef ENABLE_SCI32 - delete _gfxRobot; + delete _robotDecoder; delete _gfxFrameout; #endif delete _gfxMenu; @@ -582,7 +582,7 @@ void SciEngine::initGraphics() { _gfxText16 = 0; _gfxTransitions = 0; #ifdef ENABLE_SCI32 - _gfxRobot = 0; + _robotDecoder = 0; _gfxFrameout = 0; _gfxPaint32 = 0; #endif @@ -611,7 +611,7 @@ void SciEngine::initGraphics() { _gfxCompare = new GfxCompare(_gamestate->_segMan, _kernel, _gfxCache, _gfxScreen, _gfxCoordAdjuster); _gfxPaint32 = new GfxPaint32(_resMan, _gamestate->_segMan, _kernel, _gfxCoordAdjuster, _gfxCache, _gfxScreen, _gfxPalette); _gfxPaint = _gfxPaint32; - _gfxRobot = new GfxRobot(_resMan, _gfxScreen, _gfxPalette); + _robotDecoder = new RobotDecoder(g_system->getMixer(), getPlatform() == Common::kPlatformMacintosh); _gfxFrameout = new GfxFrameout(_gamestate->_segMan, _resMan, _gfxCoordAdjuster, _gfxCache, _gfxScreen, _gfxPalette, _gfxPaint32); } else { #endif |