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>
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] |
Windows system functions.
Definition in file win_main.c.
#define MAX_NUM_ARGVS 128 |
Definition at line 36 of file win_main.c.
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 | ) |
Definition at line 40 of file win_main.c.
References Com_Printf(), CVAR_ARCHIVE, Cvar_Get(), CVAR_SERVERINFO, qtrue, s_vista, s_win2k, s_win95, s_winxp, sys_affinity, Sys_Error(), sys_os, and sys_priority.
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 | |||
) |
Definition at line 228 of file win_main.c.
References argc, argv, FixWorkingDirectory(), global_hInstance, ParseCommandLine(), Qcommon_Frame(), Qcommon_Init(), and Sys_ConsoleInit().
int argc [static] |
Definition at line 37 of file win_main.c.
Referenced by Cbuf_AddLateCommands(), CL_Env_f(), Irc_Client_Join_f(), Irc_Client_Kick_f(), Irc_Client_Mode_f(), Irc_Client_Part_f(), Irc_Client_Topic_f(), Irc_Connect_f(), main(), ParseCommandLine(), and WinMain().
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().