aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorrichiesams2013-08-11 15:03:30 -0500
committerrichiesams2013-08-11 15:03:30 -0500
commit668b0e6c892c67253fe5d763ab752bf7dfbd1c3f (patch)
tree6dea189714236fb49c8b4bc768ff377e68f73347 /engines/zvision
parent3eb6c0ebd8c523c0c66e639fc1ea1f02b8575231 (diff)
downloadscummvm-rg350-668b0e6c892c67253fe5d763ab752bf7dfbd1c3f.tar.gz
scummvm-rg350-668b0e6c892c67253fe5d763ab752bf7dfbd1c3f.tar.bz2
scummvm-rg350-668b0e6c892c67253fe5d763ab752bf7dfbd1c3f.zip
ZVISION: Throw a warning when a .scr file isn't opened
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/scr_file_handling.cpp6
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();