From 912c66997797218dfc5fd332b18827288a8b4e08 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Fri, 28 Jan 2005 14:42:47 +0000 Subject: added error message for lack of library support svn-id: r16663 --- scumm/imuse_digi/dimuse_sndmgr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scumm') diff --git a/scumm/imuse_digi/dimuse_sndmgr.cpp b/scumm/imuse_digi/dimuse_sndmgr.cpp index 5374150a50..e30495798e 100644 --- a/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -571,9 +571,17 @@ int32 ImuseDigiSndMgr::getDataFromRegion(soundStruct *soundHandle, int region, b bool oggMode = false; sprintf(fileName, "%s_reg%03d.mp3", soundHandle->name, region); cmpFile = soundHandle->bundle->getFile(fileName, offs, len); +#ifndef USE_MAD + if (cmpFile) + error("Mad library compiled support needed!"); +#endif if (!cmpFile) { sprintf(fileName, "%s_reg%03d.ogg", soundHandle->name, region); cmpFile = soundHandle->bundle->getFile(fileName, offs, len); +#ifndef USE_VORBIS + if (cmpFile) + error("Vorbis library compiled support needed!"); +#endif assert(cmpFile); oggMode = true; } -- cgit v1.2.3