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;
extern int com_argc;
extern const char **com_argv;
+extern int com_selffd;
int COM_CheckParm (const char *parm);
void COM_Init (void);
// snprintf and vsnprintf are NOT portable. Use their DP counterparts instead
+#ifdef snprintf
+# undef snprintf
+#endif
#define snprintf DO_NOT_USE_SNPRINTF__USE_DPSNPRINTF
+#ifdef vsnprintf
+# undef vsnprintf
+#endif
#define vsnprintf DO_NOT_USE_VSNPRINTF__USE_DPVSNPRINTF
// dpsnprintf and dpvsnprintf
GAME_ROGUE,
GAME_NEHAHRA,
GAME_NEXUIZ,
+ GAME_XONOTIC,
GAME_TRANSFUSION,
GAME_GOODVSBAD2,
GAME_TEU,
GAME_PROPHECY,
GAME_BLOODOMNICIDE,
GAME_STEELSTORM, // added by motorsep
+ GAME_STRAPBOMB, // added by motorsep for Urre
+ GAME_MOONHELM,
GAME_COUNT
}
gamemode_t;
extern const char *gameuserdirname;
extern char com_modname[MAX_OSPATH];
+void COM_ChangeGameTypeForGameDirs(void);
+
void COM_ToLowerString (const char *in, char *out, size_t size_out);
void COM_ToUpperString (const char *in, char *out, size_t size_out);
int COM_StringBeginsWith(const char *s, const char *match);
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);
+
+size_t base64_encode(unsigned char *buf, size_t buflen, size_t outbuflen);
+
#endif