From 4a454ed763c24f94062be5dd57f43e0a84c1b0a2 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Tue, 4 Feb 2014 08:32:02 +0700 Subject: ZVISION: New search manager for handle right handle for ZIX-files. --- engines/zvision/lever_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/zvision/lever_control.cpp') diff --git a/engines/zvision/lever_control.cpp b/engines/zvision/lever_control.cpp index e96c873033..33aa2be592 100644 --- a/engines/zvision/lever_control.cpp +++ b/engines/zvision/lever_control.cpp @@ -86,7 +86,7 @@ LeverControl::~LeverControl() { void LeverControl::parseLevFile(const Common::String &fileName) { Common::File file; - if (!file.open(fileName)) { + if (!_engine->getSearchManager()->openFile(file, fileName)) { warning("LEV file %s could could be opened", fileName.c_str()); return; } @@ -103,7 +103,7 @@ void LeverControl::parseLevFile(const Common::String &fileName) { Common::String animationFileName(fileNameBuffer); if (animationFileName.hasSuffix(".avi") || animationFileName.hasSuffix(".rlf")) - _animation = new MetaAnimation(animationFileName); + _animation = new MetaAnimation(animationFileName, _engine); } else if (line.matchString("*skipcolor*", true)) { // Not used -- cgit v1.2.3