- return null instead of throwing exception if CD playback isn't supported

The game should switching to MIDI music on platforms without CD playback support
It was impossible to start Hexen on platforms other than Windows
This commit is contained in:
alexey.lysiuk 2019-10-12 09:57:58 +03:00 committed by drfrag
parent 14b07ee45f
commit f144af949b

View file

@ -196,16 +196,14 @@ MusInfo* CDDA_OpenSong(MusicIO::FileInterface* reader)
#else
#include <stdexcept>
MusInfo* CD_OpenSong(int track, int id)
{
throw std::runtime_error("CD Audio playback not supported");
return nullptr;
}
MusInfo* CDDA_OpenSong(MusicIO::FileInterface* reader)
{
throw std::runtime_error("CD Audio playback not supported");
return nullptr;
}