Discourage dumping init shit in the mc (#75826)

Way back in the day, MC's init and new code used to contain 300 lines
between them.

I do not want to go back.
This commit is contained in:
Kyle Spier-Swenson
2023-06-04 13:59:09 -04:00
committed by GitHub
parent 3f3c0e6fd7
commit 2bcda117a8
+6 -1
View File
@@ -47,10 +47,15 @@ GLOBAL_VAR(restart_counter)
*
* GOT IT MEMORIZED?
* - Dominion/Cyberboss
*
* Where to put init shit quick guide:
* If you need it to happen before the mc is created: world/Genesis.
* If you need it to happen last: world/New(),
* Otherwise, in a subsystem preinit or init. Subsystems can set an init priority.
*/
/**
* THIS !!!SINGLE!!! PROC IS WHERE ANY FORM OF INIITIALIZATION THAT CAN'T BE PERFORMED IN MASTER/NEW() IS DONE
* THIS !!!SINGLE!!! PROC IS WHERE ANY FORM OF INIITIALIZATION THAT CAN'T BE PERFORMED IN SUBSYSTEMS OR WORLD/NEW IS DONE
* NOWHERE THE FUCK ELSE
* I DON'T CARE HOW MANY LAYERS OF DEBUG/PROFILE/TRACE WE HAVE, YOU JUST HAVE TO DEAL WITH THIS PROC EXISTING
* I'M NOT EVEN GOING TO TELL YOU WHERE IT'S CALLED FROM BECAUSE I'M DECLARING THAT FORBIDDEN KNOWLEDGE