Configuration entry refactor! (#39608)

* Config entry refactor

* Fixes

* Update configuration.dm
This commit is contained in:
kevinz000
2018-08-10 12:44:14 -07:00
committed by Jordan Brown
parent 0d7ef3ed65
commit 230e47c0ea
4 changed files with 46 additions and 14 deletions
+9
View File
@@ -1091,3 +1091,12 @@ GLOBAL_PROTECT(AdminProcCallSpamPrevention)
return
sort = sortlist[sort]
profile_show(src, sort)
/client/proc/reload_configuration()
set category = "Debug"
set name = "Reload Configuration"
set desc = "Force config reload to world default"
if(!check_rights(R_DEBUG))
return
if(alert(usr, "Are you absolutely sure you want to reload the configuration from the default path on the disk, wiping any in-round modificatoins?", "Really reset?", "No", "Yes") == "Yes")
config.admin_reload()