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"
|
|
|
|
|
|
2020-07-28 12:23:09 -04:00
|
|
|
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
|
|
|
|
2018-06-20 17:28:51 +02:00
|
|
|
uint32_t gCurrentDrawCount = 0;
|
2025-03-05 21:45:04 +01:00
|
|
|
LegacyScene gLegacyScene;
|
2018-06-20 17:28:51 +02:00
|
|
|
uint32_t gScreenAge;
|
2020-10-02 23:04:59 -03:00
|
|
|
PromptMode gSavePromptMode;
|
2024-07-25 16:29:01 -04:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|