2017-06-01 21:55:10 +02:00
|
|
|
#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers
|
2014-10-09 01:30:22 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
2016-05-04 19:24:41 +02:00
|
|
|
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
|
|
|
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
|
2014-10-09 01:30:22 +02:00
|
|
|
*
|
|
|
|
* OpenRCT2 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2016-05-04 19:24:41 +02:00
|
|
|
*
|
|
|
|
* A full copy of the GNU General Public License can be found in licence.txt
|
2014-10-09 01:30:22 +02:00
|
|
|
*****************************************************************************/
|
2016-05-04 19:24:41 +02:00
|
|
|
#pragma endregion
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2016-12-11 02:15:07 +01:00
|
|
|
#pragma once
|
2014-10-09 01:30:22 +02:00
|
|
|
|
|
|
|
#include "common.h"
|
2016-11-06 21:02:25 +01:00
|
|
|
#include "core/Guard.hpp"
|
2016-12-14 13:07:48 +01:00
|
|
|
|
2017-06-25 19:49:04 +02:00
|
|
|
// Defining MAX_PATH temporarily until the paths below can be removed
|
|
|
|
// Saves us from importing system headers in a header file.
|
|
|
|
#ifndef MAX_PATH
|
|
|
|
#define MAX_PATH 260
|
2016-12-14 13:07:48 +01:00
|
|
|
#endif
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2016-07-24 21:32:57 +02:00
|
|
|
#ifndef DISABLE_NETWORK
|
2016-12-11 02:15:07 +01:00
|
|
|
#include <openssl/evp.h>
|
2016-07-24 21:32:57 +02:00
|
|
|
#endif // DISABLE_NETWORK
|
|
|
|
|
2016-12-11 02:15:07 +01:00
|
|
|
enum STARTUP_ACTION
|
|
|
|
{
|
|
|
|
STARTUP_ACTION_INTRO,
|
|
|
|
STARTUP_ACTION_TITLE,
|
|
|
|
STARTUP_ACTION_OPEN,
|
|
|
|
STARTUP_ACTION_EDIT
|
2014-10-09 01:30:22 +02:00
|
|
|
};
|
|
|
|
|
2016-12-11 02:15:07 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** The exit code for OpenRCT2 when it exits. */
|
2017-01-04 22:17:08 +01:00
|
|
|
extern sint32 gExitCode;
|
2016-01-10 22:03:45 +01:00
|
|
|
|
2017-01-04 22:17:08 +01:00
|
|
|
extern sint32 gOpenRCT2StartupAction;
|
2016-12-11 02:15:07 +01:00
|
|
|
extern utf8 gOpenRCT2StartupActionPath[512];
|
|
|
|
extern utf8 gExePath[MAX_PATH];
|
|
|
|
extern utf8 gCustomUserDataPath[MAX_PATH];
|
|
|
|
extern utf8 gCustomOpenrctDataPath[MAX_PATH];
|
|
|
|
extern utf8 gCustomRCT2DataPath[MAX_PATH];
|
|
|
|
extern utf8 gCustomPassword[MAX_PATH];
|
|
|
|
extern bool gOpenRCT2Headless;
|
2017-06-08 00:17:19 +02:00
|
|
|
extern bool gOpenRCT2NoGraphics;
|
2016-12-11 02:15:07 +01:00
|
|
|
extern bool gOpenRCT2ShowChangelog;
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2016-07-24 21:32:57 +02:00
|
|
|
#ifndef DISABLE_NETWORK
|
2016-12-11 02:15:07 +01:00
|
|
|
extern EVP_MD_CTX * gHashCTX;
|
2016-07-24 21:32:57 +02:00
|
|
|
#endif // DISABLE_NETWORK
|
|
|
|
|
2016-01-10 20:41:09 +01:00
|
|
|
#ifndef DISABLE_NETWORK
|
2017-01-04 22:17:08 +01:00
|
|
|
extern sint32 gNetworkStart;
|
2016-12-11 02:15:07 +01:00
|
|
|
extern char gNetworkStartHost[128];
|
2017-01-04 22:17:08 +01:00
|
|
|
extern sint32 gNetworkStartPort;
|
2017-05-04 12:48:18 +02:00
|
|
|
extern char* gNetworkStartAddress;
|
2016-01-10 20:41:09 +01:00
|
|
|
#endif
|
|
|
|
|
2016-12-11 02:15:07 +01:00
|
|
|
void openrct2_write_full_version_info(utf8 * buffer, size_t bufferSize);
|
|
|
|
void openrct2_finish();
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2017-01-04 22:17:08 +01:00
|
|
|
sint32 cmdline_run(const char * * argv, sint32 argc);
|
2016-01-10 22:03:45 +01:00
|
|
|
|
2016-12-11 02:15:07 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2015-12-16 01:30:11 +01:00
|
|
|
#endif
|