aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2005-01-28 14:42:47 +0000
committerPaweł Kołodziejski2005-01-28 14:42:47 +0000
commit912c66997797218dfc5fd332b18827288a8b4e08 (patch)
tree42d795f0750fd4891421e7bceb992191f88a2eb9 /scumm
parentff8094aad52d817f32cd0698ccf6fb38184e5752 (diff)
downloadscummvm-rg350-912c66997797218dfc5fd332b18827288a8b4e08.tar.gz
scummvm-rg350-912c66997797218dfc5fd332b18827288a8b4e08.tar.bz2
scummvm-rg350-912c66997797218dfc5fd332b18827288a8b4e08.zip
added error message for lack of library support
svn-id: r16663
Diffstat (limited to 'scumm')
-rw-r--r--scumm/imuse_digi/dimuse_sndmgr.cpp8
1 files changed, 8 insertions, 0 deletions
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;
}