mirror of https://github.com/OpenRCT2/OpenRCT2.git
67 lines
2.0 KiB
C++
67 lines
2.0 KiB
C++
/*****************************************************************************
|
|
* Copyright (c) 2014-2019 OpenRCT2 developers
|
|
*
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
|
*
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
|
*****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "common.h"
|
|
|
|
#include <string>
|
|
|
|
enum STARTUP_ACTION
|
|
{
|
|
STARTUP_ACTION_NONE,
|
|
STARTUP_ACTION_INTRO,
|
|
STARTUP_ACTION_TITLE,
|
|
STARTUP_ACTION_OPEN,
|
|
STARTUP_ACTION_EDIT
|
|
};
|
|
|
|
enum
|
|
{
|
|
// Although this is labeled a flag it actually means when
|
|
// zero the screen is in playing mode.
|
|
SCREEN_FLAGS_PLAYING = 0,
|
|
SCREEN_FLAGS_TITLE_DEMO = 1,
|
|
SCREEN_FLAGS_SCENARIO_EDITOR = 2,
|
|
SCREEN_FLAGS_TRACK_DESIGNER = 4,
|
|
SCREEN_FLAGS_TRACK_MANAGER = 8,
|
|
SCREEN_FLAGS_EDITOR = (SCREEN_FLAGS_SCENARIO_EDITOR | SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER),
|
|
};
|
|
|
|
extern int32_t gOpenRCT2StartupAction;
|
|
extern utf8 gOpenRCT2StartupActionPath[512];
|
|
extern utf8 gExePath[MAX_PATH];
|
|
extern utf8 gCustomUserDataPath[MAX_PATH];
|
|
extern utf8 gCustomOpenrctDataPath[MAX_PATH];
|
|
extern utf8 gCustomRCT1DataPath[MAX_PATH];
|
|
extern utf8 gCustomRCT2DataPath[MAX_PATH];
|
|
extern utf8 gCustomPassword[MAX_PATH];
|
|
extern bool gOpenRCT2Headless;
|
|
extern bool gOpenRCT2NoGraphics;
|
|
extern bool gOpenRCT2ShowChangelog;
|
|
extern bool gOpenRCT2SilentBreakpad;
|
|
extern utf8 gSilentRecordingName[MAX_PATH];
|
|
|
|
#ifndef DISABLE_NETWORK
|
|
extern int32_t gNetworkStart;
|
|
extern std::string gNetworkStartHost;
|
|
extern int32_t gNetworkStartPort;
|
|
extern std::string gNetworkStartAddress;
|
|
#endif
|
|
|
|
extern uint32_t gCurrentDrawCount;
|
|
extern uint8_t gScreenFlags;
|
|
extern uint32_t gScreenAge;
|
|
extern uint8_t gSavePromptMode;
|
|
|
|
void openrct2_write_full_version_info(utf8* buffer, size_t bufferSize);
|
|
void openrct2_finish();
|
|
|
|
int32_t cmdline_run(const char** argv, int32_t argc);
|