ZVISION: Throw a warning when a WAV file can't be opened

This commit is contained in:
Filippos Karapetis 2013-10-31 04:00:16 +02:00
parent 39bbcfa59e
commit 2ed7d7ab4d

View File

@ -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);