Revert "Remove empty function Qcommon_shutdown()."

This reverts commit ec428bb752. Looks like
the function is usefull for pull request #232.
This commit is contained in:
Yamagi Burmeister 2017-09-07 18:17:22 +02:00
parent f3df541b79
commit 6c7039af80
4 changed files with 11 additions and 0 deletions

View file

@ -259,6 +259,7 @@ Sys_Quit(void)
logfile = NULL; logfile = NULL;
} }
Qcommon_Shutdown();
fcntl(0, F_SETFL, fcntl(0, F_GETFL, 0) & ~FNDELAY); fcntl(0, F_SETFL, fcntl(0, F_GETFL, 0) & ~FNDELAY);
printf("------------------------------------\n"); printf("------------------------------------\n");
@ -278,6 +279,7 @@ Sys_Error(char *error, ...)
#ifndef DEDICATED_ONLY #ifndef DEDICATED_ONLY
CL_Shutdown(); CL_Shutdown();
#endif #endif
Qcommon_Shutdown();
va_start(argptr, error); va_start(argptr, error);
vsnprintf(string, 1024, error, argptr); vsnprintf(string, 1024, error, argptr);

View file

@ -78,6 +78,8 @@ Sys_Error(char *error, ...)
CL_Shutdown(); CL_Shutdown();
#endif #endif
Qcommon_Shutdown();
va_start(argptr, error); va_start(argptr, error);
vsprintf(text, error, argptr); vsprintf(text, error, argptr);
va_end(argptr); va_end(argptr);
@ -108,6 +110,7 @@ Sys_Quit(void)
CL_Shutdown(); CL_Shutdown();
#endif #endif
Qcommon_Shutdown();
CloseHandle(qwclsemaphore); CloseHandle(qwclsemaphore);
if (dedicated && dedicated->value) if (dedicated && dedicated->value)

View file

@ -520,3 +520,8 @@ Qcommon_Frame(int msec)
} }
} }
#endif #endif
void
Qcommon_Shutdown(void)
{
}

View file

@ -745,6 +745,7 @@ void Z_FreeTags(int tag);
void Qcommon_Init(int argc, char **argv); void Qcommon_Init(int argc, char **argv);
void Qcommon_Frame(int msec); void Qcommon_Frame(int msec);
void Qcommon_Shutdown(void);
#define NUMVERTEXNORMALS 162 #define NUMVERTEXNORMALS 162
extern vec3_t bytedirs[NUMVERTEXNORMALS]; extern vec3_t bytedirs[NUMVERTEXNORMALS];