diff options
author | Bastien Bouclet | 2018-06-07 20:14:27 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-06-07 20:14:27 +0200 |
commit | 3b794d263378476ca5698fa8ce57ed0887343e2c (patch) | |
tree | e88471d60b3fb3012525d31079837520b89993d9 /engines/mohawk/myst.cpp | |
parent | b4ae4bcd8c6934e2d4927ee70d5f17ebef9b55c9 (diff) | |
download | scummvm-rg350-3b794d263378476ca5698fa8ce57ed0887343e2c.tar.gz scummvm-rg350-3b794d263378476ca5698fa8ce57ed0887343e2c.tar.bz2 scummvm-rg350-3b794d263378476ca5698fa8ce57ed0887343e2c.zip |
MOHAWK: Display a GUI error message when no audio devices are available
Diffstat (limited to 'engines/mohawk/myst.cpp')
-rw-r--r-- | engines/mohawk/myst.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index a01cfdd343..4ff1df2eb7 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -347,6 +347,10 @@ void MohawkEngine_Myst::playSoundBlocking(uint16 id) { Common::Error MohawkEngine_Myst::run() { MohawkEngine::run(); + if (!_mixer->isReady()) { + return Common::kAudioDeviceInitFailed; + } + _gfx = new MystGraphics(this); _video = new VideoManager(this); _sound = new MystSound(this); |