+extern struct cvar_s registered;
+extern struct cvar_s cmdline;
+
+#define GAME_NORMAL 0
+#define GAME_HIPNOTIC 1
+#define GAME_ROGUE 2
+#define GAME_NEHAHRA 3
+#define GAME_NEXUIZ 4
+#define GAME_TRANSFUSION 5
+#define GAME_GOODVSBAD2 6
+#define GAME_TEU 7
+#define GAME_BATTLEMECH 8
+#define GAME_ZYMOTIC 9
+#define GAME_FNIGGIUM 10
+#define GAME_SETHERAL 11
+#define GAME_SOM 12
+#define GAME_TENEBRAE 13 // full of evil hackery
+#define GAME_NEOTERIC 14
+#define GAME_OPENQUARTZ 15 //this game sucks
+#define GAME_PRYDON 16
+#define GAME_NETHERWORLD 17
+
+extern int gamemode;
+extern const char *gamename;
+extern const char *gamedirname1;
+extern const char *gamedirname2;
+extern const char *gamescreenshotname;
+extern const char *gameuserdirname;
+extern char com_modname[MAX_OSPATH];
+
+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);
+
+int COM_ReadAndTokenizeLine(const char **text, char **argv, int maxargc, char *tokenbuf, int tokenbufsize, const char *commentprefix);
+
+typedef struct stringlist_s
+{
+ struct stringlist_s *next;
+ char *text;
+} stringlist_t;