1 // Emacs style mode select -*- C++ -*- 2 //----------------------------------------------------------------------------- 3 // 4 // $Id: doomstat.cpp 4512 2014-01-21 20:10:59Z dr_sean $ 5 // 6 // Copyright (C) 1998-2006 by Randy Heit (ZDoom). 7 // Copyright (C) 2006-2014 by The Odamex Team. 8 // 9 // This program is free software; you can redistribute it and/or 10 // modify it under the terms of the GNU General Public License 11 // as published by the Free Software Foundation; either version 2 12 // of the License, or (at your option) any later version. 13 // 14 // This program is distributed in the hope that it will be useful, 15 // but WITHOUT ANY WARRANTY; without even the implied warranty of 16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 // GNU General Public License for more details. 18 // 19 // DESCRIPTION: 20 // Put all global state variables here. 21 // 22 //----------------------------------------------------------------------------- 23 24 25 #include <stdio.h> 26 #include <stdlib.h> 27 #include "stringtable.h" 28 #include "doomstat.h" 29 #include "c_cvars.h" 30 #include "i_system.h" 31 #include "p_acs.h" 32 33 // Localizable strings 34 FStringTable GStrings; 35 36 // Game Mode - identify IWAD as shareware, retail etc. 37 GameMode_t gamemode = undetermined; 38 GameMission_t gamemission = doom; 39 40 // Language. CVAR_FUNC_IMPL(language)41CVAR_FUNC_IMPL (language) 42 { 43 SetLanguageIDs (); 44 if (level.behavior != NULL) 45 { 46 level.behavior->PrepLocale (LanguageIDs[0], LanguageIDs[1], 47 LanguageIDs[2], LanguageIDs[3]); 48 } 49 50 GStrings.ReloadStrings (); 51 GStrings.Compact (); 52 G_SetLevelStrings (); 53 } 54 55 // Set if homebrew PWAD stuff has been added. 56 BOOL modifiedgame; 57 58 VERSION_CONTROL (doomstat_cpp, "$Id: doomstat.cpp 4512 2014-01-21 20:10:59Z dr_sean $") 59 60