forked from rosebudai/OpenRCT2-Web
Move extern "C" {} blocks to headers (#6282)
This commit is contained in:
1 parent
7671b9fcde
commit
00fd18809c
280 files changed
+1562
-1379
No files matched your search
@@ -17,10 +17,7 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/platform/platform.h>
|
||||
}
|
||||
#include <openrct2/platform/platform.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
|
||||
@@ -21,12 +21,9 @@
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include "TextComposition.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/console.h>
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
}
|
||||
#include <openrct2/interface/console.h>
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
|
||||
#ifdef __MACOSX__
|
||||
// macOS uses COMMAND rather than CTRL for many keyboard shortcuts
|
||||
|
||||
@@ -23,10 +23,7 @@
|
||||
#include "Ui.h"
|
||||
#include "UiContext.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/platform/platform.h>
|
||||
}
|
||||
#include <openrct2/platform/platform.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Audio;
|
||||
|
||||
@@ -40,13 +40,10 @@
|
||||
#include "UiContext.h"
|
||||
#include "WindowManager.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/console.h>
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
}
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/console.h>
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
@@ -30,13 +30,10 @@
|
||||
#include "AudioContext.h"
|
||||
#include "AudioFormat.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/platform/platform.h>
|
||||
}
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/platform/platform.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
|
||||
@@ -23,12 +23,9 @@
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
#include "DrawingEngines.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/drawing/lightfx.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/paint/paint.h>
|
||||
}
|
||||
#include <openrct2/drawing/lightfx.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/paint/paint.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
#include "DrawingEngines.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/game.h>
|
||||
}
|
||||
#include <openrct2/game.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
@@ -31,12 +31,9 @@
|
||||
#include <openrct2/interface/Screenshot.h>
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/intro.h>
|
||||
#include <openrct2/drawing/drawing.h>
|
||||
}
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/intro.h>
|
||||
#include <openrct2/drawing/drawing.h>
|
||||
|
||||
#include "../DrawingEngines.h"
|
||||
#include "GLSLTypes.h"
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include "OpenGLShaderProgram.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/platform/platform.h>
|
||||
}
|
||||
#include <openrct2/platform/platform.h>
|
||||
|
||||
OpenGLShader::OpenGLShader(const char * name, GLenum type)
|
||||
{
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
#include <openrct2/core/Memory.hpp>
|
||||
#include "TextureCache.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/drawing/drawing.h>
|
||||
}
|
||||
#include <openrct2/drawing/drawing.h>
|
||||
|
||||
TextureCache::~TextureCache()
|
||||
{
|
||||
|
||||
@@ -25,10 +25,7 @@
|
||||
#include <openrct2/PlatformEnvironment.h>
|
||||
#include "KeyboardShortcuts.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
}
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Input;
|
||||
|
||||
@@ -18,12 +18,9 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
|
||||
#define WW 400
|
||||
#define WH 350
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
#include <openrct2/core/Memory.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C" {
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/platform/platform.h>
|
||||
#include <openrct2/util/util.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/platform/platform.h>
|
||||
#include <openrct2/util/util.h>
|
||||
|
||||
enum {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -21,14 +21,12 @@
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
|
||||
extern "C" {
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
|
||||
#define CHEATS_MONEY_DEFAULT MONEY(10000,00)
|
||||
#define CHEATS_MONEY_INCREMENT_DIV MONEY(5000,00)
|
||||
|
||||
@@ -18,12 +18,10 @@
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/core/Math.hpp>
|
||||
|
||||
extern "C" {
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/world/scenery.h>
|
||||
}
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/world/scenery.h>
|
||||
|
||||
enum WINDOW_CLEAR_SCENERY_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -17,12 +17,10 @@
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C" {
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
}
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
|
||||
enum WINDOW_CUSTOM_CURRENCY_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -17,13 +17,11 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C" {
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/paint/map_element/map_element.h>
|
||||
#include <openrct2/paint/paint.h>
|
||||
#include <openrct2/ride/track_paint.h>
|
||||
}
|
||||
|
||||
enum WINDOW_DEBUG_PAINT_WIDGET_IDX
|
||||
{
|
||||
|
||||
@@ -21,17 +21,14 @@
|
||||
#include <openrct2/core/Util.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/editor.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/world/scenery.h>
|
||||
#include <openrct2/windows/_legacy.h>
|
||||
}
|
||||
#include <openrct2/editor.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/world/scenery.h>
|
||||
#include <openrct2/windows/_legacy.h>
|
||||
|
||||
#pragma region Widgets
|
||||
|
||||
|
||||
@@ -18,17 +18,14 @@
|
||||
#include <openrct2/world/Climate.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/date.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
}
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/date.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
|
||||
#pragma region Widgets
|
||||
|
||||
|
||||
@@ -18,16 +18,13 @@
|
||||
#include <openrct2/core/Math.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/editor.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
}
|
||||
#include <openrct2/editor.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
|
||||
#pragma region Widgets
|
||||
|
||||
|
||||
@@ -17,19 +17,16 @@
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/cheats.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/world/footpath.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
}
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/cheats.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/world/footpath.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
|
||||
enum {
|
||||
PATH_CONSTRUCTION_MODE_LAND,
|
||||
|
||||
@@ -18,13 +18,10 @@
|
||||
#include <openrct2/core/Math.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
}
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
|
||||
enum WINDOW_LAND_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -18,15 +18,12 @@
|
||||
#include <openrct2/core/Math.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
}
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
|
||||
enum WINDOW_WATER_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -17,12 +17,9 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/world/footpath.h>
|
||||
}
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/world/footpath.h>
|
||||
|
||||
rct_widget window_main_widgets[] = {
|
||||
{ WWT_VIEWPORT, 0, 0x0000, -1, 0x0000, -1, 0xFFFFFFFE, 0xFFFF },
|
||||
|
||||
@@ -18,16 +18,13 @@
|
||||
#include <openrct2/core/Math.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/world/mapgen.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
}
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/world/mapgen.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
|
||||
enum {
|
||||
WINDOW_MAPGEN_PAGE_BASE,
|
||||
|
||||
@@ -18,14 +18,11 @@
|
||||
#include <openrct2/network/network.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
|
||||
enum {
|
||||
WINDOW_MULTIPLAYER_PAGE_INFORMATION,
|
||||
|
||||
@@ -18,11 +18,8 @@
|
||||
#include <openrct2/core/Util.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
}
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
|
||||
enum WINDOW_MUSIC_CREDITS_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -18,16 +18,13 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/management/news_item.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/world/sprite.h>
|
||||
#include <openrct2/peep/staff.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
}
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/management/news_item.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/world/sprite.h>
|
||||
#include <openrct2/peep/staff.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
|
||||
enum WINDOW_NEWS_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -18,12 +18,9 @@
|
||||
#include <openrct2/core/Util.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
|
||||
enum {
|
||||
NOTIFICATION_CATEGORY_PARK,
|
||||
|
||||
@@ -33,22 +33,19 @@
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/interface/themes.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/currency.h>
|
||||
#include <openrct2/localisation/date.h>
|
||||
#include <openrct2/localisation/language.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/platform/platform.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
}
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/interface/themes.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/currency.h>
|
||||
#include <openrct2/localisation/date.h>
|
||||
#include <openrct2/localisation/language.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/platform/platform.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
|
||||
enum WINDOW_OPTIONS_PAGE {
|
||||
WINDOW_OPTIONS_PAGE_DISPLAY,
|
||||
|
||||
@@ -19,13 +19,10 @@
|
||||
#include <openrct2/core/Util.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
}
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
|
||||
enum WINDOW_SAVE_PROMPT_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -21,17 +21,14 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/network/http.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/tooltip.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/network/http.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/tooltip.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
|
||||
#define WWIDTH_MIN 500
|
||||
#define WHEIGHT_MIN 300
|
||||
|
||||
@@ -20,14 +20,11 @@
|
||||
#include <openrct2/network/network.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/chat.h>
|
||||
#include <openrct2/interface/themes.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/util/util.h>
|
||||
}
|
||||
#include <openrct2/interface/chat.h>
|
||||
#include <openrct2/interface/themes.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/util/util.h>
|
||||
|
||||
static char _port[7];
|
||||
static char _name[65];
|
||||
|
||||
@@ -18,12 +18,9 @@
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2-ui/input/KeyboardShortcuts.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
}
|
||||
#include <openrct2/interface/window.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
|
||||
#define WW 250
|
||||
#define WH 60
|
||||
|
||||
@@ -18,11 +18,8 @@
|
||||
#include <openrct2-ui/input/KeyboardShortcuts.h>
|
||||
#include "Window.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
|
||||
#define WW 420
|
||||
#define WH 280
|
||||
|
||||
@@ -17,21 +17,18 @@
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/drawing/drawing.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/peep/staff.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/world/footpath.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
}
|
||||
#include <openrct2/drawing/drawing.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/peep/staff.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/util/util.h>
|
||||
#include <openrct2/world/footpath.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
|
||||
enum {
|
||||
WINDOW_STAFF_LIST_TAB_HANDYMEN,
|
||||
|
||||
@@ -17,18 +17,15 @@
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/interface/themes.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
#include <openrct2/util/util.h>
|
||||
}
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
#include <openrct2/interface/themes.h>
|
||||
#include <openrct2/windows/error.h>
|
||||
#include <openrct2/util/util.h>
|
||||
|
||||
enum {
|
||||
WINDOW_THEMES_TAB_SETTINGS,
|
||||
|
||||
@@ -18,13 +18,10 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/intro.h>
|
||||
}
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/intro.h>
|
||||
|
||||
enum WINDOW_TITLE_EXIT_WIDGET_IDX {
|
||||
WIDX_EXIT,
|
||||
|
||||
@@ -16,12 +16,9 @@
|
||||
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
}
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
|
||||
static rct_widget window_title_logo_widgets[] = {
|
||||
{ WIDGETS_END },
|
||||
|
||||
@@ -19,16 +19,13 @@
|
||||
#include <openrct2/ParkImporter.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/editor.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
}
|
||||
#include <openrct2/editor.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/input.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/windows/dropdown.h>
|
||||
|
||||
enum {
|
||||
WIDX_START_NEW_GAME,
|
||||
|
||||
@@ -18,12 +18,9 @@
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/intro.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
}
|
||||
#include <openrct2/intro.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
|
||||
enum WINDOW_TITLE_OPTIONS_WIDGET_IDX {
|
||||
WIDX_OPTIONS,
|
||||
|
||||
@@ -17,12 +17,9 @@
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
}
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
|
||||
enum WINDOW_VIEW_CLIPPING_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -16,15 +16,12 @@
|
||||
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
}
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/game.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/interface/viewport.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
|
||||
#define INITIAL_WIDTH 500
|
||||
#define INITIAL_HEIGHT 350
|
||||
|
||||
@@ -18,12 +18,9 @@
|
||||
#include <openrct2/core/Math.hpp>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
}
|
||||
#include <openrct2/interface/land_tool.h>
|
||||
#include <openrct2/interface/widget.h>
|
||||
#include <openrct2/localisation/localisation.h>
|
||||
|
||||
enum WINDOW_WATER_WIDGET_IDX {
|
||||
WIDX_BACKGROUND,
|
||||
|
||||
@@ -18,10 +18,7 @@
|
||||
|
||||
#include <openrct2/common.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <openrct2/interface/window.h>
|
||||
}
|
||||
#include <openrct2/interface/window.h>
|
||||
|
||||
rct_window * window_about_open();
|
||||
rct_window * window_changelog_open();
|
||||
|
||||
+19
-22
@@ -47,28 +47,25 @@
|
||||
#include "ui/WindowManager.h"
|
||||
#include "Version.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "audio/audio.h"
|
||||
#include "config/Config.h"
|
||||
#include "drawing/lightfx.h"
|
||||
#include "editor.h"
|
||||
#include "game.h"
|
||||
#include "input.h"
|
||||
#include "interface/chat.h"
|
||||
#include "interface/console.h"
|
||||
#include "interface/themes.h"
|
||||
#include "intro.h"
|
||||
#include "localisation/localisation.h"
|
||||
#include "network/http.h"
|
||||
#include "network/network.h"
|
||||
#include "network/twitch.h"
|
||||
#include "object_list.h"
|
||||
#include "platform/platform.h"
|
||||
#include "rct1.h"
|
||||
#include "rct2/interop.h"
|
||||
#include "util/util.h"
|
||||
}
|
||||
#include "audio/audio.h"
|
||||
#include "config/Config.h"
|
||||
#include "drawing/lightfx.h"
|
||||
#include "editor.h"
|
||||
#include "game.h"
|
||||
#include "input.h"
|
||||
#include "interface/chat.h"
|
||||
#include "interface/console.h"
|
||||
#include "interface/themes.h"
|
||||
#include "intro.h"
|
||||
#include "localisation/localisation.h"
|
||||
#include "network/http.h"
|
||||
#include "network/network.h"
|
||||
#include "network/twitch.h"
|
||||
#include "object_list.h"
|
||||
#include "platform/platform.h"
|
||||
#include "rct1.h"
|
||||
#include "rct2/interop.h"
|
||||
#include "util/util.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Audio;
|
||||
|
||||
@@ -18,15 +18,8 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include "interface/window.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "interface/window.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
typedef struct CursorState
|
||||
{
|
||||
|
||||
@@ -19,11 +19,8 @@
|
||||
#include "FileClassifier.h"
|
||||
#include "rct12/SawyerChunkReader.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "scenario/scenario.h"
|
||||
#include "util/sawyercoding.h"
|
||||
}
|
||||
#include "scenario/scenario.h"
|
||||
#include "util/sawyercoding.h"
|
||||
|
||||
static bool TryClassifyAsS6(IStream * stream, ClassifiedFileInfo * result);
|
||||
static bool TryClassifyAsS4(IStream * stream, ClassifiedFileInfo * result);
|
||||
|
||||
@@ -18,14 +18,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "drawing/drawing.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#include "drawing/drawing.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
|
||||
@@ -19,11 +19,8 @@
|
||||
#include "core/FileStream.hpp"
|
||||
#include "OpenRCT2.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "audio/audio.h"
|
||||
#include "platform/platform.h"
|
||||
}
|
||||
#include "audio/audio.h"
|
||||
#include "platform/platform.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
@@ -18,14 +18,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "object.h"
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#include "object.h"
|
||||
|
||||
typedef enum PARK_LOAD_ERROR
|
||||
{
|
||||
|
||||
@@ -24,10 +24,7 @@
|
||||
#include "PlatformEnvironment.h"
|
||||
#include "Version.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "platform/platform.h"
|
||||
}
|
||||
#include "platform/platform.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <string>
|
||||
#include "common.h"
|
||||
|
||||
@@ -81,3 +83,5 @@ namespace OpenRCT2
|
||||
IPlatformEnvironment * CreatePlatformEnvironment(DIRBASE_VALUES basePaths);
|
||||
IPlatformEnvironment * CreatePlatformEnvironment();
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -22,6 +22,7 @@
|
||||
#include OPENRCT2_BUILD_INFO_HEADER
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
const char gVersionInfoFull[] =
|
||||
OPENRCT2_NAME ", v" OPENRCT2_VERSION
|
||||
#ifdef OPENRCT2_BRANCH
|
||||
@@ -37,3 +38,4 @@ const char gVersionInfoFull[] =
|
||||
" (DEBUG)"
|
||||
#endif
|
||||
;
|
||||
}
|
||||
@@ -29,14 +29,11 @@
|
||||
#include "AudioContext.h"
|
||||
#include "AudioMixer.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../interface/viewport.h"
|
||||
#include "../intro.h"
|
||||
#include "../localisation/language.h"
|
||||
#include "../ride/ride.h"
|
||||
#include "../util/util.h"
|
||||
}
|
||||
#include "../interface/viewport.h"
|
||||
#include "../intro.h"
|
||||
#include "../localisation/language.h"
|
||||
#include "../ride/ride.h"
|
||||
#include "../util/util.h"
|
||||
|
||||
using namespace OpenRCT2::Audio;
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
namespace OpenRCT2 { namespace Audio
|
||||
{
|
||||
interface IAudioSource;
|
||||
@@ -74,3 +76,5 @@ namespace OpenRCT2 { namespace Audio
|
||||
virtual size_t Read(void * dst, size_t len) abstract;
|
||||
};
|
||||
} }
|
||||
|
||||
#endif
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "../common.h"
|
||||
@@ -64,3 +66,5 @@ namespace OpenRCT2
|
||||
IAudioContext * CreateDummyAudioContext();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
#include "AudioMixer.h"
|
||||
|
||||
@@ -38,3 +40,5 @@ namespace OpenRCT2 { namespace Audio
|
||||
IAudioSource * CreateNull();
|
||||
}
|
||||
} }
|
||||
|
||||
#endif
|
||||
@@ -19,6 +19,10 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern bool gCheatsSandboxMode;
|
||||
extern bool gCheatsDisableClearanceChecks;
|
||||
extern bool gCheatsDisableSupportLimits;
|
||||
@@ -125,4 +129,8 @@ void cheats_reset();
|
||||
|
||||
const char* cheats_get_cheat_string(int cheat, int edx, int edi);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -16,11 +16,8 @@
|
||||
|
||||
#include "../core/Guard.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../platform/platform.h"
|
||||
#include "../OpenRCT2.h"
|
||||
}
|
||||
#include "../platform/platform.h"
|
||||
#include "../OpenRCT2.h"
|
||||
|
||||
#include "../core/Console.hpp"
|
||||
#include "../core/Math.hpp"
|
||||
|
||||
@@ -16,11 +16,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../common.h"
|
||||
#include "../cmdline_sprite.h"
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
#include "../cmdline_sprite.h"
|
||||
|
||||
/**
|
||||
* Class for enumerating and retrieving values for a set of command line arguments.
|
||||
@@ -113,3 +112,5 @@ namespace CommandLine
|
||||
exitcode_t HandleCommandConvert(CommandLineArgEnumerator * enumerator);
|
||||
exitcode_t HandleCommandUri(CommandLineArgEnumerator * enumerator);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -25,12 +25,9 @@
|
||||
#include "../rct2/S6Exporter.h"
|
||||
#include "CommandLine.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../game.h"
|
||||
#include "../interface/window.h"
|
||||
#include "../OpenRCT2.h"
|
||||
}
|
||||
#include "../game.h"
|
||||
#include "../interface/window.h"
|
||||
#include "../OpenRCT2.h"
|
||||
|
||||
static void WriteConvertFromAndToMessage(uint32 sourceFileType, uint32 destinationFileType);
|
||||
static const utf8 * GetFileTypeFriendlyName(uint32 fileType);
|
||||
|
||||
@@ -18,13 +18,10 @@
|
||||
|
||||
#include "../core/Guard.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../config/Config.h"
|
||||
#include "../platform/crash.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "../localisation/language.h"
|
||||
}
|
||||
#include "../config/Config.h"
|
||||
#include "../platform/crash.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "../localisation/language.h"
|
||||
|
||||
#include "../core/Console.hpp"
|
||||
#include "../core/Memory.hpp"
|
||||
|
||||
@@ -136,7 +136,13 @@ typedef uint8 colour_t;
|
||||
#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
|
||||
|
||||
#if !((defined (_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 700))
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
char *strndup(const char *src, size_t size);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif // !(POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700)
|
||||
|
||||
// BSD and macOS have MAP_ANON instead of MAP_ANONYMOUS
|
||||
|
||||
@@ -32,14 +32,11 @@
|
||||
#include "IniReader.hpp"
|
||||
#include "IniWriter.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../localisation/currency.h"
|
||||
#include "../localisation/date.h"
|
||||
#include "../localisation/language.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "../scenario/scenario.h"
|
||||
}
|
||||
#include "../localisation/currency.h"
|
||||
#include "../localisation/date.h"
|
||||
#include "../localisation/language.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "../scenario/scenario.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Ui;
|
||||
|
||||
@@ -18,10 +18,7 @@
|
||||
#include "../core/FileStream.hpp"
|
||||
#include "IniWriter.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../platform/platform.h"
|
||||
}
|
||||
#include "../platform/platform.h"
|
||||
|
||||
class IniWriter final : public IIniWriter
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../platform/platform.h"
|
||||
}
|
||||
#include "../platform/platform.h"
|
||||
|
||||
#include "Console.hpp"
|
||||
|
||||
|
||||
@@ -26,11 +26,8 @@
|
||||
#include "FileStream.hpp"
|
||||
#include "String.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../platform/platform.h"
|
||||
#include "../util/util.h"
|
||||
}
|
||||
#include "../platform/platform.h"
|
||||
#include "../util/util.h"
|
||||
|
||||
namespace File
|
||||
{
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "../common.h"
|
||||
@@ -31,3 +33,5 @@ namespace File
|
||||
std::vector<std::string> ReadAllLines(const std::string &path);
|
||||
uint64 GetLastModified(const std::string &path);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -41,10 +41,7 @@
|
||||
#include "Path.hpp"
|
||||
#include "String.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../platform/platform.h"
|
||||
}
|
||||
#include "../platform/platform.h"
|
||||
|
||||
enum class DIRECTORY_CHILD_TYPE
|
||||
{
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <string>
|
||||
#include "../common.h"
|
||||
|
||||
@@ -65,3 +67,5 @@ namespace Path
|
||||
*/
|
||||
void QueryDirectory(QueryDirectoryResult * result, const std::string &pattern);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -21,10 +21,7 @@
|
||||
#include "Math.hpp"
|
||||
#include "String.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../localisation/language.h"
|
||||
}
|
||||
#include "../localisation/language.h"
|
||||
|
||||
enum
|
||||
{
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
#include "IStream.hpp"
|
||||
|
||||
@@ -69,3 +71,5 @@ public:
|
||||
private:
|
||||
void EnsureCapacity(size_t capacity);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
template<typename T>
|
||||
@@ -59,3 +61,5 @@ private:
|
||||
T _value;
|
||||
bool _hasValue;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -18,12 +18,9 @@
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../platform/platform.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../util/util.h"
|
||||
}
|
||||
#include "../platform/platform.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../util/util.h"
|
||||
|
||||
#include "File.h"
|
||||
#include "Math.hpp"
|
||||
|
||||
@@ -18,11 +18,8 @@
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../util/util.h"
|
||||
}
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../util/util.h"
|
||||
|
||||
#include "Math.hpp"
|
||||
#include "Memory.hpp"
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
/**
|
||||
@@ -55,3 +57,5 @@ namespace Zip
|
||||
IZipArchive * Open(const utf8 * path, ZIP_ACCESS zipAccess);
|
||||
IZipArchive * TryOpen(const utf8 * path, ZIP_ACCESS zipAccess);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -75,12 +75,12 @@ typedef enum {
|
||||
#define DEBUG_LEVEL_1 0
|
||||
#endif // defined(DEBUG)
|
||||
|
||||
extern bool _log_levels[DIAGNOSTIC_LEVEL_COUNT];
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
extern bool _log_levels[DIAGNOSTIC_LEVEL_COUNT];
|
||||
|
||||
void diagnostic_log(DiagnosticLevel diagnosticLevel, const char *format, ...);
|
||||
void diagnostic_log_with_location(DiagnosticLevel diagnosticLevel, const char *file, const char *function, sint32 line, const char *format, ...);
|
||||
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#pragma warning(disable : 4127) // conditional expression is constant
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "drawing.h"
|
||||
}
|
||||
#include "drawing.h"
|
||||
|
||||
template<sint32 image_type, sint32 zoom_level>
|
||||
static void FASTCALL DrawRLESprite2(const uint8* RESTRICT source_bits_pointer,
|
||||
|
||||
@@ -16,12 +16,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "drawing.h"
|
||||
}
|
||||
#include "drawing.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Drawing
|
||||
{
|
||||
@@ -43,3 +42,5 @@ namespace OpenRCT2 { namespace Drawing
|
||||
virtual void DrawGlyph(uint32 image, sint32 x, sint32 y, uint8 * palette) abstract;
|
||||
};
|
||||
} }
|
||||
|
||||
#endif
|
||||
@@ -21,10 +21,7 @@
|
||||
#include "../core/Memory.hpp"
|
||||
#include "../OpenRCT2.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "drawing.h"
|
||||
}
|
||||
#include "drawing.h"
|
||||
|
||||
constexpr uint32 BASE_IMAGE_ID = 29294;
|
||||
constexpr uint32 MAX_IMAGES = 262144;
|
||||
|
||||
@@ -25,13 +25,10 @@
|
||||
#include "IDrawingEngine.h"
|
||||
#include "NewDrawing.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../config/Config.h"
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../localisation/string_ids.h"
|
||||
#include "../platform/platform.h"
|
||||
}
|
||||
#include "../config/Config.h"
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../localisation/string_ids.h"
|
||||
#include "../platform/platform.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
@@ -16,13 +16,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "drawing.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "drawing.h"
|
||||
|
||||
extern rct_string_id DrawingEngineStringIds[3];
|
||||
|
||||
sint32 drawing_engine_get_type();
|
||||
|
||||
@@ -14,13 +14,10 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../interface/window.h"
|
||||
#include "../world/Climate.h"
|
||||
#include "drawing.h"
|
||||
#include "../config/Config.h"
|
||||
}
|
||||
#include "../interface/window.h"
|
||||
#include "../world/Climate.h"
|
||||
#include "drawing.h"
|
||||
#include "../config/Config.h"
|
||||
|
||||
#include "IDrawingEngine.h"
|
||||
#include "Rain.h"
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
namespace OpenRCT2 { namespace Drawing
|
||||
@@ -24,3 +26,5 @@ namespace OpenRCT2 { namespace Drawing
|
||||
} }
|
||||
|
||||
void DrawRain(rct_drawpixelinfo * dpi, OpenRCT2::Drawing::IRainDrawer * rainDrawer);
|
||||
|
||||
#endif
|
||||
@@ -26,16 +26,13 @@
|
||||
#include "Rain.h"
|
||||
#include "X8DrawingEngine.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../game.h"
|
||||
#include "../interface/viewport.h"
|
||||
#include "../interface/window.h"
|
||||
#include "../intro.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "drawing.h"
|
||||
#include "lightfx.h"
|
||||
}
|
||||
#include "../game.h"
|
||||
#include "../interface/viewport.h"
|
||||
#include "../interface/window.h"
|
||||
#include "../intro.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "drawing.h"
|
||||
#include "lightfx.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
using namespace OpenRCT2::Drawing;
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "../common.h"
|
||||
#include "IDrawingContext.h"
|
||||
#include "IDrawingEngine.h"
|
||||
@@ -151,3 +153,5 @@ namespace OpenRCT2
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -256,6 +256,10 @@ typedef struct rct_size16
|
||||
|
||||
#define MAX_SCROLLING_TEXT_MODES 38
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern sint16 gCurrentFontSpriteBase;
|
||||
extern uint16 gCurrentFontFlags;
|
||||
|
||||
@@ -369,6 +373,10 @@ sint32 scrolling_text_setup(paint_session * session, rct_string_id stringId, uin
|
||||
|
||||
rct_size16 FASTCALL gfx_get_sprite_size(uint32 image_id);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "NewDrawing.h"
|
||||
|
||||
#endif
|
||||
@@ -55,9 +55,20 @@ typedef struct TTFFontSetDescriptor {
|
||||
TTFFontDescriptor size[FONT_SIZE_COUNT];
|
||||
} TTFFontSetDescriptor;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern TTFFontSetDescriptor *gCurrentTTFFontSet;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NO_TTF
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void font_sprite_initialise_characters();
|
||||
sint32 font_sprite_get_codepoint_offset(sint32 codepoint);
|
||||
sint32 font_sprite_get_codepoint_width(sint32 fontSpriteBase, sint32 codepoint);
|
||||
@@ -69,4 +80,8 @@ bool font_supports_string_sprite(const utf8 *text);
|
||||
bool font_supports_string_ttf(const utf8 *text, sint32 fontSize);
|
||||
bool font_supports_string(const utf8 *text, sint32 fontSize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -45,6 +45,10 @@ enum LIGHTFX_LIGHT_QUALIFIER {
|
||||
LIGHTFX_LIGHT_QUALIFIER_MAP = 0x2
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void lightfx_init();
|
||||
|
||||
void lightfx_update_buffers(rct_drawpixelinfo*);
|
||||
@@ -75,6 +79,10 @@ void lightfx_render_to_texture(
|
||||
uint32 * palette,
|
||||
uint32 * lightPalette);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __ENABLE_LIGHTFX__
|
||||
|
||||
#endif
|
||||
@@ -18,9 +18,17 @@
|
||||
|
||||
#include "font.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
bool ttf_initialise();
|
||||
void ttf_dispose();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef NO_TTF
|
||||
|
||||
typedef struct TTFSurface {
|
||||
@@ -30,6 +38,10 @@ typedef struct TTFSurface {
|
||||
sint32 pitch;
|
||||
} TTFSurface;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
TTFFontDescriptor * ttf_get_font_from_sprite_base(uint16 spriteBase);
|
||||
TTFSurface * ttf_surface_cache_get_or_add(TTF_Font * font, const utf8 * text);
|
||||
uint32 ttf_getwidth_cache_get_or_add(TTF_Font * font, const utf8 * text);
|
||||
@@ -45,4 +57,8 @@ TTFSurface * TTF_RenderUTF8_Solid(TTF_Font *font, const char *text, uint32 colou
|
||||
void TTF_CloseFont(TTF_Font *font);
|
||||
void TTF_Quit(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // NO_TTF
|
||||
@@ -55,6 +55,10 @@ enum
|
||||
EDIT_SCENARIOOPTIONS_SETGUESTGENERATIONHIGHERDIFFICULTLEVEL,
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern uint8 * gEditorSelectedObjects[OBJECT_ENTRY_GROUP_COUNT];
|
||||
|
||||
void editor_load();
|
||||
@@ -72,4 +76,8 @@ bool editor_check_object_group_at_least_one_selected(sint32 objectType);
|
||||
|
||||
void game_command_edit_scenario_options(sint32* eax, sint32* ebx, sint32* ecx, sint32* edx, sint32* esi, sint32* edi, sint32* ebp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -124,6 +124,10 @@ typedef void (GAME_COMMAND_POINTER)(sint32* eax, sint32* ebx, sint32* ecx, sint3
|
||||
|
||||
typedef void (GAME_COMMAND_CALLBACK_POINTER)(sint32 eax, sint32 ebx, sint32 ecx, sint32 edx, sint32 esi, sint32 edi, sint32 ebp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern GAME_COMMAND_CALLBACK_POINTER* game_command_callback;
|
||||
sint32 game_command_callback_get_index(GAME_COMMAND_CALLBACK_POINTER* callback);
|
||||
GAME_COMMAND_CALLBACK_POINTER* game_command_callback_get_callback(sint32 index);
|
||||
@@ -189,4 +193,8 @@ void game_convert_strings_to_rct2(rct_s6_data *s6);
|
||||
void game_fix_save_vars();
|
||||
void game_init_all(sint32 mapSize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -76,6 +76,10 @@ typedef struct widget_ref {
|
||||
rct_widgetindex widget_index;
|
||||
} widget_ref;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern uint8 gInputPlaceObjectModifier;
|
||||
|
||||
extern sint32 gInputDragLastX;
|
||||
@@ -115,4 +119,8 @@ void reset_tooltip_not_shown();
|
||||
|
||||
void input_reset_place_obj_modifier();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -20,12 +20,9 @@
|
||||
#include "../localisation/LanguagePack.h"
|
||||
#include "Fonts.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../drawing/ttf.h"
|
||||
#include "../localisation/language.h"
|
||||
}
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../drawing/ttf.h"
|
||||
#include "../localisation/language.h"
|
||||
|
||||
#ifndef NO_TTF
|
||||
static TTFFontSetDescriptor TTFFontMSGothic = { {
|
||||
|
||||
@@ -17,16 +17,8 @@
|
||||
#ifndef OPENRCT2_FONTS_H
|
||||
#define OPENRCT2_FONTS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "../drawing/font.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
void TryLoadFonts();
|
||||
|
||||
#endif // OPENRCT2_FONTS_H
|
||||
@@ -23,17 +23,14 @@
|
||||
#include "../OpenRCT2.h"
|
||||
#include "Screenshot.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../game.h"
|
||||
#include "../intro.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "../util/util.h"
|
||||
#include "../windows/error.h"
|
||||
#include "viewport.h"
|
||||
}
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../game.h"
|
||||
#include "../intro.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "../util/util.h"
|
||||
#include "../windows/error.h"
|
||||
#include "viewport.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
|
||||
@@ -16,12 +16,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../drawing/drawing.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
#include "../drawing/drawing.h"
|
||||
|
||||
extern uint8 gScreenshotCountdown;
|
||||
|
||||
void screenshot_check();
|
||||
|
||||
@@ -19,14 +19,11 @@
|
||||
#include <vector>
|
||||
#include <jansson.h>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../common.h"
|
||||
#include "../config/Config.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "themes.h"
|
||||
#include "window.h"
|
||||
}
|
||||
#include "../common.h"
|
||||
#include "../config/Config.h"
|
||||
#include "../platform/platform.h"
|
||||
#include "themes.h"
|
||||
#include "window.h"
|
||||
|
||||
#include "../core/Json.hpp"
|
||||
#include "../core/Math.hpp"
|
||||
|
||||
@@ -32,6 +32,10 @@ typedef enum CHAT_INPUT
|
||||
CHAT_INPUT_CLOSE,
|
||||
} CHAT_INPUT;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern bool gChatOpen;
|
||||
|
||||
void chat_open();
|
||||
@@ -48,4 +52,8 @@ void chat_input(CHAT_INPUT input);
|
||||
sint32 chat_string_wrapped_get_height(void *args, sint32 width);
|
||||
sint32 chat_history_draw_string(rct_drawpixelinfo *dpi, void *args, sint32 x, sint32 y, sint32 width);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loaded 100 of 280 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user