mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
[MIRROR] Legacy config warning only happens if any legacy configs are present (#7089)
* Legacy config warning only happens if any legacy configs are present (#38421) * Legacy config warning only happens if any legacy configs are present
This commit is contained in:
committed by
kevinz000
parent
e9abd23576
commit
f7924732c0
@@ -25,10 +25,13 @@
|
|||||||
InitEntries()
|
InitEntries()
|
||||||
LoadModes()
|
LoadModes()
|
||||||
if(fexists("[directory]/config.txt") && LoadEntries("config.txt") <= 1)
|
if(fexists("[directory]/config.txt") && LoadEntries("config.txt") <= 1)
|
||||||
log_config("No $include directives found in config.txt! Loading legacy game_options/dbconfig/comms files...")
|
var/list/legacy_configs = list("game_options.txt", "dbconfig.txt", "comms.txt")
|
||||||
LoadEntries("game_options.txt")
|
for(var/I in legacy_configs)
|
||||||
LoadEntries("dbconfig.txt")
|
if(fexists("[directory]/[I]"))
|
||||||
LoadEntries("comms.txt")
|
log_config("No $include directives found in config.txt! Loading legacy [legacy_configs.Join("/")] files...")
|
||||||
|
for(var/J in legacy_configs)
|
||||||
|
LoadEntries(J)
|
||||||
|
break
|
||||||
loadmaplist(CONFIG_MAPS_FILE)
|
loadmaplist(CONFIG_MAPS_FILE)
|
||||||
LoadMOTD()
|
LoadMOTD()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user