From cf918d72e5c959b10b0de162db6cbcfaf08c5e82 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 7 Feb 2011 01:56:30 +0000 Subject: SCI: Add support for Mac robot files svn-id: r55797 --- engines/sci/graphics/robot.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'engines/sci/graphics/robot.h') diff --git a/engines/sci/graphics/robot.h b/engines/sci/graphics/robot.h index bc6b698522..ffb4d0e6e7 100644 --- a/engines/sci/graphics/robot.h +++ b/engines/sci/graphics/robot.h @@ -26,12 +26,14 @@ #ifndef SCI_GRAPHICS_ROBOT_H #define SCI_GRAPHICS_ROBOT_H -#include "common/file.h" - #include "sound/audiostream.h" #include "sound/mixer.h" #include "sound/decoders/raw.h" +namespace Common { + class SeekableSubReadStreamEndian; +} + namespace Sci { #ifdef ENABLE_SCI32 @@ -59,7 +61,7 @@ public: void processNextFrame(); uint16 getCurFrame() { return _curFrame; } uint16 getFrameCount() { return _header.frameCount; } - bool isPlaying() { return _resourceId != -1; } + bool isPlaying() { return _robotFile != 0; } void playAudio(); private: @@ -75,13 +77,12 @@ private: byte _savedPal[256 * 4]; - Common::File _robotFile; + Common::SeekableSubReadStreamEndian *_robotFile; Audio::QueuingAudioStream *_audioStream; Audio::SoundHandle _audioHandle; RobotHeader _header; - GuiResourceId _resourceId; uint16 _x; uint16 _y; uint16 _curFrame; -- cgit v1.2.3