og-odamex/common/doomstat.cpp
2026-01-05 01:52:47 +00:00

57 lines
1.6 KiB
C++

// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id$
//
// Copyright (C) 1998-2006 by Randy Heit (ZDoom).
// Copyright (C) 2006-2026 by The Odamex Team.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// DESCRIPTION:
// Put all global state variables here.
//
//-----------------------------------------------------------------------------
#include "odamex.h"
#include "gstrings.h"
#include "i_system.h"
#include "p_acs.h"
#include "d_main.h"
#include "g_mapinfo.h"
// Game Mode - identify IWAD as shareware, retail etc.
GameMode_t gamemode = undetermined;
GameMission_t gamemission = doom;
// Language.
CVAR_FUNC_IMPL (language)
{
SetLanguageIDs();
if (level.behavior != NULL)
{
level.behavior->PrepLocale (LanguageIDs[0], LanguageIDs[1],
LanguageIDs[2], LanguageIDs[3]);
}
// Reload LANGUAGE strings.
::GStrings.loadStrings(false);
// Reapply DeHackEd patches on top of these strings.
D_LoadResolvedPatches(true);
}
// Set if homebrew PWAD stuff has been added.
bool modifiedgame;
VERSION_CONTROL (doomstat_cpp, "$Id$")