Files
OpenRCT2-Web/src/openrct2/OpenRCT2.cpp
T

44 lines
1.3 KiB
C++
Raw Normal View History

2014-10-09 00:30:22 +01:00
/*****************************************************************************
2024-12-31 20:30:04 +01:00
* Copyright (c) 2014-2025 OpenRCT2 developers
2014-10-09 00:30:22 +01:00
*
2018-06-15 14:07:34 +02:00
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
2014-10-09 00:30:22 +01:00
*
2018-06-15 14:07:34 +02:00
* OpenRCT2 is licensed under the GNU General Public License version 3.
2014-10-09 00:30:22 +01:00
*****************************************************************************/
2016-12-11 01:15:07 +00:00
#include "OpenRCT2.h"
2014-10-09 00:30:22 +01:00
2025-03-05 21:45:04 +01:00
#include "core/EnumUtils.hpp"
StartupAction gOpenRCT2StartupAction = StartupAction::Title;
2018-02-01 18:49:14 +01:00
utf8 gOpenRCT2StartupActionPath[512] = { 0 };
2022-01-27 14:21:46 +01:00
u8string gCustomUserDataPath = {};
u8string gCustomOpenRCT2DataPath = {};
u8string gCustomRCT1DataPath = {};
u8string gCustomRCT2DataPath = {};
u8string gCustomPassword = {};
u8string gSilentRecordingName = {};
2014-10-09 00:30:22 +01:00
2018-02-01 18:49:14 +01:00
bool gOpenRCT2Headless = false;
bool gOpenRCT2NoGraphics = false;
2017-06-07 23:17:19 +01:00
2018-02-01 18:49:14 +01:00
bool gOpenRCT2ShowChangelog;
bool gOpenRCT2SilentBreakpad;
2015-06-13 13:30:50 +01:00
uint32_t gCurrentDrawCount = 0;
2025-03-05 21:45:04 +01:00
LegacyScene gLegacyScene;
uint32_t gScreenAge;
PromptMode gSavePromptMode;
bool gSilentReplays = false;
2025-03-05 21:45:04 +01:00
bool isInEditorMode()
{
return EnumValue(gLegacyScene) >= EnumValue(LegacyScene::scenarioEditor);
}
bool isInTrackDesignerOrManager()
{
return gLegacyScene == LegacyScene::trackDesigner || gLegacyScene == LegacyScene::trackDesignsManager;
}