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/livingbooks.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/livingbooks.cpp')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index b9e54e4e20..eeadde1b46 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -170,6 +170,10 @@ MohawkEngine_LivingBooks::~MohawkEngine_LivingBooks() { Common::Error MohawkEngine_LivingBooks::run() { MohawkEngine::run(); + if (!_mixer->isReady()) { + return Common::kAudioDeviceInitFailed; + } + _console = new LivingBooksConsole(this); // Load the book info from the detected file loadBookInfo(getBookInfoFileName()); |