diff --git a/luaui/Widgets/gui_advplayerslist_music_new.lua b/luaui/Widgets/gui_advplayerslist_music_new.lua index ce204e2e9aa..4b9d2d0b630 100644 --- a/luaui/Widgets/gui_advplayerslist_music_new.lua +++ b/luaui/Widgets/gui_advplayerslist_music_new.lua @@ -79,10 +79,18 @@ local function ReloadMusicPlaylists() local warhighTracksNew = VFS.DirList(musicDirNew..'/warhigh', allowedExtensions) local warlowTracksNew = VFS.DirList(musicDirNew..'/warlow', allowedExtensions) local gameoverTracksNew = VFS.DirList(musicDirNew..'/gameover', allowedExtensions) - local bossFightTracksNew = VFS.DirList(musicDirNew..'/bossfight', allowedExtensions) local menuTracksNew = VFS.DirList(musicDirNew..'/menu', allowedExtensions) local loadingTracksNew = VFS.DirList(musicDirNew..'/loading', allowedExtensions) local boomboxTracksNew = VFS.DirList(musicDirNew..'/boombox', allowedExtensions) + local bossFightTracksNew = {} + if Spring.Utilities.Gametype.IsRaptors() then + table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/raptors', allowedExtensions)) + elseif Spring.Utilities.Gametype.IsScavengers() then + table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/scavengers', allowedExtensions)) + else + table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/raptors', allowedExtensions)) + table.append(bossFightTracksNew, VFS.DirList(musicDirNew..'/bossfight/scavengers', allowedExtensions)) + end -- Custom Soundtrack List local musicDirCustom = 'music/custom' @@ -91,9 +99,9 @@ local function ReloadMusicPlaylists() local warlowTracksCustom = VFS.DirList(musicDirCustom..'/warlow', allowedExtensions) local warTracksCustom = VFS.DirList(musicDirCustom..'/war', allowedExtensions) local gameoverTracksCustom = VFS.DirList(musicDirCustom..'/gameover', allowedExtensions) - local bossFightTracksCustom = VFS.DirList(musicDirCustom..'/bossfight', allowedExtensions) local menuTracksCustom = VFS.DirList(musicDirCustom..'/menu', allowedExtensions) local loadingTracksCustom = VFS.DirList(musicDirCustom..'/loading', allowedExtensions) + local bossFightTracksCustom = VFS.DirList(musicDirCustom..'/bossfight', allowedExtensions) -----------------------------------SETTINGS--------------------------------------- interruptionEnabled = Spring.GetConfigInt('UseSoundtrackInterruption', 1) == 1 diff --git a/music/original/bossfight/Matteo Dell'Acqua - Mother Of All Raptors.ogg b/music/original/bossfight/raptors/Matteo Dell'Acqua - Mother Of All Raptors.ogg similarity index 100% rename from music/original/bossfight/Matteo Dell'Acqua - Mother Of All Raptors.ogg rename to music/original/bossfight/raptors/Matteo Dell'Acqua - Mother Of All Raptors.ogg