Skip to content

Commit f419594

Browse files
authored
Added Support for Map-Bundled music. (beyond-all-reason#4888)
Put your music in the map archive in the following path: music/map/loading music/map/peace music/map/warlow music/map/warhigh
1 parent 8bc4197 commit f419594

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

luaintro/Addons/music.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ function addon.Initialize()
6363
table.append(musicPlaylist, VFS.DirList(musicDirOriginal..'/events/aprilfools/loading', allowedExtensions))
6464
end
6565

66+
-- Map Music
67+
table.append(musicPlaylistEvent, VFS.DirList('music/map/loading', allowedExtensions))
68+
6669
-------------------------------------------------------------------------------------------------------------------------------
6770

6871
-- Regular Music

luaui/Widgets/gui_advplayerslist_music_new.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ local function ReloadMusicPlaylists()
183183

184184
-- Christmas ----------------------------------------------------------------------------------------------------------------------
185185
table.append(bonusTracks, VFS.DirList(musicDirNew..'/events/xmas/menu', allowedExtensions))
186+
187+
-- Map Music
188+
table.append(eventPeaceTracks, VFS.DirList('music/map/peace', allowedExtensions))
189+
table.append(eventWarLowTracks, VFS.DirList('music/map/warlow', allowedExtensions))
190+
table.append(eventWarHighTracks, VFS.DirList('music/map/warhigh', allowedExtensions))
191+
192+
table.append(bonusTracks, VFS.DirList('music/map/loading', allowedExtensions))
193+
table.append(bonusTracks, VFS.DirList('music/map/peace', allowedExtensions))
194+
table.append(bonusTracks, VFS.DirList('music/map/warlow', allowedExtensions))
195+
table.append(bonusTracks, VFS.DirList('music/map/warhigh', allowedExtensions))
186196
end
187197

188198
-------------------------------CREATE PLAYLISTS-----------------------------------

0 commit comments

Comments
 (0)