diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/scr_file_handling.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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(); |