Skip to content

Commit

Permalink
- return null instead of throwing exception if CD playback isn't supp…
Browse files Browse the repository at this point in the history
…orted

The game should switching to MIDI music on platforms without CD playback support
It was impossible to start Hexen on platforms other than Windows
  • Loading branch information
alexey-lysiuk committed Oct 12, 2019
1 parent 8bf4522 commit 09dcb24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libraries/zmusic/musicformats/music_cd.cpp
Expand Up @@ -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;
}


Expand Down

0 comments on commit 09dcb24

Please sign in to comment.