![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | sizebuf_t |
Macros | |
#define | ContainerOf(ptr, type, member) |
MSVC has a different name for several standard functions. | |
Functions | |
unsigned | Com_BlockChecksum (void *buffer, int length) |
void | Com_BlockFullChecksum (void *buffer, int len, unsigned char *outbuf) |
unsigned char | COM_BlockSequenceCRCByteQW (unsigned char *base, int length, int sequence) |
void | Com_HexDumpToConsole (const unsigned char *data, int size) |
void | COM_Init_Commands (void) |
unsigned short | CRC_Block (const unsigned char *data, size_t size) |
unsigned short | CRC_Block_CaseInsensitive (const unsigned char *data, size_t size) |
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) |
Byte order functions. | |
#define | BigFloat(l) |
#define | BigLong(l) |
#define | BigShort(l) |
float | BuffBigFloat (const unsigned char *buffer) |
Extract a big endian 32bit float from the given buffer . | |
int | BuffBigLong (const unsigned char *buffer) |
Extract a big endian 32bit int from the given buffer . | |
short | BuffBigShort (const unsigned char *buffer) |
Extract a big endian 16bit short from the given buffer . | |
float | BuffLittleFloat (const unsigned char *buffer) |
Extract a little endian 32bit float from the given buffer . | |
int | BuffLittleLong (const unsigned char *buffer) |
Extract a little endian 32bit int from the given buffer . | |
short | BuffLittleShort (const unsigned char *buffer) |
Extract a little endian 16bit short from the given buffer . | |
#define | LittleFloat(l) |
#define | LittleLong(l) |
#define | LittleShort(l) |
enum | protocolversion_t { PROTOCOL_UNKNOWN , PROTOCOL_DARKPLACES8 , PROTOCOL_DARKPLACES7 , PROTOCOL_DARKPLACES6 , PROTOCOL_DARKPLACES5 , PROTOCOL_DARKPLACES4 , PROTOCOL_DARKPLACES3 , PROTOCOL_DARKPLACES2 , PROTOCOL_DARKPLACES1 , PROTOCOL_QUAKEDP , PROTOCOL_NEHAHRAMOVIE , PROTOCOL_QUAKE , PROTOCOL_QUAKEWORLD , PROTOCOL_NEHAHRABJP , PROTOCOL_NEHAHRABJP2 , PROTOCOL_NEHAHRABJP3 } |
void | StoreBigLong (unsigned char *buffer, unsigned int i) |
Encode a big endian 32bit int to the given buffer . | |
void | StoreBigShort (unsigned char *buffer, unsigned short i) |
Encode a big endian 16bit int to the given buffer . | |
void | StoreLittleLong (unsigned char *buffer, unsigned int i) |
Encode a little endian 32bit int to the given buffer . | |
void | StoreLittleShort (unsigned char *buffer, unsigned short i) |
Encode a little endian 16bit int to the given buffer . | |
Message IO functions. | |
Handles byte ordering and avoids alignment errors | |
#define | ARRAY_SIZE(a) |
size_t | base64_encode (unsigned char *buf, size_t buflen, size_t outbuflen) |
struct cvar_s | cmdline |
float | Com_CalcRoll (const vec3_t angles, const vec3_t velocity, const vec_t angleval, const vec_t velocityval) |
void | COM_Init (void) |
typedef int(* | COM_LineProcessorFunc) (void *passthrough, const char *line, size_t length, float width, qbool isContination) |
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) |
void | COM_Shutdown (void) |
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) |
char | com_token [MAX_INPUTLINE] |
unsigned | com_token_len |
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. | |
typedef float(* | COM_WordWidthFunc_t) (void *passthrough, const char *w, size_t *length, float maxWidth) |
int | COM_Wordwrap (const char *string, size_t length, float continuationSize, 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. | |
#define | DP_STATIC_ASSERT(expr, str) |
char * | dp_stpecpy (char *dst, char *end, const char *src) |
Chain-copies a string with truncation and efficiency (compared to strlcat()). | |
#define | dp_strlcat(dst, src, dsize) |
#define | dp_strlcpy(dst, src, dsize) |
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,...) DP_FUNC_PRINTF(3) |
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 | MSG_BeginReading (sizebuf_t *sb) |
void | MSG_InitReadBuffer (sizebuf_t *buf, unsigned char *data, int size) |
float | MSG_ReadAngle (sizebuf_t *sb, protocolversion_t protocol) |
float | MSG_ReadAngle16i (sizebuf_t *sb) |
float | MSG_ReadAngle32f (sizebuf_t *sb) |
float | MSG_ReadAngle8i (sizebuf_t *sb) |
float | MSG_ReadBigFloat (sizebuf_t *sb) |
int | MSG_ReadBigLong (sizebuf_t *sb) |
int | MSG_ReadBigShort (sizebuf_t *sb) |
#define | MSG_ReadByte(sb) |
#define | MSG_ReadByte_opt(sb) |
Same as MSG_ReadByte but with no need to copy twice (first to int to check for -1) so each byte can be copied directly to a string[]. | |
size_t | MSG_ReadBytes (sizebuf_t *sb, size_t numbytes, unsigned char *out) |
#define | MSG_ReadChar(sb) |
float | MSG_ReadCoord (sizebuf_t *sb, protocolversion_t protocol) |
float | MSG_ReadCoord13i (sizebuf_t *sb) |
float | MSG_ReadCoord16i (sizebuf_t *sb) |
float | MSG_ReadCoord32f (sizebuf_t *sb) |
#define | MSG_ReadFloat MSG_ReadLittleFloat |
float | MSG_ReadLittleFloat (sizebuf_t *sb) |
int | MSG_ReadLittleLong (sizebuf_t *sb) |
int | MSG_ReadLittleShort (sizebuf_t *sb) |
#define | MSG_ReadLong MSG_ReadLittleLong |
#define | MSG_ReadShort MSG_ReadLittleShort |
char * | MSG_ReadString (sizebuf_t *sb, char *string, size_t maxstring) |
size_t | MSG_ReadString_len (sizebuf_t *sb, char *string, size_t maxstring) |
Same as MSG_ReadString except it returns the number of bytes written to *string excluding the \0 terminator. | |
void | MSG_ReadVector (sizebuf_t *sb, vec3_t v, protocolversion_t protocol) |
void | MSG_WriteAngle (sizebuf_t *sb, vec_t f, protocolversion_t protocol) |
void | MSG_WriteAngle16i (sizebuf_t *sb, vec_t f) |
void | MSG_WriteAngle32f (sizebuf_t *sb, vec_t f) |
void | MSG_WriteAngle8i (sizebuf_t *sb, vec_t f) |
void | MSG_WriteByte (sizebuf_t *sb, int c) |
void | MSG_WriteChar (sizebuf_t *sb, int c) |
void | MSG_WriteCoord (sizebuf_t *sb, vec_t f, protocolversion_t protocol) |
void | MSG_WriteCoord13i (sizebuf_t *sb, vec_t f) |
void | MSG_WriteCoord16i (sizebuf_t *sb, vec_t f) |
void | MSG_WriteCoord32f (sizebuf_t *sb, vec_t f) |
void | MSG_WriteFloat (sizebuf_t *sb, vec_t f) |
void | MSG_WriteLong (sizebuf_t *sb, int c) |
void | MSG_WriteShort (sizebuf_t *sb, int c) |
void | MSG_WriteString (sizebuf_t *sb, const char *s) |
void | MSG_WriteUnterminatedString (sizebuf_t *sb, const char *s) |
void | MSG_WriteVector (sizebuf_t *sb, const vec3_t v, protocolversion_t protocol) |
struct cvar_s | registered |
#define | snprintf DP_STATIC_ASSERT(0, "snprintf is forbidden for portability reasons. Use dpsnprintf instead.") |
#define | sprintf DP_STATIC_ASSERT(0, "sprintf is forbidden for security reasons. Use dpsnprintf instead.") |
#define | stpcpy DP_STATIC_ASSERT(0, "stpcpy is forbidden for security reasons. Use dp_stpecpy or memcpy instead.") |
#define | strcat DP_STATIC_ASSERT(0, "strcat is forbidden for security reasons. Use dp_strlcat or memcpy instead.") |
#define | strcpy DP_STATIC_ASSERT(0, "strcpy is forbidden for security reasons. Use dp_strlcpy or memcpy instead.") |
#define | strlcat DP_STATIC_ASSERT(0, "strlcat is forbidden for stability and correctness. See common.h and common.c comments.") |
#define | strlcpy DP_STATIC_ASSERT(0, "strlcpy is forbidden for stability and correctness. See common.h and common.c comments.") |
#define | strncat DP_STATIC_ASSERT(0, "strncat is forbidden for security reasons. Use dp_strlcat or memcpy instead.") |
#define | strncpy DP_STATIC_ASSERT(0, "strncpy is forbidden for security reasons. Use dp_strlcpy or memcpy instead.") |
enum | userdirmode_t { USERDIRMODE_NOHOME , USERDIRMODE_HOME , USERDIRMODE_MYGAMES , USERDIRMODE_SAVEDGAMES , USERDIRMODE_COUNT } |
#define | ustpcpy DP_STATIC_ASSERT(0, "ustpcpy is forbidden for security reasons. Use dp_ustr2stp or memcpy instead.") |
#define | ustr2stp DP_STATIC_ASSERT(0, "ustr2stp is forbidden for security reasons. Use dp_ustr2stp or memcpy instead.") |
char * | va (char *buf, size_t buflen, const char *format,...) DP_FUNC_PRINTF(3) |
#define | vsnprintf DP_STATIC_ASSERT(0, "vsnprintf is forbidden for portability reasons. Use dpvsnprintf instead.") |
char ** | XPM_DecodeString (const char *in) |
#define ARRAY_SIZE | ( | a | ) |
#define BigFloat | ( | l | ) |
Definition at line 93 of file common.h.
Referenced by Mod_DARKPLACESMODEL_Load(), and Mod_ZYMOTICMODEL_Load().
#define BigLong | ( | l | ) |
Definition at line 91 of file common.h.
Referenced by Mod_DARKPLACESMODEL_Load(), and Mod_ZYMOTICMODEL_Load().
#define BigShort | ( | l | ) |
#define ContainerOf | ( | ptr, | |
type, | |||
member ) |
#define DP_STATIC_ASSERT | ( | expr, | |
str ) |
#define dp_strlcat | ( | dst, | |
src, | |||
dsize ) |
Definition at line 304 of file common.h.
Referenced by CL_ForwardToServer(), CL_ParseServerMessage(), Cmd_Alias_f(), Con_CompleteCommandLine(), Crypto_BuildIdString(), Crypto_KeyGen_f(), Curl_SendRequirement(), Curl_SendRequirements(), dpvsimpledecode_open(), FS_DefaultExtension(), FS_Init_Dir(), FS_Rescan(), FS_Search(), GL_InitFunctions(), jam_open(), Key_Bind_f(), Key_In_Bind_f(), LibAvW_OpenVideo(), M_Keys_Draw(), Mod_PSKMODEL_Load(), Mod_Q1BSP_LoadLighting(), Protocol_Names(), PRVM_ED_Print(), PRVM_Fields_f(), PRVM_LoadLNO(), R_GLSL_CompilePermutation(), R_TimeReport(), S_Play_Common(), SCR_Centerprint_f(), SV_Download_f(), SV_Say(), Sys_Error(), Sys_HandleCrash(), Sys_LoadDependency(), VM_buf_implode(), and VM_findkeysforcommand().
#define dp_strlcpy | ( | dst, | |
src, | |||
dsize ) |
Definition at line 303 of file common.h.
Referenced by _Mem_AllocPool(), _Mem_strdup(), CD_f(), CDAudio_StartPlaylist(), CL_AllocLightFlash(), CL_DisconnectEx(), CL_DownloadBegin_f(), CL_EstablishConnection(), CL_Fog_HeightTexture_f(), CL_FullInfo_f(), CL_FullServerinfo_f(), CL_IPLog_Add(), CL_Locs_FindLocationName(), CL_ParseEntityLump(), CL_ParseServerInfo(), CL_ParseServerMessage(), CL_Particles_LoadEffectInfo(), CL_Particles_ParseEffectInfo(), CL_PlayDemo(), CL_Rcon_f(), CL_Record_f(), CL_SetupWorldModel(), CL_Startdemos_f(), Cmd_Alias_f(), COM_InsertFlags(), COM_SetGameType(), CompressedImageCache_Add(), Con_CompleteCommandLine(), Con_DrawInput(), Crypto_ClientParsePacket(), Crypto_RetrieveHostKey(), Crypto_RetrieveLocalKey(), Crypto_ServerParsePacket_Internal(), Curl_Begin(), Curl_CommandWhenDone(), Curl_CommandWhenError(), Curl_EndDownload(), Curl_FindPackURL(), Curl_GetDownloadInfo(), Curl_RequireFile(), Draw_CachePic_Flags(), Draw_NewPic(), FindFont(), Font_LoadFile(), Font_LoadFont(), fontfilecache_LoadFile(), FS_AddFileToPack(), FS_AddGameDirectory(), FS_AddPack_Fullpath(), FS_ChooseUserDir(), FS_Init_Dir(), FS_ListGameDirs(), FS_LoadPackPAK(), FS_LoadPackPK3FromFD(), FS_LoadPackVirtual(), FS_Rescan(), FS_Search(), FS_SetGameDirs(), GetMapList(), GL_Draw_Init(), Host_Error(), Image_StripImageExtension(), IN_BestWeapon_Register(), InfoString_SetValue(), Key_History_Down(), Key_History_Find_Backwards(), Key_History_Find_Forwards(), Key_History_First(), Key_History_Get_foundCommand(), Key_History_Last(), Key_History_Up(), Key_Parse_CommonKeys(), LoadFont(), LoadFont_f(), loadimagepixelsbgra(), Log_Open(), M_Keys_Draw(), M_Menu_Setup_f(), M_ScanSaves(), Mod_BrushInit(), Mod_Decompile_f(), Mod_Decompile_OBJ(), Mod_FindName(), Mod_FrameGroupify_ParseGroups(), Mod_FrameGroupify_ParseGroups_Store(), Mod_IDP0_Load(), Mod_IDP2_Load(), Mod_IDP3_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_LoadCustomMaterial(), Mod_LoadQ3Shaders(), Mod_LoadSkinFiles(), Mod_LoadTextureFromQ3Shader(), Mod_MDL_LoadFrames(), Mod_Mesh_Create(), Mod_OBJ_Load(), Mod_PSKMODEL_Load(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadLighting(), Mod_Q1BSP_LoadTextures(), Mod_Q1BSP_ParseWadsFromEntityLump(), Mod_Q2BSP_Load(), Mod_Q3BSP_Load(), Mod_Q3BSP_LoadEffects(), Mod_Q3BSP_LoadEntities(), Mod_UnloadModel(), ModList_RebuildList(), NetConn_BuildStatusResponse(), NetConn_ClientFrame(), NetConn_ClientParsePacket(), NetConn_ConnectionEstablished(), NetConn_ServerParsePacket(), Nicks_CompleteCountPossible(), Nicks_CutMatchesAlphaNumeric(), Nicks_CutMatchesNoSpaces(), OpenVideo(), PRVM_Breakpoint_f(), PRVM_ED_ParseEdict(), PRVM_ED_ParseGlobals(), PRVM_EdictWatchpoint_f(), PRVM_GlobalWatchpoint_f(), PRVM_ShortStackTrace(), PRVM_UglyValueString(), PRVM_ValueString(), QW_CL_CheckOrDownloadFile(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_ProcessUserInfo(), QW_CL_ServerInfo(), QW_CL_SetInfo(), QW_CL_UpdateUserInfo(), R_BuildFogHeightTexture(), R_Envmap_f(), R_GetCubemap(), R_InitParticleTexture(), R_LoadQWSkin(), R_LoadTextureDDSFile(), R_LoadTextureRenderBuffer(), R_Mesh_CreateMeshBuffer(), R_RTLight_Update(), R_SetSkyBox(), R_SetupTexture(), R_Shadow_EditLights_CopyInfo_f(), R_Shadow_EditLights_Edit_f(), R_Shadow_EditLights_Reload_f(), R_Shadow_LoadWorldLightsFromMap_LightArghliteTyrlite(), R_Shadow_UpdateWorldLight(), R_SkinFrame_Find(), S_FindName(), S_Play_Common(), Sbar_ShowFPS(), Sbar_SortFrags(), SCR_CenterPrint(), SCR_Centerprint_f(), SCR_DrawScreen(), SCR_InfoBar_f(), SCR_PushLoadingScreen(), SCR_ScreenShot_f(), SHOWLMP_decodeshow(), SV_ConnectClient(), SV_Download_f(), SV_Loadgame_f(), SV_ModelIndex(), SV_Name(), SV_Name_f(), SV_ParticleEffectIndex(), SV_Playermodel_f(), SV_Playerskin_f(), SV_Prepare_CSQC(), SV_Savegame_f(), SV_SoundIndex(), SV_SpawnServer(), SV_StartDemoRecording(), SV_Status_f(), SV_UpdateToReliableMessages(), SV_WriteClientdataToMessage(), Sys_HandleCrash(), Sys_LoadDependency(), Sys_SDL_GetClipboardData(), VM_altstr_ins(), VM_altstr_set(), VM_bufstr_find(), VM_CL_getplayerkey(), VM_CL_getstats(), VM_CL_lightstyle(), VM_CL_R_PolygonBegin(), VM_infoadd(), VM_loadfont(), VM_M_setserverlistmaskstring(), VM_matchpattern(), VM_SV_lightstyle(), VM_SV_UpdateCustomStats(), VM_tokenize(), VM_tokenize_console(), VM_tokenizebyseparator(), VM_uri_get(), World_SetSize(), and XPM_DecodeString().
#define LittleFloat | ( | l | ) |
Definition at line 94 of file common.h.
Referenced by CL_ReadDemoMessage(), CL_WriteDemoMessage(), Mod_IDP0_Load(), Mod_IDP2_Load(), Mod_IDP3_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_MDL_LoadFrames(), Mod_PSKMODEL_Load(), Mod_Q3BSP_LoadFaces(), Mod_Q3BSP_LoadModels(), Mod_Q3BSP_LoadPlanes(), Mod_Q3BSP_LoadVertices(), Mod_Sprite_SharedSetup(), and SV_WriteDemoMessage().
#define LittleLong | ( | l | ) |
Definition at line 92 of file common.h.
Referenced by CL_ReadDemoMessage(), CL_WriteDemoMessage(), FS_LoadPackPAK(), GetMapList(), jam_open(), jam_video(), LoadWAL_BGRA(), LoadWAL_GetMetadata(), Mod_IBSP_Load(), Mod_IDP0_Load(), Mod_IDP2_Load(), Mod_IDP3_Load(), Mod_IDS2_Load(), Mod_IDSP_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_MDL_LoadFrames(), Mod_PSKMODEL_Load(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadLighting(), Mod_Q2BSP_Load(), Mod_Q3BSP_Load(), Mod_Q3BSP_LoadBrushes(), Mod_Q3BSP_LoadBrushSides(), Mod_Q3BSP_LoadBrushSides_IG(), Mod_Q3BSP_LoadEffects(), Mod_Q3BSP_LoadFaces(), Mod_Q3BSP_LoadLeafBrushes(), Mod_Q3BSP_LoadLeafFaces(), Mod_Q3BSP_LoadLeafs(), Mod_Q3BSP_LoadLightmaps(), Mod_Q3BSP_LoadModels(), Mod_Q3BSP_LoadNodes(), Mod_Q3BSP_LoadPVS(), Mod_Q3BSP_LoadTextures(), Mod_Q3BSP_LoadTriangles(), Mod_Sprite_SharedSetup(), MSG_WriteFloat(), NetConn_ReceivedMessage(), PK3_GetEndOfCentralDir(), PRVM_LoadLNO(), PRVM_Prog_Load(), SV_WriteDemoMessage(), W_GetLumpName(), W_LoadTextureWadFile(), and W_SwapLumps().
#define LittleShort | ( | l | ) |
Definition at line 90 of file common.h.
Referenced by LoadPCX_BGRA(), LoadPCX_QWSkin(), Mod_IDP2_Load(), Mod_IDP3_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_PSKMODEL_Load(), NetConn_SendUnreliableMessage(), PK3_GetEndOfCentralDir(), and PRVM_Prog_Load().
#define MSG_ReadByte | ( | sb | ) |
Definition at line 188 of file common.h.
Referenced by CL_ParseBaseline(), CL_ParseClientdata(), CL_ParseEffect(), CL_ParseEffect2(), CL_ParseParticleEffect(), CL_ParseServerInfo(), CL_ParseServerMessage(), CL_ParseStartSoundPacket(), CL_ParseStaticSound(), CL_ParseTempEntity(), EntityFrameQuake_ReadEntity(), EntityFrameQW_CL_ReadFrame(), EntityState5_ReadUpdate(), EntityState_ReadExtendBits(), EntityState_ReadFields(), EntityStateQW_ReadEntityUpdate(), EntityStateQW_ReadPlayerUpdate(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadTextures(), Mod_VBSP_LoadFaces(), MSG_ReadAngle8i(), NetConn_ClientParsePacket(), NetConn_ServerParsePacket(), QW_CL_ParseDownload(), QW_CL_ParseModelList(), QW_CL_ParseNails(), QW_CL_ParseSoundList(), QW_CL_SetInfo(), QW_CL_UpdateUserInfo(), SHOWLMP_decodeshow(), SV_ReadClientMessage(), SV_ReadClientMove(), V_ParseDamage(), VM_CL_ReadByte(), and VM_CL_ReadPicture().
#define MSG_ReadByte_opt | ( | sb | ) |
Same as MSG_ReadByte but with no need to copy twice (first to int
to check for -1) so each byte can be copied directly to a string[].
Definition at line 190 of file common.h.
Referenced by MSG_ReadBytes(), MSG_ReadString(), and MSG_ReadString_len().
#define MSG_ReadChar | ( | sb | ) |
Definition at line 187 of file common.h.
Referenced by CL_ParseClientdata(), CL_ParseParticleEffect(), CL_ParseStartSoundPacket(), CL_ParseTempEntity(), and VM_CL_ReadChar().
#define MSG_ReadFloat MSG_ReadLittleFloat |
Definition at line 193 of file common.h.
Referenced by CL_ParseServerInfo(), CL_ParseServerMessage(), EntityFrame_CL_ReadFrame(), EntityFrameQuake_ReadEntity(), MSG_ReadAngle32f(), SV_ReadClientMove(), and VM_CL_ReadFloat().
#define MSG_ReadLong MSG_ReadLittleLong |
Definition at line 192 of file common.h.
Referenced by CL_ParseClientdata(), CL_ParseDownload(), CL_ParseServerInfo(), CL_ParseServerMessage(), EntityFrame4_CL_ReadFrame(), EntityFrame5_CL_ReadFrame(), EntityFrame_CL_ReadFrame(), EntityState5_ReadUpdate(), NetConn_ClientParsePacket(), QW_CL_UpdateUserInfo(), SV_ReadClientMessage(), SV_ReadClientMove(), and VM_CL_ReadLong().
#define MSG_ReadShort MSG_ReadLittleShort |
Definition at line 191 of file common.h.
Referenced by CL_ParseBaseline(), CL_ParseBeam(), CL_ParseClientdata(), CL_ParseDownload(), CL_ParseEffect2(), CL_ParsePointParticles(), CL_ParsePointParticles1(), CL_ParseServerMessage(), CL_ParseStartSoundPacket(), CL_ParseStaticSound(), CL_ParseTempEntity(), CL_ParseTrailParticles(), CSQC_ReadEntities(), EntityFrame4_CL_ReadFrame(), EntityFrame5_CL_ReadFrame(), EntityFrame_CL_ReadFrame(), EntityFrameQuake_ReadEntity(), EntityFrameQW_CL_ReadFrame(), EntityState5_ReadUpdate(), EntityState_ReadFields(), EntityStateQW_ReadPlayerUpdate(), MSG_ReadAngle16i(), QW_CL_ParseDownload(), SHOWLMP_decodeshow(), SV_ReadClientMessage(), SV_ReadClientMove(), VM_CL_ReadPicture(), and VM_CL_ReadShort().
#define snprintf DP_STATIC_ASSERT(0, "snprintf is forbidden for portability reasons. Use dpsnprintf instead.") |
Definition at line 238 of file common.h.
Referenced by dpvsnprintf().
#define sprintf DP_STATIC_ASSERT(0, "sprintf is forbidden for security reasons. Use dpsnprintf instead.") |
#define stpcpy DP_STATIC_ASSERT(0, "stpcpy is forbidden for security reasons. Use dp_stpecpy or memcpy instead.") |
#define strcat DP_STATIC_ASSERT(0, "strcat is forbidden for security reasons. Use dp_strlcat or memcpy instead.") |
#define strcpy DP_STATIC_ASSERT(0, "strcpy is forbidden for security reasons. Use dp_strlcpy or memcpy instead.") |
#define strlcat DP_STATIC_ASSERT(0, "strlcat is forbidden for stability and correctness. See common.h and common.c comments.") |
Definition at line 274 of file common.h.
Referenced by Mod_Q1BSP_LoadMapBrushes().
#define strlcpy DP_STATIC_ASSERT(0, "strlcpy is forbidden for stability and correctness. See common.h and common.c comments.") |
Definition at line 272 of file common.h.
Referenced by Mod_Q1BSP_LoadMapBrushes().
#define strncat DP_STATIC_ASSERT(0, "strncat is forbidden for security reasons. Use dp_strlcat or memcpy instead.") |
#define strncpy DP_STATIC_ASSERT(0, "strncpy is forbidden for security reasons. Use dp_strlcpy or memcpy instead.") |
#define ustpcpy DP_STATIC_ASSERT(0, "ustpcpy is forbidden for security reasons. Use dp_ustr2stp or memcpy instead.") |
#define ustr2stp DP_STATIC_ASSERT(0, "ustr2stp is forbidden for security reasons. Use dp_ustr2stp or memcpy instead.") |
#define vsnprintf DP_STATIC_ASSERT(0, "vsnprintf is forbidden for portability reasons. Use dpvsnprintf instead.") |
Definition at line 240 of file common.h.
Referenced by dpvsnprintf().
enum protocolversion_t |
Enumerator | |
---|---|
PROTOCOL_UNKNOWN | |
PROTOCOL_DARKPLACES8 | added parting messages. WIP |
PROTOCOL_DARKPLACES7 | added QuakeWorld-style movement protocol to allow more consistent prediction |
PROTOCOL_DARKPLACES6 | various changes |
PROTOCOL_DARKPLACES5 | uses EntityFrame5 entity snapshot encoder/decoder which is based on a Tribes networking article at http://www.garagegames.com/articles/networking1/ |
PROTOCOL_DARKPLACES4 | various changes |
PROTOCOL_DARKPLACES3 | uses EntityFrame4 entity snapshot encoder/decoder which is broken, this attempted to do partial snapshot updates on a QuakeWorld-like protocol, but it is broken and impossible to fix |
PROTOCOL_DARKPLACES2 | various changes |
PROTOCOL_DARKPLACES1 | uses EntityFrame entity snapshot encoder/decoder which is a QuakeWorld-like entity snapshot delta compression method |
PROTOCOL_QUAKEDP | darkplaces extended quake protocol (used by TomazQuake and others), backwards compatible as long as no extended features are used |
PROTOCOL_NEHAHRAMOVIE | Nehahra movie protocol, a big nasty hack dating back to early days of the Quake Standards Group (but only ever used by neh_gl.exe), this is potentially backwards compatible with quake protocol as long as no extended features are used (but in actuality the neh_gl.exe which wrote this protocol ALWAYS wrote the extended information) |
PROTOCOL_QUAKE | quake (aka netquake/normalquake/nq) protocol |
PROTOCOL_QUAKEWORLD | quakeworld protocol |
PROTOCOL_NEHAHRABJP | same as QUAKEDP but with 16bit modelindex |
PROTOCOL_NEHAHRABJP2 | same as NEHAHRABJP but with 16bit soundindex |
PROTOCOL_NEHAHRABJP3 | same as NEHAHRABJP2 but with some changes |
Definition at line 131 of file common.h.
enum userdirmode_t |
Enumerator | |
---|---|
USERDIRMODE_NOHOME | |
USERDIRMODE_HOME | |
USERDIRMODE_MYGAMES | |
USERDIRMODE_SAVEDGAMES | |
USERDIRMODE_COUNT |
Definition at line 282 of file common.h.
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 BuffBigFloat | ( | const unsigned char * | buffer | ) |
int BuffBigLong | ( | const unsigned char * | buffer | ) |
Extract a big endian 32bit int from the given buffer
.
Definition at line 49 of file com_msg.c.
References buffer.
Referenced by Crypto_DecryptPacket(), Crypto_EncryptPacket(), NetConn_ClientParsePacket(), NetConn_ReceivedMessage(), NetConn_ServerParsePacket(), PK3_BuildFileList(), PK3_GetEndOfCentralDir(), and PK3_GetTrueFileOffset().
short BuffBigShort | ( | const unsigned char * | buffer | ) |
float BuffLittleFloat | ( | const unsigned char * | buffer | ) |
int BuffLittleLong | ( | const unsigned char * | buffer | ) |
Extract a little endian 32bit int from the given buffer
.
Definition at line 71 of file com_msg.c.
References buffer.
Referenced by Crypto_ClientParsePacket(), GetLittleLong(), GetMapList(), Mod_Q1BSP_LoadFaces(), PK3_BuildFileList(), and R_LoadTextureDDSFile().
short BuffLittleShort | ( | const unsigned char * | buffer | ) |
Extract a little endian 16bit short from the given buffer
.
Definition at line 76 of file com_msg.c.
References buffer.
Referenced by GetLittleShort(), Mod_Q1BSP_LoadFaces(), Mod_VBSP_LoadFaces(), PK3_BuildFileList(), and PK3_GetTrueFileOffset().
Definition at line 198 of file mdfour.c.
References buffer, length, and mdfour().
Referenced by Mod_Q1BSP_Load(), Mod_Q2BSP_Load(), and Mod_Q3BSP_Load().
Definition at line 132 of file com_crc16.c.
References chktbl, CRC_Block(), and length.
Referenced by CL_SendMove().
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.
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 | continuationSize, | ||
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().
unsigned short CRC_Block | ( | const unsigned char * | data, |
size_t | size ) |
Definition at line 75 of file com_crc16.c.
References CRC_INIT_VALUE, CRC_XOR_VALUE, crctable, data, and size.
Referenced by CL_StopDownload(), CL_VM_Init(), COM_BlockSequenceCRCByteQW(), CompressedImageCache_Add(), CompressedImageCache_Find(), Crypto_ClearHostKey(), Crypto_RetrieveHostKey(), Crypto_StoreHostKey(), Cvar_FindVar(), Cvar_FindVarLink(), Cvar_Link(), Cvar_RegisterVirtual(), Draw_CachePic_Flags(), Draw_FreePic(), Draw_NewPic(), FS_CRCFile(), Mod_LoadModel(), Mod_Q1BSP_LoadSplitSky(), Mod_Q1BSP_LoadTextures(), PRVM_PO_Load(), PRVM_PO_Lookup(), PRVM_Prog_Load(), R_InitShaderModeInfo(), R_SkinFrame_Find(), R_SkinFrame_FindNextByName(), R_SkinFrame_LoadInternal8bit(), R_SkinFrame_LoadInternalQuake(), SV_Prepare_CSQC(), SV_ReadClientMessage(), and VM_crc16().
unsigned short CRC_Block_CaseInsensitive | ( | const unsigned char * | data, |
size_t | size ) |
Definition at line 83 of file com_crc16.c.
References CRC_INIT_VALUE, CRC_XOR_VALUE, crctable, data, and size.
Referenced by Mod_LookupQ3Shader(), Q3Shader_AddToHash(), and VM_crc16().
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().
|
extern |
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().
|
extern |
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 257 of file com_msg.c.
References sizebuf_t::badread, and sizebuf_t::readcount.
Referenced by CL_ReadDemoMessage(), MSG_InitReadBuffer(), NetConn_ClientParsePacket(), NetConn_ReceivedMessage(), NetConn_ServerParsePacket(), and W_ConvertWAD3TextureBGRA().
Definition at line 249 of file com_msg.c.
References buf, data, MSG_BeginReading(), and size.
Referenced by Mod_Q1BSP_Load(), Mod_Q1BSP_LoadTextures(), Mod_Q2BSP_Load(), Mod_VBSP_Load(), and W_GetTextureBGRA().
float MSG_ReadAngle | ( | sizebuf_t * | sb, |
protocolversion_t | protocol ) |
Definition at line 424 of file com_msg.c.
References MSG_ReadAngle16i(), MSG_ReadAngle8i(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by CL_ParseBaseline(), CL_ParseServerMessage(), EntityFrameQuake_ReadEntity(), and VM_CL_ReadAngle().
Definition at line 414 of file com_msg.c.
References MSG_ReadShort.
Referenced by CL_ParseClientdata(), EntityState5_ReadUpdate(), EntityState_ReadFields(), EntityStateQW_ReadPlayerUpdate(), MSG_ReadAngle(), and SV_ReadClientMove().
Definition at line 419 of file com_msg.c.
References MSG_ReadFloat.
Referenced by SV_ReadClientMove().
Definition at line 409 of file com_msg.c.
References MSG_ReadByte.
Referenced by EntityState5_ReadUpdate(), EntityState_ReadFields(), EntityStateQW_ReadEntityUpdate(), MSG_ReadAngle(), and SV_ReadClientMove().
Definition at line 324 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, f, and sizebuf_t::readcount.
Definition at line 296 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
Definition at line 274 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
size_t MSG_ReadBytes | ( | sizebuf_t * | sb, |
size_t | numbytes, | ||
unsigned char * | out ) |
Definition at line 364 of file com_msg.c.
References MSG_ReadByte_opt.
Referenced by CL_ParseDownload(), Mod_Q1BSP_LoadEntities(), Mod_Q1BSP_LoadVisibility(), Mod_Q2BSP_LoadLighting(), Mod_Q2BSP_LoadTexinfo(), Mod_VBSP_LoadEntities(), QW_CL_ParseDownload(), VM_CL_ReadPicture(), and W_ConvertWAD3TextureBGRA().
float MSG_ReadCoord | ( | sizebuf_t * | sb, |
protocolversion_t | protocol ) |
Definition at line 389 of file com_msg.c.
References MSG_ReadCoord13i(), MSG_ReadCoord16i(), MSG_ReadCoord32f(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by CL_ParseBaseline(), CL_ParseServerMessage(), CL_ParseTempEntity(), EntityFrameQuake_ReadEntity(), MSG_ReadVector(), and VM_CL_ReadCoord().
Definition at line 374 of file com_msg.c.
References MSG_ReadLittleShort().
Referenced by EntityState5_ReadUpdate(), EntityStateQW_ReadEntityUpdate(), and MSG_ReadCoord().
Definition at line 379 of file com_msg.c.
References MSG_ReadLittleShort().
Referenced by CL_ParseClientdata(), EntityState_ReadFields(), MSG_ReadCoord(), and SV_ReadClientMove().
Definition at line 384 of file com_msg.c.
References MSG_ReadLittleFloat().
Referenced by CL_ParseClientdata(), EntityState5_ReadUpdate(), EntityState_ReadFields(), and MSG_ReadCoord().
Definition at line 307 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, f, and sizebuf_t::readcount.
Referenced by Mod_BSP_LoadSubmodels(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadNodes(), Mod_Q1BSP_LoadPlanes(), Mod_Q1BSP_LoadTexinfo(), Mod_Q1BSP_LoadVertexes(), Mod_Q2BSP_LoadTexinfo(), Mod_VBSP_LoadPlanes(), Mod_VBSP_LoadTexinfo(), Mod_VBSP_LoadVertexes(), and MSG_ReadCoord32f().
Definition at line 285 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
Referenced by Mod_BSP_LoadSubmodels(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadClipnodes(), Mod_Q1BSP_LoadEdges(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeaffaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadNodes(), Mod_Q1BSP_LoadPlanes(), Mod_Q1BSP_LoadSurfedges(), Mod_Q1BSP_LoadTexinfo(), Mod_Q1BSP_LoadTextures(), Mod_Q2BSP_Load(), Mod_Q2BSP_LoadBrushes(), Mod_Q2BSP_LoadLeafs(), Mod_Q2BSP_LoadNodes(), Mod_Q2BSP_LoadTexinfo(), Mod_Q2BSP_LoadVisibility(), Mod_VBSP_Load(), Mod_VBSP_LoadFaces(), Mod_VBSP_LoadPlanes(), Mod_VBSP_LoadSurfedges(), Mod_VBSP_LoadTexinfo(), and W_ConvertWAD3TextureBGRA().
Definition at line 263 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
Referenced by Mod_Q1BSP_LoadClipnodes(), Mod_Q1BSP_LoadEdges(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeaffaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadNodes(), Mod_Q2BSP_LoadBrushSides(), Mod_Q2BSP_LoadLeafBrushes(), Mod_Q2BSP_LoadLeafs(), Mod_Q2BSP_LoadNodes(), Mod_VBSP_LoadEdges(), Mod_VBSP_LoadFaces(), MSG_ReadCoord13i(), and MSG_ReadCoord16i().
char * MSG_ReadString | ( | sizebuf_t * | sb, |
char * | string, | ||
size_t | maxstring ) |
Definition at line 341 of file com_msg.c.
References MSG_ReadByte_opt, and string.
Referenced by CL_ParseServerInfo(), CL_ParseServerMessage(), CL_ParseTempEntity(), NetConn_ClientParsePacket(), NetConn_ServerParsePacket(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_ServerInfo(), QW_CL_SetInfo(), QW_CL_UpdateUserInfo(), SHOWLMP_decodehide(), SHOWLMP_decodeshow(), and SV_ReadClientMessage().
size_t MSG_ReadString_len | ( | sizebuf_t * | sb, |
char * | string, | ||
size_t | maxstring ) |
Same as MSG_ReadString except it returns the number of bytes written to *string excluding the \0 terminator.
Definition at line 352 of file com_msg.c.
References MSG_ReadByte_opt.
Referenced by CL_ParseServerMessage(), SV_ReadClientMessage(), VM_CL_ReadPicture(), and VM_CL_ReadString().
void MSG_ReadVector | ( | sizebuf_t * | sb, |
vec3_t | v, | ||
protocolversion_t | protocol ) |
Definition at line 401 of file com_msg.c.
References MSG_ReadCoord(), and v.
Referenced by CL_ParseBeam(), CL_ParseEffect(), CL_ParseEffect2(), CL_ParseParticleEffect(), CL_ParsePointParticles(), CL_ParsePointParticles1(), CL_ParseServerMessage(), CL_ParseStartSoundPacket(), CL_ParseStaticSound(), CL_ParseTempEntity(), CL_ParseTrailParticles(), EntityStateQW_ReadPlayerUpdate(), and V_ParseDamage().
void MSG_WriteAngle | ( | sizebuf_t * | sb, |
vec_t | f, | ||
protocolversion_t | protocol ) |
Definition at line 237 of file com_msg.c.
References f, MSG_WriteAngle16i(), MSG_WriteAngle8i(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by EntityFrameQuake_WriteFrame(), SV_CreateBaseline(), SV_Spawn_f(), SV_WriteClientdataToMessage(), VM_M_WriteAngle(), VM_SV_makestatic(), and VM_SV_WriteAngle().
Definition at line 227 of file com_msg.c.
References f, MSG_WriteShort(), and Q_rint.
Referenced by CL_SendMove(), EntityState5_WriteUpdate(), EntityState_WriteFields(), MSG_WriteAngle(), QW_MSG_WriteDeltaUsercmd(), and SV_WriteClientdataToMessage().
Definition at line 232 of file com_msg.c.
References f, and MSG_WriteFloat().
Referenced by CL_SendMove().
Definition at line 222 of file com_msg.c.
References f, MSG_WriteByte(), and Q_rint.
Referenced by CL_SendMove(), EntityState5_WriteUpdate(), EntityState_WriteFields(), and MSG_WriteAngle().
Definition at line 130 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_DisconnectEx(), CL_ForwardToServer(), CL_ParseServerInfo(), CL_PQRcon_f(), CL_SendMove(), CL_SendPlayerInfo(), CL_SetInfo(), CL_SignonReply(), CL_Stop_f(), Cvar_SetQuick_Internal(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrame_WriteFrame(), EntityFrameCSQC_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState5_WriteUpdate(), EntityState_WriteExtendBits(), EntityState_WriteFields(), MakeDownloadPacket(), MSG_WriteAngle8i(), NetConn_ClientFrame(), NetConn_ServerParsePacket(), Protocol_WriteStatsReliable(), QW_CL_CheckOrDownloadFile(), QW_CL_NextUpload_f(), QW_CL_ParseDownload(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_RequestNextDownload(), QW_MSG_WriteDeltaUsercmd(), Sbar_DeathmatchOverlay(), SV_BroadcastPrint(), SV_ClientCommands(), SV_ClientPrint(), SV_Color_f(), SV_CreateBaseline(), SV_DropClient(), SV_ModelIndex(), SV_Name(), SV_Pause_f(), SV_Pings_f(), SV_PreSpawn_f(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_SoundIndex(), SV_Spawn_f(), SV_SpawnServer(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), SV_StartSound(), SV_StopDemoRecording(), SV_UpdateToReliableMessages(), SV_WriteClientdataToMessage(), SV_WriteNetnameIntoDemo(), VM_M_WriteByte(), VM_SV_ambientsound(), VM_SV_makestatic(), VM_SV_pointparticles(), VM_SV_setcolor(), VM_SV_setpause(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), VM_SV_trailparticles(), and VM_SV_WriteByte().
Definition at line 122 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_KeepaliveMessage(), CL_Reconnect_f(), MSG_WriteString(), NetConn_ConnectionEstablished(), SV_SendClientDatagram(), SV_StartParticle(), SV_StartSound(), SV_WriteClientdataToMessage(), VM_M_WriteChar(), VM_sprint(), VM_SV_centerprint(), VM_SV_lightstyle(), VM_SV_sprint(), VM_SV_te_blood(), VM_SV_te_spark(), and VM_SV_WriteChar().
void MSG_WriteCoord | ( | sizebuf_t * | sb, |
vec_t | f, | ||
protocolversion_t | protocol ) |
Definition at line 202 of file com_msg.c.
References f, MSG_WriteCoord13i(), MSG_WriteCoord16i(), MSG_WriteCoord32f(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by EntityFrameQuake_WriteFrame(), MSG_WriteVector(), SV_CreateBaseline(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), SV_StartSound(), SV_WriteClientdataToMessage(), VM_M_WriteCoord(), VM_SV_makestatic(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), and VM_SV_WriteCoord().
Definition at line 187 of file com_msg.c.
References f, MSG_WriteShort(), and Q_rint.
Referenced by EntityState5_WriteUpdate(), and MSG_WriteCoord().
Definition at line 192 of file com_msg.c.
References f, MSG_WriteShort(), and Q_rint.
Referenced by CL_SendMove(), EntityState_WriteFields(), MSG_WriteCoord(), and SV_WriteClientdataToMessage().
Definition at line 197 of file com_msg.c.
References f, and MSG_WriteFloat().
Referenced by EntityState5_WriteUpdate(), EntityState_WriteFields(), MSG_WriteCoord(), and SV_WriteClientdataToMessage().
Definition at line 158 of file com_msg.c.
References f, LittleLong, and SZ_Write().
Referenced by CL_SendMove(), EntityFrame_WriteFrame(), EntityFrameQuake_WriteFrame(), MSG_WriteAngle32f(), MSG_WriteCoord32f(), SV_SendClientDatagram(), and SV_Spawn_f().
Definition at line 147 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_PQRcon_f(), CL_SendMove(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrame_WriteFrame(), EntityState5_WriteUpdate(), MakeDownloadPacket(), NetConn_ClientFrame(), NetConn_ServerParsePacket(), Protocol_WriteStatsReliable(), SCR_CaptureVideo_RIFF_IndexEntry(), SCR_CaptureVideo_RIFF_Write32(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_Spawn_f(), SV_WriteClientdataToMessage(), VM_M_WriteLong(), and VM_SV_WriteLong().
Definition at line 138 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_SendMove(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrame_WriteFrame(), EntityFrameCSQC_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState5_WriteUpdate(), EntityState_WriteFields(), EntityState_WriteUpdate(), MakeDownloadPacket(), MSG_WriteAngle16i(), MSG_WriteCoord13i(), MSG_WriteCoord16i(), QW_CL_NextUpload_f(), QW_MSG_WriteDeltaUsercmd(), SCR_CaptureVideo_RIFF_Write16(), SV_CreateBaseline(), SV_DropClient(), SV_ModelIndex(), SV_Pings_f(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_SoundIndex(), SV_Spawn_f(), SV_StartEffect(), SV_StartPointSound(), SV_StartSound(), SV_UpdateToReliableMessages(), SV_WriteClientdataToMessage(), VM_M_WriteEntity(), VM_M_WriteShort(), VM_SV_ambientsound(), VM_SV_makestatic(), VM_SV_pointparticles(), VM_SV_te_beam(), VM_SV_te_bloodshower(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_trailparticles(), VM_SV_WriteEntity(), VM_SV_WritePicture(), and VM_SV_WriteShort().
Definition at line 173 of file com_msg.c.
References MSG_WriteChar(), strlen(), and SZ_Write().
Referenced by CL_DisconnectEx(), CL_ParseServerInfo(), CL_PQRcon_f(), CL_Reconnect_f(), CL_SendPlayerInfo(), CL_SetInfo(), CL_SignonReply(), Cvar_SetQuick_Internal(), MakeDownloadPacket(), NetConn_ClientFrame(), NetConn_ServerParsePacket(), QW_CL_CheckOrDownloadFile(), QW_CL_ParseDownload(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_RequestNextDownload(), Sbar_DeathmatchOverlay(), SCR_CaptureVideo_RIFF_WriteTerminatedString(), SV_BroadcastPrint(), SV_ClientCommands(), SV_ClientPrint(), SV_DropClient(), SV_ModelIndex(), SV_Name(), SV_Pings_f(), SV_SendServerinfo(), SV_SoundIndex(), SV_Spawn_f(), SV_SpawnServer(), SV_WriteNetnameIntoDemo(), VM_M_WriteString(), VM_sprint(), VM_SV_centerprint(), VM_SV_lightstyle(), VM_SV_sprint(), VM_SV_WritePicture(), and VM_SV_WriteString().
Definition at line 181 of file com_msg.c.
References strlen(), and SZ_Write().
Referenced by NetConn_ServerParsePacket(), SCR_CaptureVideo_RIFF_IndexEntry(), SCR_CaptureVideo_RIFF_WriteFourCC(), SV_Pings_f(), SV_WriteNetnameIntoDemo(), and VM_SV_WriteUnterminatedString().
void MSG_WriteVector | ( | sizebuf_t * | sb, |
const vec3_t | v, | ||
protocolversion_t | protocol ) |
Definition at line 214 of file com_msg.c.
References MSG_WriteCoord(), and v.
Referenced by VM_SV_ambientsound(), VM_SV_pointparticles(), and VM_SV_trailparticles().
Encode a big endian 32bit int to the given buffer
.
Definition at line 81 of file com_msg.c.
Referenced by CL_PQRcon_f(), Con_Rcon_Redirect_Flush(), NetConn_ClientFrame(), NetConn_ReceivedMessage(), NetConn_SendUnreliableMessage(), and NetConn_ServerParsePacket().
void StoreBigShort | ( | unsigned char * | buffer, |
unsigned short | i ) |
Encode a little endian 32bit int to the given buffer
.
Definition at line 95 of file com_msg.c.
Referenced by NetConn_SendUnreliableMessage(), and R_SaveTextureDDSFile().
void StoreLittleShort | ( | unsigned char * | buffer, |
unsigned short | i ) |
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.
|
extern |
Definition at line 33 of file common.c.
Referenced by CL_FinishTimeDemo(), COM_Init_Commands(), and COM_InitGameType().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 32 of file common.c.
Referenced by COM_Init_Commands(), FS_Rescan(), and M_Menu_GameOptions_f().