mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-23 11:51:26 +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
14b07ee45f
commit
f144af949b
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