mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 16:30:43 +00:00
Clean up all the system shutdown calls
I added Sys_RegisterShutdown years ago and never really did anything with it: now any system that needs to be shutdown can ensure it gets shutdown on program exit, and in the correct order (ie, reverse to init order).
This commit is contained in:
parent
b2e12d701b
commit
4e4d1b99b4
40 changed files with 135 additions and 176 deletions
|
@ -696,7 +696,7 @@ C_Init (void)
|
|||
}
|
||||
|
||||
static void
|
||||
C_Shutdown (void)
|
||||
C_shutdown (void)
|
||||
{
|
||||
if (log_file) {
|
||||
Qclose (log_file);
|
||||
|
@ -780,7 +780,7 @@ C_NewMap (void)
|
|||
|
||||
static general_funcs_t plugin_info_general_funcs = {
|
||||
C_Init,
|
||||
C_Shutdown,
|
||||
C_shutdown,
|
||||
};
|
||||
static general_data_t plugin_info_general_data;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue