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/riven.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/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index 8139c1a92f..648496b35e 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -114,6 +114,10 @@ GUI::Debugger *MohawkEngine_Riven::getDebugger() { Common::Error MohawkEngine_Riven::run() { MohawkEngine::run(); + if (!_mixer->isReady()) { + return Common::kAudioDeviceInitFailed; + } + // Let's try to open the installer file (it holds extras.mhk) // Though, we set a low priority to prefer the extracted version if (_installerArchive.open("arcriven.z")) |