2 Copyright (C) 2000-2021 DarkPlaces contributors
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 typedef enum gamemode_e
41 GAME_TENEBRAE, // full of evil hackery
43 GAME_OPENQUARTZ, //this game sucks
53 GAME_STEELSTORM, // added by motorsep
54 GAME_STEELSTORM2, // added by motorsep
55 GAME_SSAMMO, // added by motorsep
56 GAME_STEELSTORMREVENANTS, // added by motorsep 07/19/2015
57 GAME_TOMESOFMEPHISTOPHELES, // added by motorsep
58 GAME_STRAPBOMB, // added by motorsep for Urre
61 GAME_DOOMBRINGER, // added by Cloudwalk for kristus
62 GAME_BATTLEMETAL, // added by Cloudwalk for Subject9x
63 GAME_QUAKE15, // added by bones_was_here as it depends on an old bug and a workaround
68 // Master switch for some hacks/changes that eventually should become cvars.
69 #define IS_NEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_XONOTIC || (g) == GAME_VORETOURNAMENT)
70 // Pre-csqcmodels era.
71 #define IS_OLDNEXUIZ_DERIVED(g) ((g) == GAME_NEXUIZ || (g) == GAME_VORETOURNAMENT)
73 extern gamemode_t gamemode;
74 extern const char *gamename;
75 extern const char *gamenetworkfiltername;
76 extern const char *gamedirname1;
77 extern const char *gamedirname2;
78 extern const char *gamescreenshotname;
79 extern const char *gameuserdirname;
80 extern char com_modname[MAX_OSPATH];
82 void COM_InitGameType (void);
83 int COM_ChangeGameTypeForGameDirs(unsigned numgamedirs, const char *gamedirs[], qbool failmissing, qbool init);