- Exhumed: Get GOG music playing without any user intervention required.

This commit is contained in:
Mitchell Richters 2020-11-22 22:35:45 +11:00
parent d7c4e5e59f
commit 2c1b53ad1c

View file

@ -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;
}