aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2013-10-31 04:00:16 +0200
committerFilippos Karapetis2013-10-31 04:00:16 +0200
commit2ed7d7ab4d4c3de6d13bc87f024ca3ac03603b86 (patch)
tree39217ce5c7c818a5667c6ad8efd81749f7f8ca9d
parent39bbcfa59e89f065757d418d4406fe7f42acde57 (diff)
downloadscummvm-rg350-2ed7d7ab4d4c3de6d13bc87f024ca3ac03603b86.tar.gz
scummvm-rg350-2ed7d7ab4d4c3de6d13bc87f024ca3ac03603b86.tar.bz2
scummvm-rg350-2ed7d7ab4d4c3de6d13bc87f024ca3ac03603b86.zip
ZVISION: Throw a warning when a WAV file can't be opened
-rw-r--r--engines/zvision/actions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp
index eae4ec2ed5..1fa9fcf334 100644
--- a/engines/zvision/actions.cpp
+++ b/engines/zvision/actions.cpp
@@ -185,6 +185,9 @@ bool ActionMusic::execute(ZVision *engine) {
Common::File *file = new Common::File();
if (file->open(_fileName)) {
audioStream = Audio::makeWAVStream(file, DisposeAfterUse::YES);
+ } else {
+ warning("Unable to open %s", _fileName.c_str());
+ return false;
}
} else {
audioStream = makeRawZorkStream(_fileName, engine);