mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- Exhumed: Get GOG music playing without any user intervention required.
This commit is contained in:
parent
d7c4e5e59f
commit
2c1b53ad1c
1 changed files with 7 additions and 2 deletions
|
@ -46,9 +46,14 @@ bool playCDtrack(int nTrack, bool bLoop)
|
|||
|
||||
char filename[128];
|
||||
|
||||
// try ogg vorbis now
|
||||
// try ogg vorbis now from root directory.
|
||||
sprintf(filename, "exhumed%02d.ogg", nTrack);
|
||||
Mus_Play(nullptr, filename, true);
|
||||
if (!Mus_Play(nullptr, filename, true))
|
||||
{
|
||||
// try ogg vorbis now from GOG MUSIC subdirectory.
|
||||
sprintf(filename, "MUSIC/Track%02d.ogg", nTrack);
|
||||
Mus_Play(nullptr, filename, true);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue