mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Makes the HEY LISTEN dialog a bit quieter Now it only prints to admins. It's still logged and everything, for those who want to shave off the <100 ms it takes the server to usually handle this atmos equalization stuff. TBH this is such a, weird debug line, I don't really know why it was kept in as a big dumb to_chat(world) for so long. * Makes the subsystem init dialog look nicer Now, instead of displaying performance times to the whole `world`, an approximate loading % is printed to everyone (with admins getting the old dialog in span_notice style). EDIT: Fixes some stuff Gamer complained about EDIT EDIT: I don't get how SHOULD_CALL_PARENT works * Update yogstation/code/controllers/subsystem/yogs.dm Co-authored-by: nmajask <nmajask@gmail.com> Co-authored-by: Jamie D <993128+JamieD1@users.noreply.github.com> Co-authored-by: nmajask <nmajask@gmail.com>
37 lines
882 B
Plaintext
37 lines
882 B
Plaintext
SUBSYSTEM_DEF(assets)
|
|
name = "Assets"
|
|
init_order = INIT_ORDER_ASSETS
|
|
flags = SS_NO_FIRE
|
|
|
|
loading_points = 3 SECONDS // Yogs -- loading times
|
|
|
|
var/list/cache = list()
|
|
var/list/preload = list()
|
|
var/datum/asset_transport/transport = new()
|
|
|
|
/datum/controller/subsystem/assets/OnConfigLoad()
|
|
var/newtransporttype = /datum/asset_transport
|
|
switch (CONFIG_GET(string/asset_transport))
|
|
if ("webroot")
|
|
newtransporttype = /datum/asset_transport/webroot
|
|
|
|
if (newtransporttype == transport.type)
|
|
return
|
|
|
|
var/datum/asset_transport/newtransport = new newtransporttype ()
|
|
if (newtransport.validate_config())
|
|
transport = newtransport
|
|
transport.Load()
|
|
|
|
|
|
|
|
/datum/controller/subsystem/assets/Initialize(timeofday)
|
|
for(var/type in typesof(/datum/asset))
|
|
var/datum/asset/A = type
|
|
if (type != initial(A._abstract))
|
|
get_asset_datum(type)
|
|
|
|
transport.Initialize(cache)
|
|
|
|
..()
|