diff options
author | Marisa-Chan | 2014-02-04 08:32:02 +0700 |
---|---|---|
committer | Marisa-Chan | 2014-02-04 08:32:02 +0700 |
commit | 4a454ed763c24f94062be5dd57f43e0a84c1b0a2 (patch) | |
tree | cbfd6f403c780c696d86bc02397e93a89dba9870 /engines/zvision/meta_animation.cpp | |
parent | 9c9f59d57060617d1acec71bd0d4066504f17c7a (diff) | |
download | scummvm-rg350-4a454ed763c24f94062be5dd57f43e0a84c1b0a2.tar.gz scummvm-rg350-4a454ed763c24f94062be5dd57f43e0a84c1b0a2.tar.bz2 scummvm-rg350-4a454ed763c24f94062be5dd57f43e0a84c1b0a2.zip |
ZVISION: New search manager for handle right handle for ZIX-files.
Diffstat (limited to 'engines/zvision/meta_animation.cpp')
-rw-r--r-- | engines/zvision/meta_animation.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/zvision/meta_animation.cpp b/engines/zvision/meta_animation.cpp index 430b1436cb..33ae92a523 100644 --- a/engines/zvision/meta_animation.cpp +++ b/engines/zvision/meta_animation.cpp @@ -37,17 +37,19 @@ namespace ZVision { -MetaAnimation::MetaAnimation(const Common::String &fileName) +MetaAnimation::MetaAnimation(const Common::String &fileName, ZVision *engine) : _fileType(RLF), _cur_frame(NULL) { if (fileName.hasSuffix(".rlf")) { _fileType = RLF; - _animation.rlf = new RlfAnimation(fileName, false); + Common::File *_file = engine->getSearchManager()->openFile(fileName); + _animation.rlf = new RlfAnimation(_file, false); _frmDelay = _animation.rlf->frameTime(); } else if (fileName.hasSuffix(".avi")) { _fileType = AVI; + Common::File *_file = engine->getSearchManager()->openFile(fileName); _animation.avi = new ZorkAVIDecoder(); - _animation.avi->loadFile(fileName); + _animation.avi->loadStream(_file); _frmDelay = 1000.0 / _animation.avi->getDuration().framerate(); } else { warning("Unrecognized animation file type: %s", fileName.c_str()); |