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

@ -232,9 +232,13 @@ bool UIHud::PickRandomSong(string& outRelativeSongName) const
if (theFileHandle != INVALID_HANDLE_VALUE) if (theFileHandle != INVALID_HANDLE_VALUE)
{ {
do do
{
// 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)); theSongList.push_back(thePath + kDelimiter + string(theFindData.cFileName));
} }
}
while(FindNextFile(theFileHandle, &theFindData)); while(FindNextFile(theFileHandle, &theFindData));
FindClose(theFileHandle); FindClose(theFileHandle);