win_main.c File Reference

Windows system functions. More...

#include "../../common/common.h"
#include "../../common/msg.h"
#include "win_local.h"
#include <fcntl.h>
#include <float.h>
#include <direct.h>
#include <io.h>
Include dependency graph for win_main.c:

Go to the source code of this file.

Defines

#define MAX_NUM_ARGVS   128

Functions

void Sys_Init (void)
void Sys_SetAffinityAndPriority (void)
 Switch to one processor usage for windows system with more than one processor.
const char * Sys_SetLocale (const char *localeID)
const char * Sys_GetLocale (void)
static void ParseCommandLine (LPSTR lpCmdLine)
static void FixWorkingDirectory (void)
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)

Variables

qboolean s_win95
qboolean s_win2k
qboolean s_winxp
qboolean s_vista
static int argc
static const char * argv [MAX_NUM_ARGVS]

Detailed Description

Windows system functions.

Definition in file win_main.c.


Define Documentation

#define MAX_NUM_ARGVS   128

Definition at line 36 of file win_main.c.


Function Documentation

static void FixWorkingDirectory ( void   )  [static]

Definition at line 212 of file win_main.c.

References MAX_OSPATH, MAX_QPATH, and Sys_Error().

Referenced by WinMain().

static void ParseCommandLine ( LPSTR  lpCmdLine  )  [static]

Definition at line 188 of file win_main.c.

References argc, argv, and MAX_NUM_ARGVS.

Referenced by WinMain().

const char* Sys_GetLocale ( void   ) 

Definition at line 179 of file win_main.c.

Referenced by CL_LanguageInit().

void Sys_Init ( void   ) 
void Sys_SetAffinityAndPriority ( void   ) 

Switch to one processor usage for windows system with more than one processor.

Definition at line 93 of file win_main.c.

References Com_Printf(), Cvar_SetValue(), cvar_s::integer, cvar_s::modified, qfalse, sys_affinity, and sys_priority.

Referenced by CL_Frame().

const char* Sys_SetLocale ( const char *  localeID  ) 

Definition at line 171 of file win_main.c.

References Sys_Setenv().

Referenced by CL_LanguageTryToSet().

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow 
)

Variable Documentation

int argc [static]
const char* argv[MAX_NUM_ARGVS] [static]

Definition at line 38 of file win_main.c.

Referenced by main(), ParseCommandLine(), and WinMain().

Definition at line 34 of file win_main.c.

Referenced by Sys_Init().

Definition at line 34 of file win_main.c.

Referenced by Sys_Init().

Definition at line 34 of file win_main.c.

Referenced by Sys_Init().

Definition at line 34 of file win_main.c.

Referenced by Sys_Init().


Generated by  doxygen 1.6.2