From 2ed7d7ab4d4c3de6d13bc87f024ca3ac03603b86 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 31 Oct 2013 04:00:16 +0200 Subject: ZVISION: Throw a warning when a WAV file can't be opened --- engines/zvision/actions.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/zvision') 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); -- cgit v1.2.3