mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- 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:
parent
8bf4522174
commit
09dcb247cf
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue