From 1677f6d7c8c8e922ab6dc03eaf3811f23a39ec1a Mon Sep 17 00:00:00 2001 From: pierow Date: Thu, 21 Mar 2024 00:33:13 -0400 Subject: [PATCH] remove title track from in-game music programatically --- main/source/ui/UIHud.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/source/ui/UIHud.cpp b/main/source/ui/UIHud.cpp index 1e4e2e4f..4b91360a 100644 --- a/main/source/ui/UIHud.cpp +++ b/main/source/ui/UIHud.cpp @@ -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));