diff options
author | Paweł Kołodziejski | 2005-01-28 14:42:47 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2005-01-28 14:42:47 +0000 |
commit | 912c66997797218dfc5fd332b18827288a8b4e08 (patch) | |
tree | 42d795f0750fd4891421e7bceb992191f88a2eb9 /scumm | |
parent | ff8094aad52d817f32cd0698ccf6fb38184e5752 (diff) | |
download | scummvm-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.cpp | 8 |
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; } |