#include "shared/shared.h"
#include "common/bsp.h"
#include "common/cmd.h"
#include "common/cmodel.h"
#include "common/common.h"
#include "common/cvar.h"
#include "common/error.h"
#include "common/field.h"
#include "common/fifo.h"
#include "common/files.h"
#include "common/math.h"
#include "common/mdfour.h"
#include "common/msg.h"
#include "common/net/net.h"
#include "common/net/chan.h"
#include "common/pmove.h"
#include "common/prompt.h"
#include "common/protocol.h"
#include "common/tests.h"
#include "common/utils.h"
#include "common/x86/fpu.h"
#include "common/zone.h"
#include "client/client.h"
#include "client/keys.h"
#include "server/server.h"
#include "system/system.h"
#include <setjmp.h>
#include <Windows.h>
Go to the source code of this file.
Functions | |
void | Com_BeginRedirect (int target, char *buffer, size_t buffersize, rdflush_t flush) |
static void | Com_AbortRedirect (void) |
void | Com_EndRedirect (void) |
static void | Com_Redirect (const char *msg, size_t total) |
static void | logfile_close (void) |
static void | logfile_open (void) |
static void | logfile_enable_changed (cvar_t *self) |
static void | logfile_param_changed (cvar_t *self) |
static size_t | format_local_time (char *buffer, size_t size, const char *fmt) |
static void | logfile_write (print_type_t type, const char *s) |
void | Com_SetColor (color_index_t color) |
void | Com_SetLastError (const char *msg) |
char * | Com_GetLastError (void) |
void | Com_LPrintf (print_type_t type, const char *fmt,...) |
void | Com_Error (error_type_t code, const char *fmt,...) |
void | Com_AbortFunc (void(*func)(void *), void *arg) |
void | Com_AbortFrame (void) |
void | Com_Quit (const char *reason, error_type_t type) |
static void | Com_Quit_f (void) |
static void | Com_Recycle_f (void) |
size_t | Com_Time_m (char *buffer, size_t size) |
static size_t | Com_Date_m (char *buffer, size_t size) |
size_t | Com_Uptime_m (char *buffer, size_t size) |
size_t | Com_UptimeLong_m (char *buffer, size_t size) |
static size_t | Com_Random_m (char *buffer, size_t size) |
static size_t | Com_MapList_m (char *buffer, size_t size) |
static void | Com_LastError_f (void) |
void | Com_Address_g (genctx_t *ctx) |
void | Com_Generic_c (genctx_t *ctx, int argnum) |
static void | Com_AddEarlyCommands (qboolean clear) |
static qboolean | Com_AddLateCommands (void) |
void | Com_AddConfigFile (const char *name, unsigned flags) |
void | Qcommon_Init (int argc, char **argv) |
void | Qcommon_Frame (void) |
Definition at line 595 of file common.c.
Referenced by Sys_Quit().
Definition at line 588 of file common.c.
Referenced by read_server_file(), and SV_Map().
void Com_AddConfigFile | ( | const char * | name, |
unsigned | flags | ||
) |
Definition at line 876 of file common.c.
Referenced by fs_game_changed(), Qcommon_Init(), and R_BeginRegistration_RTX().
|
static |
|
static |
void Com_Address_g | ( | genctx_t * | ctx | ) |
Definition at line 729 of file common.c.
Referenced by CL_Connect_c(), CL_InitLocal(), CL_RemoteMode_c(), CL_ServerStatus_c(), and MVD_Connect_c().
|
static |
Definition at line 657 of file common.c.
Referenced by Qcommon_Init().
Definition at line 172 of file common.c.
Referenced by MVD_Join_f(), SV_AC_Info_f(), SV_AC_List_f(), SV_Lag_f(), SV_ShowMiscInfo_f(), SV_ShowServerInfo_f(), and SVC_RemoteCommand().
void Com_Error | ( | error_type_t | code, |
const char * | fmt, | ||
... | |||
) |
Definition at line 748 of file common.c.
Referenced by CL_Rcon_c(), Cmd_Alias_c(), Key_Bind_c(), and Prompt_CompleteCommand().
char* Com_GetLastError | ( | void | ) |
Definition at line 391 of file common.c.
Referenced by _SV_LoadGameLibrary(), AL_Init(), and CL_InitRefresh().
Definition at line 703 of file common.c.
Referenced by Qcommon_Init().
void Com_LPrintf | ( | print_type_t | type, |
const char * | fmt, | ||
... | |||
) |
|
static |
void Com_Quit | ( | const char * | reason, |
error_type_t | type | ||
) |
Definition at line 609 of file common.c.
Referenced by Com_Quit_f(), Com_Recycle_f(), SV_GameMap_f(), Sys_Main(), and VID_PumpEvents().
Definition at line 632 of file common.c.
Referenced by Qcommon_Init().
|
static |
Definition at line 672 of file common.c.
Referenced by Qcommon_Init().
Definition at line 638 of file common.c.
Referenced by Qcommon_Init().
|
static |
void Com_SetColor | ( | color_index_t | color | ) |
Definition at line 373 of file common.c.
Referenced by CL_ParseServerData(), Cmd_EchoEx_f(), and Com_LPrintf().
void Com_SetLastError | ( | const char * | msg | ) |
Definition at line 382 of file common.c.
Referenced by AL_Init(), CL_InitRefresh(), QAL_Init(), Qcommon_Init(), Sys_GetProcAddress(), and Sys_LoadLibrary().
size_t Com_Time_m | ( | char * | buffer, |
size_t | size | ||
) |
Definition at line 652 of file common.c.
Referenced by Con_DrawSolidConsole(), and Qcommon_Init().
size_t Com_Uptime_m | ( | char * | buffer, |
size_t | size | ||
) |
Definition at line 662 of file common.c.
Referenced by Qcommon_Init(), and SV_StatusString().
size_t Com_UptimeLong_m | ( | char * | buffer, |
size_t | size | ||
) |
Definition at line 667 of file common.c.
Referenced by Qcommon_Init(), and SV_StatusString().
|
static |
Definition at line 259 of file common.c.
Referenced by Com_Date_m(), Com_Time_m(), and logfile_write().
Definition at line 204 of file common.c.
Referenced by Com_Error(), Com_Quit(), logfile_enable_changed(), logfile_param_changed(), and NET_Shutdown().
|
static |
Definition at line 243 of file common.c.
Referenced by Qcommon_Init().
Definition at line 216 of file common.c.
Referenced by logfile_enable_changed(), and logfile_param_changed().
|
static |
Definition at line 251 of file common.c.
Referenced by Qcommon_Init().
|
static |
Definition at line 893 of file common.c.
Referenced by Sys_Main().
cvar_t* allow_download |
Definition at line 105 of file common.c.
Referenced by CL_Download_f(), CL_InitLocal(), CL_RequestNextDownload(), HTTP_SetServer(), Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* allow_download_maps |
Definition at line 109 of file common.c.
Referenced by CL_RequestNextDownload(), Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* allow_download_models |
Definition at line 107 of file common.c.
Referenced by CL_RequestNextDownload(), Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* allow_download_others |
Definition at line 112 of file common.c.
Referenced by Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* allow_download_pics |
Definition at line 111 of file common.c.
Referenced by CL_RequestNextDownload(), Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* allow_download_players |
Definition at line 106 of file common.c.
Referenced by CL_RequestNextDownload(), Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* allow_download_sounds |
Definition at line 108 of file common.c.
Referenced by CL_RequestNextDownload(), Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* allow_download_textures |
Definition at line 110 of file common.c.
Referenced by CL_RequestNextDownload(), Qcommon_Init(), and SV_BeginDownload_f().
cvar_t* backdoor |
Definition at line 83 of file common.c.
Referenced by Qcommon_Init().
|
static |
Definition at line 62 of file common.c.
Referenced by Com_AbortFunc(), and Com_Error().
Definition at line 61 of file common.c.
Referenced by Com_AbortFunc(), and Com_Error().
|
static |
Definition at line 59 of file common.c.
Referenced by Com_AbortFrame(), Com_Error(), Qcommon_Frame(), and Qcommon_Init().
|
static |
Definition at line 73 of file common.c.
Referenced by Com_AddEarlyCommands(), Com_AddLateCommands(), and Qcommon_Init().
|
static |
Definition at line 72 of file common.c.
Referenced by Com_AddEarlyCommands(), Com_AddLateCommands(), and Qcommon_Init().
cvar_t* com_date_format |
Definition at line 98 of file common.c.
Referenced by Com_Date_m(), and Qcommon_Init().
|
static |
Definition at line 64 of file common.c.
Referenced by Com_Error(), and Com_LPrintf().
|
static |
Definition at line 65 of file common.c.
Referenced by Com_Error(), Com_GetLastError(), Com_LastError_f(), Com_LPrintf(), Com_SetLastError(), and Qcommon_Init().
unsigned com_eventTime |
Definition at line 122 of file common.c.
Referenced by AddServer(), CL_KeyState(), Key_ClearStates(), KeyClear(), KeyDown(), NET_Init(), NET_UpdateStats(), PingSelected(), Qcommon_Frame(), Qcommon_Init(), SV_BuildClientFrame(), SV_SetLastFrame(), SVC_GetChallenge(), UI_ErrorEvent(), UI_Frame(), and UI_StatusEvent().
cvar_t* com_fatal_error |
Definition at line 103 of file common.c.
Referenced by Com_Error(), and Qcommon_Init().
unsigned com_framenum |
Definition at line 121 of file common.c.
Referenced by CL_SendUserinfo(), CL_UpdateUserinfo(), and Qcommon_Frame().
qboolean com_initialized |
Definition at line 124 of file common.c.
Referenced by Cvar_ResetAll_f(), Cvar_SetByVar(), get_engine_cvar(), and Qcommon_Init().
unsigned com_localTime |
Definition at line 123 of file common.c.
Referenced by CL_CheckTimeout(), CL_MeasureStats(), NetchanNew_Process(), NetchanNew_Setup(), NetchanNew_ShouldUpdate(), NetchanNew_Transmit(), NetchanNew_TransmitNextFragment(), NetchanOld_Process(), NetchanOld_Setup(), NetchanOld_ShouldUpdate(), NetchanOld_Transmit(), Qcommon_Frame(), and SV_SendAsyncPackets().
|
static |
Definition at line 69 of file common.c.
Referenced by Com_Error(), Com_LPrintf(), logfile_close(), logfile_open(), and logfile_write().
|
static |
Definition at line 70 of file common.c.
Referenced by logfile_open(), and logfile_write().
|
static |
Definition at line 67 of file common.c.
Referenced by Com_Error(), and Com_LPrintf().
time_t com_startTime |
Definition at line 125 of file common.c.
Referenced by Com_Uptime_m(), Com_UptimeLong_m(), NET_Stats_f(), and Qcommon_Init().
cvar_t* com_time_format |
Definition at line 99 of file common.c.
Referenced by Com_Time_m(), and Qcommon_Init().
cvar_t* com_timedemo |
Definition at line 97 of file common.c.
Referenced by check_paused(), CL_CheckForPause(), CL_CleanupDemos(), CL_DemoFrame(), CL_FirstDemoFrame(), CL_InitLocal(), CL_SetClientTime(), CL_UpdateFrameTimes(), Qcommon_Frame(), and Qcommon_Init().
cvar_t* com_version |
Definition at line 84 of file common.c.
Referenced by AC_SendHello(), Qcommon_Init(), send_hello(), and start_download().
const char com_version_string[] |
Definition at line 118 of file common.c.
Referenced by Qcommon_Init().
cvar_t* dedicated |
Definition at line 82 of file common.c.
Referenced by AC_Connect(), BSP_Load(), check_paused(), CL_Init(), Cmd_Say_f(), MVD_SetChannel(), NET_OpenServer(), Qcommon_Frame(), Qcommon_Init(), SV_Loadgame_f(), SV_Map(), SV_NoSaveGames(), SV_Savegame_f(), SV_SetMaster_f(), SV_SpawnServer(), SVC_RemoteCommand(), Sys_Init(), and Sys_Quit().
cvar_t* fixedtime |
Definition at line 81 of file common.c.
Referenced by Qcommon_Frame(), and Qcommon_Init().
cvar_t* fs_shareware |
Definition at line 204 of file files.c.
Referenced by FS_Init(), and Qcommon_Init().
cvar_t* logfile_enable |
Definition at line 86 of file common.c.
Referenced by logfile_open(), logfile_param_changed(), and Qcommon_Init().
cvar_t* logfile_flush |
Definition at line 87 of file common.c.
Referenced by logfile_open(), and Qcommon_Init().
cvar_t* logfile_name |
Definition at line 88 of file common.c.
Referenced by logfile_open(), and Qcommon_Init().
cvar_t* logfile_prefix |
Definition at line 89 of file common.c.
Referenced by logfile_write(), and Qcommon_Init().
cvar_t* rcon_password |
Definition at line 114 of file common.c.
Referenced by CL_Rcon_f(), Qcommon_Init(), and rcon_valid().
|
static |
Definition at line 146 of file common.c.
Referenced by Com_AbortRedirect(), Com_BeginRedirect(), Com_EndRedirect(), and Com_Redirect().
|
static |
Definition at line 147 of file common.c.
Referenced by Com_AbortRedirect(), Com_BeginRedirect(), Com_EndRedirect(), and Com_Redirect().
|
static |
Definition at line 149 of file common.c.
Referenced by Com_AbortRedirect(), Com_BeginRedirect(), Com_EndRedirect(), and Com_Redirect().
|
static |
Definition at line 148 of file common.c.
Referenced by Com_AbortRedirect(), Com_BeginRedirect(), Com_EndRedirect(), and Com_Redirect().
|
static |
Definition at line 145 of file common.c.
Referenced by Com_AbortRedirect(), Com_BeginRedirect(), Com_EndRedirect(), Com_LPrintf(), Com_Redirect(), and Com_SetColor().
cvar_t* sv_paused |
Definition at line 96 of file common.c.
Referenced by AL_AddLoopSounds(), check_paused(), CL_CheckForPause(), CL_CheckPredictionError(), CL_FinalizeCmd(), CL_Frame(), CL_PredictMovement(), CL_SendCmd(), CL_UpdateCmd(), is_accumulation_rendering_active(), Qcommon_Init(), R_InterceptKey_RTX(), SCR_DrawDemo(), SCR_DrawPause(), and vkpt_freecam_update().
cvar_t* sv_running |
Definition at line 95 of file common.c.
Referenced by CL_CheatsOK(), CL_CheckForResend(), CL_ParseServerData(), CL_Pause_f(), CL_Seek_f(), Cvar_SetByVar(), MVD_Spawn(), Qcommon_Init(), SCR_DrawDemo(), and SV_SpawnServer().
cvar_t* timescale |
Definition at line 80 of file common.c.
Referenced by Qcommon_Frame(), and Qcommon_Init().
cvar_t* z_perturb |
Definition at line 75 of file common.c.
Referenced by Qcommon_Init(), and Z_TagMalloc().