mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Fixes custom title screens and adds custom directories to .gitignore (#45181)
* Updated .gitignore Now git doesn't look at custom music or images * Custom titles now work again
This commit is contained in:
@@ -209,3 +209,11 @@ tools/MapAtmosFixer/MapAtmosFixer/bin/*
|
||||
#extra map stuff
|
||||
/_maps/**/backup/
|
||||
/_maps/templates.dm
|
||||
|
||||
# Ignore custom music and title screens (amend as appropriate)
|
||||
/config/jukebox_music/sounds/*
|
||||
!/config/jukebox_music/sounds/exclude
|
||||
/config/title_music/sounds/*
|
||||
!/config/title_music/sounds/exclude
|
||||
/config/title_screens/images/*
|
||||
!/config/title_screens/images/exclude
|
||||
|
||||
@@ -25,12 +25,12 @@ SUBSYSTEM_DEF(title)
|
||||
SSmapping.HACK_LoadMapConfig()
|
||||
for(var/S in provisional_title_screens)
|
||||
var/list/L = splittext(S,"+")
|
||||
if((L.len > 1 && ((use_rare_screens && lowertext(L[1]) == "rare") || (lowertext(L[1]) == lowertext(SSmapping.config.map_name)))))
|
||||
if((L.len == 1 && (L[1] != "exclude" && L[1] != "blank.png"))|| (L.len > 1 && ((use_rare_screens && lowertext(L[1]) == "rare") || (lowertext(L[1]) == lowertext(SSmapping.config.map_name)))))
|
||||
title_screens += S
|
||||
|
||||
if(length(title_screens))
|
||||
file_path = "[global.config.directory]/title_screens/images/[pick(title_screens)]"
|
||||
|
||||
|
||||
if(!file_path)
|
||||
file_path = "icons/default_title.dmi"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user