mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
remove title track from in-game music programatically
This commit is contained in:
parent
adb875bc40
commit
1677f6d7c8
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue