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