remove title track from in-game music programatically

This commit is contained in:
pierow 2024-03-21 00:33:13 -04:00
parent adb875bc40
commit 1677f6d7c8

View file

@ -233,7 +233,11 @@ bool UIHud::PickRandomSong(string& outRelativeSongName) const
{
do
{
theSongList.push_back(thePath + kDelimiter + string(theFindData.cFileName));
// Remove title track from in-game music here so people updating don't have to remove the file.
if (string(theFindData.cFileName) != string("ns_titlescreen.mp3"))
{
theSongList.push_back(thePath + kDelimiter + string(theFindData.cFileName));
}
}
while(FindNextFile(theFileHandle, &theFindData));