![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include "quakedef.h"
#include "utf8lib.h"
Go to the source code of this file.
Macros | |
#define | APPEND(ch) |
Functions | |
static void | base64_3to4 (const unsigned char *in, unsigned char *out, int bytes) |
size_t | base64_encode (unsigned char *buf, size_t buflen, size_t outbuflen) |
float | Com_CalcRoll (const vec3_t angles, const vec3_t velocity, const vec_t angleval, const vec_t velocityval) |
void | Com_HexDumpToConsole (const unsigned char *data, int size) |
void | COM_Init_Commands (void) |
qbool | COM_ParseToken_Console (const char **datapointer) |
qbool | COM_ParseToken_QuakeC (const char **datapointer, qbool returnnewline) |
qbool | COM_ParseToken_Simple (const char **datapointer, qbool returnnewline, qbool parsebackslash, qbool parsecomments) |
qbool | COM_ParseToken_VM_Tokenize (const char **datapointer, qbool returnnewline) |
int | COM_ReadAndTokenizeLine (const char **text, char **argv, int maxargc, char *tokenbuf, int tokenbufsize, const char *commentprefix) |
int | COM_StringBeginsWith (const char *s, const char *match) |
size_t | COM_StringDecolorize (const char *in, size_t size_in, char *out, size_t size_out, qbool escape_carets) |
size_t | COM_StringLengthNoColors (const char *s, size_t size_s, qbool *valid) |
size_t | COM_ToLowerString (const char *in, char *out, size_t size_out) |
Returns the number of bytes written to *out excluding the \0 terminator. | |
size_t | COM_ToUpperString (const char *in, char *out, size_t size_out) |
Returns the number of bytes written to *out excluding the \0 terminator. | |
int | COM_Wordwrap (const char *string, size_t length, float continuationWidth, float maxWidth, COM_WordWidthFunc_t wordWidth, void *passthroughCW, COM_LineProcessorFunc processLine, void *passthroughPL) |
size_t | dp__strlcat (char *dst, const char *src, size_t dsize, const char *func, unsigned line) |
Catenates a string, like strlcat() but with a better return: the number of bytes copied excluding the \0 terminator. | |
size_t | dp__strlcpy (char *dst, const char *src, size_t dsize, const char *func, unsigned line) |
Copies a string, like strlcpy() but with a better return: the number of bytes copied excluding the \0 terminator. | |
char * | dp_stpecpy (char *dst, char *end, const char *src) |
Chain-copies a string with truncation and efficiency (compared to strlcat()). | |
char * | dp_ustr2stp (char *dst, size_t dsize, const char *src, size_t slen) |
Copies a measured byte sequence (unterminated string) to a null-terminated string. | |
int | dpsnprintf (char *buffer, size_t buffersize, const char *format,...) |
Returns the number of printed characters, excluding the final '\0' or returns -1 if the buffer isn't big enough to contain the entire string. | |
int | dpvsnprintf (char *buffer, size_t buffersize, const char *format, va_list args) |
Returns the number of printed characters, excluding the final '\0' or returns -1 if the buffer isn't big enough to contain the entire string. | |
void | FindFraction (double val, int *num, int *denom, int denomMax) |
void | SZ_Clear (sizebuf_t *buf) |
unsigned char * | SZ_GetSpace (sizebuf_t *buf, int length) |
void | SZ_HexDumpToConsole (const sizebuf_t *buf) |
void | SZ_Write (sizebuf_t *buf, const unsigned char *data, int length) |
char * | va (char *buf, size_t buflen, const char *format,...) |
char ** | XPM_DecodeString (const char *in) |
Variables | |
static const char | base64 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" |
cvar_t | cl_playermodel = {CF_CLIENT | CF_SERVER | CF_USERINFO | CF_ARCHIVE, "playermodel", "", "current player model in Nexuiz/Xonotic"} |
cvar_t | cl_playerskin = {CF_CLIENT | CF_SERVER | CF_USERINFO | CF_ARCHIVE, "playerskin", "", "current player skin in Nexuiz/Xonotic"} |
cvar_t | cmdline = {CF_CLIENT | CF_SERVER | CF_READONLY, "cmdline","0", "contains commandline the engine was launched with"} |
char | com_token [MAX_INPUTLINE] |
unsigned | com_token_len |
static const char * | hexchar = "0123456789ABCDEF" |
cvar_t | registered = {CF_CLIENT | CF_SERVER | CF_READONLY, "registered","0", "indicates if this is running registered quake (whether gfx/pop.lmp was found)"} |
#define APPEND | ( | ch | ) |
Referenced by COM_StringDecolorize().
Definition at line 1487 of file common.c.
References base64.
Referenced by base64_encode().
size_t base64_encode | ( | unsigned char * | buf, |
size_t | buflen, | ||
size_t | outbuflen ) |
Definition at line 1502 of file common.c.
References base64_3to4(), buf, and i.
Referenced by Crypto_KeyGen_f(), and VM_uri_get().
float Com_CalcRoll | ( | const vec3_t | angles, |
const vec3_t | velocity, | ||
const vec_t | angleval, | ||
const vec_t | velocityval ) |
Definition at line 890 of file common.c.
References angles, AngleVectors(), DotProduct, fabs(), forward, right, up, and velocity.
Referenced by EntityStateQW_ReadPlayerUpdate(), SV_PlayerPhysics(), and V_CalcRefdefUsing().
Definition at line 82 of file common.c.
References Con_Print(), data, hexchar, i, n, size, and STRING_COLOR_TAG.
Referenced by Crypto_DecryptPacket(), Crypto_EncryptPacket(), Crypto_KeyGen_Finished(), NetConn_ClientParsePacket(), NetConn_Read(), NetConn_ServerParsePacket(), NetConn_Write(), SV_ReadClientMessage(), and SZ_HexDumpToConsole().
Definition at line 917 of file common.c.
References sys_t::argc, sys_t::argv, cl_playermodel, cl_playerskin, cmdline, Cvar_RegisterVariable(), Cvar_RegisterVirtual(), Cvar_SetQuick(), i, MAX_INPUTLINE, MAX_NUM_ARGVS, n, registered, and sys.
Referenced by Host_Init().
qbool COM_ParseToken_Console | ( | const char ** | datapointer | ) |
Definition at line 819 of file common.c.
References com_token, com_token_len, data, ISWHITESPACE, and NULL.
Referenced by CDAudio_StartPlaylist(), Cmd_GetDirectCvarValue(), Cmd_TokenizeString(), COM_InsertFlags(), Log_DestBuffer_Flush_NoLock(), Memory_Init_Commands(), PRVM_ED_ParseEdict(), RCon_Authenticate(), and VM_tokenize_console().
Definition at line 581 of file common.c.
References com_token, com_token_len, data, ISWHITESPACE, and NULL.
Referenced by LoadSubtitles(), Mod_LoadQ3Shaders(), Mod_LoadSkinFiles(), and XPM_DecodeString().
qbool COM_ParseToken_Simple | ( | const char ** | datapointer, |
qbool | returnnewline, | ||
qbool | parsebackslash, | ||
qbool | parsecomments ) |
Definition at line 463 of file common.c.
References com_token, com_token_len, data, ISWHITESPACE, and NULL.
Referenced by CL_ParseEntityLump(), CL_Particles_ParseEffectInfo(), Con_CompleteCommandLine(), Curl_SendRequirements(), GetMapList(), LoadFont(), M_ScanSaves(), Mod_FrameGroupify_ParseGroups(), Mod_Q1BSP_LoadMapBrushes(), Mod_Q1BSP_ParseWadsFromEntityLump(), Mod_Q3BSP_LoadEntities(), PRVM_ED_LoadFromFile(), PRVM_ED_ParseEdict(), PRVM_ED_ParseGlobals(), R_InitParticleTexture(), R_Shadow_LoadWorldLightsFromMap_LightArghliteTyrlite(), SV_Kick_f(), SV_Loadgame_f(), SV_ParticleEffectIndex(), and VM_parseentitydata().
Definition at line 700 of file common.c.
References com_token, com_token_len, data, ISWHITESPACE, and NULL.
Referenced by VM_loadfont(), and VM_tokenize().
int COM_ReadAndTokenizeLine | ( | const char ** | text, |
char ** | argv, | ||
int | maxargc, | ||
char * | tokenbuf, | ||
int | tokenbufsize, | ||
const char * | commentprefix ) |
Definition at line 1131 of file common.c.
References argv(), int(), ISWHITESPACE, and strlen().
int COM_StringBeginsWith | ( | const char * | s, |
const char * | match ) |
size_t COM_StringDecolorize | ( | const char * | in, |
size_t | size_in, | ||
char * | out, | ||
size_t | size_out, | ||
qbool | escape_carets ) |
Definition at line 1286 of file common.c.
References APPEND, NULL, STRING_COLOR_RGB_TAG_CHAR, and STRING_COLOR_TAG.
Referenced by VM_strdecolorize(), and VM_uncolorstring().
size_t COM_StringLengthNoColors | ( | const char * | s, |
size_t | size_s, | ||
qbool * | valid ) |
Definition at line 1212 of file common.c.
References NULL, STRING_COLOR_RGB_TAG_CHAR, and STRING_COLOR_TAG.
Referenced by u8_COM_StringLengthNoColors().
size_t COM_ToLowerString | ( | const char * | in, |
char * | out, | ||
size_t | size_out ) |
Returns the number of bytes written to *out excluding the \0 terminator.
Definition at line 1051 of file common.c.
References cvar_t::integer, n, u8_fromchar(), u8_getchar_utf8_enabled(), u8_tolower(), and utf8_enable.
Referenced by COM_InitGameType(), and VM_strtolower().
size_t COM_ToUpperString | ( | const char * | in, |
char * | out, | ||
size_t | size_out ) |
Returns the number of bytes written to *out excluding the \0 terminator.
Definition at line 1087 of file common.c.
References cvar_t::integer, n, u8_fromchar(), u8_getchar_utf8_enabled(), u8_toupper(), and utf8_enable.
Referenced by VM_strtoupper().
int COM_Wordwrap | ( | const char * | string, |
size_t | length, | ||
float | continuationWidth, | ||
float | maxWidth, | ||
COM_WordWidthFunc_t | wordWidth, | ||
void * | passthroughCW, | ||
COM_LineProcessorFunc | processLine, | ||
void * | passthroughPL ) |
Definition at line 174 of file common.c.
References length, NULL, and string.
Referenced by CL_DrawVideo(), Con_DrawConsoleLine(), Con_DrawNotifyRect(), and Con_LineHeight().
size_t dp__strlcat | ( | char * | dst, |
const char * | src, | ||
size_t | dsize, | ||
const char * | func, | ||
unsigned | line ) |
Catenates a string, like strlcat() but with a better return: the number of bytes copied excluding the \0 terminator.
Truncates and warns on overflow or unterminated source, whereas strlcat() truncates silently and overreads (possibly segfaulting). Guarantees \0 termination. Inefficient like any strcat(), please use memcpy(), dp_stpecpy() or dp_strlcpy() instead.
Definition at line 1423 of file common.c.
References dp__strlcpy(), offset, and src.
size_t dp__strlcpy | ( | char * | dst, |
const char * | src, | ||
size_t | dsize, | ||
const char * | func, | ||
unsigned | line ) |
Copies a string, like strlcpy() but with a better return: the number of bytes copied excluding the \0 terminator.
Truncates and warns on overflow or unterminated source, whereas strlcpy() truncates silently and overreads (possibly segfaulting). Guarantees \0 termination. See also: dp_stpecpy() and dp_ustr2stp().
Definition at line 1406 of file common.c.
References Con_Printf(), CON_WARN, and src.
Referenced by dp__strlcat().
char * dp_stpecpy | ( | char * | dst, |
char * | end, | ||
const char * | src ) |
Chain-copies a string with truncation and efficiency (compared to strlcat()).
The destination ends at an absolute pointer instead of a relative offset and a pointer to the \0 terminator is returned on success. Truncates, warns, and returns the end pointer on overflow or unterminated source. Guarantees \0 termination. end = dst + sizeof(src[])
Definition at line 1373 of file common.c.
References Con_Printf(), CON_WARN, and src.
Referenced by PRVM_ShortStackTrace().
char * dp_ustr2stp | ( | char * | dst, |
size_t | dsize, | ||
const char * | src, | ||
size_t | slen ) |
Copies a measured byte sequence (unterminated string) to a null-terminated string.
Returns a pointer to the \0 terminator. Guarantees \0 termination. Compared to ustr2stp(): truncates and warns on overflow.
Definition at line 1388 of file common.c.
References Con_Printf(), CON_WARN, and src.
Referenced by Cbuf_LinkString(), Con_CompleteCommandLine(), ConBuffer_GetLine(), FS_Search(), and RCon_Authenticate().
int dpsnprintf | ( | char * | buffer, |
size_t | buffersize, | ||
const char * | format, | ||
... ) |
Returns the number of printed characters, excluding the final '\0' or returns -1 if the buffer isn't big enough to contain the entire string.
Buffer is ALWAYS null-terminated.
Definition at line 997 of file common.c.
References buffer, dpvsnprintf(), and format.
Referenced by adddirentry(), CDAudio_Play(), CDAudio_Play_byName(), CL_BeginDownloads(), CL_DisconnectEx(), CL_ForwardToServer(), CL_ForwardToServer_f(), CL_InitCommands(), CL_Locs_FindLocationName(), CL_Locs_Reload_f(), CL_Locs_Save_f(), CL_NextDemo(), CL_ParseServerInfo(), CL_ParseServerMessage(), CL_Particles_LoadEffectInfo(), CL_PlayVideo_f(), CL_Rcon_f(), CL_ReadPointFile_f(), CL_Record_f(), CL_SetSignonStage_WithMsg(), CL_StopDownload(), CleanURL(), Cmd_GetCvarValue(), Con_CompleteCommandLine(), Con_MsgCmdMode(), Crypto_BuildIdString(), Crypto_ClientError(), Crypto_ClientParsePacket(), Crypto_ServerError(), Curl_Begin(), Curl_Curl_f(), Curl_GetDownloadInfo(), Curl_SendRequirement(), Cvar_SetValue(), Cvar_SetValueQuick(), Font_LoadMap(), FS_AddPack(), FS_AddPack_Fullpath(), FS_ChooseUserDir(), FS_FileType(), FS_FindFile(), FS_Init_Dir(), FS_OpenReadFile(), FS_OpenRealFile(), GetMapList(), GL_CheckExtension(), GL_Draw_Init(), gl_main_newmap(), Host_InitSession(), Host_UpdateVersion(), Image_FixTransparentPixels_f(), Image_GetStockPicSize(), InfoString_SetValue(), LHNETADDRESS_GetInterfaceName(), LHNETADDRESS_Resolve(), LHNETADDRESS_ToString(), LibAvW_OpenVideo(), listdirectory(), LoadFont(), loadimagepixelsbgra(), LoadSubtitles(), Log_Timestamp(), M_DrawSlider(), M_Keys_Key(), M_LanConfig_Key(), M_Menu_LanConfig_f(), M_ScanSaves(), Mod_Decompile_f(), Mod_Decompile_OBJ(), Mod_Decompile_SMD(), Mod_FrameGroupify_ParseGroups_Store(), Mod_IDP0_Load(), Mod_IDS2_Load(), Mod_LoadQ3Shaders(), Mod_LoadTextureFromQ3Shader(), Mod_OBJ_Load(), Mod_PSKMODEL_Load(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadTextures(), Mod_Q1BSP_ParseWadsFromEntityLump(), Mod_Q2BSP_Load(), Mod_Q2BSP_LoadBrushes(), Mod_Q2BSP_LoadTexinfo(), Mod_Q3BSP_Load(), Mod_Sprite_SharedSetup(), NetConn_BuildStatusResponse(), NetConn_ClientFrame(), NetConn_ClientParsePacket(), NetConn_ServerParsePacket(), OpenVideo(), PRVM_ED_ParseEdict(), PRVM_ED_Print(), PRVM_Fields_f(), PRVM_GlobalString(), PRVM_GlobalStringNoContents(), PRVM_PrintStatement(), PRVM_Prog_Load(), PRVM_ShortStackTrace(), PRVM_UglyValueString(), PRVM_ValueString(), PRVM_Watchpoint(), R_Envmap_f(), R_InitShaderModeInfo(), R_LoadCubemap(), R_LoadQWSkin(), R_LoadSkyBox(), R_Shadow_EditLights_DrawSelectedLightProperties(), R_Shadow_LoadLightsFile(), R_Shadow_LoadWorldLights(), R_Shadow_LoadWorldLightsFromMap_LightArghliteTyrlite(), R_Shadow_SaveWorldLights(), R_TimeReport(), R_TimeReport_EndFrame(), S_LoadSound(), Sbar_DrawFace(), Sbar_DrawFrags(), Sbar_DrawInventory(), Sbar_DrawNum(), Sbar_DrawXNum(), Sbar_ShowFPS(), Sbar_SoloScoreboard(), SCR_DrawCurlDownload(), SCR_DrawNetGraph_DrawGraph(), SCR_DrawQWDownload(), SCR_DrawScreen(), SCR_ScreenShot_f(), SV_Ent_Create_f(), SV_ParticleEffectIndex(), SV_Pings_f(), SV_Savegame_to(), SV_Say(), SV_SendServerinfo(), SV_SpawnServer(), SV_Tell_f(), Sys_FindInPATH(), u8_strpad(), u8_strpad_colorcodes(), VM_CL_getplayerkey(), VM_etos(), VM_ftos(), VM_M_crypto_getencryptlevel(), VM_sprintf(), VM_strpad(), and VM_vtos().
int dpvsnprintf | ( | char * | buffer, |
size_t | buffersize, | ||
const char * | format, | ||
va_list | args ) |
Returns the number of printed characters, excluding the final '\0' or returns -1 if the buffer isn't big enough to contain the entire string.
Buffer is ALWAYS null-terminated.
Definition at line 1010 of file common.c.
References buffer, format, MAX_INPUTLINE, min, snprintf, Sys_Print(), and vsnprintf.
Referenced by CL_DisconnectEx(), Con_CenterPrintf(), Con_DPrintf(), Con_MaskPrintf(), Con_Printf(), dpsnprintf(), FS_VPrintf(), Host_Error(), MVM_error_cmd(), SV_BroadcastPrintf(), SV_ClientCommands(), SV_ClientPrintf(), SV_DropClient(), Sys_Error(), Sys_Printf(), va(), and VM_Warning().
Definition at line 1436 of file common.c.
References fabs(), floor(), i, and int().
Referenced by SCR_CaptureVideo_Avi_BeginVideo(), and SCR_CaptureVideo_Ogg_BeginVideo().
Definition at line 44 of file common.c.
References buf.
Referenced by CL_PQRcon_f(), CL_Stop_f(), EntityFrame4_WriteFrame(), EntityFrameQuake_WriteFrame(), MakeDownloadPacket(), NetConn_ClientFrame(), NetConn_ClientParsePacket(), NetConn_ReceivedMessage(), NetConn_SendUnreliableMessage(), NetConn_ServerParsePacket(), SV_FlushBroadcastMessages(), SV_SendServerinfo(), SV_StopDemoRecording(), SV_UpdateToReliableMessages(), SV_WriteNetnameIntoDemo(), and SZ_GetSpace().
Definition at line 49 of file common.c.
References buf, Con_Print(), data, Host_Error(), length, and SZ_Clear().
Referenced by MSG_WriteByte(), MSG_WriteChar(), MSG_WriteLong(), MSG_WriteShort(), and SZ_Write().
Definition at line 148 of file common.c.
References buf, and Com_HexDumpToConsole().
Referenced by CL_Parse_DumpPacket(), and NetConn_SendUnreliableMessage().
Definition at line 72 of file common.c.
References buf, data, length, and SZ_GetSpace().
Referenced by CL_ForwardToServer(), CL_PQRcon_f(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrameQuake_WriteFrame(), FS_Inflate(), MakeDownloadPacket(), MSG_WriteFloat(), MSG_WriteString(), MSG_WriteUnterminatedString(), NetConn_ClientParsePacket(), NetConn_ReceivedMessage(), NetConn_ServerParsePacket(), QW_CL_NextUpload_f(), SV_FlushBroadcastMessages(), SV_PreSpawn_f(), SV_SendClientDatagram(), SV_UpdateToReliableMessages(), SV_WriteUnreliableMessages(), and VM_SV_WritePicture().
char * va | ( | char * | buf, |
size_t | buflen, | ||
const char * | format, | ||
... ) |
Definition at line 972 of file common.c.
References buf, dpvsnprintf(), and format.
Referenced by CheckPendingDownloads(), CL_BeginDownloads(), CL_Bottomcolor_c(), CL_Color_c(), CL_FinishTimeDemo(), CL_LinkNetworkEntity(), CL_ParseServerInfo(), CL_SendCvar_f(), CL_SendPlayerInfo(), CL_SetInfo(), CL_Topcolor_c(), CL_VM_Init(), Cmd_Apropos_f(), Cmd_GetDirectCvarValue(), CompressedImageCache_Add(), CompressedImageCache_Find(), Con_CompleteCommandLine(), Crypto_BuildIdString(), Crypto_ClientParsePacket(), Crypto_KeyGen_f(), Crypto_KeyGen_Finished(), Crypto_LoadFile(), Crypto_LoadKeys(), Crypto_SavePubKeyTextFile(), Crypto_ServerParsePacket_Internal(), Cvar_List_f(), Font_LoadFont(), FS_AddGameHierarchy(), FS_CheckGameDir(), FS_ChooseUserDir(), FS_Init_Dir(), FS_ListGameDirs(), FS_Rescan(), FS_SysCheckGameDir(), gl_draw_start(), Host_Init(), Host_LockSession(), Key_Event(), Key_History_f(), Key_History_Find_All(), Key_History_Find_Backwards(), Key_History_Find_Forwards(), Key_Message(), LightCubemapNumToName(), loadimagepixelsbgra(), M_Demo_Key(), M_Draw(), M_GameOptions_Draw(), M_GameOptions_Key(), M_Help_Draw(), M_LanConfig_Draw(), M_LanConfig_Key(), M_Load_Key(), M_Main_Draw(), M_MultiPlayer_Draw(), M_Save_Key(), M_ServerList_Draw(), M_ServerList_Key(), M_Setup_Draw(), M_Setup_Key(), M_SinglePlayer_Draw(), M_Transfusion_Episode_Draw(), M_Transfusion_Skill_Draw(), M_Video_Draw(), MakeDownloadPacket(), Mod_Decompile_f(), Mod_GenerateLightmaps_CreateLightmaps(), Mod_INTERQUAKEMODEL_Load(), Mod_LoadModel(), Mod_LoadSkinFiles(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadTextures(), Mod_Q3BSP_LoadLightmaps(), Mod_VBSP_LoadFaces(), PRVM_Breakpoint(), PRVM_Crash(), PRVM_ED_CallSpawnFunction(), PRVM_ED_Write(), PRVM_ED_WriteGlobals(), PRVM_IsEdictRelevant(), PRVM_Prog_Load(), PRVM_ShortStackTrace(), PRVM_WhereAmI(), QW_CL_CheckOrDownloadFile(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_RequestNextDownload(), R_LoadSkyBox(), R_RenderTarget_Get(), R_Shadow_LoadWorldLightsFromMap_LightArghliteTyrlite(), R_SkinFrame_GenerateTexturesFromQPixels(), R_SkinFrame_LoadExternal_SkinFrame(), R_SkinFrame_LoadInternal8bit(), R_SkinFrame_LoadInternalBGRA(), RCon_Authenticate(), Sbar_DeathmatchOverlay(), Sbar_Draw(), Sbar_DrawCharacter(), Sbar_DrawWeapon(), Sbar_PrintScoreboardItem(), Sbar_SoloScoreboard(), sbar_start(), SCR_CaptureVideo_Avi_BeginVideo(), SCR_CaptureVideo_Ogg_BeginVideo(), SCR_DrawLoadingScreen(), SCR_DrawNetGraph(), SCR_ScreenShot_f(), SND_Spatialize_WithSfx(), SV_Kick_f(), SV_SaveEntFile_f(), SV_SendServerinfo(), SV_SpawnServer(), SV_TimingReport(), VID_Mode(), VID_Restart_f(), VM_buf_loadfile(), VM_changelevel(), VM_findkeysforcommand(), VM_fopen(), and VM_sprintf().
char ** XPM_DecodeString | ( | const char * | in | ) |
Definition at line 1459 of file common.c.
References COM_ParseToken_QuakeC(), com_token, dp_strlcpy, NULL, and tokens.
|
static |
Definition at line 1486 of file common.c.
Referenced by base64_3to4().
cvar_t cl_playermodel = {CF_CLIENT | CF_SERVER | CF_USERINFO | CF_ARCHIVE, "playermodel", "", "current player model in Nexuiz/Xonotic"} |
Definition at line 36 of file common.c.
Referenced by CL_SendPlayerInfo(), and COM_Init_Commands().
cvar_t cl_playerskin = {CF_CLIENT | CF_SERVER | CF_USERINFO | CF_ARCHIVE, "playerskin", "", "current player skin in Nexuiz/Xonotic"} |
Definition at line 37 of file common.c.
Referenced by CL_SendPlayerInfo(), and COM_Init_Commands().
cvar_t cmdline = {CF_CLIENT | CF_SERVER | CF_READONLY, "cmdline","0", "contains commandline the engine was launched with"} |
Definition at line 33 of file common.c.
Referenced by CL_FinishTimeDemo(), COM_Init_Commands(), and COM_InitGameType().
char com_token[MAX_INPUTLINE] |
Definition at line 39 of file common.c.
Referenced by CDAudio_StartPlaylist(), CL_ParseEntityLump(), CL_Particles_ParseEffectInfo(), Cmd_TokenizeString(), COM_InsertFlags(), COM_ParseToken_Console(), COM_ParseToken_QuakeC(), COM_ParseToken_Simple(), COM_ParseToken_VM_Tokenize(), Con_CompleteCommandLine(), Curl_SendRequirements(), GetMapList(), LoadFont(), LoadSubtitles(), Log_DestBuffer_Flush_NoLock(), M_ScanSaves(), Memory_Init_Commands(), Mod_FrameGroupify_ParseGroups(), Mod_LoadQ3Shaders(), Mod_LoadSkinFiles(), Mod_Q1BSP_LoadMapBrushes(), Mod_Q1BSP_ParseWadsFromEntityLump(), Mod_Q3BSP_LoadEntities(), PRVM_ED_LoadFromFile(), PRVM_ED_ParseEdict(), PRVM_ED_ParseGlobals(), R_InitParticleTexture(), R_Shadow_LoadWorldLightsFromMap_LightArghliteTyrlite(), RCon_Authenticate(), SV_Loadgame_f(), SV_ParticleEffectIndex(), VM_loadfont(), VM_parseentitydata(), VM_tokenize(), VM_tokenize_console(), and XPM_DecodeString().
unsigned com_token_len |
Definition at line 40 of file common.c.
Referenced by COM_ParseToken_Console(), COM_ParseToken_QuakeC(), COM_ParseToken_Simple(), COM_ParseToken_VM_Tokenize(), VM_tokenize(), and VM_tokenize_console().
|
static |
Definition at line 81 of file common.c.
Referenced by Com_HexDumpToConsole().
cvar_t registered = {CF_CLIENT | CF_SERVER | CF_READONLY, "registered","0", "indicates if this is running registered quake (whether gfx/pop.lmp was found)"} |
Definition at line 32 of file common.c.
Referenced by COM_Init_Commands(), FS_Rescan(), and M_Menu_GameOptions_f().