mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
no more Sys_* functions defined in nq or qw :)
This commit is contained in:
parent
3de07df3d2
commit
442ccc3deb
13 changed files with 20 additions and 44 deletions
|
@ -853,7 +853,6 @@ Host_Init (void)
|
|||
Cmd_Init_Hash ();
|
||||
Cvar_Init ();
|
||||
Sys_Init_Cvars ();
|
||||
Sys_Init ();
|
||||
|
||||
Cbuf_Init ();
|
||||
Cmd_Init ();
|
||||
|
|
|
@ -80,18 +80,12 @@ int noconinput;
|
|||
#endif
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
startup (void)
|
||||
{
|
||||
#ifdef WIN32
|
||||
OSVERSIONINFO vinfo;
|
||||
#endif
|
||||
#ifdef USE_INTEL_ASM
|
||||
#ifdef _WIN32
|
||||
Sys_MaskExceptions ();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
// make sure the timer is high precision, otherwise NT gets 18ms resolution
|
||||
timeBeginPeriod (1);
|
||||
|
||||
|
@ -105,6 +99,8 @@ Sys_Init (void)
|
|||
Sys_Error ("This version of " PROGRAM
|
||||
" requires at least Win95 or NT 4.0");
|
||||
}
|
||||
#else
|
||||
signal (SIGFPE, SIG_IGN);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -125,9 +121,7 @@ SDL_main (int c, char **v)
|
|||
{
|
||||
double time, oldtime, newtime;
|
||||
|
||||
#ifndef WIN32
|
||||
signal (SIGFPE, SIG_IGN);
|
||||
#endif
|
||||
startup ();
|
||||
|
||||
memset (&host_parms, 0, sizeof (host_parms));
|
||||
|
||||
|
|
|
@ -62,12 +62,6 @@ static const char rcsid[] =
|
|||
|
||||
qboolean isDedicated = false;
|
||||
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
shutdown (void)
|
||||
{
|
||||
|
|
|
@ -76,11 +76,6 @@ shutdown (void)
|
|||
fflush (stdout);
|
||||
}
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, const char **argv)
|
||||
{
|
||||
|
|
|
@ -93,7 +93,7 @@ findhandle (void)
|
|||
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
startup (void)
|
||||
{
|
||||
LARGE_INTEGER PerformanceFreq;
|
||||
unsigned int lowpart, highpart;
|
||||
|
@ -179,6 +179,8 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
|||
if (hPrevInstance)
|
||||
return 0;
|
||||
|
||||
startup ();
|
||||
|
||||
global_hInstance = hInstance;
|
||||
global_nCmdShow = nCmdShow;
|
||||
|
||||
|
|
|
@ -52,11 +52,6 @@ shutdown (void)
|
|||
{
|
||||
}
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
{
|
||||
}
|
||||
|
||||
const char *newargv[256];
|
||||
|
||||
int
|
||||
|
|
|
@ -1668,7 +1668,6 @@ Host_Init (void)
|
|||
Cmd_Init_Hash ();
|
||||
Cvar_Init ();
|
||||
Sys_Init_Cvars ();
|
||||
Sys_Init ();
|
||||
|
||||
Cbuf_Init ();
|
||||
Cmd_Init ();
|
||||
|
|
|
@ -81,13 +81,11 @@ int noconinput;
|
|||
#endif
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
startup (void)
|
||||
{
|
||||
#ifdef WIN32
|
||||
OSVERSIONINFO vinfo;
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
// make sure the timer is high precision, otherwise NT gets 18ms resolution
|
||||
timeBeginPeriod (1);
|
||||
|
||||
|
@ -101,6 +99,8 @@ Sys_Init (void)
|
|||
Sys_Error ("This version of " PROGRAM
|
||||
" requires at least Win95 or NT 4.0");
|
||||
}
|
||||
#else
|
||||
signal (SIGFPE, SIG_IGN);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -121,9 +121,7 @@ SDL_main (int c, char **v)
|
|||
{
|
||||
double time, oldtime, newtime;
|
||||
|
||||
#ifndef WIN32
|
||||
signal (SIGFPE, SIG_IGN);
|
||||
#endif
|
||||
startup ();
|
||||
|
||||
memset (&host_parms, 0, sizeof (host_parms));
|
||||
|
||||
|
|
|
@ -63,11 +63,6 @@ int noconinput = 0;
|
|||
qboolean is_server = false;
|
||||
char *svs_info;
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
shutdown (void)
|
||||
{
|
||||
|
|
|
@ -77,7 +77,7 @@ HANDLE qwclsemaphore;
|
|||
static HANDLE tevent;
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
startup (void)
|
||||
{
|
||||
OSVERSIONINFO vinfo;
|
||||
|
||||
|
@ -154,6 +154,8 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
|||
if (hPrevInstance)
|
||||
return 0;
|
||||
|
||||
startup ();
|
||||
|
||||
global_hInstance = hInstance;
|
||||
global_nCmdShow = nCmdShow;
|
||||
|
||||
|
|
|
@ -2412,7 +2412,6 @@ SV_Init (void)
|
|||
Cmd_Init_Hash ();
|
||||
Cvar_Init ();
|
||||
Sys_Init_Cvars ();
|
||||
Sys_Init ();
|
||||
|
||||
Cvar_Get ("cmd_warncmd", "1", CVAR_NONE, NULL, NULL);
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ wrfpcr(unsigned long val)
|
|||
#endif
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
startup (void)
|
||||
{
|
||||
#ifdef __alpha__
|
||||
wrfpcr (rdfpcr () | 1L << 47);
|
||||
|
@ -123,6 +123,8 @@ main (int argc, const char *argv[])
|
|||
{
|
||||
double time, oldtime, newtime;
|
||||
|
||||
startup ();
|
||||
|
||||
memset (&host_parms, 0, sizeof (host_parms));
|
||||
|
||||
COM_InitArgv (argc, argv);
|
||||
|
|
|
@ -48,7 +48,7 @@ info_t **svs_info = &svs.info;
|
|||
|
||||
|
||||
void
|
||||
Sys_Init (void)
|
||||
startup (void)
|
||||
{
|
||||
OSVERSIONINFO vinfo;
|
||||
|
||||
|
@ -78,6 +78,8 @@ main (int argc, const char **argv)
|
|||
{
|
||||
double newtime, time, oldtime;
|
||||
|
||||
startup ();
|
||||
|
||||
COM_InitArgv (argc, argv);
|
||||
|
||||
host_parms.argc = com_argc;
|
||||
|
|
Loading…
Reference in a new issue