X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=common.h;h=220e5caaa64b019506c9dd8a044ba9edfe1b78ba;hb=819764171ec0f979dd6ab46a5d53e7b5221725db;hp=2986045f37301738a5ba4d85fccd86a980a39501;hpb=775c4993063d7673903a2dfaebeacd1a9c71cbf7;p=xonotic%2Fdarkplaces.git diff --git a/common.h b/common.h index 2986045f..220e5caa 100644 --- a/common.h +++ b/common.h @@ -103,6 +103,15 @@ short BuffLittleShort (const unsigned char *buffer); /// Encode a big endian 32bit int to the given \p buffer void StoreBigLong (unsigned char *buffer, unsigned int i); + +/// Encode a big endian 16bit int to the given \p buffer +void StoreBigShort (unsigned char *buffer, unsigned short i); + +/// Encode a little endian 32bit int to the given \p buffer +void StoreLittleLong (unsigned char *buffer, unsigned int i); + +/// Encode a little endian 16bit int to the given \p buffer +void StoreLittleShort (unsigned char *buffer, unsigned short i); //@} //============================================================================ @@ -125,7 +134,7 @@ typedef enum protocolversion_e 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 + PROTOCOL_NEHAHRABJP3 ///< same as NEHAHRABJP2 but with some changes } protocolversion_t; @@ -195,6 +204,7 @@ int COM_ParseToken_Console(const char **datapointer); extern int com_argc; extern const char **com_argv; +extern int com_selffd; int COM_CheckParm (const char *parm); void COM_Init (void); @@ -259,9 +269,10 @@ typedef enum gamemode_e GAME_DARSANA, GAME_CONTAGIONTHEORY, GAME_EDU2P, - GAME_BLADEMASTER, GAME_PROPHECY, GAME_BLOODOMNICIDE, + GAME_STEELSTORM, // added by motorsep + GAME_STRAPBOMB, // added by motorsep for Urre GAME_COUNT } gamemode_t; @@ -337,5 +348,8 @@ size_t strlcpy(char *dst, const char *src, size_t siz); void FindFraction(double val, int *num, int *denom, int denomMax); +// decodes XPM file to XPM array (as if #include'd) +char **XPM_DecodeString(const char *in); + #endif