mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
ZVISION: Throw a warning when a WAV file can't be opened
This commit is contained in:
parent
39bbcfa59e
commit
2ed7d7ab4d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user