From 668b0e6c892c67253fe5d763ab752bf7dfbd1c3f Mon Sep 17 00:00:00 2001 From: richiesams Date: Sun, 11 Aug 2013 15:03:30 -0500 Subject: ZVISION: Throw a warning when a .scr file isn't opened --- engines/zvision/scr_file_handling.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/zvision') diff --git a/engines/zvision/scr_file_handling.cpp b/engines/zvision/scr_file_handling.cpp index f116774546..6a71fe474a 100644 --- a/engines/zvision/scr_file_handling.cpp +++ b/engines/zvision/scr_file_handling.cpp @@ -35,8 +35,10 @@ namespace ZVision { void ScriptManager::parseScrFile(const Common::String &fileName, bool isGlobal) { Common::File file; - if (!file.open(fileName)) - return; // File.open already throws a warning if the file doesn't exist, so there is no need to throw another + if (!file.open(fileName)) { + warning("Script file not found: %s", fileName.c_str()); + return; + } while(!file.eos()) { Common::String line = file.readLine(); -- cgit v1.2.3