mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Initialize Refactor (#25981)
Shouldn't break anything, stops warning spam, logs errors qdel style at the end of the game. Initialize now expects a hint to be returned, one of: INITIALIZE_HINT_NORMAL - Does nothing, returned by the root proc INITIALIZE_HINT_LATELOAD - Call atom/proc/LateInitialize INITIALIZE_HINT_QDEL - Calls qdel on the atom LateInitialize currently defaults to the old re-calling behavior so there should be no issues with that. Things that didn't return a hint or fucked up somehow will be logged less loudly than they were before No more world start warnings!
This commit is contained in:
@@ -721,6 +721,13 @@ GLOBAL_PROTECT(AdminProcCall)
|
||||
|
||||
usr << browse(dat, "window=dellog")
|
||||
|
||||
/client/proc/cmd_display_init_log()
|
||||
set category = "Debug"
|
||||
set name = "Display Initialzie() Log"
|
||||
set desc = "Displays a list of things that didn't handle Initialize() properly"
|
||||
|
||||
usr << browse(replacetext(SSatoms.InitLog(), "\n", "<br>"), "window=initlog")
|
||||
|
||||
/client/proc/debug_huds(i as num)
|
||||
set category = "Debug"
|
||||
set name = "Debug HUDs"
|
||||
|
||||
Reference in New Issue
Block a user