diff options
author | Filippos Karapetis | 2011-02-04 17:51:59 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-02-04 17:51:59 +0000 |
commit | 512bcf8b907edd69ed7bed2c988f6aa0b8cdfe69 (patch) | |
tree | e16114ba871f957eff4cd0082c84de77c324fabb /engines/sci/console.cpp | |
parent | 94b6d23d44ee9d48b4e4631f7d38d16c012bf56b (diff) | |
download | scummvm-rg350-512bcf8b907edd69ed7bed2c988f6aa0b8cdfe69.tar.gz scummvm-rg350-512bcf8b907edd69ed7bed2c988f6aa0b8cdfe69.tar.bz2 scummvm-rg350-512bcf8b907edd69ed7bed2c988f6aa0b8cdfe69.zip |
SCI: Rewrote the robot playing code in a way similar to other video decoders
- The code now streams videos instead of loading them in memory, without utilizing seeking
- Removed the sound-related robot code from the graphics classes
- Started implementing the code for the sound in robot videos (still not finished)
svn-id: r55772
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 7d24b1f248..3bb6675ff7 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -121,7 +121,6 @@ Console::Console(SciEngine *engine) : GUI::Debugger(), DCmd_Register("draw_cel", WRAP_METHOD(Console, cmdDrawCel)); #ifdef ENABLE_SCI32 DCmd_Register("draw_robot", WRAP_METHOD(Console, cmdDrawRobot)); - DCmd_Register("play_robot_audio", WRAP_METHOD(Console, cmdPlayRobotAudio)); #endif DCmd_Register("undither", WRAP_METHOD(Console, cmdUndither)); DCmd_Register("pic_visualize", WRAP_METHOD(Console, cmdPicVisualize)); @@ -1529,23 +1528,6 @@ bool Console::cmdDrawRobot(int argc, const char **argv) { return true; } -bool Console::cmdPlayRobotAudio(int argc, const char **argv) { - if (argc < 2) { - DebugPrintf("Draws frames from a robot resource\n"); - DebugPrintf("Usage: %s <resourceId>\n", argv[0]); - DebugPrintf("where <resourceId> is the id of the robot resource to draw\n"); - return true; - } - - uint16 resourceId = atoi(argv[1]); - - if (_engine->_gfxPaint32) { - _engine->_gfxPaint32->debugPlayRobotAudio(resourceId); - } else { - DebugPrintf("command not available in non-sci32 games"); - } - return true; -} #endif bool Console::cmdUndither(int argc, const char **argv) { |