From 12f0c2d660b1d6532b14362601dd7c290582bfb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 10 Mar 2017 15:36:29 +0100 Subject: [PATCH 001/670] Fix staff hiring check --- src/openrct2/network/network.h | 2 +- src/openrct2/peep/staff.c | 243 +++++++++++++++++---------------- 2 files changed, 124 insertions(+), 121 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 7072911b37..de14de2621 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -55,7 +55,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "7" +#define NETWORK_STREAM_VERSION "8" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/peep/staff.c b/src/openrct2/peep/staff.c index fffb4c932e..3ae3ee7b1d 100644 --- a/src/openrct2/peep/staff.c +++ b/src/openrct2/peep/staff.c @@ -197,142 +197,145 @@ static money32 staff_hire_new_staff_member(uint8 staff_type, uint8 flags, sint16 return MONEY32_UNDEFINED; } - sint32 newStaffId = i; - const rct_sprite_bounds *spriteBounds; - rct_peep *newPeep = &(create_sprite(flags)->peep); + if (!(flags & GAME_COMMAND_FLAG_APPLY)) + { + sint32 newStaffId = i; + const rct_sprite_bounds *spriteBounds; + rct_peep *newPeep = &(create_sprite(flags)->peep); - if (newPeep == NULL) { - gGameCommandErrorText = STR_TOO_MANY_PEOPLE_IN_GAME; - return MONEY32_UNDEFINED; - } + if (newPeep == NULL) { + gGameCommandErrorText = STR_TOO_MANY_PEOPLE_IN_GAME; + return MONEY32_UNDEFINED; + } - if (flags == 0) { - sprite_remove((rct_sprite *)newPeep); - } else { - move_sprite_to_list((rct_sprite *)newPeep, SPRITE_LIST_PEEP * 2); + if (flags == 0) { + sprite_remove((rct_sprite *)newPeep); + } else { + move_sprite_to_list((rct_sprite *)newPeep, SPRITE_LIST_PEEP * 2); - newPeep->sprite_identifier = 1; - newPeep->window_invalidate_flags = 0; - newPeep->action = PEEP_ACTION_NONE_2; - newPeep->special_sprite = 0; - newPeep->action_sprite_image_offset = 0; - newPeep->no_action_frame_no = 0; - newPeep->action_sprite_type = 0; - newPeep->var_C4 = 0; - newPeep->type = PEEP_TYPE_STAFF; - newPeep->outside_of_park = 0; - newPeep->peep_flags = 0; - newPeep->paid_to_enter = 0; - newPeep->paid_on_rides = 0; - newPeep->paid_on_food = 0; - newPeep->paid_on_souvenirs = 0; + newPeep->sprite_identifier = 1; + newPeep->window_invalidate_flags = 0; + newPeep->action = PEEP_ACTION_NONE_2; + newPeep->special_sprite = 0; + newPeep->action_sprite_image_offset = 0; + newPeep->no_action_frame_no = 0; + newPeep->action_sprite_type = 0; + newPeep->var_C4 = 0; + newPeep->type = PEEP_TYPE_STAFF; + newPeep->outside_of_park = 0; + newPeep->peep_flags = 0; + newPeep->paid_to_enter = 0; + newPeep->paid_on_rides = 0; + newPeep->paid_on_food = 0; + newPeep->paid_on_souvenirs = 0; - if (staff_type == STAFF_TYPE_HANDYMAN) - newPeep->staff_orders = STAFF_ORDERS_SWEEPING | - STAFF_ORDERS_WATER_FLOWERS | - STAFF_ORDERS_EMPTY_BINS; - else if (staff_type == STAFF_TYPE_MECHANIC) - newPeep->staff_orders = STAFF_ORDERS_INSPECT_RIDES | - STAFF_ORDERS_FIX_RIDES; - else - newPeep->staff_orders = 0; + if (staff_type == STAFF_TYPE_HANDYMAN) + newPeep->staff_orders = STAFF_ORDERS_SWEEPING | + STAFF_ORDERS_WATER_FLOWERS | + STAFF_ORDERS_EMPTY_BINS; + else if (staff_type == STAFF_TYPE_MECHANIC) + newPeep->staff_orders = STAFF_ORDERS_INSPECT_RIDES | + STAFF_ORDERS_FIX_RIDES; + else + newPeep->staff_orders = 0; - uint16 idSearchSpriteIndex; - rct_peep *idSearchPeep; + uint16 idSearchSpriteIndex; + rct_peep *idSearchPeep; - // We search for the first available id for a given staff type - uint32 newStaffIndex = 0; - for (;;) { - bool found = false; - ++newStaffIndex; + // We search for the first available id for a given staff type + uint32 newStaffIndex = 0; + for (;;) { + bool found = false; + ++newStaffIndex; - FOR_ALL_STAFF(idSearchSpriteIndex, idSearchPeep) { - if (idSearchPeep->staff_type != staff_type) - continue; + FOR_ALL_STAFF(idSearchSpriteIndex, idSearchPeep) { + if (idSearchPeep->staff_type != staff_type) + continue; - if (idSearchPeep->id == newStaffIndex) { - found = true; - break; + if (idSearchPeep->id == newStaffIndex) { + found = true; + break; + } } + + if (!found) + break; } - if (!found) - break; + newPeep->id = newStaffIndex; + newPeep->staff_type = staff_type; + + static const rct_string_id staffNames[] = { + STR_HANDYMAN_X, + STR_MECHANIC_X, + STR_SECURITY_GUARD_X, + STR_ENTERTAINER_X, + }; + + /* rct2: 0x009929FC */ + static const uint8 spriteTypes[] = { + PEEP_SPRITE_TYPE_HANDYMAN, + PEEP_SPRITE_TYPE_MECHANIC, + PEEP_SPRITE_TYPE_SECURITY, + PEEP_SPRITE_TYPE_ENTERTAINER_PANDA, + }; + + uint8 sprite_type = spriteTypes[staff_type]; + if (staff_type == STAFF_TYPE_ENTERTAINER) + { + sprite_type = PEEP_SPRITE_TYPE_ENTERTAINER_PANDA + entertainerType; + } + newPeep->name_string_idx = staffNames[staff_type]; + newPeep->sprite_type = sprite_type; + + spriteBounds = g_peep_animation_entries[sprite_type].sprite_bounds; + newPeep->sprite_width = spriteBounds->sprite_width; + newPeep->sprite_height_negative = spriteBounds->sprite_height_negative; + newPeep->sprite_height_positive = spriteBounds->sprite_height_positive; + + if (autoposition) { + staff_autoposition_new_staff_member(newPeep); + } else { + newPeep->state = PEEP_STATE_PICKED; + + sprite_move(newPeep->x, newPeep->y, newPeep->z, (rct_sprite *)newPeep); + invalidate_sprite_2((rct_sprite *)newPeep); + } + + newPeep->time_in_park = gDateMonthsElapsed; + newPeep->pathfind_goal.x = 0xFF; + newPeep->pathfind_goal.y = 0xFF; + newPeep->pathfind_goal.z = 0xFF; + newPeep->pathfind_goal.direction = 0xFF; + + uint8 colour = staff_get_colour(staff_type); + newPeep->tshirt_colour = colour; + newPeep->trousers_colour = colour; + + // Staff energy determines their walking speed + newPeep->energy = 0x60; + newPeep->energy_growth_rate = 0x60; + newPeep->var_E2 = 0; + + peep_update_name_sort(newPeep); + + newPeep->staff_id = newStaffId; + + gStaffModes[newStaffId] = STAFF_MODE_WALK; + + for (i = 0; i < 128; i++) { + uint32 *addr = (uint32*)((uintptr_t)gStaffPatrolAreas + (newStaffId << 9) + i * 4); + *addr = 0; + } } - newPeep->id = newStaffIndex; - newPeep->staff_type = staff_type; - - static const rct_string_id staffNames[] = { - STR_HANDYMAN_X, - STR_MECHANIC_X, - STR_SECURITY_GUARD_X, - STR_ENTERTAINER_X, - }; - - /* rct2: 0x009929FC */ - static const uint8 spriteTypes[] = { - PEEP_SPRITE_TYPE_HANDYMAN, - PEEP_SPRITE_TYPE_MECHANIC, - PEEP_SPRITE_TYPE_SECURITY, - PEEP_SPRITE_TYPE_ENTERTAINER_PANDA, - }; - - uint8 sprite_type = spriteTypes[staff_type]; - if (staff_type == STAFF_TYPE_ENTERTAINER) - { - sprite_type = PEEP_SPRITE_TYPE_ENTERTAINER_PANDA + entertainerType; - } - newPeep->name_string_idx = staffNames[staff_type]; - newPeep->sprite_type = sprite_type; - - spriteBounds = g_peep_animation_entries[sprite_type].sprite_bounds; - newPeep->sprite_width = spriteBounds->sprite_width; - newPeep->sprite_height_negative = spriteBounds->sprite_height_negative; - newPeep->sprite_height_positive = spriteBounds->sprite_height_positive; - - if (autoposition) { - staff_autoposition_new_staff_member(newPeep); - } else { - newPeep->state = PEEP_STATE_PICKED; - - sprite_move(newPeep->x, newPeep->y, newPeep->z, (rct_sprite *)newPeep); - invalidate_sprite_2((rct_sprite *)newPeep); + if ((staff_type == STAFF_TYPE_HANDYMAN) && gConfigGeneral.handymen_mow_default) { + uint8 new_orders = newPeep->staff_orders | STAFF_ORDERS_MOWING; + game_do_command(newPeep->x, ((sint32)new_orders << 8) | 1, newPeep->y, newPeep->sprite_index, GAME_COMMAND_SET_STAFF_ORDER, 0, 0); } - newPeep->time_in_park = gDateMonthsElapsed; - newPeep->pathfind_goal.x = 0xFF; - newPeep->pathfind_goal.y = 0xFF; - newPeep->pathfind_goal.z = 0xFF; - newPeep->pathfind_goal.direction = 0xFF; - - uint8 colour = staff_get_colour(staff_type); - newPeep->tshirt_colour = colour; - newPeep->trousers_colour = colour; - - // Staff energy determines their walking speed - newPeep->energy = 0x60; - newPeep->energy_growth_rate = 0x60; - newPeep->var_E2 = 0; - - peep_update_name_sort(newPeep); - - newPeep->staff_id = newStaffId; - - gStaffModes[newStaffId] = STAFF_MODE_WALK; - - for (i = 0; i < 128; i++) { - uint32 *addr = (uint32*)((uintptr_t)gStaffPatrolAreas + (newStaffId << 9) + i * 4); - *addr = 0; - } + *newPeep_sprite_index = newPeep->sprite_index; } - - if ((staff_type == STAFF_TYPE_HANDYMAN) && gConfigGeneral.handymen_mow_default) { - uint8 new_orders = newPeep->staff_orders | STAFF_ORDERS_MOWING; - game_do_command(newPeep->x, ((sint32)new_orders << 8) | 1, newPeep->y, newPeep->sprite_index, GAME_COMMAND_SET_STAFF_ORDER, 0, 0); - } - - *newPeep_sprite_index = newPeep->sprite_index; return 0; } From ac593b9daf5cddcba92638f2605d6e276181dfbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 3 May 2017 23:43:16 +0200 Subject: [PATCH 002/670] Start v0.0.8 --- .github/ISSUE_TEMPLATE.md | 2 +- .travis.yml | 2 +- appveyor.yml | 2 +- debian/changelog | 2 +- distribution/changelog.txt | 3 +++ distribution/macos/Info.plist | 2 +- distribution/readme.txt | 2 +- openrct2.proj | 2 +- src/openrct2/Version.h | 2 +- src/openrct2/network/network.h | 2 +- 10 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 92b3aebcf0..d2af6e765a 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -2,7 +2,7 @@ Fill in the placeholders below. Delete any headings and placeholders that you do not fill in. --> **OS:** [e.g. Windows 10] -**Version:** [e.g. 0.0.7] +**Version:** [e.g. 0.0.8] **Commit/Build:** [e.g. 426e106] diff --git a/.travis.yml b/.travis.yml index 70fa2c9813..3bf45ad661 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ sudo: required dist: trusty env: global: - - OPENRCT2_VERSION="0.0.7" + - OPENRCT2_VERSION="0.0.8" matrix: include: diff --git a/appveyor.yml b/appveyor.yml index e534c84299..dda8a9790a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 0.0.7.{build} +version: 0.0.8.{build} image: - Visual Studio 2015 # - Visual Studio 2017 RC diff --git a/debian/changelog b/debian/changelog index 0badcb2e54..43a69382af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -openrct2 (0.0.7-master-1) unstable; urgency=medium +openrct2 (0.0.8-develop-1) unstable; urgency=medium * Sixth release. (Closes: #XXXXXX) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b08dca67b2..6bf8e1d283 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,3 +1,6 @@ +0.0.8 (in development) +------------------------------------------------------------------------ + 0.0.7 (2017-05-03) ------------------------------------------------------------------------ - Feature: [#1730] Keyboard shortcuts for track construction. diff --git a/distribution/macos/Info.plist b/distribution/macos/Info.plist index 76533f6cbe..91205dbe58 100644 --- a/distribution/macos/Info.plist +++ b/distribution/macos/Info.plist @@ -13,7 +13,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.0.7 + 0.0.8 CFBundleSignature ORCT LSMinimumSystemVersion diff --git a/distribution/readme.txt b/distribution/readme.txt index d9cb502e51..bc29671681 100644 --- a/distribution/readme.txt +++ b/distribution/readme.txt @@ -1,5 +1,5 @@ Last updated: 2017-05-03 -Release version: 0.0.7.0 +Release version: 0.0.8.0 ------------------------------------------------------------------------ diff --git a/openrct2.proj b/openrct2.proj index 36c51bf8d4..fa6652969b 100644 --- a/openrct2.proj +++ b/openrct2.proj @@ -19,7 +19,7 @@ true $(GIT_COMMIT_SHA1.Substring(0, 7)) - 0.0.7 + 0.0.8 -$(GIT_BRANCH)-$(GIT_COMMIT_SHA1_SHORT) 11 diff --git a/src/openrct2/Version.h b/src/openrct2/Version.h index acbea7c594..4906830b11 100644 --- a/src/openrct2/Version.h +++ b/src/openrct2/Version.h @@ -19,7 +19,7 @@ #include "common.h" #define OPENRCT2_NAME "OpenRCT2" -#define OPENRCT2_VERSION "0.0.7" +#define OPENRCT2_VERSION "0.0.8" #if defined(__amd64__) || defined(_M_AMD64) #define OPENRCT2_ARCHITECTURE "x86-64" diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 9c4f775bd3..5b3b46e10a 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "22" +#define NETWORK_STREAM_VERSION "0" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus From f8cb551721e846a765c26c4298fbf0fcb3931d49 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Thu, 4 May 2017 04:00:18 +0000 Subject: [PATCH 003/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/it-IT.txt | 3 +++ data/language/nl-NL.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/data/language/it-IT.txt b/data/language/it-IT.txt index 8689b0db82..c41bcab30e 100644 --- a/data/language/it-IT.txt +++ b/data/language/it-IT.txt @@ -4367,6 +4367,9 @@ STR_6052 :La heightmap è troppo grande e sarà tagliata STR_6053 :La heightmap non può essere normalizzata STR_6054 :Sono supportate solo le bitmap a 24 bit STR_6055 :File di heightmap di OpenRCT2 +STR_6056 :{SMALLFONT}{BLACK}Muto +STR_6057 :{SMALLFONT}{BLACK}Mostra un bottone separato per l'opzione Muto nella barra degli strumenti +STR_6058 :Muto ############# diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index 436d4dc978..61d5a6ebe1 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -4356,6 +4356,9 @@ STR_6052 :De hoogtekaart is te groot en zal worden bijgesneden STR_6053 :De hoogtekaart kan niet worden genormaliseerd STR_6054 :Alleen 24-bit bitmaps worden ondersteund STR_6055 :Hoogtekaart voor OpenRCT2 +STR_6056 :{SMALLFONT}{BLACK}Dempen +STR_6057 :{SMALLFONT}{BLACK}Toon een knop in de werkbalk om het geluid te dempen +STR_6058 :Dempen ############# # Scenarios # From 73fb132e414d0df4e6fbc1a158fda06aecf25971 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 26 Mar 2017 22:30:23 +0100 Subject: [PATCH 004/670] Replace some SDL functions with our own --- src/openrct2/core/Diagnostics.cpp | 6 ++-- src/openrct2/game.c | 4 +-- src/openrct2/interface/chat.c | 5 +-- src/openrct2/network/NetworkConnection.cpp | 6 ++-- .../network/NetworkServerAdvertiser.cpp | 8 ++--- src/openrct2/network/NetworkTypes.h | 7 ++-- src/openrct2/network/network.cpp | 32 +++++++++---------- src/openrct2/network/twitch.cpp | 5 +-- src/openrct2/platform/crash.cpp | 3 +- src/openrct2/platform/platform.h | 1 + src/openrct2/platform/shared.c | 17 +++++++++- src/openrct2/rct2.c | 2 +- src/openrct2/scenario/scenario.c | 2 +- src/openrct2/util/sawyercoding.h | 1 - src/openrct2/util/util.c | 3 -- src/openrct2/world/mapgen.c | 3 +- 16 files changed, 60 insertions(+), 45 deletions(-) diff --git a/src/openrct2/core/Diagnostics.cpp b/src/openrct2/core/Diagnostics.cpp index 3f8cbcf87e..1d2c94941f 100644 --- a/src/openrct2/core/Diagnostics.cpp +++ b/src/openrct2/core/Diagnostics.cpp @@ -14,9 +14,7 @@ *****************************************************************************/ #pragma endregion -#include - -#if defined(DEBUG) && defined(__WINDOWS__) +#if defined(DEBUG) && defined(_WIN32) #define WIN32_LEAN_AND_MEAN #include #undef GetMessage @@ -29,7 +27,7 @@ namespace Debug void Break() { #if defined(DEBUG) -#if defined(__WINDOWS__) +#if defined(_WIN32) if (IsDebuggerPresent()) { DebugBreak(); diff --git a/src/openrct2/game.c b/src/openrct2/game.c index 582d3673a5..e12c5a83bc 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -427,7 +427,7 @@ void game_logic_update() // start autosave timer after update if (gLastAutoSaveUpdate == AUTOSAVE_PAUSE) - gLastAutoSaveUpdate = SDL_GetTicks(); + gLastAutoSaveUpdate = platform_get_ticks(); } /** @@ -585,7 +585,7 @@ sint32 game_do_command_p(sint32 command, sint32 *eax, sint32 *ebx, sint32 *ecx, // start autosave timer after game command if (gLastAutoSaveUpdate == AUTOSAVE_PAUSE) - gLastAutoSaveUpdate = SDL_GetTicks(); + gLastAutoSaveUpdate = platform_get_ticks(); return cost; } diff --git a/src/openrct2/interface/chat.c b/src/openrct2/interface/chat.c index 9cf2c2f7a6..2dfd7b021a 100644 --- a/src/openrct2/interface/chat.c +++ b/src/openrct2/interface/chat.c @@ -131,7 +131,8 @@ void chat_draw(rct_drawpixelinfo * dpi) // Draw chat history for (sint32 i = 0; i < CHAT_HISTORY_SIZE; i++, y -= stringHeight) { - if (!gChatOpen && SDL_TICKS_PASSED(SDL_GetTicks(), chat_history_get_time(i) + 10000)) { + uint32 expireTime = chat_history_get_time(i) + 10000; + if (!gChatOpen && platform_get_ticks() > expireTime) { break; } @@ -174,7 +175,7 @@ void chat_history_add(const char *src) sint32 index = _chatHistoryIndex % CHAT_HISTORY_SIZE; memset(_chatHistory[index], 0, CHAT_INPUT_SIZE); memcpy(_chatHistory[index], src, min(strlen(src), CHAT_INPUT_SIZE - 1)); - _chatHistoryTime[index] = SDL_GetTicks(); + _chatHistoryTime[index] = platform_get_ticks(); _chatHistoryIndex++; Mixer_Play_Effect(SOUND_NEWS_ITEM, 0, SDL_MIX_MAXVOLUME, 0, 1.5f, true); network_append_chat_log(src); diff --git a/src/openrct2/network/NetworkConnection.cpp b/src/openrct2/network/NetworkConnection.cpp index 75e8649ebf..54fa4904aa 100644 --- a/src/openrct2/network/NetworkConnection.cpp +++ b/src/openrct2/network/NetworkConnection.cpp @@ -85,7 +85,7 @@ sint32 NetworkConnection::ReadPacket() } if (InboundPacket.BytesTransferred == sizeof(InboundPacket.Size) + InboundPacket.Size) { - _lastPacketTime = SDL_GetTicks(); + _lastPacketTime = platform_get_ticks(); return NETWORK_READPACKET_SUCCESS; } } @@ -150,13 +150,13 @@ void NetworkConnection::SendQueuedPackets() void NetworkConnection::ResetLastPacketTime() { - _lastPacketTime = SDL_GetTicks(); + _lastPacketTime = platform_get_ticks(); } bool NetworkConnection::ReceivedPacketRecently() { #ifndef DEBUG - if (SDL_TICKS_PASSED(SDL_GetTicks(), _lastPacketTime + 7000)) + if (platform_get_ticks() > _lastPacketTime + 7000) { return false; } diff --git a/src/openrct2/network/NetworkServerAdvertiser.cpp b/src/openrct2/network/NetworkServerAdvertiser.cpp index 13b02df084..3fd3440121 100644 --- a/src/openrct2/network/NetworkServerAdvertiser.cpp +++ b/src/openrct2/network/NetworkServerAdvertiser.cpp @@ -77,13 +77,13 @@ public: { switch (_status) { case ADVERTISE_STATUS_UNREGISTERED: - if (_lastAdvertiseTime == 0 || SDL_TICKS_PASSED(SDL_GetTicks(), _lastAdvertiseTime + MASTER_SERVER_REGISTER_TIME)) + if (_lastAdvertiseTime == 0 || platform_get_ticks() > _lastAdvertiseTime + MASTER_SERVER_REGISTER_TIME) { SendRegistration(); } break; case ADVERTISE_STATUS_REGISTERED: - if (SDL_TICKS_PASSED(SDL_GetTicks(), _lastHeartbeatTime + MASTER_SERVER_HEARTBEAT_TIME)) + if (platform_get_ticks() > _lastHeartbeatTime + MASTER_SERVER_HEARTBEAT_TIME) { SendHeartbeat(); } @@ -97,7 +97,7 @@ public: private: void SendRegistration() { - _lastAdvertiseTime = SDL_GetTicks(); + _lastAdvertiseTime = platform_get_ticks(); // Send the registration request http_request_t request = { 0 }; @@ -139,7 +139,7 @@ private: request.root = jsonBody; request.type = HTTP_DATA_JSON; - _lastHeartbeatTime = SDL_GetTicks(); + _lastHeartbeatTime = platform_get_ticks(); http_request_async(&request, [](http_response_t *response) -> void { if (response == nullptr) diff --git a/src/openrct2/network/NetworkTypes.h b/src/openrct2/network/NetworkTypes.h index 5bfbacedaf..04e7d7b222 100644 --- a/src/openrct2/network/NetworkTypes.h +++ b/src/openrct2/network/NetworkTypes.h @@ -80,7 +80,7 @@ struct ByteSwapT<2> { static uint16 SwapBE(uint16 value) { - return SDL_SwapBE16(value); + return (uint16)((value << 8) | (value >> 8)); } }; @@ -89,7 +89,10 @@ struct ByteSwapT<4> { static uint32 SwapBE(uint32 value) { - return SDL_SwapBE32(value); + return (uint32)(((value << 24) | + ((value << 8) & 0x00FF0000) | + ((value >> 8) & 0x0000FF00) | + (value >> 24))); } }; diff --git a/src/openrct2/network/network.cpp b/src/openrct2/network/network.cpp index 6efd69232e..f84b6b89fa 100644 --- a/src/openrct2/network/network.cpp +++ b/src/openrct2/network/network.cpp @@ -14,8 +14,6 @@ *****************************************************************************/ #pragma endregion -#include - #include "../core/Guard.hpp" #include "../OpenRCT2.h" @@ -380,10 +378,12 @@ void Network::UpdateServer() it++; } } - if (SDL_TICKS_PASSED(SDL_GetTicks(), last_tick_sent_time + 25)) { + + uint32 ticks = platform_get_ticks(); + if (ticks > last_tick_sent_time + 25) { Server_Send_TICK(); } - if (SDL_TICKS_PASSED(SDL_GetTicks(), last_ping_sent_time + 3000)) { + if (ticks > last_ping_sent_time + 3000) { Server_Send_PING(); Server_Send_PINGLIST(); } @@ -427,7 +427,7 @@ void Network::UpdateClient() window_network_status_open(str_connecting, []() -> void { gNetwork.Close(); }); - server_connect_time = SDL_GetTicks(); + server_connect_time = platform_get_ticks(); } break; } @@ -1044,7 +1044,7 @@ void Network::Server_Send_GAMECMD(uint32 eax, uint32 ebx, uint32 ecx, uint32 edx void Network::Server_Send_TICK() { - last_tick_sent_time = SDL_GetTicks(); + last_tick_sent_time = platform_get_ticks(); std::unique_ptr packet(NetworkPacket::Allocate()); *packet << (uint32)NETWORK_COMMAND_TICK << (uint32)gCurrentTicks << (uint32)gScenarioSrand0; uint32 flags = 0; @@ -1085,11 +1085,11 @@ void Network::Client_Send_PING() void Network::Server_Send_PING() { - last_ping_sent_time = SDL_GetTicks(); + last_ping_sent_time = platform_get_ticks(); std::unique_ptr packet(NetworkPacket::Allocate()); *packet << (uint32)NETWORK_COMMAND_PING; for (auto it = client_connection_list.begin(); it != client_connection_list.end(); it++) { - (*it)->PingTime = SDL_GetTicks(); + (*it)->PingTime = platform_get_ticks(); } SendPacketToClients(*packet, true); } @@ -1254,7 +1254,7 @@ void Network::ProcessGameCommandQueue() NetworkPlayer* player = GetPlayerByID(gc.playerid); if (player) { player->LastAction = NetworkActions::FindCommand(command); - player->LastActionTime = SDL_GetTicks(); + player->LastActionTime = platform_get_ticks(); player->AddMoneySpent(cost); } } @@ -1860,7 +1860,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket sint32 commandCommand = args[4]; - uint32 ticks = SDL_GetTicks(); //tick count is different by time last_action_time is set, keep same value. + uint32 ticks = platform_get_ticks(); //tick count is different by time last_action_time is set, keep same value. // Check if player's group permission allows command to run NetworkGroup* group = GetGroupByID(connection.Player->Group); @@ -1875,7 +1875,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket if (commandCommand == GAME_COMMAND_PLACE_SCENERY) { if ( ticks - connection.Player->LastPlaceSceneryTime < ACTION_COOLDOWN_TIME_PLACE_SCENERY && - // Incase SDL_GetTicks() wraps after ~49 days, ignore larger logged times. + // Incase platform_get_ticks() wraps after ~49 days, ignore larger logged times. ticks > connection.Player->LastPlaceSceneryTime ) { if (!(group->CanPerformCommand(MISC_COMMAND_TOGGLE_SCENERY_CLUSTER))) { @@ -1889,7 +1889,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket else if (commandCommand == GAME_COMMAND_DEMOLISH_RIDE) { if ( ticks - connection.Player->LastDemolishRideTime < ACTION_COOLDOWN_TIME_DEMOLISH_RIDE && - // Incase SDL_GetTicks() wraps after ~49 days, ignore larger logged times. + // Incase platform_get_ticks() wraps after ~49 days, ignore larger logged times. ticks > connection.Player->LastDemolishRideTime ) { Server_Send_SHOWERROR(connection, STR_CANT_DO_THIS, STR_NETWORK_ACTION_RATE_LIMIT_MESSAGE); @@ -1912,7 +1912,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket } connection.Player->LastAction = NetworkActions::FindCommand(commandCommand); - connection.Player->LastActionTime = SDL_GetTicks(); + connection.Player->LastActionTime = platform_get_ticks(); connection.Player->AddMoneySpent(cost); if (commandCommand == GAME_COMMAND_PLACE_SCENERY) { @@ -1986,7 +1986,7 @@ void Network::Client_Handle_PING(NetworkConnection& connection, NetworkPacket& p void Network::Server_Handle_PING(NetworkConnection& connection, NetworkPacket& packet) { - sint32 ping = SDL_GetTicks() - connection.PingTime; + sint32 ping = platform_get_ticks() - connection.PingTime; if (ping < 0) { ping = 0; } @@ -2204,7 +2204,7 @@ void network_add_player_money_spent(uint32 index, money32 cost) sint32 network_get_player_last_action(uint32 index, sint32 time) { - if (time && SDL_TICKS_PASSED(SDL_GetTicks(), gNetwork.player_list[index]->LastActionTime + time)) { + if (time && platform_get_ticks() > gNetwork.player_list[index]->LastActionTime + time) { return -999; } return gNetwork.player_list[index]->LastAction; @@ -2213,7 +2213,7 @@ sint32 network_get_player_last_action(uint32 index, sint32 time) void network_set_player_last_action(uint32 index, sint32 command) { gNetwork.player_list[index]->LastAction = NetworkActions::FindCommand(command); - gNetwork.player_list[index]->LastActionTime = SDL_GetTicks(); + gNetwork.player_list[index]->LastActionTime = platform_get_ticks(); } rct_xyz16 network_get_player_last_action_coord(uint32 index) diff --git a/src/openrct2/network/twitch.cpp b/src/openrct2/network/twitch.cpp index b1ac609c00..d6259dd74d 100644 --- a/src/openrct2/network/twitch.cpp +++ b/src/openrct2/network/twitch.cpp @@ -43,6 +43,7 @@ extern "C" #include "../localisation/localisation.h" #include "../management/news_item.h" #include "../peep/peep.h" + #include "../platform/platform.h" #include "../rct2.h" #include "../util/util.h" #include "../world/sprite.h" @@ -142,7 +143,7 @@ namespace Twitch switch (_twitchState) { case TWITCH_STATE_LEFT: { - uint32 currentTime = SDL_GetTicks(); + uint32 currentTime = platform_get_ticks(); uint32 timeSinceLastPulse = currentTime - _twitchLastPulseTick; if (_twitchLastPulseTick == 0 || timeSinceLastPulse > PulseTime) { @@ -153,7 +154,7 @@ namespace Twitch } case TWITCH_STATE_JOINED: { - uint32 currentTime = SDL_GetTicks(); + uint32 currentTime = platform_get_ticks(); uint32 timeSinceLastPulse = currentTime - _twitchLastPulseTick; if (_twitchLastPulseTick == 0 || timeSinceLastPulse > PulseTime) { _twitchLastPulseTick = currentTime; diff --git a/src/openrct2/platform/crash.cpp b/src/openrct2/platform/crash.cpp index f9960e3dd9..0a8c343f32 100644 --- a/src/openrct2/platform/crash.cpp +++ b/src/openrct2/platform/crash.cpp @@ -14,14 +14,13 @@ *****************************************************************************/ #pragma endregion -#include #include "crash.h" #ifdef USE_BREAKPAD #include #include -#if defined(__WINDOWS__) +#if defined(_WIN32) #include #include #include diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index 87843a2549..ac93a317c5 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -188,6 +188,7 @@ void platform_get_cursor_position(sint32 *x, sint32 *y); void platform_get_cursor_position_scaled(sint32 *x, sint32 *y); void platform_set_cursor_position(sint32 x, sint32 y); uint32 platform_get_ticks(); +void platform_sleep(uint32 ms); void platform_resolve_user_data_path(); void platform_resolve_openrct_data_path(); void platform_get_openrct_data_path(utf8 *outPath, size_t outSize); diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index cb03671919..e3115f5a8d 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include #include "../audio/audio.h" #include "../audio/AudioMixer.h" #include "../config/Config.h" @@ -761,7 +762,21 @@ void platform_set_cursor_position(sint32 x, sint32 y) uint32 platform_get_ticks() { - return SDL_GetTicks(); +#ifdef _WIN32 + return GetTickCount(); +#else + struct timespec ts; + if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { + log_fatal("clock_gettime failed"); + exit(-1); + } + return (uint32)(ts.tv_nsec / 1000000); +#endif +} + +void platform_sleep(uint32 ms) +{ + SDL_Delay(ms); } uint8 platform_get_currency_value(const char *currCode) { diff --git a/src/openrct2/rct2.c b/src/openrct2/rct2.c index ff5761e6f8..b24d470d6f 100644 --- a/src/openrct2/rct2.c +++ b/src/openrct2/rct2.c @@ -380,7 +380,7 @@ sint32 check_file_paths() void rct2_update() { - sint32 tickCount = SDL_GetTicks(); + sint32 tickCount = platform_get_ticks(); gTicksSinceLastUpdate = min(tickCount - gLastTickCount, 500); gLastTickCount = tickCount; if (game_is_not_paused()) { diff --git a/src/openrct2/scenario/scenario.c b/src/openrct2/scenario/scenario.c index 5910e84e68..946140c4fe 100644 --- a/src/openrct2/scenario/scenario.c +++ b/src/openrct2/scenario/scenario.c @@ -362,7 +362,7 @@ void scenario_autosave_check() if (gLastAutoSaveUpdate == AUTOSAVE_PAUSE) return; // Milliseconds since last save - uint32 timeSinceSave = SDL_GetTicks() - gLastAutoSaveUpdate; + uint32 timeSinceSave = platform_get_ticks() - gLastAutoSaveUpdate; bool shouldSave = false; switch (gConfigGeneral.autosave_frequency) { diff --git a/src/openrct2/util/sawyercoding.h b/src/openrct2/util/sawyercoding.h index 73571111fc..f289154387 100644 --- a/src/openrct2/util/sawyercoding.h +++ b/src/openrct2/util/sawyercoding.h @@ -17,7 +17,6 @@ #ifndef _SAWYERCODING_H_ #define _SAWYERCODING_H_ -#include #include "../common.h" #pragma pack(push, 1) diff --git a/src/openrct2/util/util.c b/src/openrct2/util/util.c index 3ab73ff708..a7a4433e83 100644 --- a/src/openrct2/util/util.c +++ b/src/openrct2/util/util.c @@ -14,10 +14,7 @@ *****************************************************************************/ #pragma endregion -// Include common.h before SDL, otherwise M_PI gets redefined #include "../common.h" - -#include #include "../core/Guard.hpp" #include "../localisation/localisation.h" #include "../platform/platform.h" diff --git a/src/openrct2/world/mapgen.c b/src/openrct2/world/mapgen.c index 1aa8f6e1c9..d61fd1f3a5 100644 --- a/src/openrct2/world/mapgen.c +++ b/src/openrct2/world/mapgen.c @@ -22,6 +22,7 @@ #include "../game.h" #include "../localisation/string_ids.h" #include "../object.h" +#include "../platform/platform.h" #include "../util/util.h" #include "../windows/error.h" #include "map.h" @@ -142,7 +143,7 @@ void mapgen_generate(mapgen_settings *settings) sint32 x, y, mapSize, floorTexture, wallTexture, waterLevel; rct_map_element *mapElement; - util_srand((sint32)SDL_GetTicks()); + util_srand((sint32)platform_get_ticks()); mapSize = settings->mapSize; floorTexture = settings->floor; From 459d79d2f3132c59993529f065a2a111bfac4873 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 20:33:43 +0100 Subject: [PATCH 005/670] Use FILE instead of SDL for FileStream --- src/openrct2/core/FileStream.hpp | 87 +++++++++++++++++++------------- 1 file changed, 53 insertions(+), 34 deletions(-) diff --git a/src/openrct2/core/FileStream.hpp b/src/openrct2/core/FileStream.hpp index 8eb5aa9e44..1718e78906 100644 --- a/src/openrct2/core/FileStream.hpp +++ b/src/openrct2/core/FileStream.hpp @@ -17,10 +17,14 @@ #pragma once #include "../common.h" - -#include #include "IStream.hpp" #include "Math.hpp" +#include "String.hpp" + +extern "C" +{ + #include "../localisation/language.h" +} enum { @@ -30,12 +34,12 @@ enum }; /** - * A stream for reading and writing to files. Wraps an SDL_RWops, SDL2's cross platform file stream. + * A stream for reading and writing to files. */ class FileStream final : public IStream { private: - SDL_RWops * _file = 0; + FILE * _file = nullptr; bool _ownsFilePtr = false; bool _canRead = false; bool _canWrite = false; @@ -71,41 +75,35 @@ public: throw; } - _file = SDL_RWFromFile(path, mode); +#ifdef _WIN32 + wchar_t * pathW = utf8_to_widechar(path); + wchar_t * modeW = utf8_to_widechar(mode); + _file = _wfopen(pathW, modeW); + free(pathW); + free(modeW); +#else + _file = fopen(path, mode); +#endif if (_file == nullptr) { - throw IOException(SDL_GetError()); + throw IOException(String::StdFormat("Unable to open '%s'", path)); } - _fileSize = SDL_RWsize(_file); + + Seek(0, STREAM_SEEK_END); + _fileSize = GetPosition(); + Seek(0, STREAM_SEEK_BEGIN); + _ownsFilePtr = true; } - FileStream(SDL_RWops * ops, sint32 fileMode) - { - _file = ops; - switch (fileMode) { - case FILE_MODE_OPEN: - _canRead = true; - _canWrite = false; - break; - case FILE_MODE_WRITE: - _canRead = true; - _canWrite = true; - break; - default: - throw; - } - _fileSize = SDL_RWsize(_file); - } - - ~FileStream() + ~FileStream() override { if (!_disposed) { _disposed = true; if (_ownsFilePtr) { - SDL_RWclose(_file); + fclose(_file); } } } @@ -114,7 +112,14 @@ public: bool CanWrite() const override { return _canWrite; } uint64 GetLength() const override { return _fileSize; } - uint64 GetPosition() const override { return SDL_RWtell(_file); } + uint64 GetPosition() const override + { +#ifdef _MSC_VER + return _ftelli64(_file); +#else + return ftello64(_file); +#endif + } void SetPosition(uint64 position) override { @@ -123,17 +128,31 @@ public: void Seek(sint64 offset, sint32 origin) override { +#ifdef _MSC_VER switch (origin) { case STREAM_SEEK_BEGIN: - SDL_RWseek(_file, offset, RW_SEEK_SET); + _fseeki64(_file, offset, SEEK_SET); break; case STREAM_SEEK_CURRENT: - SDL_RWseek(_file, offset, RW_SEEK_CUR); + _fseeki64(_file, offset, SEEK_CUR); break; case STREAM_SEEK_END: - SDL_RWseek(_file, offset, RW_SEEK_END); + _fseeki64(_file, offset, SEEK_END); break; } +#else + switch (origin) { + case STREAM_SEEK_BEGIN: + fseeko64(_file, offset, SEEK_SET); + break; + case STREAM_SEEK_CURRENT: + fseeko64(_file, offset, SEEK_CUR); + break; + case STREAM_SEEK_END: + fseeko64(_file, offset, SEEK_END); + break; + } +#endif } void Read(void * buffer, uint64 length) override @@ -141,7 +160,7 @@ public: uint64 remainingBytes = GetLength() - GetPosition(); if (length <= remainingBytes) { - if (SDL_RWread(_file, buffer, (size_t)length, 1) == 1) + if (fread(buffer, (size_t)length, 1, _file) == 1) { return; } @@ -151,7 +170,7 @@ public: void Write(const void * buffer, uint64 length) override { - if (SDL_RWwrite(_file, buffer, (size_t)length, 1) != 1) + if (fwrite(buffer, (size_t)length, 1, _file) != 1) { throw IOException("Unable to write to file."); } @@ -162,7 +181,7 @@ public: uint64 TryRead(void * buffer, uint64 length) override { - size_t readBytes = SDL_RWread(_file, buffer, 1, (size_t)length); + size_t readBytes = fread(buffer, 1, (size_t)length, _file); return readBytes; } }; From 0ad94f92e325c4a7c95d88c701b23dbb3b6381d7 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 20:49:32 +0100 Subject: [PATCH 006/670] Replace Stopwatch with chrono --- src/openrct2/core/Stopwatch.cpp | 150 ----------------------- src/openrct2/core/Stopwatch.hpp | 52 -------- src/openrct2/core/stopwatch.h | 40 ------ src/openrct2/object/ObjectRepository.cpp | 11 +- 4 files changed, 6 insertions(+), 247 deletions(-) delete mode 100644 src/openrct2/core/Stopwatch.cpp delete mode 100644 src/openrct2/core/Stopwatch.hpp delete mode 100644 src/openrct2/core/stopwatch.h diff --git a/src/openrct2/core/Stopwatch.cpp b/src/openrct2/core/Stopwatch.cpp deleted file mode 100644 index 72772d6745..0000000000 --- a/src/openrct2/core/Stopwatch.cpp +++ /dev/null @@ -1,150 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#include - -#include "Stopwatch.hpp" - -uint64 Stopwatch::Frequency = 0; - -Stopwatch::Stopwatch() -{ - Reset(); -} - -uint64 Stopwatch::GetElapsedTicks() const -{ - uint64 result = _total; - if (_isRunning) - { - uint64 ticks = QueryCurrentTicks(); - if (ticks != 0) { - result += QueryCurrentTicks() - _last; - } - } - - return result; -} - -uint64 Stopwatch::GetElapsedMilliseconds() const -{ - if (Frequency == 0) - { - Frequency = QueryFrequency(); - if (Frequency == 0) - { - return 0; - } - } - - return (GetElapsedTicks() * 1000) / Frequency; -} - -void Stopwatch::Reset() -{ - _isRunning = false; - _total = 0; - _last = 0; -} - -void Stopwatch::Start() -{ - if (_isRunning) return; - - uint64 ticks = QueryCurrentTicks(); - if (ticks != 0) - { - _last = ticks; - _isRunning = true; - } -} - -void Stopwatch::Restart() -{ - Reset(); - Start(); -} - -void Stopwatch::Stop() -{ - uint64 ticks = QueryCurrentTicks(); - if (ticks != 0) - { - _total += QueryCurrentTicks() - _last; - } - _isRunning = false; -} - -uint64 Stopwatch::QueryFrequency() -{ - return SDL_GetPerformanceFrequency(); -} - -uint64 Stopwatch::QueryCurrentTicks() -{ - return SDL_GetPerformanceCounter(); -} - -extern "C" -{ - #include "stopwatch.h" - - void stopwatch_create(stopwatch_t * stopwatch) - { - stopwatch->context = new Stopwatch(); - } - - void stopwatch_dispose(stopwatch_t * stopwatch) - { - delete static_cast(stopwatch->context); - } - - uint64 stopwatch_GetElapsedTicks(stopwatch_t * stopwatch) - { - Stopwatch * ctx = static_cast(stopwatch->context); - return ctx->GetElapsedTicks(); - } - - uint64 stopwatch_GetElapsedMilliseconds(stopwatch_t * stopwatch) - { - Stopwatch * ctx = static_cast(stopwatch->context); - return ctx->GetElapsedMilliseconds(); - } - - void stopwatch_Reset(stopwatch_t * stopwatch) - { - Stopwatch * ctx = static_cast(stopwatch->context); - return ctx->Reset(); - } - - void stopwatch_Start(stopwatch_t * stopwatch) - { - Stopwatch * ctx = static_cast(stopwatch->context); - return ctx->Start(); - } - - void stopwatch_Restart(stopwatch_t * stopwatch) - { - Stopwatch * ctx = static_cast(stopwatch->context); - return ctx->Restart(); - } - - void stopwatch_Stop(stopwatch_t * stopwatch) - { - Stopwatch * ctx = static_cast(stopwatch->context); - return ctx->Stop(); - } -} diff --git a/src/openrct2/core/Stopwatch.hpp b/src/openrct2/core/Stopwatch.hpp deleted file mode 100644 index 49eb065eb4..0000000000 --- a/src/openrct2/core/Stopwatch.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#pragma once - -extern "C" -{ - #include "../common.h" -} - -/** - * Class to accurately measure elapsed time with high precision. - */ -class Stopwatch final -{ -private: - /** Number of ticks in a second. */ - static uint64 Frequency; - - uint64 _total; - uint64 _last; - bool _isRunning; - - static uint64 QueryFrequency(); - static uint64 QueryCurrentTicks(); - -public: - bool IsRunning() const { return _isRunning; } - - Stopwatch(); - - uint64 GetElapsedTicks() const; - uint64 GetElapsedMilliseconds() const; - - void Reset(); - void Start(); - void Restart(); - void Stop(); -}; diff --git a/src/openrct2/core/stopwatch.h b/src/openrct2/core/stopwatch.h deleted file mode 100644 index 84d93ffc0d..0000000000 --- a/src/openrct2/core/stopwatch.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#ifndef _STOPWATCH_H_ -#define _STOPWATCH_H_ - -#include "../common.h" - -///////////////////////////// -// C wrapper for Stopwatch // -///////////////////////////// - -typedef struct stopwatch_t { - void *context; -} stopwatch_t; - -void stopwatch_create(stopwatch_t *stopwatch); -void stopwatch_dispose(stopwatch_t *stopwatch); - -uint64 stopwatch_GetElapsedTicks(stopwatch_t *stopwatch); -uint64 stopwatch_GetElapsedMilliseconds(stopwatch_t *stopwatch); -void stopwatch_Reset(stopwatch_t *stopwatch); -void stopwatch_Start(stopwatch_t *stopwatch); -void stopwatch_Restart(stopwatch_t *stopwatch); -void stopwatch_Stop(stopwatch_t *stopwatch); - -#endif diff --git a/src/openrct2/object/ObjectRepository.cpp b/src/openrct2/object/ObjectRepository.cpp index 9ffe6f038b..ddad3659b3 100644 --- a/src/openrct2/object/ObjectRepository.cpp +++ b/src/openrct2/object/ObjectRepository.cpp @@ -15,6 +15,7 @@ #pragma endregion #include +#include #include #include #include @@ -28,7 +29,6 @@ #include "../core/Memory.hpp" #include "../core/MemoryStream.h" #include "../core/Path.hpp" -#include "../core/Stopwatch.hpp" #include "../core/String.hpp" #include "../PlatformEnvironment.h" #include "../rct12/SawyerChunkReader.h" @@ -296,16 +296,17 @@ private: Console::WriteLine("Scanning %lu objects...", _queryDirectoryResult.TotalFiles); _numConflicts = 0; - auto stopwatch = Stopwatch(); - stopwatch.Start(); + auto startTime = std::chrono::high_resolution_clock::now(); const std::string &rct2Path = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::OBJECT); const std::string &openrct2Path = _env->GetDirectoryPath(DIRBASE::USER, DIRID::OBJECT); ScanDirectory(rct2Path); ScanDirectory(openrct2Path); - stopwatch.Stop(); - Console::WriteLine("Scanning complete in %.2f seconds.", stopwatch.GetElapsedMilliseconds() / 1000.0f); + auto endTime = std::chrono::high_resolution_clock::now(); + std::chrono::duration duration = endTime - startTime; + + Console::WriteLine("Scanning complete in %.2f seconds.", duration.count()); if (_numConflicts > 0) { Console::WriteLine("%d object conflicts found.", _numConflicts); From 90596e0f54f928436ef1790a4f46d3f988672314 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 20:58:16 +0100 Subject: [PATCH 007/670] Remove unnecessary SDL headers from NetworkTypes.h --- src/openrct2/network/NetworkTypes.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/openrct2/network/NetworkTypes.h b/src/openrct2/network/NetworkTypes.h index 04e7d7b222..3e22b1c934 100644 --- a/src/openrct2/network/NetworkTypes.h +++ b/src/openrct2/network/NetworkTypes.h @@ -16,14 +16,7 @@ #pragma once -#include -#include - -#ifndef DISABLE_NETWORK - - #include "../common.h" -#endif enum NETWORK_AUTH { From ec3652152ad842b8cf085825cd4cbf662cc36485 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 21:06:15 +0100 Subject: [PATCH 008/670] Quick port of server_list window to C++ So that C++ mutex can be used. --- .../{server_list.c => server_list.cpp} | 138 +++++++++--------- 1 file changed, 72 insertions(+), 66 deletions(-) rename src/openrct2/windows/{server_list.c => server_list.cpp} (90%) diff --git a/src/openrct2/windows/server_list.c b/src/openrct2/windows/server_list.cpp similarity index 90% rename from src/openrct2/windows/server_list.c rename to src/openrct2/windows/server_list.cpp index 083f398d6b..e9f0745bab 100644 --- a/src/openrct2/windows/server_list.c +++ b/src/openrct2/windows/server_list.cpp @@ -15,19 +15,23 @@ #pragma endregion #include "../config/Config.h" -#include "../interface/colour.h" -#include "../interface/themes.h" -#include "../interface/widget.h" -#include "../interface/window.h" -#include "../localisation/localisation.h" -#include "../network/http.h" #include "../network/network.h" #include "../network/ServerList.h" -#include "../sprites.h" -#include "../util/util.h" -#include "../windows/dropdown.h" -#include "../windows/tooltip.h" -#include "error.h" + +extern "C" +{ + #include "../interface/colour.h" + #include "../interface/themes.h" + #include "../interface/widget.h" + #include "../interface/window.h" + #include "../localisation/localisation.h" + #include "../network/http.h" + #include "../sprites.h" + #include "../util/util.h" + #include "../windows/dropdown.h" + #include "../windows/tooltip.h" + #include "error.h" +} #define WWIDTH_MIN 500 #define WHEIGHT_MIN 300 @@ -119,6 +123,7 @@ enum { }; static sint32 _hoverButtonIndex = -1; +static char * _version = NULL; static void server_list_get_item_button(sint32 buttonIndex, sint32 x, sint32 y, sint32 width, sint32 *outX, sint32 *outY); static void server_list_load_server_entries(); @@ -134,53 +139,56 @@ static void fetch_servers(); static void fetch_servers_callback(http_response_t* response); #endif -void window_server_list_open() +extern "C" { - rct_window* window; - - // Check if window is already open - window = window_bring_to_front_by_class(WC_SERVER_LIST); - if (window != NULL) - return; - - if (_mutex == 0) { - _mutex = SDL_CreateMutex(); + void window_server_list_open() + { + rct_window* window; + + // Check if window is already open + window = window_bring_to_front_by_class(WC_SERVER_LIST); + if (window != NULL) + return; + + if (_mutex == 0) { + _mutex = SDL_CreateMutex(); + } + + window = window_create_centred(WWIDTH_MIN, WHEIGHT_MIN, &window_server_list_events, WC_SERVER_LIST, WF_10 | WF_RESIZABLE); + + window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].string = _playerName; + window->widgets = window_server_list_widgets; + window->enabled_widgets = ( + (1 << WIDX_CLOSE) | + (1 << WIDX_PLAYER_NAME_INPUT) | + (1 << WIDX_FETCH_SERVERS) | + (1 << WIDX_ADD_SERVER) | + (1 << WIDX_START_SERVER) + ); + window_init_scroll_widgets(window); + window->no_list_items = 0; + window->selected_list_item = -1; + window->frame_no = 0; + window->min_width = 320; + window->min_height = 90; + window->max_width = window->min_width; + window->max_height = window->min_height; + + window->page = 0; + window->list_information_type = 0; + window->colours[0] = COLOUR_GREY; + window->colours[1] = COLOUR_BORDEAUX_RED; + window->colours[2] = COLOUR_BORDEAUX_RED; + + window_set_resize(window, WWIDTH_MIN, WHEIGHT_MIN, WWIDTH_MAX, WHEIGHT_MAX); + + safe_strcpy(_playerName, gConfigNetwork.player_name, sizeof(_playerName)); + + server_list_load_server_entries(); + window->no_list_items = _numServerEntries; + + fetch_servers(); } - - window = window_create_centred(WWIDTH_MIN, WHEIGHT_MIN, &window_server_list_events, WC_SERVER_LIST, WF_10 | WF_RESIZABLE); - - window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].string = _playerName; - window->widgets = window_server_list_widgets; - window->enabled_widgets = ( - (1 << WIDX_CLOSE) | - (1 << WIDX_PLAYER_NAME_INPUT) | - (1 << WIDX_FETCH_SERVERS) | - (1 << WIDX_ADD_SERVER) | - (1 << WIDX_START_SERVER) - ); - window_init_scroll_widgets(window); - window->no_list_items = 0; - window->selected_list_item = -1; - window->frame_no = 0; - window->min_width = 320; - window->min_height = 90; - window->max_width = window->min_width; - window->max_height = window->min_height; - - window->page = 0; - window->list_information_type = 0; - window->colours[0] = COLOUR_GREY; - window->colours[1] = COLOUR_BORDEAUX_RED; - window->colours[2] = COLOUR_BORDEAUX_RED; - - window_set_resize(window, WWIDTH_MIN, WHEIGHT_MIN, WWIDTH_MAX, WHEIGHT_MAX); - - safe_strcpy(_playerName, gConfigNetwork.player_name, sizeof(_playerName)); - - server_list_load_server_entries(); - window->no_list_items = _numServerEntries; - - fetch_servers(); } static void window_server_list_close(rct_window *w) @@ -288,8 +296,6 @@ static void window_server_list_scroll_mousedown(rct_window *w, sint32 scrollInde window_dropdown_show_text(ddx, ddy, 0, COLOUR_GREY, 0, 2); } -char *gVersion = NULL; - static void window_server_list_scroll_mouseover(rct_window *w, sint32 scrollIndex, sint32 x, sint32 y) { // Item @@ -367,7 +373,7 @@ static void window_server_list_invalidate(rct_window *w) { colour_scheme_update(w); - set_format_arg(0, char *, gVersion); + set_format_arg(0, char *, _version); window_server_list_widgets[WIDX_BACKGROUND].right = w->width - 1; window_server_list_widgets[WIDX_BACKGROUND].bottom = w->height - 1; window_server_list_widgets[WIDX_TITLE].right = w->width - 2; @@ -399,7 +405,7 @@ static void window_server_list_paint(rct_window *w, rct_drawpixelinfo *dpi) window_draw_widgets(w, dpi); gfx_draw_string_left(dpi, STR_PLAYER_NAME, NULL, COLOUR_WHITE, w->x + 6, w->y + w->widgets[WIDX_PLAYER_NAME_INPUT].top); - char *version = NETWORK_STREAM_ID; + const char * version = NETWORK_STREAM_ID; gfx_draw_string_left(dpi, STR_NETWORK_VERSION, (void*)&version, COLOUR_WHITE, w->x + 324, w->y + w->widgets[WIDX_START_SERVER].top); gfx_draw_string_left(dpi, STR_X_PLAYERS_ONLINE, (void*)&_numPlayersOnline, COLOUR_WHITE, w->x + 8, w->y + w->height - 15); @@ -424,7 +430,7 @@ static void window_server_list_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi // Draw hover highlight if (highlighted) { gfx_filter_rect(dpi, 0, y, width, y + ITEM_HEIGHT, PALETTE_DARKEN_1); - gVersion = serverDetails->version; + _version = serverDetails->version; w->widgets[WIDX_LIST].tooltip = STR_NETWORK_VERSION_TIP; } @@ -514,7 +520,7 @@ static void server_list_save_server_entries() } // Create temporary list of just favourite servers - server_entry * entries = calloc(count, sizeof(server_entry)); + server_entry * entries = (server_entry *)calloc(count, sizeof(server_entry)); sint32 eindex = 0; for (sint32 i = 0; i < _numServerEntries; i++) { server_entry *serverInfo = &_serverEntries[i]; @@ -566,9 +572,9 @@ static server_entry* add_server_entry(char *address) _numServerEntries++; if (_serverEntries == NULL) { - _serverEntries = malloc(_numServerEntries * sizeof(server_entry)); + _serverEntries = (server_entry *)malloc(_numServerEntries * sizeof(server_entry)); } else { - _serverEntries = realloc(_serverEntries, _numServerEntries * sizeof(server_entry)); + _serverEntries = (server_entry *)realloc(_serverEntries, _numServerEntries * sizeof(server_entry)); } sint32 index = _numServerEntries - 1; @@ -593,7 +599,7 @@ static void remove_server_entry(sint32 index) memmove(&_serverEntries[index], &_serverEntries[index + 1], serversToMove * sizeof(server_entry)); _numServerEntries--; - _serverEntries = realloc(_serverEntries, _numServerEntries * sizeof(server_entry)); + _serverEntries = (server_entry *)realloc(_serverEntries, _numServerEntries * sizeof(server_entry)); } SDL_UnlockMutex(_mutex); } @@ -637,7 +643,7 @@ static void sort_servers() static char *substr(char *start, sint32 length) { - char *result = malloc(length + 1); + char *result = (char *)malloc(length + 1); memcpy(result, start, length); result[length] = 0; return result; From b8931bd50336e99c52efc9580efe04683bd52ee5 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 21:29:39 +0100 Subject: [PATCH 009/670] Use C++ mutex instead of SDL for server_list.cpp --- CMakeLists.txt | 2 +- src/openrct2/windows/server_list.cpp | 89 ++++++++++++---------------- 2 files changed, 39 insertions(+), 52 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3f8814120..8abf28f8f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -428,7 +428,7 @@ set_target_properties(${PROJECT} PROPERTIES PREFIX "") set_target_properties(${PROJECT} PROPERTIES COMPILE_FLAGS "-Wundef") # Link shared libs first -TARGET_LINK_LIBRARIES(${PROJECT} ${GLLIBS}) +TARGET_LINK_LIBRARIES(${PROJECT} pthread ${GLLIBS}) # if creating a static binary, precede libraries with -static, then name all the libs TARGET_LINK_LIBRARIES(${PROJECT} ${STATIC_START} ${SDL2LIBS} ${HTTPLIBS} ${NETWORKLIBS} ${SPEEX_LIBRARIES} ${DLLIB} ${REQUIREDLIBS} ${BREAKPAD_LIBS}) diff --git a/src/openrct2/windows/server_list.cpp b/src/openrct2/windows/server_list.cpp index e9f0745bab..284dbecd61 100644 --- a/src/openrct2/windows/server_list.cpp +++ b/src/openrct2/windows/server_list.cpp @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include #include "../config/Config.h" #include "../network/network.h" #include "../network/ServerList.h" @@ -42,7 +43,7 @@ extern "C" static char _playerName[32 + 1]; static server_entry *_serverEntries = NULL; static sint32 _numServerEntries = 0; -static SDL_mutex *_mutex = 0; +static std::mutex _mutex; static uint32 _numPlayersOnline = 0; enum { @@ -150,10 +151,6 @@ extern "C" if (window != NULL) return; - if (_mutex == 0) { - _mutex = SDL_CreateMutex(); - } - window = window_create_centred(WWIDTH_MIN, WHEIGHT_MIN, &window_server_list_events, WC_SERVER_LIST, WF_10 | WF_RESIZABLE); window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].string = _playerName; @@ -193,12 +190,8 @@ extern "C" static void window_server_list_close(rct_window *w) { + std::lock_guard guard(_mutex); dispose_server_entry_list(); - if (_mutex) { - SDL_LockMutex(_mutex); - SDL_DestroyMutex(_mutex); - _mutex = 0; - } } static void window_server_list_mouseup(rct_window *w, rct_widgetindex widgetIndex) @@ -257,8 +250,11 @@ static void window_server_list_dropdown(rct_window *w, rct_widgetindex widgetInd join_server(serverAddress); break; case DDIDX_FAVOURITE: - _serverEntries[serverIndex].favourite = !_serverEntries[serverIndex].favourite; - server_list_save_server_entries(); + { + std::lock_guard guard(_mutex); + _serverEntries[serverIndex].favourite = !_serverEntries[serverIndex].favourite; + server_list_save_server_entries(); + } break; } } @@ -361,9 +357,12 @@ static void window_server_list_textinput(rct_window *w, rct_widgetindex widgetIn break; case WIDX_ADD_SERVER: - add_server_entry(text); - sort_servers(); - server_list_save_server_entries(); + { + std::lock_guard guard(_mutex); + add_server_entry(text); + sort_servers(); + server_list_save_server_entries(); + } window_invalidate(w); break; } @@ -413,6 +412,8 @@ static void window_server_list_paint(rct_window *w, rct_drawpixelinfo *dpi) static void window_server_list_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32 scrollIndex) { + std::lock_guard guard(_mutex); + uint8 paletteIndex = ColourMapA[w->colours[1]].mid_light; gfx_clear(dpi, paletteIndex); @@ -490,26 +491,19 @@ static void server_list_get_item_button(sint32 buttonIndex, sint32 x, sint32 y, static void server_list_load_server_entries() { - SDL_LockMutex(_mutex); - uint32 numEntries; server_entry * entries; if (server_list_read(&numEntries, &entries)) { + std::lock_guard guard(_mutex); dispose_server_entry_list(); - _numServerEntries = numEntries; _serverEntries = entries; - sort_servers(); } - - SDL_UnlockMutex(_mutex); } static void server_list_save_server_entries() { - SDL_LockMutex(_mutex); - // Get total number of favourite servers sint32 count = 0; for (sint32 i = 0; i < _numServerEntries; i++) { @@ -534,13 +528,10 @@ static void server_list_save_server_entries() // Free temporary list free(entries); - - SDL_UnlockMutex(_mutex); } static void dispose_server_entry_list() { - SDL_LockMutex(_mutex); if (_serverEntries != NULL) { for (sint32 i = 0; i < _numServerEntries; i++) { dispose_server_entry(&_serverEntries[i]); @@ -549,7 +540,6 @@ static void dispose_server_entry_list() _serverEntries = NULL; } _numServerEntries = 0; - SDL_UnlockMutex(_mutex); } static void dispose_server_entry(server_entry *serverInfo) @@ -562,10 +552,8 @@ static void dispose_server_entry(server_entry *serverInfo) static server_entry* add_server_entry(char *address) { - SDL_LockMutex(_mutex); for (sint32 i = 0; i < _numServerEntries; i++) { if (strcmp(_serverEntries[i].address, address) == 0) { - SDL_UnlockMutex(_mutex); return &_serverEntries[i]; } } @@ -587,13 +575,11 @@ static server_entry* add_server_entry(char *address) newserver->favourite = false; newserver->players = 0; newserver->maxplayers = 0; - SDL_UnlockMutex(_mutex); return newserver; } static void remove_server_entry(sint32 index) { - SDL_LockMutex(_mutex); if (_numServerEntries > index) { sint32 serversToMove = _numServerEntries - index - 1; memmove(&_serverEntries[index], &_serverEntries[index + 1], serversToMove * sizeof(server_entry)); @@ -601,7 +587,6 @@ static void remove_server_entry(sint32 index) _numServerEntries--; _serverEntries = (server_entry *)realloc(_serverEntries, _numServerEntries * sizeof(server_entry)); } - SDL_UnlockMutex(_mutex); } static sint32 server_compare(const void *a, const void *b) @@ -698,15 +683,16 @@ static void fetch_servers() masterServerUrl = gConfigNetwork.master_server_url; } - SDL_LockMutex(_mutex); - for (sint32 i = 0; i < _numServerEntries; i++) { - if (!_serverEntries[i].favourite) { - remove_server_entry(i); - i = 0; + { + std::lock_guard guard(_mutex); + for (sint32 i = 0; i < _numServerEntries; i++) { + if (!_serverEntries[i].favourite) { + remove_server_entry(i); + i = 0; + } } + sort_servers(); } - sort_servers(); - SDL_UnlockMutex(_mutex); http_request_t request = { 0 }; request.url = masterServerUrl; @@ -773,18 +759,19 @@ static void fetch_servers_callback(http_response_t* response) char address[256]; snprintf(address, sizeof(address), "%s:%d", json_string_value(addressIp), (sint32)json_integer_value(port)); - SDL_LockMutex(_mutex); - server_entry* newserver = add_server_entry(address); - SafeFree(newserver->name); - SafeFree(newserver->description); - SafeFree(newserver->version); - newserver->name = _strdup(json_string_value(name)); - newserver->requiresPassword = json_is_true(requiresPassword); - newserver->description = _strdup(description == NULL ? "" : json_string_value(description)); - newserver->version = _strdup(json_string_value(version)); - newserver->players = (uint8)json_integer_value(players); - newserver->maxplayers = (uint8)json_integer_value(maxPlayers); - SDL_UnlockMutex(_mutex); + { + std::lock_guard guard(_mutex); + server_entry* newserver = add_server_entry(address); + SafeFree(newserver->name); + SafeFree(newserver->description); + SafeFree(newserver->version); + newserver->name = _strdup(json_string_value(name)); + newserver->requiresPassword = json_is_true(requiresPassword); + newserver->description = _strdup(description == NULL ? "" : json_string_value(description)); + newserver->version = _strdup(json_string_value(version)); + newserver->players = (uint8)json_integer_value(players); + newserver->maxplayers = (uint8)json_integer_value(maxPlayers); + } } http_request_dispose(response); From 08b38172728a51c7fd62c3570ba08948937e480d Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 22:17:55 +0100 Subject: [PATCH 010/670] Use C++ future, thread and chrono for TcpSocket --- src/openrct2/network/TcpSocket.cpp | 89 ++++++++++++------------------ 1 file changed, 35 insertions(+), 54 deletions(-) diff --git a/src/openrct2/network/TcpSocket.cpp b/src/openrct2/network/TcpSocket.cpp index 8ee4aeaeb0..0170296d5e 100644 --- a/src/openrct2/network/TcpSocket.cpp +++ b/src/openrct2/network/TcpSocket.cpp @@ -16,14 +16,14 @@ #ifndef DISABLE_NETWORK +#include +#include +#include + // MSVC: include here otherwise PI gets defined twice #include -#include -#include -#include - -#ifdef __WINDOWS__ +#ifdef _WIN32 // winsock2 must be included before windows.h #include #include @@ -58,15 +58,15 @@ #define FLAG_NO_PIPE MSG_NOSIGNAL #else #define FLAG_NO_PIPE 0 - #endif // defined(__LINUX__) -#endif // __WINDOWS__ + #endif // defined(__linux__) +#endif // _WIN32 #include "../core/Exception.hpp" #include "TcpSocket.h" -constexpr uint32 CONNECT_TIMEOUT_MS = 3000; +constexpr auto CONNECT_TIMEOUT = std::chrono::milliseconds(3000); -#ifdef __WINDOWS__ +#ifdef _WIN32 static bool _wsaInitialised = false; #endif @@ -79,13 +79,6 @@ public: explicit SocketException(const std::string &message) : Exception(message) { } }; -struct ConnectRequest -{ - TcpSocket * Socket; - std::string Address; - uint16 Port; -}; - class TcpSocket final : public ITcpSocket { private: @@ -93,25 +86,22 @@ private: uint16 _listeningPort = 0; SOCKET _socket = INVALID_SOCKET; - std::string _hostName; - - SDL_mutex * _connectMutex = nullptr; - std::string _error; + std::string _hostName; + std::future _connectFuture; + std::string _error; public: TcpSocket() { - _connectMutex = SDL_CreateMutex(); } ~TcpSocket() override { - SDL_LockMutex(_connectMutex); + if (_connectFuture.valid()) { - CloseSocket(); + _connectFuture.wait(); } - SDL_UnlockMutex(_connectMutex); - SDL_DestroyMutex(_connectMutex); + CloseSocket(); } SOCKET_STATUS GetStatus() override @@ -264,7 +254,6 @@ public: } // Connect - uint32 connectStartTick; sint32 connectResult = connect(_socket, (sockaddr *)&ss, ss_len); if (connectResult != SOCKET_ERROR || (LAST_SOCKET_ERROR() != EINPROGRESS && LAST_SOCKET_ERROR() != EWOULDBLOCK)) @@ -272,7 +261,7 @@ public: throw SocketException("Failed to connect."); } - connectStartTick = SDL_GetTicks(); + auto connectStartTime = std::chrono::system_clock::now(); sint32 error = 0; socklen_t len = sizeof(error); @@ -288,7 +277,7 @@ public: do { // Sleep for a bit - SDL_Delay(100); + std::this_thread::sleep_for(std::chrono::milliseconds(100)); fd_set writeFD; FD_ZERO(&writeFD); @@ -310,7 +299,7 @@ public: return; } } - } while (!SDL_TICKS_PASSED(SDL_GetTicks(), connectStartTick + CONNECT_TIMEOUT_MS)); + } while ((std::chrono::system_clock::now() - connectStartTime) < CONNECT_TIMEOUT); // Connection request timed out throw SocketException("Connection timed out."); @@ -329,30 +318,22 @@ public: throw Exception("Socket not closed."); } - if (SDL_TryLockMutex(_connectMutex) == 0) + auto saddress = std::string(address); + std::promise barrier; + _connectFuture = barrier.get_future(); + auto thread = std::thread([this, saddress, port](std::promise barrier2) -> void { - // Spin off a worker thread for resolving the address - auto req = new ConnectRequest(); - req->Socket = this; - req->Address = std::string(address); - req->Port = port; - SDL_CreateThread([](void * pointer) -> sint32 + try { - auto req2 = static_cast(pointer); - try - { - req2->Socket->Connect(req2->Address.c_str(), req2->Port); - } - catch (const Exception & ex) - { - req2->Socket->_error = std::string(ex.GetMessage()); - } - - SDL_UnlockMutex(req2->Socket->_connectMutex); - delete req2; - return 0; - }, 0, req); - } + Connect(saddress.c_str(), port); + } + catch (const Exception &ex) + { + _error = std::string(ex.GetMessage()); + } + barrier2.set_value(); + }, std::move(barrier)); + thread.detach(); } void Disconnect() override @@ -419,11 +400,11 @@ public: void Close() override { - SDL_LockMutex(_connectMutex); + if (_connectFuture.valid()) { - CloseSocket(); + _connectFuture.wait(); } - SDL_UnlockMutex(_connectMutex); + CloseSocket(); } const char * GetHostName() const override From 80bdb25740c76ef9d549866a1253d412c57759bd Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 30 Mar 2017 18:25:35 +0100 Subject: [PATCH 011/670] Change http.cpp to use std::thread --- src/openrct2/network/http.cpp | 166 ++++++++++++++++++++-------------- src/openrct2/network/http.h | 1 - 2 files changed, 96 insertions(+), 71 deletions(-) diff --git a/src/openrct2/network/http.cpp b/src/openrct2/network/http.cpp index 8d1aa14b81..11de25c7fa 100644 --- a/src/openrct2/network/http.cpp +++ b/src/openrct2/network/http.cpp @@ -14,9 +14,10 @@ *****************************************************************************/ #pragma endregion +#include + extern "C" { #include "http.h" - #include "../platform/platform.h" } #ifdef DISABLE_HTTP @@ -41,6 +42,70 @@ void http_dispose() { } #define MIME_TYPE_APPLICATION_JSON "application/json" #define OPENRCT2_USER_AGENT "OpenRCT2/" OPENRCT2_VERSION +struct HttpRequest2 +{ + void * Tag = nullptr; + std::string Method; + std::string Url; + http_data_type Type; + size_t Size = 0; + union + { + char * Buffer = 0; + json_t * Json; + } Body; + + HttpRequest2() { } + + HttpRequest2(const HttpRequest2 &request) + { + Tag = request.Tag; + Method = request.Method; + Url = request.Url; + Type = request.Type; + Size = request.Size; + if (request.Type == HTTP_DATA_JSON) + { + Body.Json = json_deep_copy(request.Body.Json); + } + else + { + Body.Buffer = new char[request.Size]; + memcpy(Body.Buffer, request.Body.Buffer, request.Size); + } + } + + explicit HttpRequest2(const http_request_t * request) + { + Tag = request->tag; + Method = std::string(request->method); + Url = std::string(request->url); + Type = request->type; + Size = request->size; + if (request->type == HTTP_DATA_JSON) + { + Body.Json = json_deep_copy(request->root); + } + else + { + Body.Buffer = new char[request->size]; + memcpy(Body.Buffer, request->body, request->size); + } + } + + ~HttpRequest2() + { + if (Type == HTTP_DATA_JSON) + { + json_decref(Body.Json); + } + else + { + delete Body.Buffer; + } + } +}; + typedef struct read_buffer { char *ptr; size_t length; @@ -85,7 +150,7 @@ static size_t http_request_write_func(void *ptr, size_t size, size_t nmemb, void return newBytesLength; } -http_response_t *http_request(const http_request_t *request) +static http_response_t *http_request(const HttpRequest2 &request) { CURL *curl; CURLcode curlResult; @@ -97,13 +162,13 @@ http_response_t *http_request(const http_request_t *request) if (curl == NULL) return NULL; - if (request->type == HTTP_DATA_JSON && request->root != NULL) { - readBuffer.ptr = json_dumps(request->root, JSON_COMPACT); + if (request.Type == HTTP_DATA_JSON && request.Body.Json != NULL) { + readBuffer.ptr = json_dumps(request.Body.Json, JSON_COMPACT); readBuffer.length = strlen(readBuffer.ptr); readBuffer.position = 0; - } else if (request->type == HTTP_DATA_RAW && request->body != NULL) { - readBuffer.ptr = request->body; - readBuffer.length = request->size; + } else if (request.Type == HTTP_DATA_RAW && request.Body.Buffer != NULL) { + readBuffer.ptr = request.Body.Buffer; + readBuffer.length = request.Size; readBuffer.position = 0; } @@ -113,10 +178,10 @@ http_response_t *http_request(const http_request_t *request) curl_slist *headers = NULL; - if (request->type == HTTP_DATA_JSON) { + if (request.Type == HTTP_DATA_JSON) { headers = curl_slist_append(headers, "Accept: " MIME_TYPE_APPLICATION_JSON); - if (request->root != NULL) { + if (request.Body.Json != NULL) { headers = curl_slist_append(headers, "Content-Type: " MIME_TYPE_APPLICATION_JSON); } } @@ -129,18 +194,18 @@ http_response_t *http_request(const http_request_t *request) curl_easy_setopt(curl, CURLOPT_POSTFIELDS, readBuffer.ptr); } - curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, request->method); + curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, request.Method.c_str()); curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, true); curl_easy_setopt(curl, CURLOPT_USERAGENT, OPENRCT2_USER_AGENT); - curl_easy_setopt(curl, CURLOPT_URL, request->url); + curl_easy_setopt(curl, CURLOPT_URL, request.Url.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &writeBuffer); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, http_request_write_func); curlResult = curl_easy_perform(curl); - if (request->type == HTTP_DATA_JSON && request->root != NULL) { + if (request.Type == HTTP_DATA_JSON && request.Body.Json != NULL) { free(readBuffer.ptr); } @@ -173,7 +238,7 @@ http_response_t *http_request(const http_request_t *request) root = json_loads(writeBuffer.ptr, 0, &error); if (root != NULL) { response = (http_response_t*) malloc(sizeof(http_response_t)); - response->tag = request->tag; + response->tag = request.Tag; response->status_code = (sint32) httpStatusCode; response->root = root; response->type = HTTP_DATA_JSON; @@ -182,7 +247,7 @@ http_response_t *http_request(const http_request_t *request) free(writeBuffer.ptr); } else { response = (http_response_t*) malloc(sizeof(http_response_t)); - response->tag = request->tag; + response->tag = request.Tag; response->status_code = (sint32) httpStatusCode; response->body = writeBuffer.ptr; response->type = HTTP_DATA_RAW; @@ -194,54 +259,15 @@ http_response_t *http_request(const http_request_t *request) return response; } -void http_request_async(const http_request_t *request, void (*callback)(http_response_t*)) +void http_request_async(const http_request_t * request, void (*callback)(http_response_t*)) { - struct TempThreadArgs { - http_request_t request; - void (*callback)(http_response_t*); - }; - - TempThreadArgs *args = (TempThreadArgs*)malloc(sizeof(TempThreadArgs)); - args->request.url = _strdup(request->url); - args->request.method = request->method; - - if (request->type == HTTP_DATA_JSON) { - args->request.root = json_deep_copy(request->root); - } else { - char* bodyCopy = (char*) malloc(request->size); - memcpy(bodyCopy, request->body, request->size); - args->request.body = bodyCopy; - } - - args->request.type = request->type; - args->request.size = request->size; - args->request.tag = request->tag; - args->callback = callback; - - SDL_Thread *thread = SDL_CreateThread([](void *ptr) -> sint32 { - TempThreadArgs *args2 = (TempThreadArgs*)ptr; - - http_response_t *response = http_request(&args2->request); - args2->callback(response); - - free((char*)args2->request.url); - - if (args2->request.type == HTTP_DATA_JSON) { - json_decref((json_t*) args2->request.root); - } else { - free(args2->request.body); - } - - free(args2); - return 0; - }, NULL, args); - - if (thread == NULL) { - log_error("Unable to create thread!"); - callback(NULL); - } else { - SDL_DetachThread(thread); - } + auto request2 = HttpRequest2(request); + auto thread = std::thread([](const HttpRequest2 &req, void(*callback2)(http_response_t*)) -> void + { + http_response_t * response = http_request(req); + callback2(response); + }, std::move(request2), callback); + thread.detach(); } void http_request_dispose(http_response_t *response) @@ -269,15 +295,15 @@ const char *http_get_extension_from_url(const char *url, const char *fallback) bool http_download_park(const char *url, char tmpPath[L_tmpnam + 10]) { // Download park to buffer in memory - http_request_t request; - request.url = url; - request.method = "GET"; - request.type = HTTP_DATA_NONE; + HttpRequest2 request; + request.Url = url; + request.Method = "GET"; + request.Type = HTTP_DATA_NONE; - http_response_t *response = http_request(&request); + http_response_t *response = http_request(request); if (response == NULL || response->status_code != 200) { - Console::Error::WriteLine("Failed to download '%s'", request.url); + Console::Error::WriteLine("Failed to download '%s'", request.Url.c_str()); if (response != NULL) { http_request_dispose(response); } @@ -286,20 +312,20 @@ bool http_download_park(const char *url, char tmpPath[L_tmpnam + 10]) // Generate temporary filename that includes the original extension if (tmpnam(tmpPath) == NULL) { - Console::Error::WriteLine("Failed to generate temporary filename for downloaded park '%s'", request.url); + Console::Error::WriteLine("Failed to generate temporary filename for downloaded park '%s'", request.Url.c_str()); http_request_dispose(response); return false; } size_t remainingBytes = L_tmpnam + 10 - strlen(tmpPath); - const char *ext = http_get_extension_from_url(request.url, ".sv6"); + const char *ext = http_get_extension_from_url(request.Url.c_str(), ".sv6"); strncat(tmpPath, ext, remainingBytes); // Store park in temporary file and load it (discard ending NUL in response body) FILE* tmpFile = fopen(tmpPath, "wb"); if (tmpFile == NULL) { - Console::Error::WriteLine("Failed to write downloaded park '%s' to temporary file", request.url); + Console::Error::WriteLine("Failed to write downloaded park '%s' to temporary file", request.Url.c_str()); http_request_dispose(response); return false; } diff --git a/src/openrct2/network/http.h b/src/openrct2/network/http.h index 5806e9cd7d..842f4fe276 100644 --- a/src/openrct2/network/http.h +++ b/src/openrct2/network/http.h @@ -55,7 +55,6 @@ typedef struct http_response_t { #define HTTP_METHOD_PUT "PUT" #define HTTP_METHOD_DELETE "DELETE" -http_response_t *http_request(const http_request_t *request); void http_request_async(const http_request_t *request, void (*callback)(http_response_t*)); void http_request_dispose(http_response_t *response); From 4ba60cbf52827df14869d4efe2f9a77ab70a80bd Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 30 Mar 2017 18:29:22 +0100 Subject: [PATCH 012/670] Replace SDLRW with fopen in interop.c --- src/openrct2/rct2/interop.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/openrct2/rct2/interop.c b/src/openrct2/rct2/interop.c index 591b3d5f3e..e427bbb175 100644 --- a/src/openrct2/rct2/interop.c +++ b/src/openrct2/rct2/interop.c @@ -14,6 +14,8 @@ *****************************************************************************/ #pragma endregion +#include + #include "../common.h" #if defined(__WINDOWS__) @@ -179,17 +181,20 @@ bool rct2_interop_setup_segment() utf8 segmentDataPath[MAX_PATH]; rct2_interop_get_segment_data_path(segmentDataPath, sizeof(segmentDataPath)); - SDL_RWops * rw = SDL_RWFromFile(segmentDataPath, "rb"); - if (rw == NULL) + + // Warning: for Windows this will fail if given a non-ASCII path, + // but given this code is temporary - its not worth resolving. + FILE * file = fopen(segmentDataPath, "rb"); + if (file == NULL) { log_error("failed to load file"); return false; } - if (SDL_RWread(rw, segments, len, 1) != 1) { + if (fread(segments, len, 1, file) != 1) { log_error("Unable to read chunk header!"); return false; } - SDL_RWclose(rw); + fclose(file); #endif // defined(USE_MMAP) && defined(__WINDOWS__) #if !defined(NO_RCT2) && defined(USE_MMAP) From 8e6ea776f6ad3974ef3bc35ba88ede141a0dbf52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 30 Apr 2017 12:13:24 +0100 Subject: [PATCH 013/670] Add time.h include to shared.c for clock_gettime --- src/openrct2/platform/shared.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index e3115f5a8d..1c3b0c042c 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -15,6 +15,7 @@ #pragma endregion #include +#include #include "../audio/audio.h" #include "../audio/AudioMixer.h" #include "../config/Config.h" From 69907623762fb8d830da7db25b118999141b1d5f Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sun, 30 Apr 2017 14:20:09 +0200 Subject: [PATCH 014/670] Update Xcode project --- OpenRCT2.xcodeproj/project.pbxproj | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index ec0dd74686..e16baf74a9 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -227,6 +227,7 @@ C686F9541CDBC3B7009F9BFC /* submarine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9091CDBC3B7009F9BFC /* submarine_ride.c */; }; C686F9551CDBC3B7009F9BFC /* water_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F90A1CDBC3B7009F9BFC /* water_coaster.c */; }; C686F9581CDBC4C7009F9BFC /* vehicle_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9561CDBC4C7009F9BFC /* vehicle_paint.c */; }; + C68B2CB51EB60DDE0020651C /* server_list.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C68B2CB41EB60DDE0020651C /* server_list.cpp */; }; C6B5A7D41CDFE4CB00C9C006 /* S6Exporter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6B5A7D01CDFE4CB00C9C006 /* S6Exporter.cpp */; }; C6B5A7D51CDFE4CB00C9C006 /* S6Importer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6B5A7D21CDFE4CB00C9C006 /* S6Importer.cpp */; }; C6CABA7E1E13F11C00D33A6B /* hook.c in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E181E0406F00076A04F /* hook.c */; }; @@ -282,7 +283,6 @@ D44272011CC81B3200D84D28 /* Guard.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270E71CC81B3200D84D28 /* Guard.cpp */; }; D44272021CC81B3200D84D28 /* Json.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270EB1CC81B3200D84D28 /* Json.cpp */; }; D44272031CC81B3200D84D28 /* Path.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270F01CC81B3200D84D28 /* Path.cpp */; }; - D44272041CC81B3200D84D28 /* Stopwatch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270F21CC81B3200D84D28 /* Stopwatch.cpp */; }; D44272051CC81B3200D84D28 /* String.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270F51CC81B3200D84D28 /* String.cpp */; }; D44272061CC81B3200D84D28 /* textinputbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = D44270F91CC81B3200D84D28 /* textinputbuffer.c */; }; D44272081CC81B3200D84D28 /* diagnostic.c in Sources */ = {isa = PBXBuildFile; fileRef = D44270FE1CC81B3200D84D28 /* diagnostic.c */; }; @@ -392,7 +392,6 @@ D442727D1CC81B3200D84D28 /* ride_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BB1CC81B3200D84D28 /* ride_list.c */; }; D442727E1CC81B3200D84D28 /* save_prompt.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BC1CC81B3200D84D28 /* save_prompt.c */; }; D442727F1CC81B3200D84D28 /* scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BD1CC81B3200D84D28 /* scenery.c */; }; - D44272801CC81B3200D84D28 /* server_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BE1CC81B3200D84D28 /* server_list.c */; }; D44272811CC81B3200D84D28 /* server_start.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BF1CC81B3200D84D28 /* server_start.c */; }; D44272821CC81B3200D84D28 /* shortcut_key_change.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C01CC81B3200D84D28 /* shortcut_key_change.c */; }; D44272831CC81B3200D84D28 /* shortcut_keys.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C11CC81B3200D84D28 /* shortcut_keys.c */; }; @@ -695,6 +694,7 @@ C686F90A1CDBC3B7009F9BFC /* water_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = water_coaster.c; sourceTree = ""; }; C686F9561CDBC4C7009F9BFC /* vehicle_paint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = vehicle_paint.c; sourceTree = ""; }; C686F9571CDBC4C7009F9BFC /* vehicle_paint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = vehicle_paint.h; sourceTree = ""; }; + C68B2CB41EB60DDE0020651C /* server_list.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = server_list.cpp; sourceTree = ""; }; C6B5A7D01CDFE4CB00C9C006 /* S6Exporter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = S6Exporter.cpp; sourceTree = ""; }; C6B5A7D11CDFE4CB00C9C006 /* S6Exporter.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = S6Exporter.h; sourceTree = ""; }; C6B5A7D21CDFE4CB00C9C006 /* S6Importer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = S6Importer.cpp; sourceTree = ""; }; @@ -799,9 +799,6 @@ D44270EF1CC81B3200D84D28 /* Memory.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Memory.hpp; sourceTree = ""; usesTabs = 0; }; D44270F01CC81B3200D84D28 /* Path.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Path.cpp; sourceTree = ""; usesTabs = 0; }; D44270F11CC81B3200D84D28 /* Path.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Path.hpp; sourceTree = ""; usesTabs = 0; }; - D44270F21CC81B3200D84D28 /* Stopwatch.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Stopwatch.cpp; sourceTree = ""; usesTabs = 0; }; - D44270F31CC81B3200D84D28 /* stopwatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = stopwatch.h; sourceTree = ""; usesTabs = 1; wrapsLines = 1; }; - D44270F41CC81B3200D84D28 /* Stopwatch.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Stopwatch.hpp; sourceTree = ""; usesTabs = 0; }; D44270F51CC81B3200D84D28 /* String.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = String.cpp; sourceTree = ""; usesTabs = 0; }; D44270F61CC81B3200D84D28 /* String.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = String.hpp; sourceTree = ""; usesTabs = 0; }; D44270F71CC81B3200D84D28 /* StringBuilder.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = StringBuilder.hpp; sourceTree = ""; usesTabs = 0; }; @@ -970,7 +967,6 @@ D44271BB1CC81B3200D84D28 /* ride_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ride_list.c; sourceTree = ""; }; D44271BC1CC81B3200D84D28 /* save_prompt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = save_prompt.c; sourceTree = ""; }; D44271BD1CC81B3200D84D28 /* scenery.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scenery.c; sourceTree = ""; }; - D44271BE1CC81B3200D84D28 /* server_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = server_list.c; sourceTree = ""; }; D44271BF1CC81B3200D84D28 /* server_start.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = server_start.c; sourceTree = ""; }; D44271C01CC81B3200D84D28 /* shortcut_key_change.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = shortcut_key_change.c; sourceTree = ""; }; D44271C11CC81B3200D84D28 /* shortcut_keys.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = shortcut_keys.c; sourceTree = ""; }; @@ -1724,9 +1720,6 @@ D464FEBD1D31A66E00CBABAC /* MemoryStream.h */, D44270F01CC81B3200D84D28 /* Path.cpp */, D44270F11CC81B3200D84D28 /* Path.hpp */, - D44270F21CC81B3200D84D28 /* Stopwatch.cpp */, - D44270F31CC81B3200D84D28 /* stopwatch.h */, - D44270F41CC81B3200D84D28 /* Stopwatch.hpp */, D44270F51CC81B3200D84D28 /* String.cpp */, D44270F61CC81B3200D84D28 /* String.hpp */, D44270F71CC81B3200D84D28 /* StringBuilder.hpp */, @@ -2007,7 +2000,7 @@ D44271B91CC81B3200D84D28 /* ride.c */, D44271BC1CC81B3200D84D28 /* save_prompt.c */, D44271BD1CC81B3200D84D28 /* scenery.c */, - D44271BE1CC81B3200D84D28 /* server_list.c */, + C68B2CB41EB60DDE0020651C /* server_list.cpp */, D44271BF1CC81B3200D84D28 /* server_start.c */, D44271C01CC81B3200D84D28 /* shortcut_key_change.c */, D44271C11CC81B3200D84D28 /* shortcut_keys.c */, @@ -2856,6 +2849,7 @@ D42E337E1E5C27D600D630AF /* IniReader.cpp in Sources */, D442723B1CC81B3200D84D28 /* crash.cpp in Sources */, C650B21A1CCABBDD00B4D91C /* tables.cpp in Sources */, + C68B2CB51EB60DDE0020651C /* server_list.cpp in Sources */, D44272291CC81B3200D84D28 /* LanguagePack.cpp in Sources */, D44272901CC81B3200D84D28 /* title_options.c in Sources */, C6CABA821E1466D600D33A6B /* FileClassifier.cpp in Sources */, @@ -2892,7 +2886,6 @@ D44272061CC81B3200D84D28 /* textinputbuffer.c in Sources */, C686F9191CDBC3B7009F9BFC /* mine_ride.c in Sources */, C650B2191CCABBDD00B4D91C /* S4Importer.cpp in Sources */, - D44272801CC81B3200D84D28 /* server_list.c in Sources */, D44272911CC81B3200D84D28 /* title_scenarioselect.c in Sources */, C686F8B61CDBC37E009F9BFC /* misc.c in Sources */, D44272411CC81B3200D84D28 /* rct1.c in Sources */, @@ -2951,7 +2944,6 @@ D44272401CC81B3200D84D28 /* windows.c in Sources */, D44272881CC81B3200D84D28 /* text_input.c in Sources */, D442720F1CC81B3200D84D28 /* scrolling_text.c in Sources */, - D44272041CC81B3200D84D28 /* Stopwatch.cpp in Sources */, D43407D81D0E14BE00C2B3D4 /* DrawImageShader.cpp in Sources */, 007A05D01CFB2C8B00F419C3 /* NetworkGroup.cpp in Sources */, 656F6C8E1E45BFC200E0F770 /* Version.cpp in Sources */, From ac2eb8b5da621a1c95191a81906af1bc072f4963 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 30 Apr 2017 14:27:19 +0100 Subject: [PATCH 015/670] Fix FileStream for macOS --- src/openrct2/core/FileStream.hpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/openrct2/core/FileStream.hpp b/src/openrct2/core/FileStream.hpp index 1718e78906..683540308e 100644 --- a/src/openrct2/core/FileStream.hpp +++ b/src/openrct2/core/FileStream.hpp @@ -114,8 +114,10 @@ public: uint64 GetLength() const override { return _fileSize; } uint64 GetPosition() const override { -#ifdef _MSC_VER +#if defined(_MSC_VER) return _ftelli64(_file); +#elif (defined(__APPLE__) && defined(__MACH__)) + return ftello(_file); #else return ftello64(_file); #endif @@ -128,7 +130,7 @@ public: void Seek(sint64 offset, sint32 origin) override { -#ifdef _MSC_VER +#if defined(_MSC_VER) switch (origin) { case STREAM_SEEK_BEGIN: _fseeki64(_file, offset, SEEK_SET); @@ -140,6 +142,18 @@ public: _fseeki64(_file, offset, SEEK_END); break; } +#elif (defined(__APPLE__) && defined(__MACH__)) + switch (origin) { + case STREAM_SEEK_BEGIN: + fseeko(_file, offset, SEEK_SET); + break; + case STREAM_SEEK_CURRENT: + fseeko(_file, offset, SEEK_CUR); + break; + case STREAM_SEEK_END: + fseeko(_file, offset, SEEK_END); + break; + } #else switch (origin) { case STREAM_SEEK_BEGIN: From 44175b8b38ffa8f47c836f91ac9f01b22c1212de Mon Sep 17 00:00:00 2001 From: crorabaugh2015 Date: Thu, 4 May 2017 13:23:27 -0400 Subject: [PATCH 016/670] Fixes issue 5288 - updated intro.c (#5425) --- src/openrct2/intro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/intro.c b/src/openrct2/intro.c index 8b08f4bc2e..2059ad003e 100644 --- a/src/openrct2/intro.c +++ b/src/openrct2/intro.c @@ -106,7 +106,7 @@ void intro_update() } // Play long peep scream sound - _soundChannel = Mixer_Play_Effect(SOUND_SCREAM_1, MIXER_LOOP_NONE, SDL_MIX_MAXVOLUME, 0.5f, 1, true); + _soundChannel = Mixer_Play_Effect(SOUND_SCREAM_1, MIXER_LOOP_NONE, SDL_MIX_MAXVOLUME, 0.5f, 1, false); gIntroState++; _introStateCounter = 0; From 6e443343a8a92041767de380283b2042f5307a5c Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Thu, 4 May 2017 19:35:23 +0100 Subject: [PATCH 017/670] Update macOS deployment target to OS 10.8 --- OpenRCT2.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index e16baf74a9..c95cfabaf2 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -3193,7 +3193,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; LD_NO_PIE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.7; + MACOSX_DEPLOYMENT_TARGET = 10.8; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -3239,7 +3239,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; LD_NO_PIE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.7; + MACOSX_DEPLOYMENT_TARGET = 10.8; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; }; From e1d964cb26817fcce326fc09f42e098a3cc9de17 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Thu, 4 May 2017 22:00:25 +0100 Subject: [PATCH 018/670] Implement platform_get_ticks() for macOS <10.12 --- src/openrct2/platform/shared.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 1c3b0c042c..bf1feff425 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -39,6 +39,16 @@ #include "../world/Climate.h" #include "platform.h" +#ifdef __APPLE__ + #include +#endif + +#if (defined __APPLE__ \ +&& __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200 \ +&& __clang_major__ >= 8) +#define MACOS_SIERRA_ONWARDS 1 +#endif + typedef void(*update_palette_func)(const uint8*, sint32, sint32); openrct2_cursor gCursorState; @@ -765,6 +775,15 @@ uint32 platform_get_ticks() { #ifdef _WIN32 return GetTickCount(); +#elif defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) + mach_timebase_info_data_t mach_base_info; + kern_return_t ret = mach_timebase_info(&mach_base_info); + if (ret == 0){ + return (uint32)(((mach_absolute_time() * mach_base_info.numer) / mach_base_info.denom) / 1000000); + } else{ + log_fatal("Unable to get mach_timebase_info."); + exit(-1); + } #else struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { From 3d6f13da13f7abc203a33d911b60a769041d3640 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Thu, 4 May 2017 22:10:00 +0100 Subject: [PATCH 019/670] Whitespace fix --- src/openrct2/platform/shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index bf1feff425..55e0e76f65 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -778,9 +778,9 @@ uint32 platform_get_ticks() #elif defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) mach_timebase_info_data_t mach_base_info; kern_return_t ret = mach_timebase_info(&mach_base_info); - if (ret == 0){ + if (ret == 0) { return (uint32)(((mach_absolute_time() * mach_base_info.numer) / mach_base_info.denom) / 1000000); - } else{ + } else { log_fatal("Unable to get mach_timebase_info."); exit(-1); } From f8b79a4a3f7118f7d56e218e298c0c00d7b770c7 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Thu, 4 May 2017 22:33:32 +0100 Subject: [PATCH 020/670] Cache mach_base_info --- src/openrct2/platform/shared.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 55e0e76f65..ee1ff74495 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -81,6 +81,11 @@ static float _gestureRadius; static void platform_create_window(); +#if defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) + mach_timebase_info_data_t mach_base_info = { 0 }; + bool mach_info_initialised = false; +#endif + static sint32 resolution_sort_func(const void *pa, const void *pb) { const resolution_t *a = (resolution_t*)pa; @@ -776,14 +781,15 @@ uint32 platform_get_ticks() #ifdef _WIN32 return GetTickCount(); #elif defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) - mach_timebase_info_data_t mach_base_info; - kern_return_t ret = mach_timebase_info(&mach_base_info); - if (ret == 0) { - return (uint32)(((mach_absolute_time() * mach_base_info.numer) / mach_base_info.denom) / 1000000); - } else { - log_fatal("Unable to get mach_timebase_info."); - exit(-1); + if (!mach_info_initialised) { + kern_return_t ret = mach_timebase_info(&mach_base_info); + if (ret != 0) { + log_fatal("Unable to get mach_timebase_info."); + exit(-1); + } + mach_info_initialised = true; } + return (uint32)(((mach_absolute_time() * mach_base_info.numer) / mach_base_info.denom) / 1000000); #else struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { From 599af1c410c0995af9bca98aff9bddb8dc307bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 5 May 2017 01:02:30 +0200 Subject: [PATCH 021/670] Fix object entry empty check (#5435) --- src/openrct2/object_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/object_list.c b/src/openrct2/object_list.c index 0bfea2d5f2..c9b6d97b67 100644 --- a/src/openrct2/object_list.c +++ b/src/openrct2/object_list.c @@ -111,7 +111,7 @@ bool object_entry_is_empty(const rct_object_entry *entry) { uint64 a, b; memcpy(&a, (uint8 *)entry, 8); - memcpy(&b, (uint8 *)entry + 4, 8); + memcpy(&b, (uint8 *)entry + 8, 8); if (a == 0xFFFFFFFFFFFFFFFF && b == 0xFFFFFFFFFFFFFFFF) return true; if (a == 0 && b == 0) return true; From 28eb5fb279ba2d69301d4301e15a60ebceb245a5 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 5 May 2017 00:40:07 +0100 Subject: [PATCH 022/670] Move mach_timebase_info init to core_init() --- src/openrct2/platform/shared.c | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index ee1ff74495..b25b2b838e 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -41,12 +41,7 @@ #ifdef __APPLE__ #include -#endif - -#if (defined __APPLE__ \ -&& __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200 \ -&& __clang_major__ >= 8) -#define MACOS_SIERRA_ONWARDS 1 + #include #endif typedef void(*update_palette_func)(const uint8*, sint32, sint32); @@ -82,8 +77,7 @@ static float _gestureRadius; static void platform_create_window(); #if defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) - mach_timebase_info_data_t mach_base_info = { 0 }; - bool mach_info_initialised = false; + mach_timebase_info_data_t _mach_base_info = { 0 }; #endif static sint32 resolution_sort_func(const void *pa, const void *pb) @@ -780,16 +774,8 @@ uint32 platform_get_ticks() { #ifdef _WIN32 return GetTickCount(); -#elif defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) - if (!mach_info_initialised) { - kern_return_t ret = mach_timebase_info(&mach_base_info); - if (ret != 0) { - log_fatal("Unable to get mach_timebase_info."); - exit(-1); - } - mach_info_initialised = true; - } - return (uint32)(((mach_absolute_time() * mach_base_info.numer) / mach_base_info.denom) / 1000000); +#elif defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200) + return (uint32)(((mach_absolute_time() * _mach_base_info.numer) / _mach_base_info.denom) / 1000000); #else struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { @@ -822,4 +808,12 @@ uint8 platform_get_currency_value(const char *currCode) { void core_init() { bitcount_init(); + +#if defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) + kern_return_t ret = mach_timebase_info(&_mach_base_info); + if (ret != 0) { + log_fatal("Unable to get mach_timebase_info."); + exit(-1); + } +#endif } From 6e7ce919f753a0356d4624d9e6d648569e8b666f Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Fri, 5 May 2017 04:00:22 +0000 Subject: [PATCH 023/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/zh-TW.txt | 81 +++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/data/language/zh-TW.txt b/data/language/zh-TW.txt index 4c14216540..808a3c4b77 100644 --- a/data/language/zh-TW.txt +++ b/data/language/zh-TW.txt @@ -1554,32 +1554,32 @@ STR_1548 : STR_1549 : STR_1550 :{SMALLFONT}{OPENQUOTES}嘩!{ENDQUOTES} STR_1551 :{SMALLFONT}{OPENQUOTES}奇怪, 我覺得有人在悄悄地監視我{ENDQUOTES} -STR_1552 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一個氣球{ENDQUOTES} -STR_1553 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一隻毛公仔{ENDQUOTES} -STR_1554 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一份樂園地圖{ENDQUOTES} -STR_1555 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一張即時照片{ENDQUOTES} -STR_1556 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一把雨傘{ENDQUOTES} -STR_1557 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯飲料{ENDQUOTES} -STR_1558 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一個漢堡{ENDQUOTES} -STR_1559 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一客薯條{ENDQUOTES} -STR_1560 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一個冰淇淋{ENDQUOTES} -STR_1561 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一球棉花糖{ENDQUOTES} +STR_1552 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一個氣球{ENDQUOTES} +STR_1553 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一隻毛公仔{ENDQUOTES} +STR_1554 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一份樂園地圖{ENDQUOTES} +STR_1555 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一張即時照片{ENDQUOTES} +STR_1556 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一把雨傘{ENDQUOTES} +STR_1557 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯飲料{ENDQUOTES} +STR_1558 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一個漢堡{ENDQUOTES} +STR_1559 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一客薯條{ENDQUOTES} +STR_1560 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一個冰淇淋{ENDQUOTES} +STR_1561 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一球棉花糖{ENDQUOTES} STR_1562 : STR_1563 : STR_1564 : -STR_1565 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一件批薩{ENDQUOTES} +STR_1565 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一件批薩{ENDQUOTES} STR_1566 : -STR_1567 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一客爆米花{ENDQUOTES} -STR_1568 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一隻熱狗{ENDQUOTES} -STR_1569 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一隻觸手{ENDQUOTES} -STR_1570 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一頂帽子{ENDQUOTES} -STR_1571 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一個太妃蘋果糖{ENDQUOTES} -STR_1572 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一件T恤{ENDQUOTES} -STR_1573 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一件甜甜圈{ENDQUOTES} -STR_1574 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯咖啡{ENDQUOTES} +STR_1567 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一客爆米花{ENDQUOTES} +STR_1568 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一隻熱狗{ENDQUOTES} +STR_1569 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一隻觸手{ENDQUOTES} +STR_1570 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一頂帽子{ENDQUOTES} +STR_1571 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一個太妃蘋果糖{ENDQUOTES} +STR_1572 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一件T恤{ENDQUOTES} +STR_1573 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一件甜甜圈{ENDQUOTES} +STR_1574 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯咖啡{ENDQUOTES} STR_1575 : -STR_1576 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一客炸雞{ENDQUOTES} -STR_1577 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯檸檬水{ENDQUOTES} +STR_1576 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一客炸雞{ENDQUOTES} +STR_1577 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯檸檬水{ENDQUOTES} STR_1578 : STR_1579 : STR_1580 : @@ -1618,27 +1618,27 @@ STR_1612 : STR_1613 : STR_1614 : STR_1615 : -STR_1616 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一張即時照片{ENDQUOTES} -STR_1617 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一張即時照片{ENDQUOTES} -STR_1618 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一張即時照片{ENDQUOTES} -STR_1619 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一件椒鹽卷餅{ENDQUOTES} -STR_1620 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯熱巧克力{ENDQUOTES} -STR_1621 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯冰紅茶{ENDQUOTES} -STR_1622 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一個漏斗蛋糕{ENDQUOTES} -STR_1623 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一副太陽眼鏡{ENDQUOTES} -STR_1624 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一份牛肉麵{ENDQUOTES} -STR_1625 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一份炒米粉{ENDQUOTES} -STR_1626 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一客湯雲吞{ENDQUOTES} -STR_1627 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一客肉丸湯{ENDQUOTES} -STR_1628 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯果汁{ENDQUOTES} -STR_1629 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯豆漿{ENDQUOTES} -STR_1630 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一杯水正果{ENDQUOTES} -STR_1631 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一件潛艇三文治{ENDQUOTES} -STR_1632 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一件曲奇{ENDQUOTES} +STR_1616 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一張即時照片{ENDQUOTES} +STR_1617 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一張即時照片{ENDQUOTES} +STR_1618 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一張即時照片{ENDQUOTES} +STR_1619 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一件椒鹽卷餅{ENDQUOTES} +STR_1620 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯熱巧克力{ENDQUOTES} +STR_1621 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯冰紅茶{ENDQUOTES} +STR_1622 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一個漏斗蛋糕{ENDQUOTES} +STR_1623 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一副太陽眼鏡{ENDQUOTES} +STR_1624 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一份牛肉麵{ENDQUOTES} +STR_1625 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一份炒米粉{ENDQUOTES} +STR_1626 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一客湯雲吞{ENDQUOTES} +STR_1627 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一客肉丸湯{ENDQUOTES} +STR_1628 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯果汁{ENDQUOTES} +STR_1629 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯豆漿{ENDQUOTES} +STR_1630 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一杯水正果{ENDQUOTES} +STR_1631 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一件潛艇三文治{ENDQUOTES} +STR_1632 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一件曲奇{ENDQUOTES} STR_1633 : STR_1634 : STR_1635 : -STR_1636 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢去{STRINGID}購買一條烤香腸{ENDQUOTES} +STR_1636 :{SMALLFONT}{OPENQUOTES}我不會花這麼多錢在{STRINGID}購買一條烤香腸{ENDQUOTES} STR_1637 : STR_1638 : STR_1639 : @@ -4365,6 +4365,9 @@ STR_6052 :此高度點陣圖太大, 將被切割 STR_6053 :此高度點陣圖不能進行平均化 STR_6054 :只支援24位元的點陣圖 STR_6055 :OpenRCT2 高度點陣圖檔案 +STR_6056 :{SMALLFONT}{BLACK}靜音 +STR_6057 :{SMALLFONT}{BLACK}在工具列上顯示單獨的靜音按鈕 +STR_6058 :靜音 ############# # Scenarios # From 7fc9bf62ce51a58a9112677581c6fbe9daea07e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 5 May 2017 08:46:03 +0200 Subject: [PATCH 024/670] Fix macros detecting macOS version --- src/openrct2/platform/shared.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index b25b2b838e..cc9f92e33d 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -42,6 +42,9 @@ #ifdef __APPLE__ #include #include + #ifndef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ + #error Missing __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ define + #endif #endif typedef void(*update_palette_func)(const uint8*, sint32, sint32); @@ -76,7 +79,7 @@ static float _gestureRadius; static void platform_create_window(); -#if defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) +#if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) mach_timebase_info_data_t _mach_base_info = { 0 }; #endif @@ -809,7 +812,7 @@ void core_init() { bitcount_init(); -#if defined(__APPLE__) && !defined(MACOS_SIERRA_ONWARDS) +#if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) kern_return_t ret = mach_timebase_info(&_mach_base_info); if (ret != 0) { log_fatal("Unable to get mach_timebase_info."); From 03d111542571d4d8d77a97ad86753fb0ba6e9f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 5 May 2017 10:37:41 +0200 Subject: [PATCH 025/670] Fix macOS version detection macros again --- src/openrct2/platform/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index cc9f92e33d..145f4e71c4 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -777,7 +777,7 @@ uint32 platform_get_ticks() { #ifdef _WIN32 return GetTickCount(); -#elif defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200) +#elif defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) return (uint32)(((mach_absolute_time() * _mach_base_info.numer) / _mach_base_info.denom) / 1000000); #else struct timespec ts; From a25ce1e646af9f40bef997f15e9a28197d29ce14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 5 May 2017 16:54:44 +0200 Subject: [PATCH 026/670] Make Network::server_connection dynamically instantiated --- src/openrct2/network/network.cpp | 56 +++++++++++++++++--------------- src/openrct2/network/network.h | 2 +- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/src/openrct2/network/network.cpp b/src/openrct2/network/network.cpp index f84b6b89fa..d608a6dbe4 100644 --- a/src/openrct2/network/network.cpp +++ b/src/openrct2/network/network.cpp @@ -133,6 +133,7 @@ bool Network::Init() status = NETWORK_STATUS_READY; + server_connection = new NetworkConnection(); ServerName = std::string(); ServerDescription = std::string(); ServerGreeting = std::string(); @@ -151,8 +152,8 @@ void Network::Close() return; } if (mode == NETWORK_MODE_CLIENT) { - delete server_connection.Socket; - server_connection.Socket = nullptr; + delete server_connection->Socket; + server_connection->Socket = nullptr; } else if (mode == NETWORK_MODE_SERVER) { delete listening_socket; listening_socket = nullptr; @@ -163,9 +164,10 @@ void Network::Close() mode = NETWORK_MODE_NONE; status = NETWORK_STATUS_NONE; _lastConnectStatus = SOCKET_STATUS_CLOSED; - server_connection.AuthStatus = NETWORK_AUTH_NONE; - server_connection.InboundPacket.Clear(); - server_connection.SetLastDisconnectReason(nullptr); + server_connection->AuthStatus = NETWORK_AUTH_NONE; + server_connection->InboundPacket.Clear(); + server_connection->SetLastDisconnectReason(nullptr); + SafeDelete(server_connection); client_connection_list.clear(); game_command_queue.clear(); @@ -190,9 +192,9 @@ bool Network::BeginClient(const char* host, uint16 port) mode = NETWORK_MODE_CLIENT; - assert(server_connection.Socket == nullptr); - server_connection.Socket = CreateTcpSocket(); - server_connection.Socket->ConnectAsync(host, port); + assert(server_connection->Socket == nullptr); + server_connection->Socket = CreateTcpSocket(); + server_connection->Socket->ConnectAsync(host, port); status = NETWORK_STATUS_CONNECTING; _lastConnectStatus = SOCKET_STATUS_CLOSED; @@ -337,7 +339,7 @@ sint32 Network::GetStatus() sint32 Network::GetAuthStatus() { if (GetMode() == NETWORK_MODE_CLIENT) { - return server_connection.AuthStatus; + return server_connection->AuthStatus; } else if (GetMode() == NETWORK_MODE_SERVER) { return NETWORK_AUTH_OK; @@ -403,7 +405,7 @@ void Network::UpdateClient() switch(status){ case NETWORK_STATUS_CONNECTING: { - switch (server_connection.Socket->GetStatus()) { + switch (server_connection->Socket->GetStatus()) { case SOCKET_STATUS_RESOLVING: { if (_lastConnectStatus != SOCKET_STATUS_RESOLVING) @@ -434,7 +436,7 @@ void Network::UpdateClient() case SOCKET_STATUS_CONNECTED: { status = NETWORK_STATUS_CONNECTED; - server_connection.ResetLastPacketTime(); + server_connection->ResetLastPacketTime(); Client_Send_TOKEN(); char str_authenticating[256]; format_string(str_authenticating, 256, STR_MULTIPLAYER_AUTHENTICATING, NULL); @@ -445,7 +447,7 @@ void Network::UpdateClient() } default: { - const char * error = server_connection.Socket->GetError(); + const char * error = server_connection->Socket->GetError(); if (error != nullptr) { Console::Error::WriteLine(error); } @@ -460,15 +462,15 @@ void Network::UpdateClient() } case NETWORK_STATUS_CONNECTED: { - if (!ProcessConnection(server_connection)) { + if (!ProcessConnection(*server_connection)) { // Do not show disconnect message window when password window closed/canceled - if (server_connection.AuthStatus == NETWORK_AUTH_REQUIREPASSWORD) { + if (server_connection->AuthStatus == NETWORK_AUTH_REQUIREPASSWORD) { window_network_status_close(); } else { char str_disconnected[256]; - if (server_connection.GetLastDisconnectReason()) { - const char * disconnect_reason = server_connection.GetLastDisconnectReason(); + if (server_connection->GetLastDisconnectReason()) { + const char * disconnect_reason = server_connection->GetLastDisconnectReason(); format_string(str_disconnected, 256, STR_MULTIPLAYER_DISCONNECTED_WITH_REASON, &disconnect_reason); } else { format_string(str_disconnected, 256, STR_MULTIPLAYER_DISCONNECTED_NO_REASON, NULL); @@ -609,7 +611,7 @@ void Network::SetPassword(const char* password) void Network::ShutdownClient() { if (GetMode() == NETWORK_MODE_CLIENT) { - server_connection.Socket->Disconnect(); + server_connection->Socket->Disconnect(); } } @@ -858,8 +860,8 @@ void Network::Client_Send_TOKEN() log_verbose("requesting token"); std::unique_ptr packet(NetworkPacket::Allocate()); *packet << (uint32)NETWORK_COMMAND_TOKEN; - server_connection.AuthStatus = NETWORK_AUTH_REQUESTED; - server_connection.QueuePacket(std::move(packet)); + server_connection->AuthStatus = NETWORK_AUTH_REQUESTED; + server_connection->QueuePacket(std::move(packet)); } void Network::Client_Send_AUTH(const char* name, const char* password, const char* pubkey, const char *sig, size_t sigsize) @@ -873,8 +875,8 @@ void Network::Client_Send_AUTH(const char* name, const char* password, const cha assert(sigsize <= (size_t)UINT32_MAX); *packet << (uint32)sigsize; packet->Write((const uint8 *)sig, sigsize); - server_connection.AuthStatus = NETWORK_AUTH_REQUESTED; - server_connection.QueuePacket(std::move(packet)); + server_connection->AuthStatus = NETWORK_AUTH_REQUESTED; + server_connection->QueuePacket(std::move(packet)); } void Network::Client_Send_OBJECTS(const std::vector &objects) @@ -887,7 +889,7 @@ void Network::Client_Send_OBJECTS(const std::vector &objects) log_verbose("client requests object %s", objects[i].c_str()); packet->Write((const uint8 *)objects[i].c_str(), 8); } - server_connection.QueuePacket(std::move(packet)); + server_connection->QueuePacket(std::move(packet)); } void Network::Server_Send_TOKEN(NetworkConnection& connection) @@ -1015,7 +1017,7 @@ void Network::Client_Send_CHAT(const char* text) std::unique_ptr packet(NetworkPacket::Allocate()); *packet << (uint32)NETWORK_COMMAND_CHAT; packet->WriteString(text); - server_connection.QueuePacket(std::move(packet)); + server_connection->QueuePacket(std::move(packet)); } void Network::Server_Send_CHAT(const char* text) @@ -1031,7 +1033,7 @@ void Network::Client_Send_GAMECMD(uint32 eax, uint32 ebx, uint32 ecx, uint32 edx std::unique_ptr packet(NetworkPacket::Allocate()); *packet << (uint32)NETWORK_COMMAND_GAMECMD << (uint32)gCurrentTicks << eax << (ebx | GAME_COMMAND_FLAG_NETWORKED) << ecx << edx << esi << edi << ebp << callback; - server_connection.QueuePacket(std::move(packet)); + server_connection->QueuePacket(std::move(packet)); } void Network::Server_Send_GAMECMD(uint32 eax, uint32 ebx, uint32 ecx, uint32 edx, uint32 esi, uint32 edi, uint32 ebp, uint8 playerid, uint8 callback) @@ -1080,7 +1082,7 @@ void Network::Client_Send_PING() { std::unique_ptr packet(NetworkPacket::Allocate()); *packet << (uint32)NETWORK_COMMAND_PING; - server_connection.QueuePacket(std::move(packet)); + server_connection->QueuePacket(std::move(packet)); } void Network::Server_Send_PING() @@ -1963,7 +1965,7 @@ void Network::Client_Handle_PLAYERLIST(NetworkConnection& connection, NetworkPac if (player) { *player = tempplayer; if (player->Flags & NETWORK_PLAYER_FLAG_ISSERVER) { - server_connection.Player = player; + server_connection->Player = player; } } } @@ -2081,7 +2083,7 @@ void Network::Client_Send_GAMEINFO() log_verbose("requesting gameinfo"); std::unique_ptr packet(NetworkPacket::Allocate()); *packet << (uint32)NETWORK_COMMAND_GAMEINFO; - server_connection.QueuePacket(std::move(packet)); + server_connection->QueuePacket(std::move(packet)); } static std::string json_stdstring_value(const json_t * string) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 5b3b46e10a..536c5f7aa9 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -198,7 +198,7 @@ private: bool wsa_initialized = false; ITcpSocket * listening_socket = nullptr; uint16 listening_port = 0; - NetworkConnection server_connection; + NetworkConnection * server_connection = nullptr; SOCKET_STATUS _lastConnectStatus = SOCKET_STATUS_CLOSED; uint32 last_tick_sent_time = 0; uint32 last_ping_sent_time = 0; From 14ec639b4769a80227bb0eb0ba446d0c176dc11f Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 5 May 2017 18:08:02 +0100 Subject: [PATCH 027/670] Fix #5433: Strange Umbrella Pricing Bug Secondary shop item pricing was being overwritten by on-ride photo price when placing shop. (#5436) --- src/openrct2/ride/ride.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index a11dd24bff..c0ec0b7242 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -6105,8 +6105,8 @@ foundRideEntry: } } - // Set the on-ride photo price. (Whether the ride has one or not.) - if (shop_item_has_common_price(SHOP_ITEM_PHOTO)) { + // Set the on-ride photo price, whether the ride has one or not (except shops). + if (!ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_IS_SHOP) && shop_item_has_common_price(SHOP_ITEM_PHOTO)) { money32 price = shop_item_get_common_price(ride, SHOP_ITEM_PHOTO); if (price != MONEY32_UNDEFINED) { ride->price_secondary = (money16)price; From e103a90d593228a3d42e6c4afe55dfea75a6ff63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 5 May 2017 21:21:58 +0200 Subject: [PATCH 028/670] Update network version in wake of 14ec639 --- src/openrct2/network/network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 5b3b46e10a..80eda32bc0 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "0" +#define NETWORK_STREAM_VERSION "1" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus From 04b4ae429e481332a5fe60a606a729b7d24af350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 5 May 2017 22:25:47 +0200 Subject: [PATCH 029/670] Fix platform_get_ticks for POSIX Previously it did not include seconds --- src/openrct2/platform/shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 145f4e71c4..119f174649 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -785,7 +785,7 @@ uint32 platform_get_ticks() log_fatal("clock_gettime failed"); exit(-1); } - return (uint32)(ts.tv_nsec / 1000000); + return (uint32)(ts.tv_sec * 1000 + ts.tv_nsec / 1000000); #endif } From 1dffe4ea3fae814773b35158d603bca1ddafabbe Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Sat, 6 May 2017 04:00:22 +0000 Subject: [PATCH 030/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/cs-CZ.txt | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/data/language/cs-CZ.txt b/data/language/cs-CZ.txt index 4ae98de411..48e2ae7614 100644 --- a/data/language/cs-CZ.txt +++ b/data/language/cs-CZ.txt @@ -2750,7 +2750,7 @@ STR_2739 :Žádná STR_2740 :RollerCoaster Tycoon 1 STR_2741 :RollerCoaster Tycoon 2 STR_2742 :css50.dat nenalezen -STR_2743 :Nakopírujte data\css17.dat z vaší instalace RCT1 do to data\css50.dat ve vaší instalaci RCT2. +STR_2743 :Nakopírujte 'data/css17.dat' z vaší instalace RCT1 do 'data/css50.dat' ve vaší instalaci RCT2. STR_2744 :[ STR_2745 :\ STR_2746 :] @@ -4145,7 +4145,7 @@ STR_5832 :{SMALLFONT}{BLACK}Výškové jednotky zobrazit pouze číslem, bez STR_5833 :{SMALLFONT}{BLACK}Změní formát data STR_5834 :{SMALLFONT}{BLACK}Vyberte zvukové zařízení pro použití v OpenRCT2 STR_5835 :{SMALLFONT}{BLACK}Zakázat zvuky, pokud herní okno přestane být aktivní -STR_5836 :{SMALLFONT}{BLACK}Vyberte hudbu, která bude hrát na úvodní obrazovce.{NEWLINE}Výběr RCT1 znělky vyžaduje zkopírování a přejmenování 'data/css17.dat' ze složky RCT1 jako 'data/css50.dat' do vaší RCT2 složky. +STR_5836 :{SMALLFONT}{BLACK}Vyberte hudbu, která bude hrát na úvodní obrazovce.{NEWLINE}Výběr RCT1 znělky vyžaduje zkopírování a přejmenování 'data/css17.dat' ze složky RCT1 jako 'data/css50.dat' do vaší RCT2 složky, nebo nastavení cesty k RCT1 v nastavení. STR_5837 :{SMALLFONT}{BLACK}Vytvořit a spravovat vlastní barevné palety UI STR_5838 :{SMALLFONT}{BLACK}Zobrazit samostatné tlačítko pro financí na nástrojové liště STR_5839 :{SMALLFONT}{BLACK}Zobrazit samostatné tlačítko pro výzkum a vývoj na nástrojové liště @@ -4342,6 +4342,31 @@ STR_6029 :Stavba trati - odebrat aktivní část STR_6030 :{SMALLFONT}{BLACK}Výběr kulis. Klikněte na jakoukoliv kulisu na mapě pro postavení její kopie. STR_6031 :Popis serveru: STR_6032 :Uvítací zpráva serveru: +STR_6033 :Cesta k RCT1 instalaci: +STR_6035 :Prosím vyberte složku s RCT1 +STR_6036 :{SMALLFONT}{BLACK}Zrušit +STR_6037 :Prosím vyberte správnou složku s RCT1 +STR_6038 :{SMALLFONT}{BLACK}Pokud máte nainstalovaný RCT1, použijte tuto volbu k nastavení cesty k RCT1 pro možnost nahrání scénářů, hudby a dalších. +STR_6039 :{SMALLFONT}{BLACK}Rychle odebrat atrakci +STR_6040 :Upravit nastavení scénáře +STR_6041 :{BLACK}Nemáte najmuté žádné mechaniky! +STR_6042 :Načíst výškovou mapu +STR_6043 :Vybrat výškovou mapu +STR_6044 :Vyhladit výškovou mapu +STR_6045 :Síla +STR_6046 :Normalizovat výškovou mapu +STR_6047 :Vyhladit dlaždice +STR_6048 :Chyba výškové mapy +STR_6049 :Chyba při čtení PNG +STR_6050 :Chyba při čtení bitmapy +STR_6051 :Šířka a výška musí být stejné +STR_6052 :Výšková mapa je moc velká a bude oříznuta +STR_6053 :Výškovou mapu nelze normalizovat +STR_6054 :Podporovány jsou pouze 24-bitové bitmapy +STR_6055 :Soubor výškové mapy OpenRCT2 +STR_6056 :{SMALLFONT}{BLACK}Ztlumit +STR_6057 :{SMALLFONT}{BLACK}Na nástrojové liště zobrazovat samostatné tlačítko "Ztlumit" +STR_6058 :Ztlumit ############################################################################### ## RCT2 Objects From 268f6d9ac007eacd8d3a281c062f8571e0fdb7a2 Mon Sep 17 00:00:00 2001 From: zaxcav Date: Sat, 6 May 2017 16:51:47 +0200 Subject: [PATCH 031/670] Minor improvements to the path finding debugging (#5443) --- src/openrct2/peep/peep.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index 972b038ea6..bbbf9553e4 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -9203,12 +9203,12 @@ static void peep_pathfind_heuristic_search(sint16 x, sint16 y, uint8 z, rct_peep junctionList[junctInd].z = _peepPathFindHistory[histIdx].location.z; directionList[junctInd] = _peepPathFindHistory[histIdx].direction; } - #if defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 - if (gPathFindDebug) { - log_info("[%03d] Search path ends at %d,%d,%d; At goal; Score: %d", counter, x >> 5, y >> 5, z, *endScore); - } - #endif // defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 } + #if defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 + if (gPathFindDebug) { + log_info("[%03d] Search path ends at %d,%d,%d; At goal; Score: %d", counter, x >> 5, y >> 5, z, new_score); + } + #endif // defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 continue; } @@ -9260,7 +9260,7 @@ static void peep_pathfind_heuristic_search(sint16 x, sint16 y, uint8 z, rct_peep } #if defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 if (gPathFindDebug) { - log_info("[%03d] Search path ends at %d,%d,%d; Wide path; Score: %d", counter, x >> 5, y >> 5, z, *endScore); + log_info("[%03d] Search path ends at %d,%d,%d; Wide path; Score: %d", counter, x >> 5, y >> 5, z, new_score); } #endif // defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 continue; @@ -9320,7 +9320,7 @@ static void peep_pathfind_heuristic_search(sint16 x, sint16 y, uint8 z, rct_peep } #if defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 if (gPathFindDebug) { - log_info("[%03d] Search path ends at %d,%d,%d; Search limit reached", counter, x >> 5, y >> 5, z); + log_info("[%03d] Search path ends at %d,%d,%d; Search limit reached; Score: %d", counter, x >> 5, y >> 5, z, new_score); } #endif // defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 continue; @@ -9416,7 +9416,7 @@ static void peep_pathfind_heuristic_search(sint16 x, sint16 y, uint8 z, rct_peep } #if defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 if (gPathFindDebug) { - log_info("[%03d] Search path ends at %d,%d,%d; NumJunctions < 0; Score: %d", counter, x >> 5, y >> 5, z, *endScore); + log_info("[%03d] Search path ends at %d,%d,%d; NumJunctions < 0; Score: %d", counter, x >> 5, y >> 5, z, new_score); } #endif // defined(DEBUG_LEVEL_2) && DEBUG_LEVEL_2 continue; From fc873f2ce0c50a48f95268106e1abfcfc7ae9949 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Sat, 6 May 2017 19:14:04 +0100 Subject: [PATCH 032/670] Fix #4748: No way to see owned rights after #4701 This partially reverts #4701 - the land rights button in the park window will always be visible, and if no construction rights are available to buy, all owned rights will be displayed. --- src/openrct2/windows/land_rights.c | 6 ++++++ src/openrct2/windows/park.c | 9 --------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/openrct2/windows/land_rights.c b/src/openrct2/windows/land_rights.c index cd5703805d..75ad5ee085 100644 --- a/src/openrct2/windows/land_rights.c +++ b/src/openrct2/windows/land_rights.c @@ -114,10 +114,16 @@ void window_land_rights_open() gWaterToolLowerCost = MONEY32_UNDEFINED; show_land_rights(); + + if (gLandRemainingConstructionSales == 0) { + show_construction_rights(); + } } static void window_land_rights_close(rct_window *w) { + hide_construction_rights(); + // If the tool wasn't changed, turn tool off if (land_rights_tool_is_active()) tool_cancel(); diff --git a/src/openrct2/windows/park.c b/src/openrct2/windows/park.c index f289bf9101..936390e82e 100644 --- a/src/openrct2/windows/park.c +++ b/src/openrct2/windows/park.c @@ -1035,15 +1035,6 @@ static void window_park_entrance_invalidate(rct_window *w) window_park_entrance_widgets[i].bottom = height + 23; height += 24; } - - // Disable land rights button if there's no more construction/ownership for sale - if (gLandRemainingOwnershipSales == 0 && gLandRemainingConstructionSales == 0) { - w->disabled_widgets |= (1 << WIDX_BUY_LAND_RIGHTS); - window_park_entrance_widgets[WIDX_BUY_LAND_RIGHTS].tooltip = STR_NO_LAND_OR_CONSTRUCTION_RIGHTS_FOR_SALE_TIP; - } else { - w->disabled_widgets &= ~(1 << WIDX_BUY_LAND_RIGHTS); - window_park_entrance_widgets[WIDX_BUY_LAND_RIGHTS].tooltip = STR_BUY_LAND_AND_CONSTRUCTION_RIGHTS_TIP; - } } /** From c9eb2bdf77a6440b44df97501835988656b41996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 6 May 2017 20:43:54 +0200 Subject: [PATCH 033/670] Update version information in CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8abf28f8f5..ea3731916c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -480,5 +480,5 @@ endif () set(CPACK_PACKAGE_VERSION_MAJOR 0) set(CPACK_PACKAGE_VERSION_MINOR 0) -set(CPACK_PACKAGE_VERSION_PATCH 7) +set(CPACK_PACKAGE_VERSION_PATCH 8) INCLUDE(CPack) From e2f51d314ded3724c980d16ed20b2a1636405154 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Sat, 6 May 2017 21:32:13 +0100 Subject: [PATCH 034/670] Fix #5440: Autosaves in landscape folder aren't cleaned up --- src/openrct2/game.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/openrct2/game.c b/src/openrct2/game.c index e12c5a83bc..19e5804d75 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -961,7 +961,7 @@ static sint32 compare_autosave_file_paths (const void * a, const void * b ) { return strcmp(*(char **)a, *(char **)b); } -static void limit_autosave_count(const size_t numberOfFilesToKeep) +static void limit_autosave_count(const size_t numberOfFilesToKeep, bool processLandscapeFolder) { sint32 fileEnumHandle = 0; @@ -976,8 +976,13 @@ static void limit_autosave_count(const size_t numberOfFilesToKeep) size_t i=0; - platform_get_user_directory(filter, "save", sizeof(filter)); - safe_strcat_path(filter, "autosave_*.sv6", sizeof(filter)); + if (processLandscapeFolder) { + platform_get_user_directory(filter, "landscape", sizeof(filter)); + safe_strcat_path(filter, "autosave_*.sc6", sizeof(filter)); + } else { + platform_get_user_directory(filter, "save", sizeof(filter)); + safe_strcat_path(filter, "autosave_*.sv6", sizeof(filter)); + } // At first, count how many autosaves there are fileEnumHandle = platform_enumerate_files_begin(filter); @@ -999,7 +1004,11 @@ static void limit_autosave_count(const size_t numberOfFilesToKeep) memset(autosaveFiles[i], 0, sizeof(utf8) * MAX_PATH); if(platform_enumerate_files_next(fileEnumHandle, &fileInfo)) { - platform_get_user_directory(autosaveFiles[i], "save", sizeof(utf8) * MAX_PATH); + if (processLandscapeFolder) { + platform_get_user_directory(autosaveFiles[i], "landscape", sizeof(utf8) * MAX_PATH); + } else { + platform_get_user_directory(autosaveFiles[i], "save", sizeof(utf8) * MAX_PATH); + } safe_strcat_path(autosaveFiles[i], fileInfo.path, sizeof(utf8) * MAX_PATH); } } @@ -1048,7 +1057,7 @@ void game_autosave() currentDate.year, currentDate.month, currentDate.day, currentTime.hour, currentTime.minute, currentTime.second, fileExtension); - limit_autosave_count(NUMBER_OF_AUTOSAVES_TO_KEEP); + limit_autosave_count(NUMBER_OF_AUTOSAVES_TO_KEEP, (gScreenFlags & SCREEN_FLAGS_EDITOR)); utf8 path[MAX_PATH]; utf8 backupPath[MAX_PATH]; From 424bb406c320ac5c346e6da2d1168729deceef09 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Fri, 13 Jan 2017 22:17:45 +0000 Subject: [PATCH 035/670] Add support for x/y offsets to append command --- src/openrct2/cmdline_sprite.c | 38 ++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 4e3357af12..43340fceb1 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -289,7 +289,8 @@ static sint32 get_palette_index(sint16 *colour) return -1; } -static bool sprite_file_import(const char *path, rct_g1_element *outElement, uint8 **outBuffer, sint32 *outBufferLength, sint32 mode) + +static bool sprite_file_import(const char *path, int x_offset, int y_offset, rct_g1_element *outElement, uint8 **outBuffer, int *outBufferLength, sint32 mode) { uint8 *pixels; uint32 width, height; @@ -433,8 +434,8 @@ static bool sprite_file_import(const char *path, rct_g1_element *outElement, uin outElement->width = width; outElement->height = height; outElement->flags = G1_FLAG_RLE_COMPRESSION; - outElement->x_offset = 0; - outElement->y_offset = 0; + outElement->x_offset = x_offset; + outElement->y_offset = y_offset; outElement->zoomed_offset = 0; *outBuffer = buffer; @@ -595,18 +596,40 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) sprite_file_close(); return 1; } else if (_strcmpi(argv[0], "append") == 0) { - if (argc < 3) { - fprintf(stderr, "usage: sprite append \n"); + if (argc != 3 && argc != 5) { + fprintf(stderr, "usage: sprite append [x_offset y_offset]\n"); return -1; } + const char *spriteFilePath = argv[1]; const char *imagePath = argv[2]; + int x_offset=0; + int y_offset=0; + + if(argc == 5) { + char* endptr; + x_offset=strtol(argv[3],&endptr,0); + if(*endptr!=0) { + fprintf(stderr, "X offset must be an integer\n"); + return -1; + } + y_offset=strtol(argv[4],&endptr,0); + if(*endptr!=0) { + fprintf(stderr, "Y offset must be an integer\n"); + return -1; + } + } rct_g1_element spriteElement; uint8 *buffer; +<<<<<<< HEAD sint32 bufferLength; if (!sprite_file_import(imagePath, &spriteElement, &buffer, &bufferLength, gSpriteMode)) +======= + int bufferLength; + if (!sprite_file_import(imagePath, x_offset, y_offset, &spriteElement, &buffer, &bufferLength, gSpriteMode)) +>>>>>>> Add support for x/y offsets to append command return -1; if (!sprite_file_open(spriteFilePath)) { @@ -665,8 +688,13 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) SDL_RWclose(file); rct_g1_element spriteElement; uint8 *buffer; +<<<<<<< HEAD sint32 bufferLength; if (!sprite_file_import(imagePath, &spriteElement, &buffer, &bufferLength, gSpriteMode)) { +======= + int bufferLength; + if (!sprite_file_import(imagePath, 0, 0, &spriteElement, &buffer, &bufferLength, gSpriteMode)) { +>>>>>>> Add support for x/y offsets to append command fprintf(stderr, "Could not import image file: %s\nCanceling\n", imagePath); return -1; } From 942ea5be4b15c9ed8e2cd37c5ea4cf5857b1a06a Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Fri, 13 Jan 2017 23:05:43 +0000 Subject: [PATCH 036/670] Fix segfault when entered command doesn't exist --- src/openrct2/cmdline/CommandLine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openrct2/cmdline/CommandLine.cpp b/src/openrct2/cmdline/CommandLine.cpp index 2337744927..2f613905e7 100644 --- a/src/openrct2/cmdline/CommandLine.cpp +++ b/src/openrct2/cmdline/CommandLine.cpp @@ -568,6 +568,12 @@ extern "C" argEnumerator.TryPop(); const CommandLineCommand * command = CommandLine::FindCommandFor(CommandLine::RootCommands, &argEnumerator); + + if (command == nullptr) + { + return EXITCODE_FAIL; + } + if (command->Options != nullptr) { auto argEnumeratorForOptions = CommandLineArgEnumerator(argEnumerator); @@ -576,6 +582,7 @@ extern "C" return EXITCODE_FAIL; } } + if (command == CommandLine::RootCommands && command->Func == nullptr) { return CommandLine::HandleCommandDefault(); From e496271859e6ca1deadb8aed279c6b5e907f4cc9 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Fri, 13 Jan 2017 23:06:12 +0000 Subject: [PATCH 037/670] Add apparently missing commands to this list --- src/openrct2/cmdline/SpriteCommands.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2/cmdline/SpriteCommands.cpp b/src/openrct2/cmdline/SpriteCommands.cpp index 241e53438d..1ac6c2050c 100644 --- a/src/openrct2/cmdline/SpriteCommands.cpp +++ b/src/openrct2/cmdline/SpriteCommands.cpp @@ -40,12 +40,12 @@ static exitcode_t HandleSprite(CommandLineArgEnumerator *argEnumerator); const CommandLineCommand CommandLine::SpriteCommands[] { // Main commands - DefineCommand("append", " ", SpriteOptions, HandleSprite), - DefineCommand("build", " [silent]", SpriteOptions, HandleSprite), - DefineCommand("create", "", SpriteOptions, HandleSprite), - DefineCommand("details", " [idx]", SpriteOptions, HandleSprite), - DefineCommand("export", " ", SpriteOptions, HandleSprite), - DefineCommand("exportall", " ", SpriteOptions, HandleSprite), + DefineCommand("append", " [x_offset y_offset]", SpriteOptions, HandleSprite), + DefineCommand("build", " [silent]", SpriteOptions, HandleSprite), + DefineCommand("create", "", SpriteOptions, HandleSprite), + DefineCommand("details", " [idx]", SpriteOptions, HandleSprite), + DefineCommand("export", " ", SpriteOptions, HandleSprite), + DefineCommand("exportall", " ", SpriteOptions, HandleSprite), CommandTableEnd }; From 3b12e4cc66427df505939702b9213b1095d2d399 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 12:39:38 +0000 Subject: [PATCH 038/670] Add function to get an absolute path from a relative one --- src/openrct2/platform/platform.h | 1 + src/openrct2/platform/posix.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index ac93a317c5..62f076a89b 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -167,6 +167,7 @@ bool platform_original_game_data_exists(const utf8 *path); time_t platform_file_get_modified_time(const utf8* path); bool platform_ensure_directory_exists(const utf8 *path); bool platform_directory_delete(const utf8 *path); +char* platform_get_absolute_path(const char* relative_path,const char* base_path); bool platform_lock_single_instance(); sint32 platform_enumerate_files_begin(const utf8 *pattern); bool platform_enumerate_files_next(sint32 handle, file_info *outFileInfo); diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 3891930217..c39d32ae0b 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -262,6 +262,19 @@ bool platform_directory_delete(const utf8 *path) return true; } +char* platform_get_absolute_path(const char* relative_path,const char* base_path) +{ +char path[MAX_PATH]; + +//This is to get around the fact that dirname() doesn't take a const char* +char base_path_copy[MAX_PATH]; +safe_strcpy(base_path_copy,base_path,MAX_PATH); + +snprintf(path,MAX_PATH,"%s/%s",dirname(base_path_copy),relative_path); +return realpath(path,NULL); +} + + bool platform_lock_single_instance() { char pidFilePath[MAX_PATH]; From 4d46a255e0fd7c77c758203bd0efa6d58aa40cf8 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 12:52:09 +0000 Subject: [PATCH 039/670] Load sprite information from JSON file --- src/openrct2/cmdline_sprite.c | 71 ++++++++++++++++++++++++++++------- 1 file changed, 58 insertions(+), 13 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 43340fceb1..c3cc4cbf63 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include #include "cmdline_sprite.h" #include "drawing/drawing.h" #include "Imaging.h" @@ -623,13 +624,10 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) rct_g1_element spriteElement; uint8 *buffer; -<<<<<<< HEAD + sint32 bufferLength; - if (!sprite_file_import(imagePath, &spriteElement, &buffer, &bufferLength, gSpriteMode)) -======= - int bufferLength; if (!sprite_file_import(imagePath, x_offset, y_offset, &spriteElement, &buffer, &bufferLength, gSpriteMode)) ->>>>>>> Add support for x/y offsets to append command + return -1; if (!sprite_file_open(spriteFilePath)) { @@ -656,23 +654,35 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) return 1; } else if (_strcmpi(argv[0], "build") == 0) { if (argc < 3) { - fprintf(stdout, "usage: sprite build [silent]\n"); + fprintf(stdout, "usage: sprite build [silent]\n"); return -1; } const char *spriteFilePath = argv[1]; - const char *resourcePath = argv[2]; - char imagePath[MAX_PATH]; - size_t resourceLength = strlen(resourcePath); + const char *spriteDescriptionPath = argv[2]; + + json_error_t error; + json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); + + if(sprite_list == NULL) { + fprintf(stderr,"Error parsing sprite description file: %s at line %d column %d\n",error.text,error.line,error.column); + return -1; + } + + if(!json_is_array(sprite_list)) { + fprintf(stderr,"Error: expected array\n"); + json_decref(sprite_list); + return -1; + } bool silent = (argc >= 4 && strcmp(argv[3], "silent") == 0); - SDL_RWops *file; spriteFileHeader.num_entries = 0; spriteFileHeader.total_size = 0; sprite_file_save(spriteFilePath); fprintf(stdout, "Building: %s\n", spriteFilePath); +<<<<<<< HEAD sint32 i = 0; do { // Create image path @@ -695,12 +705,46 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) int bufferLength; if (!sprite_file_import(imagePath, 0, 0, &spriteElement, &buffer, &bufferLength, gSpriteMode)) { >>>>>>> Add support for x/y offsets to append command +======= + + size_t i; + json_t* sprite_description; + + json_array_foreach(sprite_list,i,sprite_description) { + if(!json_is_object(sprite_description)) { + fprintf(stderr,"Error: expected object for sprite %lu\n",(unsigned long)i); + json_decref(sprite_list); + return -1; + } + + json_t* path=json_object_get(sprite_description,"path"); + if(!path || !json_is_string(path)) { + fprintf(stderr,"Error: no path provided for sprite %lu\n",(unsigned long)i); + json_decref(sprite_list); + return -1; + } + //Get x and y offsets, if present + json_t* x_offset=json_object_get(sprite_description,"x_offset"); + json_t* y_offset=json_object_get(sprite_description,"y_offset"); + + + //Resolve absolute sprite path + char* imagePath=platform_get_absolute_path(json_string_value(path),spriteDescriptionPath); + + rct_g1_element spriteElement; + uint8 *buffer; + int bufferLength; + if (!sprite_file_import(imagePath, x_offset==NULL ? 0 : json_integer_value(x_offset), y_offset==NULL ? 0 : json_integer_value(y_offset), &spriteElement, &buffer, &bufferLength, gSpriteMode)) { +>>>>>>> Load sprite information from JSON file fprintf(stderr, "Could not import image file: %s\nCanceling\n", imagePath); + json_decref(sprite_list); return -1; } + if (!sprite_file_open(spriteFilePath)) { fprintf(stderr, "Unable to open sprite file: %s\nCanceling\n", spriteFilePath); +./ json_decref(sprite_list); return -1; } @@ -720,16 +764,17 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) if (!sprite_file_save(spriteFilePath)) { fprintf(stderr, "Could not save sprite file: %s\nCanceling\n", imagePath); + json_decref(sprite_list); return -1; } if (!silent) fprintf(stdout, "Added: %s\n", imagePath); sprite_file_close(); - } - i++; - } while (file != NULL); + } + json_decref(sprite_list); + fprintf(stdout, "Finished\n"); return 1; } else { From f12889c625fba0fc3549511b74a49f2dd4536cf2 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 12:53:40 +0000 Subject: [PATCH 040/670] Add JSON file to resources/g2 --- resources/g2/sprites.json | 482 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 482 insertions(+) create mode 100644 resources/g2/sprites.json diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json new file mode 100644 index 0000000000..cf8fbf047b --- /dev/null +++ b/resources/g2/sprites.json @@ -0,0 +1,482 @@ +[ + { + "id":0, + "path":"0.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":1, + "path":"1.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":2, + "path":"2.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":3, + "path":"3.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":4, + "path":"4.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":5, + "path":"5.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":6, + "path":"6.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":7, + "path":"7.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":8, + "path":"8.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":9, + "path":"9.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":10, + "path":"10.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":11, + "path":"11.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":12, + "path":"12.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":13, + "path":"13.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":14, + "path":"14.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":15, + "path":"15.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":16, + "path":"16.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":17, + "path":"17.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":18, + "path":"18.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":19, + "path":"19.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":20, + "path":"20.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":21, + "path":"21.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":22, + "path":"22.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":23, + "path":"23.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":24, + "path":"24.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":25, + "path":"25.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":26, + "path":"26.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":27, + "path":"27.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":28, + "path":"28.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":29, + "path":"29.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":30, + "path":"30.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":31, + "path":"31.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":32, + "path":"32.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":33, + "path":"33.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":34, + "path":"34.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":35, + "path":"35.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":36, + "path":"36.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":37, + "path":"37.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":38, + "path":"38.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":39, + "path":"39.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":40, + "path":"40.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":41, + "path":"41.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":42, + "path":"42.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":43, + "path":"43.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":44, + "path":"44.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":45, + "path":"45.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":46, + "path":"46.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":47, + "path":"47.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":48, + "path":"48.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":49, + "path":"49.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":50, + "path":"50.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":51, + "path":"51.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":52, + "path":"52.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":53, + "path":"53.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":54, + "path":"54.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":55, + "path":"55.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":56, + "path":"56.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":57, + "path":"57.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":58, + "path":"58.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":59, + "path":"59.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":60, + "path":"60.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":61, + "path":"61.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":62, + "path":"62.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":63, + "path":"63.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":64, + "path":"64.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":65, + "path":"65.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":66, + "path":"66.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":67, + "path":"67.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":68, + "path":"68.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":69, + "path":"69.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":70, + "path":"70.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":71, + "path":"71.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":72, + "path":"72.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":73, + "path":"73.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":74, + "path":"74.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":75, + "path":"75.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":76, + "path":"76.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":77, + "path":"77.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":78, + "path":"78.png", + "x_offset":0, + "y_offset":0 + }, + { + "id":79, + "path":"79.png", + "x_offset":0, + "y_offset":0 + } +] From 96856028bb90ce90f0ecd679f2cae43cdf44cca5 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 13:03:05 +0000 Subject: [PATCH 041/670] Fix misplaced characters --- src/openrct2/cmdline_sprite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index c3cc4cbf63..67502a6357 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -744,7 +744,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) if (!sprite_file_open(spriteFilePath)) { fprintf(stderr, "Unable to open sprite file: %s\nCanceling\n", spriteFilePath); -./ json_decref(sprite_list); + json_decref(sprite_list); return -1; } From 7a04cf05f716401e7ca6bb1c3fa3dbc1e3095187 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 14:15:00 +0000 Subject: [PATCH 042/670] Remove redundant paths --- resources/g2/sprites.json | 322 ++++++++++---------------------------- 1 file changed, 81 insertions(+), 241 deletions(-) diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index cf8fbf047b..f763505dde 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -1,482 +1,322 @@ [ { "id":0, - "path":"0.png", - "x_offset":0, - "y_offset":0 + "path":"0.png" }, { "id":1, - "path":"1.png", - "x_offset":0, - "y_offset":0 + "path":"1.png" }, { "id":2, - "path":"2.png", - "x_offset":0, - "y_offset":0 + "path":"2.png" }, { "id":3, - "path":"3.png", - "x_offset":0, - "y_offset":0 + "path":"3.png" }, { "id":4, - "path":"4.png", - "x_offset":0, - "y_offset":0 + "path":"4.png" }, { "id":5, - "path":"5.png", - "x_offset":0, - "y_offset":0 + "path":"5.png" }, { "id":6, - "path":"6.png", - "x_offset":0, - "y_offset":0 + "path":"6.png" }, { "id":7, - "path":"7.png", - "x_offset":0, - "y_offset":0 + "path":"7.png" }, { "id":8, - "path":"8.png", - "x_offset":0, - "y_offset":0 + "path":"8.png" }, { "id":9, - "path":"9.png", - "x_offset":0, - "y_offset":0 + "path":"9.png" }, { "id":10, - "path":"10.png", - "x_offset":0, - "y_offset":0 + "path":"10.png" }, { "id":11, - "path":"11.png", - "x_offset":0, - "y_offset":0 + "path":"11.png" }, { "id":12, - "path":"12.png", - "x_offset":0, - "y_offset":0 + "path":"12.png" }, { "id":13, - "path":"13.png", - "x_offset":0, - "y_offset":0 + "path":"13.png" }, { "id":14, - "path":"14.png", - "x_offset":0, - "y_offset":0 + "path":"14.png" }, { "id":15, - "path":"15.png", - "x_offset":0, - "y_offset":0 + "path":"15.png" }, { "id":16, - "path":"16.png", - "x_offset":0, - "y_offset":0 + "path":"16.png" }, { "id":17, - "path":"17.png", - "x_offset":0, - "y_offset":0 + "path":"17.png" }, { "id":18, - "path":"18.png", - "x_offset":0, - "y_offset":0 + "path":"18.png" }, { "id":19, - "path":"19.png", - "x_offset":0, - "y_offset":0 + "path":"19.png" }, { "id":20, - "path":"20.png", - "x_offset":0, - "y_offset":0 + "path":"20.png" }, { "id":21, - "path":"21.png", - "x_offset":0, - "y_offset":0 + "path":"21.png" }, { "id":22, - "path":"22.png", - "x_offset":0, - "y_offset":0 + "path":"22.png" }, { "id":23, - "path":"23.png", - "x_offset":0, - "y_offset":0 + "path":"23.png" }, { "id":24, - "path":"24.png", - "x_offset":0, - "y_offset":0 + "path":"24.png" }, { "id":25, - "path":"25.png", - "x_offset":0, - "y_offset":0 + "path":"25.png" }, { "id":26, - "path":"26.png", - "x_offset":0, - "y_offset":0 + "path":"26.png" }, { "id":27, - "path":"27.png", - "x_offset":0, - "y_offset":0 + "path":"27.png" }, { "id":28, - "path":"28.png", - "x_offset":0, - "y_offset":0 + "path":"28.png" }, { "id":29, - "path":"29.png", - "x_offset":0, - "y_offset":0 + "path":"29.png" }, { "id":30, - "path":"30.png", - "x_offset":0, - "y_offset":0 + "path":"30.png" }, { "id":31, - "path":"31.png", - "x_offset":0, - "y_offset":0 + "path":"31.png" }, { "id":32, - "path":"32.png", - "x_offset":0, - "y_offset":0 + "path":"32.png" }, { "id":33, - "path":"33.png", - "x_offset":0, - "y_offset":0 + "path":"33.png" }, { "id":34, - "path":"34.png", - "x_offset":0, - "y_offset":0 + "path":"34.png" }, { "id":35, - "path":"35.png", - "x_offset":0, - "y_offset":0 + "path":"35.png" }, { "id":36, - "path":"36.png", - "x_offset":0, - "y_offset":0 + "path":"36.png" }, { "id":37, - "path":"37.png", - "x_offset":0, - "y_offset":0 + "path":"37.png" }, { "id":38, - "path":"38.png", - "x_offset":0, - "y_offset":0 + "path":"38.png" }, { "id":39, - "path":"39.png", - "x_offset":0, - "y_offset":0 + "path":"39.png" }, { "id":40, - "path":"40.png", - "x_offset":0, - "y_offset":0 + "path":"40.png" }, { "id":41, - "path":"41.png", - "x_offset":0, - "y_offset":0 + "path":"41.png" }, { "id":42, - "path":"42.png", - "x_offset":0, - "y_offset":0 + "path":"42.png" }, { "id":43, - "path":"43.png", - "x_offset":0, - "y_offset":0 + "path":"43.png" }, { "id":44, - "path":"44.png", - "x_offset":0, - "y_offset":0 + "path":"44.png" }, { "id":45, - "path":"45.png", - "x_offset":0, - "y_offset":0 + "path":"45.png" }, { "id":46, - "path":"46.png", - "x_offset":0, - "y_offset":0 + "path":"46.png" }, { "id":47, - "path":"47.png", - "x_offset":0, - "y_offset":0 + "path":"47.png" }, { "id":48, - "path":"48.png", - "x_offset":0, - "y_offset":0 + "path":"48.png" }, { "id":49, - "path":"49.png", - "x_offset":0, - "y_offset":0 + "path":"49.png" }, { "id":50, - "path":"50.png", - "x_offset":0, - "y_offset":0 + "path":"50.png" }, { "id":51, - "path":"51.png", - "x_offset":0, - "y_offset":0 + "path":"51.png" }, { "id":52, - "path":"52.png", - "x_offset":0, - "y_offset":0 + "path":"52.png" }, { "id":53, - "path":"53.png", - "x_offset":0, - "y_offset":0 + "path":"53.png" }, { "id":54, - "path":"54.png", - "x_offset":0, - "y_offset":0 + "path":"54.png" }, { "id":55, - "path":"55.png", - "x_offset":0, - "y_offset":0 + "path":"55.png" }, { "id":56, - "path":"56.png", - "x_offset":0, - "y_offset":0 + "path":"56.png" }, { "id":57, - "path":"57.png", - "x_offset":0, - "y_offset":0 + "path":"57.png" }, { "id":58, - "path":"58.png", - "x_offset":0, - "y_offset":0 + "path":"58.png" }, { "id":59, - "path":"59.png", - "x_offset":0, - "y_offset":0 + "path":"59.png" }, { "id":60, - "path":"60.png", - "x_offset":0, - "y_offset":0 + "path":"60.png" }, { "id":61, - "path":"61.png", - "x_offset":0, - "y_offset":0 + "path":"61.png" }, { "id":62, - "path":"62.png", - "x_offset":0, - "y_offset":0 + "path":"62.png" }, { "id":63, - "path":"63.png", - "x_offset":0, - "y_offset":0 + "path":"63.png" }, { "id":64, - "path":"64.png", - "x_offset":0, - "y_offset":0 + "path":"64.png" }, { "id":65, - "path":"65.png", - "x_offset":0, - "y_offset":0 + "path":"65.png" }, { "id":66, - "path":"66.png", - "x_offset":0, - "y_offset":0 + "path":"66.png" }, { "id":67, - "path":"67.png", - "x_offset":0, - "y_offset":0 + "path":"67.png" }, { "id":68, - "path":"68.png", - "x_offset":0, - "y_offset":0 + "path":"68.png" }, { "id":69, - "path":"69.png", - "x_offset":0, - "y_offset":0 + "path":"69.png" }, { "id":70, - "path":"70.png", - "x_offset":0, - "y_offset":0 + "path":"70.png" }, { "id":71, - "path":"71.png", - "x_offset":0, - "y_offset":0 + "path":"71.png" }, { "id":72, - "path":"72.png", - "x_offset":0, - "y_offset":0 + "path":"72.png" }, { "id":73, - "path":"73.png", - "x_offset":0, - "y_offset":0 + "path":"73.png" }, { "id":74, - "path":"74.png", - "x_offset":0, - "y_offset":0 + "path":"74.png" }, { "id":75, - "path":"75.png", - "x_offset":0, - "y_offset":0 + "path":"75.png" }, { "id":76, - "path":"76.png", - "x_offset":0, - "y_offset":0 + "path":"76.png" }, { "id":77, - "path":"77.png", - "x_offset":0, - "y_offset":0 + "path":"77.png" }, { "id":78, - "path":"78.png", - "x_offset":0, - "y_offset":0 + "path":"78.png" }, { "id":79, - "path":"79.png", - "x_offset":0, - "y_offset":0 - } + "path":"79.png" + } ] From 92c8da4091912b87e607a12a91ed80a706334342 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 14:54:19 +0000 Subject: [PATCH 043/670] Use 16 bit integers for offsets --- src/openrct2/cmdline_sprite.c | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 67502a6357..0484ec057b 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -291,7 +291,7 @@ static sint32 get_palette_index(sint16 *colour) } -static bool sprite_file_import(const char *path, int x_offset, int y_offset, rct_g1_element *outElement, uint8 **outBuffer, int *outBufferLength, sint32 mode) +static bool sprite_file_import(const char *path, sint16 x_offset, sint16 y_offset, rct_g1_element *outElement, uint8 **outBuffer, int *outBufferLength, sint32 mode) { uint8 *pixels; uint32 width, height; @@ -605,8 +605,8 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) const char *spriteFilePath = argv[1]; const char *imagePath = argv[2]; - int x_offset=0; - int y_offset=0; + sint16 x_offset=0; + sint16 y_offset=0; if(argc == 5) { char* endptr; @@ -682,30 +682,6 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) sprite_file_save(spriteFilePath); fprintf(stdout, "Building: %s\n", spriteFilePath); -<<<<<<< HEAD - sint32 i = 0; - do { - // Create image path - safe_strcpy(imagePath, resourcePath, MAX_PATH); - if (resourcePath[resourceLength - 1] == '/' || resourcePath[resourceLength - 1] == '\\') - imagePath[resourceLength - 1] = 0; - char filename[16]; - snprintf(filename, 16, "%d.png", i); - safe_strcat_path(imagePath, filename, MAX_PATH); - - file = SDL_RWFromFile(imagePath, "r"); - if (file != NULL) { - SDL_RWclose(file); - rct_g1_element spriteElement; - uint8 *buffer; -<<<<<<< HEAD - sint32 bufferLength; - if (!sprite_file_import(imagePath, &spriteElement, &buffer, &bufferLength, gSpriteMode)) { -======= - int bufferLength; - if (!sprite_file_import(imagePath, 0, 0, &spriteElement, &buffer, &bufferLength, gSpriteMode)) { ->>>>>>> Add support for x/y offsets to append command -======= size_t i; json_t* sprite_description; @@ -735,7 +711,6 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) uint8 *buffer; int bufferLength; if (!sprite_file_import(imagePath, x_offset==NULL ? 0 : json_integer_value(x_offset), y_offset==NULL ? 0 : json_integer_value(y_offset), &spriteElement, &buffer, &bufferLength, gSpriteMode)) { ->>>>>>> Load sprite information from JSON file fprintf(stderr, "Could not import image file: %s\nCanceling\n", imagePath); json_decref(sprite_list); return -1; @@ -772,7 +747,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) sprite_file_close(); - } + } json_decref(sprite_list); fprintf(stdout, "Finished\n"); From aaf16a7ec5ee57622d65cc9b17c80e2647c40128 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 14:55:11 +0000 Subject: [PATCH 044/670] Amend usage message --- src/openrct2/cmdline_sprite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 0484ec057b..b65c69c84e 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -598,7 +598,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) return 1; } else if (_strcmpi(argv[0], "append") == 0) { if (argc != 3 && argc != 5) { - fprintf(stderr, "usage: sprite append [x_offset y_offset]\n"); + fprintf(stderr, "usage: sprite append [ ]\n"); return -1; } From 5e7ca2207ea23c1daf270187056fb68eeeb06a31 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 14:57:44 +0000 Subject: [PATCH 045/670] Fix indentation --- src/openrct2/cmdline/CommandLine.cpp | 8 ++++---- src/openrct2/platform/posix.c | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/openrct2/cmdline/CommandLine.cpp b/src/openrct2/cmdline/CommandLine.cpp index 2f613905e7..47fa2c8d54 100644 --- a/src/openrct2/cmdline/CommandLine.cpp +++ b/src/openrct2/cmdline/CommandLine.cpp @@ -569,10 +569,10 @@ extern "C" const CommandLineCommand * command = CommandLine::FindCommandFor(CommandLine::RootCommands, &argEnumerator); - if (command == nullptr) - { - return EXITCODE_FAIL; - } + if (command == nullptr) + { + return EXITCODE_FAIL; + } if (command->Options != nullptr) { diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index c39d32ae0b..775cb6925d 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -264,14 +264,14 @@ bool platform_directory_delete(const utf8 *path) char* platform_get_absolute_path(const char* relative_path,const char* base_path) { -char path[MAX_PATH]; + char path[MAX_PATH]; -//This is to get around the fact that dirname() doesn't take a const char* -char base_path_copy[MAX_PATH]; -safe_strcpy(base_path_copy,base_path,MAX_PATH); + //This is to get around the fact that dirname() doesn't take a const char* + char base_path_copy[MAX_PATH]; + safe_strcpy(base_path_copy,base_path,MAX_PATH); -snprintf(path,MAX_PATH,"%s/%s",dirname(base_path_copy),relative_path); -return realpath(path,NULL); + snprintf(path,MAX_PATH,"%s/%s",dirname(base_path_copy),relative_path); + return realpath(path,NULL); } From 1a32c73681ba52c432d6316608bf823a71c97ebd Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 15:00:53 +0000 Subject: [PATCH 046/670] Format JSON file --- resources/g2/sprites.json | 640 +++++++++++++++++++------------------- 1 file changed, 320 insertions(+), 320 deletions(-) diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index f763505dde..74811ec933 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -1,322 +1,322 @@ [ - { - "id":0, - "path":"0.png" - }, - { - "id":1, - "path":"1.png" - }, - { - "id":2, - "path":"2.png" - }, - { - "id":3, - "path":"3.png" - }, - { - "id":4, - "path":"4.png" - }, - { - "id":5, - "path":"5.png" - }, - { - "id":6, - "path":"6.png" - }, - { - "id":7, - "path":"7.png" - }, - { - "id":8, - "path":"8.png" - }, - { - "id":9, - "path":"9.png" - }, - { - "id":10, - "path":"10.png" - }, - { - "id":11, - "path":"11.png" - }, - { - "id":12, - "path":"12.png" - }, - { - "id":13, - "path":"13.png" - }, - { - "id":14, - "path":"14.png" - }, - { - "id":15, - "path":"15.png" - }, - { - "id":16, - "path":"16.png" - }, - { - "id":17, - "path":"17.png" - }, - { - "id":18, - "path":"18.png" - }, - { - "id":19, - "path":"19.png" - }, - { - "id":20, - "path":"20.png" - }, - { - "id":21, - "path":"21.png" - }, - { - "id":22, - "path":"22.png" - }, - { - "id":23, - "path":"23.png" - }, - { - "id":24, - "path":"24.png" - }, - { - "id":25, - "path":"25.png" - }, - { - "id":26, - "path":"26.png" - }, - { - "id":27, - "path":"27.png" - }, - { - "id":28, - "path":"28.png" - }, - { - "id":29, - "path":"29.png" - }, - { - "id":30, - "path":"30.png" - }, - { - "id":31, - "path":"31.png" - }, - { - "id":32, - "path":"32.png" - }, - { - "id":33, - "path":"33.png" - }, - { - "id":34, - "path":"34.png" - }, - { - "id":35, - "path":"35.png" - }, - { - "id":36, - "path":"36.png" - }, - { - "id":37, - "path":"37.png" - }, - { - "id":38, - "path":"38.png" - }, - { - "id":39, - "path":"39.png" - }, - { - "id":40, - "path":"40.png" - }, - { - "id":41, - "path":"41.png" - }, - { - "id":42, - "path":"42.png" - }, - { - "id":43, - "path":"43.png" - }, - { - "id":44, - "path":"44.png" - }, - { - "id":45, - "path":"45.png" - }, - { - "id":46, - "path":"46.png" - }, - { - "id":47, - "path":"47.png" - }, - { - "id":48, - "path":"48.png" - }, - { - "id":49, - "path":"49.png" - }, - { - "id":50, - "path":"50.png" - }, - { - "id":51, - "path":"51.png" - }, - { - "id":52, - "path":"52.png" - }, - { - "id":53, - "path":"53.png" - }, - { - "id":54, - "path":"54.png" - }, - { - "id":55, - "path":"55.png" - }, - { - "id":56, - "path":"56.png" - }, - { - "id":57, - "path":"57.png" - }, - { - "id":58, - "path":"58.png" - }, - { - "id":59, - "path":"59.png" - }, - { - "id":60, - "path":"60.png" - }, - { - "id":61, - "path":"61.png" - }, - { - "id":62, - "path":"62.png" - }, - { - "id":63, - "path":"63.png" - }, - { - "id":64, - "path":"64.png" - }, - { - "id":65, - "path":"65.png" - }, - { - "id":66, - "path":"66.png" - }, - { - "id":67, - "path":"67.png" - }, - { - "id":68, - "path":"68.png" - }, - { - "id":69, - "path":"69.png" - }, - { - "id":70, - "path":"70.png" - }, - { - "id":71, - "path":"71.png" - }, - { - "id":72, - "path":"72.png" - }, - { - "id":73, - "path":"73.png" - }, - { - "id":74, - "path":"74.png" - }, - { - "id":75, - "path":"75.png" - }, - { - "id":76, - "path":"76.png" - }, - { - "id":77, - "path":"77.png" - }, - { - "id":78, - "path":"78.png" - }, - { - "id":79, - "path":"79.png" - } + { + "id": 0, + "path": "0.png" + }, + { + "id": 1, + "path": "1.png" + }, + { + "id": 2, + "path": "2.png" + }, + { + "id": 3, + "path": "3.png" + }, + { + "id": 4, + "path": "4.png" + }, + { + "id": 5, + "path": "5.png" + }, + { + "id": 6, + "path": "6.png" + }, + { + "id": 7, + "path": "7.png" + }, + { + "id": 8, + "path": "8.png" + }, + { + "id": 9, + "path": "9.png" + }, + { + "id": 10, + "path": "10.png" + }, + { + "id": 11, + "path": "11.png" + }, + { + "id": 12, + "path": "12.png" + }, + { + "id": 13, + "path": "13.png" + }, + { + "id": 14, + "path": "14.png" + }, + { + "id": 15, + "path": "15.png" + }, + { + "id": 16, + "path": "16.png" + }, + { + "id": 17, + "path": "17.png" + }, + { + "id": 18, + "path": "18.png" + }, + { + "id": 19, + "path": "19.png" + }, + { + "id": 20, + "path": "20.png" + }, + { + "id": 21, + "path": "21.png" + }, + { + "id": 22, + "path": "22.png" + }, + { + "id": 23, + "path": "23.png" + }, + { + "id": 24, + "path": "24.png" + }, + { + "id": 25, + "path": "25.png" + }, + { + "id": 26, + "path": "26.png" + }, + { + "id": 27, + "path": "27.png" + }, + { + "id": 28, + "path": "28.png" + }, + { + "id": 29, + "path": "29.png" + }, + { + "id": 30, + "path": "30.png" + }, + { + "id": 31, + "path": "31.png" + }, + { + "id": 32, + "path": "32.png" + }, + { + "id": 33, + "path": "33.png" + }, + { + "id": 34, + "path": "34.png" + }, + { + "id": 35, + "path": "35.png" + }, + { + "id": 36, + "path": "36.png" + }, + { + "id": 37, + "path": "37.png" + }, + { + "id": 38, + "path": "38.png" + }, + { + "id": 39, + "path": "39.png" + }, + { + "id": 40, + "path": "40.png" + }, + { + "id": 41, + "path": "41.png" + }, + { + "id": 42, + "path": "42.png" + }, + { + "id": 43, + "path": "43.png" + }, + { + "id": 44, + "path": "44.png" + }, + { + "id": 45, + "path": "45.png" + }, + { + "id": 46, + "path": "46.png" + }, + { + "id": 47, + "path": "47.png" + }, + { + "id": 48, + "path": "48.png" + }, + { + "id": 49, + "path": "49.png" + }, + { + "id": 50, + "path": "50.png" + }, + { + "id": 51, + "path": "51.png" + }, + { + "id": 52, + "path": "52.png" + }, + { + "id": 53, + "path": "53.png" + }, + { + "id": 54, + "path": "54.png" + }, + { + "id": 55, + "path": "55.png" + }, + { + "id": 56, + "path": "56.png" + }, + { + "id": 57, + "path": "57.png" + }, + { + "id": 58, + "path": "58.png" + }, + { + "id": 59, + "path": "59.png" + }, + { + "id": 60, + "path": "60.png" + }, + { + "id": 61, + "path": "61.png" + }, + { + "id": 62, + "path": "62.png" + }, + { + "id": 63, + "path": "63.png" + }, + { + "id": 64, + "path": "64.png" + }, + { + "id": 65, + "path": "65.png" + }, + { + "id": 66, + "path": "66.png" + }, + { + "id": 67, + "path": "67.png" + }, + { + "id": 68, + "path": "68.png" + }, + { + "id": 69, + "path": "69.png" + }, + { + "id": 70, + "path": "70.png" + }, + { + "id": 71, + "path": "71.png" + }, + { + "id": 72, + "path": "72.png" + }, + { + "id": 73, + "path": "73.png" + }, + { + "id": 74, + "path": "74.png" + }, + { + "id": 75, + "path": "75.png" + }, + { + "id": 76, + "path": "76.png" + }, + { + "id": 77, + "path": "77.png" + }, + { + "id": 78, + "path": "78.png" + }, + { + "id": 79, + "path": "79.png" + } ] From 27695504154bdd43d5d70fe99a27cba9efa32497 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 15:02:10 +0000 Subject: [PATCH 047/670] Fix more indentation --- src/openrct2/cmdline_sprite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index b65c69c84e..d768501a3b 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -665,8 +665,8 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); if(sprite_list == NULL) { - fprintf(stderr,"Error parsing sprite description file: %s at line %d column %d\n",error.text,error.line,error.column); - return -1; + fprintf(stderr,"Error parsing sprite description file: %s at line %d column %d\n",error.text,error.line,error.column); + return -1; } if(!json_is_array(sprite_list)) { From e3ec934cc52ed00dabcd136079d8f7686021d97d Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 15:21:21 +0000 Subject: [PATCH 048/670] Remove redundant IDs --- resources/g2/sprites.json | 80 --------------------------------------- 1 file changed, 80 deletions(-) diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index 74811ec933..3619780dfb 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -1,322 +1,242 @@ [ { - "id": 0, "path": "0.png" }, { - "id": 1, "path": "1.png" }, { - "id": 2, "path": "2.png" }, { - "id": 3, "path": "3.png" }, { - "id": 4, "path": "4.png" }, { - "id": 5, "path": "5.png" }, { - "id": 6, "path": "6.png" }, { - "id": 7, "path": "7.png" }, { - "id": 8, "path": "8.png" }, { - "id": 9, "path": "9.png" }, { - "id": 10, "path": "10.png" }, { - "id": 11, "path": "11.png" }, { - "id": 12, "path": "12.png" }, { - "id": 13, "path": "13.png" }, { - "id": 14, "path": "14.png" }, { - "id": 15, "path": "15.png" }, { - "id": 16, "path": "16.png" }, { - "id": 17, "path": "17.png" }, { - "id": 18, "path": "18.png" }, { - "id": 19, "path": "19.png" }, { - "id": 20, "path": "20.png" }, { - "id": 21, "path": "21.png" }, { - "id": 22, "path": "22.png" }, { - "id": 23, "path": "23.png" }, { - "id": 24, "path": "24.png" }, { - "id": 25, "path": "25.png" }, { - "id": 26, "path": "26.png" }, { - "id": 27, "path": "27.png" }, { - "id": 28, "path": "28.png" }, { - "id": 29, "path": "29.png" }, { - "id": 30, "path": "30.png" }, { - "id": 31, "path": "31.png" }, { - "id": 32, "path": "32.png" }, { - "id": 33, "path": "33.png" }, { - "id": 34, "path": "34.png" }, { - "id": 35, "path": "35.png" }, { - "id": 36, "path": "36.png" }, { - "id": 37, "path": "37.png" }, { - "id": 38, "path": "38.png" }, { - "id": 39, "path": "39.png" }, { - "id": 40, "path": "40.png" }, { - "id": 41, "path": "41.png" }, { - "id": 42, "path": "42.png" }, { - "id": 43, "path": "43.png" }, { - "id": 44, "path": "44.png" }, { - "id": 45, "path": "45.png" }, { - "id": 46, "path": "46.png" }, { - "id": 47, "path": "47.png" }, { - "id": 48, "path": "48.png" }, { - "id": 49, "path": "49.png" }, { - "id": 50, "path": "50.png" }, { - "id": 51, "path": "51.png" }, { - "id": 52, "path": "52.png" }, { - "id": 53, "path": "53.png" }, { - "id": 54, "path": "54.png" }, { - "id": 55, "path": "55.png" }, { - "id": 56, "path": "56.png" }, { - "id": 57, "path": "57.png" }, { - "id": 58, "path": "58.png" }, { - "id": 59, "path": "59.png" }, { - "id": 60, "path": "60.png" }, { - "id": 61, "path": "61.png" }, { - "id": 62, "path": "62.png" }, { - "id": 63, "path": "63.png" }, { - "id": 64, "path": "64.png" }, { - "id": 65, "path": "65.png" }, { - "id": 66, "path": "66.png" }, { - "id": 67, "path": "67.png" }, { - "id": 68, "path": "68.png" }, { - "id": 69, "path": "69.png" }, { - "id": 70, "path": "70.png" }, { - "id": 71, "path": "71.png" }, { - "id": 72, "path": "72.png" }, { - "id": 73, "path": "73.png" }, { - "id": 74, "path": "74.png" }, { - "id": 75, "path": "75.png" }, { - "id": 76, "path": "76.png" }, { - "id": 77, "path": "77.png" }, { - "id": 78, "path": "78.png" }, { - "id": 79, "path": "79.png" } ] From 4214781430b803be7c4a25fc59c12036b5c2f4cf Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 17:11:27 +0000 Subject: [PATCH 049/670] Give sprites meaningful names --- resources/g2/icons/29.png | Bin 0 -> 202 bytes resources/g2/icons/30.png | Bin 0 -> 203 bytes resources/g2/icons/31.png | Bin 0 -> 191 bytes resources/g2/icons/32.png | Bin 0 -> 208 bytes resources/g2/icons/58.png | Bin 0 -> 387 bytes resources/g2/icons/cheats.png | Bin 0 -> 506 bytes resources/g2/icons/copy.png | Bin 0 -> 170 bytes resources/g2/icons/fast_forward.png | Bin 0 -> 352 bytes resources/g2/icons/game_speed_indicator.png | Bin 0 -> 219 bytes .../g2/icons/game_speed_indicator_double.png | Bin 0 -> 229 bytes resources/g2/icons/large_scenery.png | Bin 0 -> 912 bytes resources/g2/icons/map_gen_land.png | Bin 0 -> 585 bytes resources/g2/icons/map_gen_noise.png | Bin 0 -> 443 bytes resources/g2/icons/map_gen_trees.png | Bin 0 -> 497 bytes resources/g2/icons/multiplayer.png | Bin 0 -> 2968 bytes resources/g2/icons/paste.png | Bin 0 -> 1143 bytes resources/g2/icons/paths.png | Bin 0 -> 446 bytes resources/g2/icons/rct1_close_off.png | Bin 0 -> 232 bytes resources/g2/icons/rct1_close_off_pressed.png | Bin 0 -> 229 bytes resources/g2/icons/rct1_close_on.png | Bin 0 -> 271 bytes resources/g2/icons/rct1_close_on_pressed.png | Bin 0 -> 268 bytes resources/g2/icons/rct1_open_off.png | Bin 0 -> 240 bytes resources/g2/icons/rct1_open_off_pressed.png | Bin 0 -> 236 bytes resources/g2/icons/rct1_open_on.png | Bin 0 -> 282 bytes resources/g2/icons/rct1_open_on_pressed.png | Bin 0 -> 282 bytes resources/g2/icons/rct1_test_off.png | Bin 0 -> 242 bytes resources/g2/icons/rct1_test_off_pressed.png | Bin 0 -> 235 bytes resources/g2/icons/rct1_test_on.png | Bin 0 -> 280 bytes resources/g2/icons/rct1_test_on_pressed.png | Bin 0 -> 280 bytes resources/g2/icons/server_password.png | Bin 0 -> 176 bytes resources/g2/icons/small_scenery.png | Bin 0 -> 720 bytes resources/g2/icons/sort.png | Bin 0 -> 201 bytes resources/g2/icons/twitch.png | Bin 0 -> 403 bytes resources/g2/icons/zoom_in.png | Bin 0 -> 557 bytes resources/g2/icons/zoom_in_background.png | Bin 0 -> 335 bytes resources/g2/icons/zoom_out.png | Bin 0 -> 531 bytes resources/g2/icons/zoom_out_background.png | Bin 0 -> 328 bytes resources/g2/logo.png | Bin 0 -> 4582 bytes resources/g2/logo_text.png | Bin 0 -> 5334 bytes resources/g2/sprites.json | 151 +++++++++--------- resources/g2/track/junior/flat_to_steep_1.png | Bin 0 -> 518 bytes .../g2/track/junior/flat_to_steep_2_1.png | Bin 0 -> 255 bytes .../g2/track/junior/flat_to_steep_2_2.png | Bin 0 -> 264 bytes .../g2/track/junior/flat_to_steep_3_1.png | Bin 0 -> 272 bytes .../g2/track/junior/flat_to_steep_3_2.png | Bin 0 -> 254 bytes resources/g2/track/junior/flat_to_steep_4.png | Bin 0 -> 605 bytes .../track/junior/flat_to_steep_diagonal_1.png | Bin 0 -> 1229 bytes .../track/junior/flat_to_steep_diagonal_2.png | Bin 0 -> 970 bytes .../track/junior/flat_to_steep_diagonal_3.png | Bin 0 -> 1217 bytes .../track/junior/flat_to_steep_diagonal_4.png | Bin 0 -> 1112 bytes .../junior/flat_to_steep_diagonal_lift_1.png | Bin 0 -> 1300 bytes .../junior/flat_to_steep_diagonal_lift_2.png | Bin 0 -> 1004 bytes .../junior/flat_to_steep_diagonal_lift_3.png | Bin 0 -> 1312 bytes .../junior/flat_to_steep_diagonal_lift_4.png | Bin 0 -> 1209 bytes .../g2/track/junior/flat_to_steep_lift_1.png | Bin 0 -> 595 bytes .../track/junior/flat_to_steep_lift_2_1.png | Bin 0 -> 326 bytes .../track/junior/flat_to_steep_lift_2_2.png | Bin 0 -> 270 bytes .../track/junior/flat_to_steep_lift_3_1.png | Bin 0 -> 280 bytes .../track/junior/flat_to_steep_lift_3_2.png | Bin 0 -> 275 bytes .../g2/track/junior/flat_to_steep_lift_4.png | Bin 0 -> 721 bytes resources/g2/track/junior/steep_to_flat_1.png | Bin 0 -> 542 bytes .../g2/track/junior/steep_to_flat_2_1.png | Bin 0 -> 250 bytes .../g2/track/junior/steep_to_flat_2_2.png | Bin 0 -> 261 bytes .../g2/track/junior/steep_to_flat_3_1.png | Bin 0 -> 238 bytes .../g2/track/junior/steep_to_flat_3_2.png | Bin 0 -> 265 bytes resources/g2/track/junior/steep_to_flat_4.png | Bin 0 -> 577 bytes .../track/junior/steep_to_flat_diagonal_1.png | Bin 0 -> 1238 bytes .../track/junior/steep_to_flat_diagonal_2.png | Bin 0 -> 956 bytes .../track/junior/steep_to_flat_diagonal_3.png | Bin 0 -> 1248 bytes .../track/junior/steep_to_flat_diagonal_4.png | Bin 0 -> 1110 bytes .../junior/steep_to_flat_diagonal_lift_1.png | Bin 0 -> 1315 bytes .../junior/steep_to_flat_diagonal_lift_2.png | Bin 0 -> 976 bytes .../junior/steep_to_flat_diagonal_lift_3.png | Bin 0 -> 1325 bytes .../junior/steep_to_flat_diagonal_lift_4.png | Bin 0 -> 1210 bytes .../g2/track/junior/steep_to_flat_lift_1.png | Bin 0 -> 614 bytes .../track/junior/steep_to_flat_lift_2_1.png | Bin 0 -> 265 bytes .../track/junior/steep_to_flat_lift_2_2.png | Bin 0 -> 299 bytes .../track/junior/steep_to_flat_lift_3_1.png | Bin 0 -> 238 bytes .../track/junior/steep_to_flat_lift_3_2.png | Bin 0 -> 306 bytes .../g2/track/junior/steep_to_flat_lift_4.png | Bin 0 -> 691 bytes 80 files changed, 74 insertions(+), 77 deletions(-) create mode 100644 resources/g2/icons/29.png create mode 100644 resources/g2/icons/30.png create mode 100644 resources/g2/icons/31.png create mode 100644 resources/g2/icons/32.png create mode 100644 resources/g2/icons/58.png create mode 100644 resources/g2/icons/cheats.png create mode 100644 resources/g2/icons/copy.png create mode 100644 resources/g2/icons/fast_forward.png create mode 100644 resources/g2/icons/game_speed_indicator.png create mode 100644 resources/g2/icons/game_speed_indicator_double.png create mode 100644 resources/g2/icons/large_scenery.png create mode 100644 resources/g2/icons/map_gen_land.png create mode 100644 resources/g2/icons/map_gen_noise.png create mode 100644 resources/g2/icons/map_gen_trees.png create mode 100644 resources/g2/icons/multiplayer.png create mode 100644 resources/g2/icons/paste.png create mode 100644 resources/g2/icons/paths.png create mode 100644 resources/g2/icons/rct1_close_off.png create mode 100644 resources/g2/icons/rct1_close_off_pressed.png create mode 100644 resources/g2/icons/rct1_close_on.png create mode 100644 resources/g2/icons/rct1_close_on_pressed.png create mode 100644 resources/g2/icons/rct1_open_off.png create mode 100644 resources/g2/icons/rct1_open_off_pressed.png create mode 100644 resources/g2/icons/rct1_open_on.png create mode 100644 resources/g2/icons/rct1_open_on_pressed.png create mode 100644 resources/g2/icons/rct1_test_off.png create mode 100644 resources/g2/icons/rct1_test_off_pressed.png create mode 100644 resources/g2/icons/rct1_test_on.png create mode 100644 resources/g2/icons/rct1_test_on_pressed.png create mode 100644 resources/g2/icons/server_password.png create mode 100644 resources/g2/icons/small_scenery.png create mode 100644 resources/g2/icons/sort.png create mode 100644 resources/g2/icons/twitch.png create mode 100644 resources/g2/icons/zoom_in.png create mode 100644 resources/g2/icons/zoom_in_background.png create mode 100644 resources/g2/icons/zoom_out.png create mode 100644 resources/g2/icons/zoom_out_background.png create mode 100644 resources/g2/logo.png create mode 100644 resources/g2/logo_text.png create mode 100644 resources/g2/track/junior/flat_to_steep_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_2_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_2_2.png create mode 100644 resources/g2/track/junior/flat_to_steep_3_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_3_2.png create mode 100644 resources/g2/track/junior/flat_to_steep_4.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_2.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_3.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_4.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_lift_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_lift_2.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_lift_3.png create mode 100644 resources/g2/track/junior/flat_to_steep_diagonal_lift_4.png create mode 100644 resources/g2/track/junior/flat_to_steep_lift_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_lift_2_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_lift_2_2.png create mode 100644 resources/g2/track/junior/flat_to_steep_lift_3_1.png create mode 100644 resources/g2/track/junior/flat_to_steep_lift_3_2.png create mode 100644 resources/g2/track/junior/flat_to_steep_lift_4.png create mode 100644 resources/g2/track/junior/steep_to_flat_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_2_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_2_2.png create mode 100644 resources/g2/track/junior/steep_to_flat_3_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_3_2.png create mode 100644 resources/g2/track/junior/steep_to_flat_4.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_2.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_3.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_4.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_lift_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_lift_2.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_lift_3.png create mode 100644 resources/g2/track/junior/steep_to_flat_diagonal_lift_4.png create mode 100644 resources/g2/track/junior/steep_to_flat_lift_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_lift_2_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_lift_2_2.png create mode 100644 resources/g2/track/junior/steep_to_flat_lift_3_1.png create mode 100644 resources/g2/track/junior/steep_to_flat_lift_3_2.png create mode 100644 resources/g2/track/junior/steep_to_flat_lift_4.png diff --git a/resources/g2/icons/29.png b/resources/g2/icons/29.png new file mode 100644 index 0000000000000000000000000000000000000000..a95bea067328184131659914b85c768755439e2f GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0y~yU=U(pU=ZYBV_;yo5cTIL0|Ns~x}&cn1H;CC?mvmF z3=9mM1s;*b3=Dh+L6~vJ#O${W3=9$_t`Q}{`DrEPiAAXl1&Nt?C3<c)o%sfY?PW|sZQ-eXJ&zn!%A)Lp!A*cBQZ$sh+r6dNkvnM20 z^%yj0x|uVy9qj60e9^TsO@L=Y&IOGHtO*GW3`=hsuk_kAS&4yxfx*+&&t;ucLK6VZ CJv);C literal 0 HcmV?d00001 diff --git a/resources/g2/icons/30.png b/resources/g2/icons/30.png new file mode 100644 index 0000000000000000000000000000000000000000..4038923eafc98753bafb70abfccdbcf34a9d526b GIT binary patch literal 203 zcmeAS@N?(olHy`uVBq!ia0y~yU=U(pU=ZYBV_;yo5cTIL0|Ns~x}&cn1H;CC?mvmF z3=9mM1s;*b3=Dh+L6~vJ#O${W3=9$_t`Q}{`DrEPiAAXl1&Nt?C3<QV!N=-Yb?YU|CXXCE#zMFbxhvLN# aJ6AEku}yp!KaJO)0c5JHpUXO@geCxUpGR&0 literal 0 HcmV?d00001 diff --git a/resources/g2/icons/31.png b/resources/g2/icons/31.png new file mode 100644 index 0000000000000000000000000000000000000000..06b5f195c936f44a3cb9cdd5a4ac99d03aadfacb GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0y~yU=U(pU=ZYBV_;yo5cTIL0|Ns~x}&cn1H;CC?mvmF z3=9mM1s;*b3=Dh+L6~vJ#O${W3=9$_t`Q}{`DrEPiAAXl1&Nt?C3<c)o%sfY?PW|6(FvZ)hLDFSo;|sQf1|hR58qNx&@PxWaBwXe> r6p;Cd@hIB?hNEmfOi@g1Yz!LbwHy0OEKC>}7#KWV{an^LB{Ts5fgCpE literal 0 HcmV?d00001 diff --git a/resources/g2/icons/32.png b/resources/g2/icons/32.png new file mode 100644 index 0000000000000000000000000000000000000000..84d69e23372932df5ab7cc7f5922b774cbfcf8f3 GIT binary patch literal 208 zcmeAS@N?(olHy`uVBq!ia0y~yU=U(pU=ZYBV_;yo5cTIL0|Ns~x}&cn1H;CC?mvmF z3=9mM1s;*b3=Dh+L6~vJ#O${W3=9$_t`Q}{`DrEPiAAXl1&Nt?C3<NSs54@I14-?iy0XB4ude`@%$Aj3=E7Co-U3d9^P9g9h`c|fXC%! zBEN_OW3-TJfJ@hd9qxTooH<1t7>}J&+WWC0<+%W#eVE%Pjcr95OIiAF`^WyOIF=F5 za`5wZz0%sb-ba+z9Lus@R`XeC!Os<(*D8b;3D3D%diGPF$aj~nY9-gBA4{}2o*Vyr zf4)5=ymWrfyMno&vbZ+cJI<7j+3qAK*yFe84Db2=Z*I+!Gk@}EYF+q}%`0#&y@ctW z{P~07ITNm0pY7()?5$n9;OG6n_vSNwPpJ#A;i-|j_G1+$MwY1ONSRn`m)3=E#GelF{r5}E+E^qb@W literal 0 HcmV?d00001 diff --git a/resources/g2/icons/cheats.png b/resources/g2/icons/cheats.png new file mode 100644 index 0000000000000000000000000000000000000000..c6d2c04941c9c2f223b32ce5abe327cff100f7aa GIT binary patch literal 506 zcmeAS@N?(olHy`uVBq!ia0y~yV31>AV36TpW?*1&RQo@hfq|hnz$e6&fq_9>S=m^h z!QY$P-kKphTYh;ydvvt0w6XC1ZhrY{26K6KZf*YS%Z2&P#nt=S|Nm!jU$0(n&mbJk zU_M`*-=4u)o83KMJKtM;`|b3_@B5plPY<`|t`C>bH)fc;JGlFP@#WjMw;w({fBkyz zd{r36slaDWVj*gBlF3xXmwvJb~4-W26R@ZlSE>lkxVqjokED7=pW^j0RBaMN9 zQQFhRF{FZV>x6p$W&?q?^4!ewoUO7}HnFP@1srdw{ont5s*d5G8~;8#ahyE-dEeW$ z>zJLmBJRowFqB&~oVt?Br*t{3*4;cKO*yZzv7255WqV`8$ za}>Fjxuqj-bAjPPIn_t!ZttA8AjE5-^OqINs}@bFT=((hV)NgT9~-8Yt=M}w(b3@I z+0gAPzTXM&EB%*vVdB?xjn1^UlS+I4J^jic@@UQ86Zf}N|6lPcnR%jGdw6Bwllk%Y zOGB@E&exgx^v#ud{Kt2#l9p&+{$>8VD_de2EVkEts4M#3xBR8WRu+!OlhtbyYaRx4 z@f_YU`?A8pNmXhtic^#&lFsLM)hhj&QeV*^QYmU%s8_GD@7MjGtRI_1FRYTQXJTMr OVDNPHb6Mw<&;$U3Y1nW8 literal 0 HcmV?d00001 diff --git a/resources/g2/icons/copy.png b/resources/g2/icons/copy.png new file mode 100644 index 0000000000000000000000000000000000000000..7e0f3d7906cfe9d534d1bf1b3c17376f2c485b2c GIT binary patch literal 170 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|CT0c(hPjegvl$o|I0Jk_T>t<7ugt*k{{8=z z#-8687#J8!g8YIR9G=}sV_;zL_jGX#sff!xxskWQK*0H;_u&|GCf0pQ!55b_%=4)5 z5^5GuxMNd$(~jAy^QwQ^#@?jkS2PZ~%7^ENM#dbCYuw?*GQYKEx?&4&y~=@m)(oBb Xnz{e~-1xx2z`)??>gTe~DWM4fAapw& literal 0 HcmV?d00001 diff --git a/resources/g2/icons/fast_forward.png b/resources/g2/icons/fast_forward.png new file mode 100644 index 0000000000000000000000000000000000000000..674702e55092ec51082459e13474089b1e29e82b GIT binary patch literal 352 zcmeAS@N?(olHy`uVBq!ia0y~yU=U$oU=ZS9V_;y2zVJ_gfq{XsILO_JVcj{ImkbOH zEa{HEjtmSN`?>!lvNA9*a29w(7BevL9R^{>~w zjd*x;4+!ZrTu4YQuQ>gw_;|IkIs5VN(-PS>#z+N5*9CJV+q7-j|8lvtD0fe%#kJ|* z-Y<(t@KJdj)MzM}@OPfUhxbU=*!4}hDZ{a$r6;ns$W7AdSbJoHvB{OY{EU*qjO!ea zxim1|el2CB#uU@s(|NN}= zRPgU-L5oTUqfkTQ_ph%6JOu>z-k0ln*km9p(WJoeD1qY;!!iYCW`^ii+g#7PH#Rdc PFfe$!`njxgN@xNA!7V^I literal 0 HcmV?d00001 diff --git a/resources/g2/icons/game_speed_indicator_double.png b/resources/g2/icons/game_speed_indicator_double.png new file mode 100644 index 0000000000000000000000000000000000000000..24395cc1b733bb3d547ebfb03c6c3d859e5ca747 GIT binary patch literal 229 zcmeAS@N?(olHy`uVBq!ia0y~yVBiE{4mJh`h6fYb1Q-|?SkfJR9T^xl_H+M9WCckU zctjR6Fz_7$VMb96uLcGN28j~ah?3y^w370~qEv>0#LT=By}Z;C1rt33J=4@yqf`b4 zhGb6{#}JL+WCq5%>bCz0Yyt|KA2O)y_)+`6UZD3(o0l_#&!XRThB1OYyrE2t3XBt6 z{{1Z2pkgGwiiOF6NrChG*H;OiDP}Q_U+SuNC>YJQU{zpvbbw{z&45f62eBg|2M#bW Zd^C+;aP+Ig4h9AW22WQ%mvv4FO#oCbMZN$4 literal 0 HcmV?d00001 diff --git a/resources/g2/icons/large_scenery.png b/resources/g2/icons/large_scenery.png new file mode 100644 index 0000000000000000000000000000000000000000..39d0aae67906f2e047c40538ee59aadea4293987 GIT binary patch literal 912 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4mJh`h6m-gKNuJoSkfJR9T^xl_H+M9WMyDr z;4JWnEM{QfI|Ravq8eTeARQ&H5hcO-X(i=}MX3x0iJ5sNdU>fO3MP66dZwwZMyU)8 z%zU0Mjv*f2Tdz!XUY#g%{Nul7?q=?Ttq%?a5N-> za7cltDWO1-qlvp&frH)g$DQxR*CKDnR_M>MeSh!!ocrJB-2c4iy_e?G{l_l#UUggh zro`&$pKYOL-}g`7JK60ef4P!b^w&=oa>q+|U+>-{uil=z`syk#@lvBl>3eVLWcRvl zRBMRX9jkr&Zq-gn`6;V^|CL-&evv2eC+DkgzvnkSa%Vblee2el77xp|OKLmDM*Hi3 zKmFvZ>5(fb46$?PyPWYCZ4kLWu|k4Z*>ltD=^r&*S~=Iu6ZD)=wfg_`>(>o03ORgd z=<-e6D?5+fMR7&8KsHxe?+bpmix=KI<_jutKKYTL?!YCypn)qlT}&>& zKT=hH_b3;V3G zz?h-%;=NyDjFX64lA_N|Cp0syzQl5Ti>Nc2amoB+41YrFA2GL|NbSNdnRxOm@{j5 zL|;-msI-{r!|aCNMNfWxcxl4tSX#pz;Ct(3j1JSa?bjCtEDByy{6BK3_1)$F-&rRX z?U~b8SXbY2=guEV1=i1dHg~Mwd2(0qiDQxvY(Lp5>h*`(Tb~v9FS6i(X#;18tbS-| zmmM>Q@Db@aSFZFU{YvvTaVRvZJt*9_m7!@t+M3S`>*8Y0FkD`@{Jy+cBZuanM1_lO+64!{5;QX|b^2DN4hJwV* zyb`^<)Di^~Jp(<{)K;TZ1_s7mo-U3d9^PlCDi$$03b+<_aHuc|Hbw|eWL8j`z`?>K zDA?$rWO0CtufavBh=E0k-Qfv?prDLm`;8~1XO~+A?>?z_bV5n!^*21T>;C($SoC%M z>f7(dFCX-s=%1gPDsQ*TPm^J_Rn3%rEHNckM?WVdyuQlBP?fcv_m9}KL@Kv(s_l( zoms35PacYI?O#~AK7BP4$CM*>Y^y~XeoNF9Rx?%X;BQD2uKu>wne*LS!@Mm07a!K; z<{o}Mg{h)=SKr?ZGiyij#p_J%gA%{ISFOld&ye~p|9JApA`6k#XOBH-dbQlLXI*&e zH@k*6+jq}(WKGwvKCp>D`E}^jznTZKQm4tqrS6}XdiFucOxv(8kBcIu8bY6?$6G&r z$UnJrYy0MOgZDFEhD)5=`rNzyYveN#XO?e_5xf%X#3n4b_4Rj2+mt3#M|Fqwb>A`u)b)O|foWIsd#K)!vG_rhr oF14oEc6Dt-!;jTjTkRN|)NV&Vw*7yUfq{X+)78&qol`;+03sFfe*gdg literal 0 HcmV?d00001 diff --git a/resources/g2/icons/map_gen_noise.png b/resources/g2/icons/map_gen_noise.png new file mode 100644 index 0000000000000000000000000000000000000000..17b58d28c4b06a9fb6ed19f234dd9f89d95f1f3f GIT binary patch literal 443 zcmeAS@N?(olHy`uVBq!ia0y~yV322EV36iuW?*30{BVgZ0|P@~fKP}k0|UeIeD?X< z^LMYFEUv8Voov3?+Iso=_{Ed!?Sq4}gN-NKGxXPIPoM2yZqLv@KR(%9I-j4v++Dk0 zUAkD z0|RG)M`SSr1Gg{;GcwGYBf-GHz+U3%>&kwgjfqd4-%D_JKLZ29V^0^y5RLPDC&h|4 zDe$yKs(DRI6n6jjUtUT&si|sLceD7M=XZDWFTXOM&*9sikn2p&e`{YZ%e}=k`}V5^ zyI1YC@5*4-Y<*X9-;TdPgeB+ghf@VsZU(mukMpTLkdCpa+OpzQftQ%nU9%__xku_o z?eFjANL*H0`7xm)#@WQsbcJ)H`1gi~E(VPcUWPol9`;Ihy8!o+R6bTWYh&(aujUgQ z)NF6hIJDd(`i^3f$b=mZ`}kKJzQCq8DZ3!(M4J4R!yish(^C`rf7Y&`NiKMH&U?#W sIehcxbXc5zsKo9tZ%5$g;FVdQ&MBb@0Pu{W`Tzg` literal 0 HcmV?d00001 diff --git a/resources/g2/icons/map_gen_trees.png b/resources/g2/icons/map_gen_trees.png new file mode 100644 index 0000000000000000000000000000000000000000..6c2346466919bb6071c743402dee01a3975f07ce GIT binary patch literal 497 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%0AyEDH|s zK6QAqpj5+7*)cZ0_H^T9H%XN%{0EMgEzp#k%zWcqRnnvS7Kt_kt0~L(F)%PNc)I$z JtaD0e0swA1Jz@X= literal 0 HcmV?d00001 diff --git a/resources/g2/icons/paste.png b/resources/g2/icons/paste.png new file mode 100644 index 0000000000000000000000000000000000000000..a69189ee3e8590bcc659e22c5e66389056dd4aae GIT binary patch literal 1143 zcmeAS@N?(olHy`uVBq!ia0y~yU=Rag4rT@hhR<1ZI2jliBuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztFe_z-M3hAM`dB6B=jtVb)aX^@7BGN-jeSKyVsdtB zi9%9pdS;%j()-=}l@u~lY?Z=IeGPmIoKrJ0J*tXQgRA^PlB=?lEmM^2?G$V(tSWK~ za#KqZ6)JLb@`|l0Y?Z*~TICg6frRyy6u?SKvTcwn`GuBNuFf>#! zGt)CPF*P$Y)KM@pFf`IPFw!?L(={})GBvX@GFN~CB|8P1qLehNAQv~NT}3Hrwn`Z# zB?VUc`sL;2dgaD?`9+T7#d8;`MLTPi3R$GdIlgbLHwFq;OmQDX>KlDb#X~h zD#E>34K5C;EJ)Q4N-fSWElN%eN=;J+xv9X)xhOTUB)=#mKR*W+iUAqUdYPFiR<7peZU%_oohzU-Up!8{{fJpeMc`3F^ zMN0N|hB;+93=9l50X`wF@8ADdW?=Z=ZEP;j{(rIm|LxiPr-%PP-M;GCjW(6MCi!B{$NAG?4|9@)*hr+h?cm2=IGPY3OQoZfgy~WE`Whu{| znRO}j^TN%0J{c`N5|?;0uY=RD@Zt9+sdW1ve7#fqvkwSb2FKcK{Z^kV{-PxIIA`MD z?&GBw1K#J!T)6)0zs!#RH;orZ{*g?v`#$BHm2<_GegfO3MP66dZwwZMyU)8 zj5eMwjv*f2d#76S9dh7tsa5WCaP;)_JjtkG!NeZ_%d9&B`AOBQcZ#TU*?7?%k_RE<&_HcgC=c>tn5HSB%cWGA0Ou^5=tabSe zJQrsq8?*k)eb9U7`KpCN-}k@b+@s6CzN+Eg9oqwIR_T4%=CjTV!Z literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_close_off.png b/resources/g2/icons/rct1_close_off.png new file mode 100644 index 0000000000000000000000000000000000000000..e81026a20516ac92bf5e71c5ab1bff6a958c3256 GIT binary patch literal 232 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*SPZ!4!3;&}N-f|u=;9$MGCb?t+-=&F{Wqw3;s(p!@I*Qr`do literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_close_off_pressed.png b/resources/g2/icons/rct1_close_off_pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..3c09112bcbc8545ec799cc4167897bddf5211a96 GIT binary patch literal 229 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*?PZ!4!3;&}NqPZ9pd6=t>`!}-R{C(N#{-W1|X z>y$a_72vf|%WkfD*gaR<#Y_uaG~8`BPu}qV?;}5^!1FJjpGgg>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*+PZ!4!3;&}NH}W#GxDzVASzZ`u4_26U_AY3Z1xryvfAR z1d+?7rI=~Mp*986WSDqEEMx97PY$BTWNc-dB%hfkU)&=J5m@6P&*fnitc*18iR%&D@+Mj@ixY4f4|8E5_+A U{IX4gfq{X+)78&qol`;+0Geo7+W-In literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_close_on_pressed.png b/resources/g2/icons/rct1_close_on_pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..911a96b365fcfa1e29a83c6595cff5bb64beb956 GIT binary patch literal 268 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*MPZ!4!3;&}N4hl9X@UZ-hoWUB=|+75C8M~*K6CZO@unLs547xa6ur+ivpe9ocF-=y+_aaE<_P6? RF)%PNc)I$ztaD0e0ssx6TXO&a literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_open_off.png b/resources/g2/icons/rct1_open_off.png new file mode 100644 index 0000000000000000000000000000000000000000..55b8ae32970665b4c8f2fd6bf00ea5e608f8c9ad GIT binary patch literal 240 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*aPZ!4!3;&}N4)Qh_aJb$)(9GW7_eg;6p#Wch<;swtjK^#3D>Iq*Oi=i|Xw}rG z0$+c`b(l)T_+NahrC(vWWa_uw2kz(dom3Id)!y?sUL)<2{=~+KCL#;fmoAcJH)6c> oIN(cB_gCjNjJBL_qc^fX)_vB@z`(%Z>FVdQ&MBb@0CG4_`v3p{ literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_open_off_pressed.png b/resources/g2/icons/rct1_open_off_pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..c22e6db1713d739d9309b0f8231a35af09985a61 GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*KPZ!4!3;&}N4ssqa;9=hDC|_GLhwq}|uKz50i^6n;)W3)yoG9>`4T4b lp6%ggcVL}*VATxU!uM-sopoomF)%PNc)I$ztaD0e0stTDPu2hc literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_open_on.png b/resources/g2/icons/rct1_open_on.png new file mode 100644 index 0000000000000000000000000000000000000000..bde9cde380ed642acce8c8679100b6cc12ea261b GIT binary patch literal 282 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*1o-U3d7XHZ+79alqueT_RU;od(YQL>S^NkZl5)5jLL38Tu{``OR{qO(X@5P%9 zJNm!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*1o-U3d7XHZ+79alqueX@CKJCZ)d*}I%DVS}NVQcU_U^4T(xck8h(?!`u@$3KD zSMC4%|Ig=#2~w-wN_-VsyYGMh|9)RQ&vg!=b}e^?m{|!DOC+B#ttet?$Yk+U%4W)J zNL(Z3=+}C)Z4IZ};}WeCj}2{6ha!a@}$KgL*hZM{< f-Em-KV`I?%`bqreZN)1L3=9mOu6{1-oD!M!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p)#PZ!4!3;&}NF7h@QaIpR?=5R0Iu$Mi+D0A3QMzUDTi!1lfYj3^W25!zv`m26z z>RBXrpL-))^KF$~=f88u@o6qimeu?5`>f*3ltsC%>3_J7`utKgx-e;$(v>A4TOK>8 qIaJAX#p!LV>o8rQ=D5CN&h6^mhl8BEoER7w7(8A5T-G@yGywp|I!`bF literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_test_off_pressed.png b/resources/g2/icons/rct1_test_off_pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..13c5deff4f0621eeeba2a995a0811fd296ec374c GIT binary patch literal 235 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*qPZ!4!3;&}NE^;;)@VIPlSGH)G-}g|WPu}v(%*DRl^|lpTOulOzxpwrf{kgL- z7bC^_qB?z!dIflG)Qa2vvv!aA{YCQv83UB2ES@Lnx#R!8LY2l9=_QuAGpC$B_}J&! j9&UCA)~N?p&9JTfyyY%e%L9G}1_lOCS3j3^P6!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*{o-U3d7XC*kZsct+;9=R!$g1jWAjBMKz?K{kV8ozo;NaDzp8rNb)j`^Oy~U01 zzc|9zGq}7h=H6eb^zG#u4e0_&cm6rT589*m{BLARtW7Ckcz=^yW8x9ZMxz4B*^@-v z^`1`9JYaJD>vE+T&OQsPSaq{Z3_Q-CUs1Ee;nlf&?`+;~7dhG=zrk_8!cmWyWjB^@ ej(U2Bwf&L7l#LT6zF}ZsVDNPHb6Mw<&;$S~ykCI; literal 0 HcmV?d00001 diff --git a/resources/g2/icons/rct1_test_on_pressed.png b/resources/g2/icons/rct1_test_on_pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..d65776eb7675679f4b04093ded1f4cd30b501ce0 GIT binary patch literal 280 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*{o-U3d7XHZ+79alqueW%|pZ0&hjeL`1PKqTD!{mm{TldfQH+{@nveEcK`qX|NO^-UWLLHMJxwaa<(H#B_XPt31B0ilpUXO@geCy^WMhv2 literal 0 HcmV?d00001 diff --git a/resources/g2/icons/server_password.png b/resources/g2/icons/server_password.png new file mode 100644 index 0000000000000000000000000000000000000000..df841457066aa674a74375828249dbe7f47cec68 GIT binary patch literal 176 zcmeAS@N?(olHy`uVBq!ia0y~yVBi2@4mJh`h9ms@x)~T4SkfJR9T^xl_H+M9WMyDr z;4JWnEM{QfI|Ravq8eTe3=9ksC9V-A!TD(=<%vb93~dIoxCe|nPd zGcYjddAc};Xapz!`2XLY<^BEt@~qBB1t%G_8t{lJJ27@NvQJ*YaI-=~Es&Az-hX)p ZiJYsVo-3U@7#J8BJYD@<);T3K0RW+|F;@Tp literal 0 HcmV?d00001 diff --git a/resources/g2/icons/small_scenery.png b/resources/g2/icons/small_scenery.png new file mode 100644 index 0000000000000000000000000000000000000000..efbe194fa8aa73c709d2b1df1e7cb084b3a2a276 GIT binary patch literal 720 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4mJh`h6m-gKNuJoSkfJR9T^xl_H+M9WMyDr z;4JWnEM{QfI|Ravq8eTeARQ&H5hcO-X(i=}MX3x0iJ5sNdU>fO3MP66dZwwZMyU)8 zOn#m&jv*f2d#5feV=@$Qy&f8(ASlY=!kWa&v~f`qD^sIGNQgpMn1Xyg%BE92f4*%9Cb1YAuQTu*2rEKA@(-LReIJ38Pf4OC|?C)!h^UniaS3iGzWsO>9 zam2FA-|fz~Kem$fpS>rpWb>ape^VbQe6WyA`H*I)GkZ~?#EIL>bPJwooGAW2J&}RA z??QpysnDb8Aqk=qPGJH^@5Hw;@>qx^OB^`pJ@sG*Lr{yUQb?mf;khY|$?^uPHV7TH zFqvih^e_XXa*8NdVqCCfoV#`9iG*1_{xXfbvbip}8CAyy9(hyEv_goX?v7vnK1Z35 z1HZ$399JitooQs@&~V0n*YkM|kzCiybFck4u=s@N|7gYs(V`3w{$(1mMJP5LV5ttZ zWxU7W@TEa(#>dxBHB4VWztjCulI_mTHOb%hxN;?i|9RSVBV{rp^U|FR)7wkU_LU@u zEs{uh_&@BxRffKT1!sOleBXK6xbWe*1B}W(m%{%nWuL*sV0b-E{yG=a=T#Ah6(7d2 znzfbR>-XJZu)0fBVmrSY!QO>>pXSbiwHv0YjySMzA zTV69dBU$&I-Ny8AFIP?XqpuMM;}`Bo(|^84sYT$xd(I0YasoZI9Z7;ZG7D}NGdHw; zXK6{UY0D&uUEIW z%>JLYZmM9jL*vo^Pj}^hj+%c{;h5q3=9mOu6{1-oD!M^LV{DOa$#ec;GkkoI4GlcV1%kC>V4C@xsQ>91#oR9$jd- z?y%*(2}iYHZN{PFjo-u{@OV$Sz<6K1#4YXPY<7`OUhlP^9vCn%Ffe$!`njxgN@xNA D2CPlo literal 0 HcmV?d00001 diff --git a/resources/g2/icons/twitch.png b/resources/g2/icons/twitch.png new file mode 100644 index 0000000000000000000000000000000000000000..05c0c429844714d85c6c48f43fa096ffb08ec4a8 GIT binary patch literal 403 zcmeAS@N?(olHy`uVBq!ia0y~yV322EV36iuV_;xtu@BK_U|?WLcl32+VA$Bt{U?!? zfq{Xuz$3Dlfr0N32s4Umcr`FEFi4cRMwA5Srw}V>gA6KiUG=KXwRxBH9V>fZA8z225<^^d(xwCuR6`ztVf^IqND?~@ex zaxCs$`F8vDid$#B%qO%QpQm*#XHMd=ObhE!i@r~<3+(=#{gboaGdcgT;ql{tH!8_+ zHzXTpDjrkukUH#}`uNYQ42x$T{y%?PJW#XvU%6ps+hRMFUf;guEar{2T?Gf0R`9rm z$Z#`!PFiVlRc`xji5``Qb$2f(boh66S1L+yKC*iyc3tw?y31i%O*=x$i`zc_{`EOy zc0x!Dw;9_B_t*Qvc4{8WPF%v_o}H*7J>N(yUpV=lXV^k44ofy`glX=O&z`&C3 z=PF6`T{>@1-s!oQZf`6Y^Pp(^=8Z@87)oUcJ#3h_TC4WT zR?oFe=c4>fPCSvBW2n0_KA*?!p0|{6(Ok8(2i78UmNTS15Pzd8w&uNwfXt1{4-*Qw zD*JD-1@2nB{qL1$eKx#8w``MN@2uBkx_$ZifjGJKK5Le*o6cyvbtAK;Q;+Jw@2@>? zi3vyh&pjhkDb@6fMX+g6=YfpM**B|RRY@MPelXW%qtA@vzc0$hm?(I>5~;D32s~5W zm3nB7jpdOlzfwWJ8IASN52PNdW-wwr!Flqf{e@VIS2bIFOPIdKSpVglcmDZZHW!n` z?M4%?Oyh9>zWQo`uwJO!n}~#{rI$JU=3V18a{Tp8^}#8|*}7tBKDR53%3byg=$r}` zn^C~z$2O<3`s@n^ju`0!AFlgyNG>?I_LcO-Bk_MzQ*H__Jv8~xrf)O#7#J8BJYD@< J);T3K0RRbB>rVgx literal 0 HcmV?d00001 diff --git a/resources/g2/icons/zoom_in_background.png b/resources/g2/icons/zoom_in_background.png new file mode 100644 index 0000000000000000000000000000000000000000..750be398761a92689895ef131453bac58b2a8f7e GIT binary patch literal 335 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4kiW$hJ4Xg>lqjr7>k44ofy`glX=O&z`&C3 z=k44ofy`glX=O&z`&C3 z=*=(2NC zS+q$gGP2XfMM+S!mO({HXycdNZ(iPMS?0;Xlm5(SQ~mv$v+t_>U$@$XxAgeJL?NA; zHTz=D^~uSkJP4SPzgg#w{`AC&&%Z6nbT2@!db+JimC_v(4**8SY=XC;MUwW4_qp4X519=9hAHpIF5b z$||Sy+bqFmw`Y#sYb(|t#tYV;{8v-Lmd-5DylT4M8mR?7+P-v3g>X0FdI<_Y`@|J;Zb{43Y@{@Le$iZP+A8d+C@-4L^107h&1pr$sfNqz&P(bv9N5apRBy|o$?*MONbFPR gr0eloo_36JkAit7PCD?4fq{X+)78&qol`;+06fXqKmY&$ literal 0 HcmV?d00001 diff --git a/resources/g2/icons/zoom_out_background.png b/resources/g2/icons/zoom_out_background.png new file mode 100644 index 0000000000000000000000000000000000000000..4d7afd5519717a64c843636e2d2c1add38bd92c9 GIT binary patch literal 328 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4kiW$hJ4Xg>lqjr7>k44ofy`glX=O&z`&C3 z=&YUEvQ?|4T)D2#S+OuC>dPK}hbg;^E?RuMYgxQeW9?tX z;)kCEQnzcqn4#b9CZTcS>3Qy}GavQ4NO&AM+TIbfZ8Fp367BkbV&Z!Zgcd!}Dq)-Z z@_*npnS&<|a@3u8u**p;>&)&wS2VI_XurBrSI#=|VX}$O={_-0m*4$L%rTE-W7${d bzLs9)8y(iyl0TV&fq}u()z4*}Q$iB}P@{Yo literal 0 HcmV?d00001 diff --git a/resources/g2/logo.png b/resources/g2/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..f99b17660d0c4cde90a5b3cd5e5d349d1512628b GIT binary patch literal 4582 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 B^ico+ literal 0 HcmV?d00001 diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index 3619780dfb..caf905a824 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -1,90 +1,90 @@ [ { - "path": "0.png" + "path": "logo.png" }, { - "path": "1.png" + "path": "logo_text.png" }, { - "path": "2.png" + "path": "icons/fast_forward.png" }, { - "path": "3.png" + "path": "icons/game_speed_indicator.png" }, { - "path": "4.png" + "path": "icons/game_speed_indicator_double.png" }, { - "path": "5.png" + "path": "icons/twitch.png" }, { - "path": "6.png" + "path": "icons/map_gen_land.png" }, { "path": "7.png" }, { - "path": "8.png" + "path": "icons/zoom_in.png" }, { - "path": "9.png" + "path": "icons/zoom_in_background.png" }, { - "path": "10.png" + "path": "icons/zoom_out.png" }, { - "path": "11.png" + "path": "icons/zoom_out_background.png" }, { - "path": "12.png" + "path": "icons/map_gen_trees.png" }, { - "path": "13.png" + "path": "icons/map_gen_noise.png" }, { - "path": "14.png" + "path": "icons/large_scenery.png" }, { - "path": "15.png" + "path": "icons/small_scenery.png" }, { - "path": "16.png" + "path": "icons/paths.png" }, { - "path": "17.png" + "path": "icons/rct1_close_off.png" }, { - "path": "18.png" + "path": "icons/rct1_close_off_pressed.png" }, { - "path": "19.png" + "path": "icons/rct1_close_on.png" }, { - "path": "20.png" + "path": "icons/rct1_close_off_pressed.png" }, { - "path": "21.png" + "path": "icons/rct1_test_off.png" }, { - "path": "22.png" + "path": "icons/rct1_test_off_pressed.png" }, { - "path": "23.png" + "path": "icons/rct1_test_on.png" }, { - "path": "24.png" + "path": "icons/rct1_test_on_pressed.png" }, { - "path": "25.png" + "path": "icons/rct1_open_off.png" }, { - "path": "26.png" + "path": "icons/rct1_open_off_pressed.png" }, { - "path": "27.png" + "path": "icons/rct1_open_on.png" }, { - "path": "28.png" + "path": "icons/rct1_open_on_pressed.png" }, { "path": "29.png" @@ -99,144 +99,141 @@ "path": "32.png" }, { - "path": "33.png" + "path": "icons/cheats.png" }, { - "path": "34.png" + "path": "track/junior/flat_to_steep_1.png" }, { - "path": "35.png" + "path": "track/junior/flat_to_steep_2_1.png" }, { - "path": "36.png" + "path": "track/junior/flat_to_steep_3_1.png" }, { - "path": "37.png" + "path": "track/junior/flat_to_steep_4.png" }, { - "path": "38.png" + "path": "track/junior/flat_to_steep_2_2.png" }, { - "path": "39.png" + "path": "track/junior/flat_to_steep_3_2.png" }, { - "path": "40.png" + "path": "track/junior/steep_to_flat_1.png" }, { - "path": "41.png" + "path": "track/junior/steep_to_flat_2_1.png" }, { - "path": "42.png" + "path": "track/junior/steep_to_flat_3_1.png" }, { - "path": "43.png" + "path": "track/junior/steep_to_flat_4.png" }, { - "path": "44.png" + "path": "track/junior/steep_to_flat_2_2.png" }, { - "path": "45.png" + "path": "track/junior/steep_to_flat_3_2.png" }, { - "path": "46.png" + "path": "track/junior/flat_to_steep_lift_1.png" }, { - "path": "47.png" + "path": "track/junior/flat_to_steep_lift_2_1.png" }, { - "path": "48.png" + "path": "track/junior/flat_to_steep_lift_3_1.png" }, { - "path": "49.png" + "path": "track/junior/flat_to_steep_lift_4.png" }, { - "path": "50.png" + "path": "track/junior/flat_to_steep_lift_2_2.png" }, { - "path": "51.png" + "path": "track/junior/flat_to_steep_lift_3_2.png" }, { - "path": "52.png" + "path": "track/junior/steep_to_flat_lift_1.png" }, { - "path": "53.png" + "path": "track/junior/steep_to_flat_lift_2_1.png" }, { - "path": "54.png" + "path": "track/junior/steep_to_flat_lift_3_1.png" }, { - "path": "55.png" + "path": "track/junior/steep_to_flat_lift_4.png" }, { - "path": "56.png" + "path": "track/junior/steep_to_flat_lift_2_2.png" }, { - "path": "57.png" + "path": "track/junior/steep_to_flat_lift_3_2.png" }, { - "path": "58.png" + "path": "icons/server_password.png" }, { - "path": "59.png" + "path": "icons/multiplayer.png" }, { - "path": "60.png" + "path": "track/junior/flat_to_steep_diagonal_1.png" }, { - "path": "61.png" + "path": "track/junior/flat_to_steep_diagonal_2.png" }, { - "path": "62.png" + "path": "track/junior/flat_to_steep_diagonal_3.png" }, { - "path": "63.png" + "path": "track/junior/flat_to_steep_diagonal_4.png" }, { - "path": "64.png" + "path": "track/junior/steep_to_flat_diagonal_1.png" }, { - "path": "65.png" + "path": "track/junior/steep_to_flat_diagonal_2.png" }, { - "path": "66.png" + "path": "track/junior/steep_to_flat_diagonal_3.png" }, { - "path": "67.png" + "path": "track/junior/steep_to_flat_diagonal_4.png" }, { - "path": "68.png" + "path": "track/junior/flat_to_steep_diagonal_lift_1.png" }, { - "path": "69.png" + "path": "track/junior/flat_to_steep_diagonal_lift_2.png" }, { - "path": "70.png" + "path": "track/junior/flat_to_steep_diagonal_lift_3.png" }, { - "path": "71.png" + "path": "track/junior/flat_to_steep_diagonal_lift_4.png" }, { - "path": "72.png" + "path": "track/junior/steep_to_flat_diagonal_lift_1.png" }, { - "path": "73.png" + "path": "track/junior/steep_to_flat_diagonal_lift_2.png" }, { - "path": "74.png" + "path": "track/junior/steep_to_flat_diagonal_lift_3.png" }, { - "path": "75.png" + "path": "track/junior/steep_to_flat_diagonal_lift_4.png" }, { - "path": "76.png" + "path": "icons/sort.png" }, { - "path": "77.png" + "path": "icons/copy.png" }, { - "path": "78.png" - }, - { - "path": "79.png" + "path": "icons/paste.png" } ] diff --git a/resources/g2/track/junior/flat_to_steep_1.png b/resources/g2/track/junior/flat_to_steep_1.png new file mode 100644 index 0000000000000000000000000000000000000000..992c5bdad436f723ad5cf0d75d2c2a5f2227e671 GIT binary patch literal 518 zcmeAS@N?(olHy`uVBq!ia0y~yV9;Y=U@%}|W?*2L;~n~*fq_9Qz$e6&fq|i4+<&or z{C4&HYHs^<2IJ}W#?9vXtDTK6`)lv_*0*PnejmO1wspTfi`Q-j1_s8GAirP+hi5m^ z7#JA4JY5_^Dj0J^4D${di2Usox-@Y{&_chh%1iiUJ#^hvy!0I|b6;q!;_*Hir8RT^ z7p5LtNB*F;Ls9R7ZtMI==2x(--~a#K=kkU%Dcr#mehs8nd zKDM^5v?C(>qRgHh)+{ej`sMO;?Yh`2E`OhJnfvK1eVLY~Ec&x@TKOdY z*R~^HE7Jt`A6xp?$!NC1xjP$;N&*8!o%>^-1uxCr`DIh3-tM$nTPj6rqw$8`iIc^ZXVyTVj&m*c@Cfk(u$9&=0VJ2C! zr|5;{g_8Tf=T+%Rbku)KvC(_u_NiRqd%DOg$ve63UovmK{(YyfE!`j`OSN8ci9U`WzX*gcQz`(%Z>FVdQ&MBb@0I9jd0|SF`fKP}k0|P^|xqdab z{pa%C`@Qw;8Kf7>$N#_n{&~1^zqtQ)_5A7f#^0x({$H=Y+S&NFb$>d8v7%C>0s{jB zV@Z%-FoVOh8)*y-3{{>kjv*C{y%#U;I%L4X{NQ4-*y#%|e%r5ITE%U+{r7&68;Z%Z zWFEhdpC!D*H&tebU*ojGRJMj&KEL<1UNkv#f$cl{LY_G(=Kgk%c|K*C-D)#gUC&{s zcIeh?#?@-SxDP*WpOxzM@y?Ogg`Z!mef@ap%^s1$_uo#Mh|Vzopr0M5H;T>t<8 literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_2_2.png b/resources/g2/track/junior/flat_to_steep_2_2.png new file mode 100644 index 0000000000000000000000000000000000000000..fa1dd09956fd38142265bfa277e441e6450ae989 GIT binary patch literal 264 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBq0kW?*3OmX57rU|_Hb@Ck8cU|^``w%@Lv zf7`nMee~*PbN$uM#{0eX|HsSsi~BE@kN>~je!9K!^Kj+=_3GcJpZ@(X5gcy=R=fq|jQ)5S5Qg0XbM!*z!hI9dg@*|+R1kG}sumOX0n z+QR4JAGvGPFS!d{USDvpD5_COY0r`Xj)bYQ?mNzj=I#<-aaH>O!|rWmBKQA%)^lX! z{66i!ynpXRm*bs$9cxw}*Ez18=TrM;_l>uA|A*?vzDoFd@AsU&)8q?h-TeEOS9%ij V3X$B9`3wvU44$rjF6*2Ung9nCY83zg literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_3_1.png b/resources/g2/track/junior/flat_to_steep_3_1.png new file mode 100644 index 0000000000000000000000000000000000000000..c83d1eba746364a7ca70563abe02aa35a220d8a7 GIT binary patch literal 272 zcmeAS@N?(olHy`uVBq!ia0y~yU{GaXU=U$pW?*3WG3})V0|SF@fKP}k0|P_9xPLXb z{d9ZdbOz(q&c@Hfm7C4=FZ*lTGf40E)?X|izg<25wsrsK^4)5i^J5qo7#K@}{DK)A zp4~`eU|^W&>Eakt!I*m9kju$XfaSsu!6WAm8tvb(VKdjJz1PgVB3kRY9QQQec&VAQ zxXkRO>H|)j?##KqKP8MduQM-vmYA2jGgeyq#mO51yFSnRxT@;5ujUVdw;O&OzZzjy zQMC04%cf^~j5dFTlr3I_H0HFiSMbSQO+Hew!oKe8T}F*(pCX;2?e+*aJpZ+9ZPuz^ dFaMsh=b9mHddryq6axbTgQu&X%Q~loCID#sYj*$u literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_3_2.png b/resources/g2/track/junior/flat_to_steep_3_2.png new file mode 100644 index 0000000000000000000000000000000000000000..d47ffca2e2f45c0584ab64fdcfd0aaa42954a10a GIT binary patch literal 254 zcmeAS@N?(olHy`uVBq!ia0y~yV31~DVBq0kW?*1ga?{L(fq}s+z$e6&fq|i#+kU%x z{`=_Fx2^m8#r;2*@4oD>{l8xQf4uyDZ~evc@#zf4|7RPob~b(dAMxC13 zYO+)GT+U3`&nBT#%*XJ#_pz|z1w-~PXBG+_tcu_Mv@AjF^F>3YyS(Gq zOgnve_wN2ihGRkO%x}JC73BJ^V9S$O(5tOFaaZWilXVL7{Mnh0O={nAhJk^B!PC{x JWt~$(696(PT|xi= literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_4.png b/resources/g2/track/junior/flat_to_steep_4.png new file mode 100644 index 0000000000000000000000000000000000000000..f4579749ea9b0fa7c53ddd3c0f47ee19085380da GIT binary patch literal 605 zcmeAS@N?(olHy`uVBq!ia0y~yV9;Y=U@+ofW?*0tDVBW7z`)=U;1lA?z`*eT`uq3M ztNX?MzfV8CSU$elTz|E*@nwJQ{oeY|!Cff6tGVrW%?s9MU|?V@3GxeOaCmkjje&vju&0Y-NCo56sg8$MEAX@g z@-T8Oy7206{x6{w-~M*9y;}9^c#4tBs(<^JMgA>#nc9?iL*Z6p<>Ni>GE>aI3ED`N zD1SP3%yd!E$=$gxH~hA-z2;-^@a8#N^Ibkix6c1jap+p%;)iArnl9S@oZAspulhdo zqlwo1q7ePsk|*)gYd!`3RXCq^BKqaY!$z6MEUQZ=*_3QvV;NVzY3}4FnpNWOcK6v# zu<31*np}U-aObVe?pG2M^5+(vHaStW-J0{+HOU3NcX+GMxi_vT&y zmcNU(Z~axfqphF-Ct{0Z U7CSv+U|?YIboFyt=akR{0RIOkHvj+t literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_diagonal_1.png b/resources/g2/track/junior/flat_to_steep_diagonal_1.png new file mode 100644 index 0000000000000000000000000000000000000000..1e6b999209c6eb1f6d3e843f006e1c662e2b84e9 GIT binary patch literal 1229 zcmeAS@N?(olHy`uVBq!ia0y~yU~phyU{K~@W?*0tzWzsofq|JJz$e6&0WT0&R#rAP z)^~Qc4-WQDPL3`v&TnpRo<4p4`t{onAHID1_WRGDjrAGqtr`5ixuc_nv$N&PtM%Kv zt*6iSU%ozm_x|G3=ezGeUhJ&R9&XK@?=4;*F5jQ5KEK#_bF=gQ>EWl>=iffw{`~gh z@9z)0OEbi4GnCsi^aryq&u8D?&3}El@aNOg|DWss{~Z7ScmMzYhm{!^{23VH+1c~? z`Rk>n`_B85kb3GyG>~`0wxhzqc#(W zU-wsM$Twz~Y|pUWo#D1W!~bB0|M}woyN&-Z_W!><`~T_o|F;)2fFjCuzxw&}^Z)VBVn9H-f>+?t3%V!50SEqaT*Jm%DT)%tuz3BiE$uZ^+9Q}v%lWlarYft#p>VLUmPmIFZ@~7JSk1$q#3FP@u{>D!D7>1J=` z^_+4$YxXYb-#U|b-;aZP_z&JYmwn0fUi*PvH+R33`c`D=Qlt z>pMH!2M2p6Cr1|-=QlSuPoF-2{rc^P4`050`~Bz7#`+BQ)(rmM+|kj(+1c{t)%xw- z*3)PEFJB+Odw=oi^WFC!FLu^u54Yyd_ZF`Ym+wzjpI>aex!HOD^zhT`^KTz-e|~%M z_xFe0r5WP28OrS$`h(e*=d-)=F$E&;NYlqhxC-++y&vtHJ z?LB#S@Z!_)+i$1Kn@j7vD_aL^dncPm=R4=O`?t@JpT9kS`}z9Awi>@q^9!4+Ylj<~r`tQ12M2d2C(kY~U*FxmfByXQ+qd7p zeEI$R_x~BB^BL5qvl}nxcit@>d|EsGzH|HI=*7>=cfaqy{CWNJ-`BtY=ho)uHy0Oo zmsbwf)=##!F820sk58UmUcJ71^6};CZy!GY`My0vyf=GsFn@i#e1Ep~>}vbf?ZLZe zrypNke|`V#=hqK^{`~sCJp)5H14A(bLq7w;!@70AF%;nkL_4%Xi<+Fp0tJA&v>$4Y6uHU_S^7+H7pWiz{Qr9O|Fez%Z@2${-kX7e;q3hfs~8v<7)yfuf*Bm1 z-AH3#V5snPaSV}|>f7fjbU=ZF<>&v~O{by{J=4|MILR{NMwAb;?vHdqfwy~g)69Yc zy%s$ay>UsAZRL@rOI?(GI@ys{)iKJzf1=);T3K0RT!| BqfGz+ literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_diagonal_3.png b/resources/g2/track/junior/flat_to_steep_diagonal_3.png new file mode 100644 index 0000000000000000000000000000000000000000..08346c46e43a4688f8efc9f1afcdf7df25d49314 GIT binary patch literal 1217 zcmeAS@N?(olHy`uVBq!ia0y~yU~phyU{K*;W?*38yL4s&0|PTdfKP}k170AmtgLKo ztnch>9~|tRoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TT zTTh?uzkGfC?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1 z-`^j0mu869W+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;( z^VdsD_p7Tfwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ> zwfE%R!HZAFZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B` z2nREWr!&Y`GpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y z@cHKC>(h%LuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z z^5ysM-~VTj&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bW zU0yj@TR+*_y4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@ zoql|E{q_B`pI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcD zpMLuH_WS>@zgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$ zXZU}c;s1XI_UvT#>}2)+cIoD7_UvTy+0)HuPoMqxaq;QX=Ch|eM@I)|XD3%z=Ns!c zo9j=vH(u>*yx&{@vcLB8aOMB;^8f4A|Iar5zuo@-d2a>=hO_q{tYTnbU@Qsp3ubV5 zb|Z~}fid6H#WBRAbLo`qNi7OIEj#~Tl~H+d&NHoY@m58JU8cMHJpOrx+U>gRcq}sg z;FlN77K#hGH!!v9IX#(Ee)9tl=bpoE2{|u>9!9F&nYVPo?4PxQF@9>90*{t)?5XTC z)LVH-Rxsth*3vB-!=!KaNqiI8y4fS!EuhP&bS1<0Pd9djs7O7#xTq-H3vX%+RGRQKm^FHt zqH8yYiv#0^hmPtN{FS0cZ#aZsISMaX6|m3AaPp5Yl1vQqmjwx2W-Aah?!1@fAH-5< z^lJYC^CQi(#NYQ+Jxu1Vc~TwOzvgpf0z>hKU!mtRt_s)4xIdh3`uC!L&y$z3;*R_nzGRZ{R+noM;>HM#ixuBxR)78&qol`;+0Gh=b AV*mgE literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_diagonal_4.png b/resources/g2/track/junior/flat_to_steep_diagonal_4.png new file mode 100644 index 0000000000000000000000000000000000000000..0db6b59516a9b6b7f6ab442106770c0e4923f983 GIT binary patch literal 1112 zcmeAS@N?(olHy`uVBq!ia0y~yU=U9~|tRoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TT zTTh?uzkGfC?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1 z-`^j0mu869W+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;( z^VdsD_p7Tfwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ> zwfE%R!HZAFZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B` z2nREWr!&Y`GpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y z@cHKC>(h%LuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z z^5ysM-~VTj&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bW zU0yj@TR+*_y4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@ zoql|E{q_B`pI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcD zpMLuH_WS>@zgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$ zXZU}c;s1XI_UvT#>}2)+cIoD7_UvTy+0)HuPoMqxaq;QX=Ch|eM@I)|XD3%z=Ns!c zo9j=vH(u>*yx&{@vcLB8aOMB;^8f4A|Iar5zuo@-d2a>=hO_q{tYTnbU@Qsp3ubV5 zb|Z~}fsxJA#WBR9H}_IBUyA|{>xFmq`Aq9ry*}puV#qA?@HsY_VQ+a$O=G;Jv)*}$ z=8h+dA}8VM zsmk1Zd4jKg(_{0@-)Z?emdKI;Vst01k}e761SM literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_diagonal_lift_1.png b/resources/g2/track/junior/flat_to_steep_diagonal_lift_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b03d1e3bacf1dffa8716846c3ee4b2ca394603ba GIT binary patch literal 1300 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 literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_diagonal_lift_4.png b/resources/g2/track/junior/flat_to_steep_diagonal_lift_4.png new file mode 100644 index 0000000000000000000000000000000000000000..b2cd5dc98b7e545421adc9e7199c5585b9b1dc5f GIT binary patch literal 1209 zcmeAS@N?(olHy`uVBq!ia0y~yU=UEWl>=iffw{`~gh z@9z)0OEbi4GnCsi^aryq&u8D?&3}El@aNOg|DWss{~Z7ScmMzYhm{!^{23VH+1c~? z`Rk>n`_B85kb3GyG>~`0wxhzqc#(W zU-wsM$Twz~Y|pUWo#D1W!~bB0|M}woyN&-Z_W!><`~T_o|F;)2fFjCuzxw&}^Z)VBVn9H-f>+?t3%V!50SEqaT*Jm%DT)%tuzxDJEocI3wan*`*p3D2h7(HWE;l=&0MWdc{ySN-& zZ>}M$81ePLa);maDAgF-pr!(W_zR0WH`q5YD{m7{QvLAkd%lcWR?$q+s8lfA7n zmnkloAL{U3E553Ag?;ukziyK#)fH2(sC2NXwXE>AiwI!e7$JI4>PzuzfkUeObuN44 zr>VWvcyuV7!QhFB@Uv_E?cRR-_;>%(FnO|cz0Vg8(bc7*`HSzZwlO*RB4^sY`sruy ztCneGFdvdyY_#=)+4L8+?hD0krGIZ;Y{4ftOL2wYpDhX(-0Uv!{OTgOZmAxr?f)mLprms2@4oLI zx0I60LNBhk$H$aiQ|1#_^@P866DOaepwB7aQ#UqD4O($>^Ul+!Oj*`{sXX1kC;#8n s=h-ut+|63OC3SVe&G?_6=hQzH58Yb5u5Udj2dD`0boFyt=akR{0I!i2rT_o{ literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_lift_1.png b/resources/g2/track/junior/flat_to_steep_lift_1.png new file mode 100644 index 0000000000000000000000000000000000000000..995693fab846505a69df0d8f162304c83e72eee2 GIT binary patch literal 595 zcmeAS@N?(olHy`uVBq!ia0y~yV9;Y=U@+ofW?*0tDVBW7z`$T1;1lA?z`&5sV7yp9 zzF*wGn%jQ6dj52K{!NK0i$;!sY`p(YL#l_9jr;95q+cQY-_twAcuYKFP z|9$l81Akb&7#J8BOM?7@862M7NMm4NJml%(7*fHwb?WV^*$zA{H$OWr@@u~TKhioX z;_(+_p}i~g=KT14-e6K%qT#8Z52pPVt>O5d`FwBrfA5-)|5I%Dbz6TvCI9H)@{A63 z`~T;Uny@{%uzKl?Sa+YoLrdpfuhTPUJg{@0^zVoaUEa$R>deb@->KC|1s`#?ePI1) zVd;#2t6!g1G)qdV>kT=cydb87FXq^ywI?ce64la zxU56@anBp&dYc33F{w+Bp1=Q;DL97j=yjvY3kRjYtZaL*%DF^e`}7I%H7?Ef)_Np4 ztako#`IMagVK19^wJheZ!jclws-B9S+j99m({`V=U#xyhu)o@LR!~PNCuARcsiT1N zk<^JlYIq)>3Q1|nZTEI$w~{^1k^0&r_whM1-Pb2M6t~RYQkfa!v`c^UwbcHFUh_3w zYL8A?_j2Oo$?JA<)TYX8tgt+}>F<56-sk=uiq9BNeajAcAy5@xJzry9lwYxsb$$K% zy;mQ9+?H`GAV0Qihv}sEw~K=_=EQaCl<#C+qFZGnvqMo$wz}Rf_*Rd2{>j$F&g;uP zX6u($e)SNzylrXj&QOogXkU5zJi*CNAFrA9n)emI&wPQ8g8Hr=3=9kmp00i_>zopr E04pvEg8%>k literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_lift_2_1.png b/resources/g2/track/junior/flat_to_steep_lift_2_1.png new file mode 100644 index 0000000000000000000000000000000000000000..4dac4d418eb3c39185d90264ee24542fd5706b92 GIT binary patch literal 326 zcmeAS@N?(olHy`uVBq!ia0y~yU{GXWU=ZbCW?*3Wf3f@-0|SF!fKP}k0|Uc$_56Nu z|7vdg#q#mrr=Lz|Ft%rqo^Efv-&=pRv$43cakL zi|4Oj|9`u^va#{y+qbtLKKwjfc}m;$D+~+_j3q&S!3+-1Zlp0VFf8+QaSW+oY@OsN z)~vwe!noL}C2Hf+w}16-G2ZSKIQi|r58M1#Ra;(iF!u(#FPLb>#2bD{hdX$sxwMjT z_wM7Io(I-#i(Ig6LD7!nY2MS=BP4heBmXs}XU86uZNDv5&?Hg3{)d?J9eKs;#sYUP z&u`hVY)TTJf=olw>W*-qr%rqcPhU^^U9HW?_FI14&TBK99yi{(5zc;WpSaz{{?qkb h3o=XWd-pfRH`TK)u;Am1WME)m@O1TaS?83{1OVY0e=Gn1 literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_lift_2_2.png b/resources/g2/track/junior/flat_to_steep_lift_2_2.png new file mode 100644 index 0000000000000000000000000000000000000000..94f060add967d6bdaef954298b7612428111c214 GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0y~yU=U?sVBqFpW?*1gE^6k_z`$T1;1lA?z`&qvY-}GK z?46u^*6_61IBG2mcf^*PY6N$1}GHO?h- z(rd$Jz0)yo*rK%c+H`Y|Gb&eZUppqOa-nlW#QV|!aj)N6OBfc^><~3x8S-ag7R&$V zA6EY=aS2!%$7d(hw0!H%2a{5b`?wBlIecpSS)<}k*{}Z&>|pzKwEX4Yg!6y;FQ2{t ai8();b)iS|tlta_3=E#GelF{r5}E*terhoQ literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_lift_3_1.png b/resources/g2/track/junior/flat_to_steep_lift_3_1.png new file mode 100644 index 0000000000000000000000000000000000000000..9cb20f7ecf87aebe9271bc0944ac785af255ad30 GIT binary patch literal 280 zcmeAS@N?(olHy`uVBq!ia0y~yU{GRUU=ZbCW?*0td3NS00|SFufKP}k0|P@fx4pQs zva+#pI)ib)xW9dHuy=B@zO(acXX9pb{pt3`+tu^!8Kf7>$G?wWecQT!zqdaBi#Y%{xXlhSte75|QR`~j7J)4r|NMj&Ye;3 gV_%*7{bhafQWl$+nF5y?7#J8lUHx3vIVCg!08VLat^fc4 literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/flat_to_steep_lift_4.png b/resources/g2/track/junior/flat_to_steep_lift_4.png new file mode 100644 index 0000000000000000000000000000000000000000..08c8af888d4c4c1aaf4ff19829b9bb2c831f5195 GIT binary patch literal 721 zcmeAS@N?(olHy`uVBq!ia0y~yV9;Y=U@+ofW?*0tDVBW7z`&3b;1lA?z`&5sU@Wez zoZsAh`S$Jq*WY_5C%^yvd9i%FzO(amd*fzv{r~5^m5q((uV26Y@ZtaU>c6+&|33Y6 z^YrQOqgPjR+uyeCw+{~fA1~i8?!VgE`2TF<{oeYY%XeS)*S2Snejcv8T|Ga#xcL8e z`)LJl{1_M*7)yfuf*Bm1-AH3#U=sFpaSW+ooI2(1w8aVnEq|9XPL=ExFw8Qk{9k@2 z&tUUzaqrzRXD%Ac=Y|HV{LX%Q^J?gn(9o;XGZ{r4boDoSnKPXd`^jBo#r)xF=+p08 zKQj4nFXPFo;ycG4dN*o?)t4%1OVev#uSqa3(|8xGS)I0LYP0%Bt<%rkAK&~~ClgZc zZWS#zbGmJ^Sf{Ct$?fuQU$S#2|M;xz@Lo6f*`_Va?f2RmsLRZMHs7f4`fs_l#(8VG znZKH_>-WjpUzu0*N9FX6-hb0N?#nK}x5)nfgy0-?Gj_e6e!q?1D~|X~bgr3f5Mjh< zp3v>{Z&|@YujcxFYJPpI#Tl8BCT^eU$$nhEOD|+;*SgzkdNuFav@bmEj{BB>a!KY> zt36hQ%hP!}-!d_-SF(APd0yqXcjSC~@2aX~k4ye@;n>tZ`Ra^GFP24so z75ARqQ@?HbljqNEZ1cbTTJ^f5^4$B^y+<@w++(Qi`rdf`^O`BIv_5Anlnb&s`u3~a zQvHoK4BJhQK0lH#ePB0hW3O4#qaXJ;lfRkYv5NWpX!4$^eq65MSr>gLo;|H78RvDI zGbh?veOpH7pNWt9OGEBPZtwlF^Wxv%yB_RsKmYM{E$98>#}hBvuL)d#@8gLg|34YQ zHDAR2XRthEoB1GFPF+sO;!}v7<2(L7c?+Tae2(ij?=MWdc)jp&=%2~Q>jeAR-}IfX jxbZ>WgTe~DWM4f)`?K6 literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_1.png b/resources/g2/track/junior/steep_to_flat_1.png new file mode 100644 index 0000000000000000000000000000000000000000..1f1778adae4bf06ecc2b8422ded955a0318177ec GIT binary patch literal 542 zcmeAS@N?(olHy`uVBq!ia0y~yV9;S;V9@7aW?*1gf9}Ry1_lPp0G|+71_p-3^6~GZ zSKqeoujaPjuAbj7?!Vt#|NnOT|L47%&GrA!Hcn?SzU;64KVE*iz47yKWqStc)y~G= zcSQ{t7#J8!g8YIR9G=}sV_;yM?CIhdQo-0eC6Mp20*}jEre#YrPZs?@{7!=7?$o62 zI@L?BUsM(-{6F6BFnhm*lgDh0Bvt$GH{3mxer`Q%#3M9)?UNZ!ToeB_CMPtD`Z4M} z_`Y5|Im}bDwYjcU`sumHW}T(mQS!tbZHj z^&r`KPJ-t2g2L#_w@M7tCHJ}9f3(%^iP^>8{=yT+Gis8fKHSN)m$034`{0DSssE1V zu`t((?d?lZpK(ii_RDK-+7jZorMFfdjM#46fBaMB$6Z42b(d_j`6xDR(#+nwk`~u) z@Xljm7T^C^zHhbe@AmKYzw$oJD7BvPEA}~aJ>z6ff&7zsJC89iFfe$!`njxgN@xNA DMMv~K literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_2_1.png b/resources/g2/track/junior/steep_to_flat_2_1.png new file mode 100644 index 0000000000000000000000000000000000000000..1aab1c2aad780d50b140c6ccea8cc976513e6b5d GIT binary patch literal 250 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBlwAW?*38s6TX-fq_9Qz$e6&fq|i#+kU%x z{^#=D@1s}Ww(egnAD_-(+%N9G+Sz!zz43l;{bqCh%l_KW1@}#3U|?V@3GxeOaCmkj zje&uo&eO#)q=M16ZzFG$qCo3bL2s=r=Z7ro9x;jO`#9)qRcz{A`+%WII>NF+dPk4= zp}YV0zpDND>4DgsrFY-5ZfM;)n~}|S?`ns)PA^>q^7mLinlP`bf$QC^b8C2#&Z+<7 z(7P_K-5>G3KlAFT*;lz%{&}MEKI$*W+RNcqwky*=u$Mnj%KfzaSsnue1B0ilpUXO@ GgeCyH9bu&a literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_2_2.png b/resources/g2/track/junior/steep_to_flat_2_2.png new file mode 100644 index 0000000000000000000000000000000000000000..075dae7638a5ed80e91a52b7f7b51011b3106f97 GIT binary patch literal 261 zcmeAS@N?(olHy`uVBq!ia0y~yV31^BVBlt9W?*2bxM_WWfq}swz$e6&fq|i4+<&or z{C4&H+t&T>qgPjR+pl&uPG>OQ@2x-G-uQXAav86z0p^Cb=~5O2UN<&3o%PXiH2I;R7M7^M zw(R&*vyDHeC32tJRq%WAPyV*=n#VIg{QVc7sVHqB#_QhvTdaR|^0V0cX%%&Di*8Cy z?`ybjKDUkWz|O7Le=0^E)!i2!xtOs~$IW~3zS#{@V)2=o|Gc(oKK;k=Q$%{PShn0; Q1_lNOPgg&ebxsLQ0I$Mf7XSbN literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_3_1.png b/resources/g2/track/junior/steep_to_flat_3_1.png new file mode 100644 index 0000000000000000000000000000000000000000..303ef490ee9fee7a81e983683b06ea6d6aaed3fd GIT binary patch literal 238 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBlwAW?*38s6TX-fq_9iz$e6&fq~(D^y=Hz z{r%$p+tu?I%g0x9+c%r*uXZ-x@2#KCU_9O4*q%X}hwH020|NtNNswPKgTu2MX$%Yu zrJgR1Ar*|FXAHTT4J23}>=!X=@w0V$$;i~N6Fd1`>#AahJL
;L{q_->rPt4wyneerh|L36dd{+c$F+2pkcY+mxdfq(PM>Gp1RPoG=m$#dvW sYs&Dg3kqw?`Jp=L<`lK*UMpl}=7=OzO^j+}U|?YIboFyt=akR{00G}rAOHXW literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_3_2.png b/resources/g2/track/junior/steep_to_flat_3_2.png new file mode 100644 index 0000000000000000000000000000000000000000..16f8ca9e62677dc5e70eea1344fc18607509b2a7 GIT binary patch literal 265 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBlt9W?*2L{I20J0|SFWfKP}k0|P@fxBYGF z{`b+Vx2xy(i~BE@kH74%z295^f4%x@XXF3z^3TJS(;1AX+Z#8V>nlw;mCV4vz*rLG z7tG-B>_!>`14Fx~i(^OyqwblFyoVfkSObh51K1XvaJ`~&PvOz8h8!=cBRqnvs;*jP z4puLpM7K;5lxTXT^(Ln7`@XNd4BF2(*se?T>y3W)(eYlv%Ria*dwU!CwI0RY7P)`s zOXFsqTT68emssaKSv^bP(Ydyp7FTafTds8eRB4^YDwjCk@2sa}Rz&(uyKnT1Su-W`Ty77+cQWkP61NQ@pROQQ&D2 zRAJKX^0@r_{!8BvA73{dcwltea_ad-9wPn5Cmg@Xo1Stk?`C{j^ybo`lr?2}FAhZi zICGDyu}ED!T)c1bhPrvz16JuO)vb>gTf6Kfclln+?N^=(u06H>`>D83CoWuk)$uE# z$Nb*>FT3Wf(JL}+P-ijla_n(lr{?LYW0dshTGJvuhMBAGao6?tw+9(4`DOibyUl|2 zwy*Ve{_;EMc70O%q}8Qy3sojd{5-FyJ1g_w457d0PgWTm*IxF=^ty589|?W`o2%O` zPgXeooFII_mZfiR=0Z#EaOTqD+k&2bpV#&EwSD!DlWNjh$^LEGZ$)tnlLUng1)sFm zH%V3KKlwUsva*@@l=naNK5VPellaWa|C-C}(}#GSxHU6RRUK!Wv&X{z?D6#upEZMC zMgIG1wjt@E$l_|t%ep`Ao48FE;t{713G_7i>YDgzrP_kWlh9Go}F&G3TW-(3$< zOZL8OlxOPZJ(c%IOg7$LUG{6%6JzxsmU^!H%^rM@6RFKOC||9Zb9!gpfsI1FpPS6j oOY8m9mvKJx_Z9EM^S|U9ZcAK9_Kw}cz`(%Z>FVdQ&MBb@06aMh>i_@% literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_diagonal_1.png b/resources/g2/track/junior/steep_to_flat_diagonal_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b856b344c404c094bf00e9204fa93ca8c77c59e9 GIT binary patch literal 1238 zcmeAS@N?(olHy`uVBq!ia0y~yU~phyU{K*;W?*38yL4s&0|PTdfKP}k170AmtgLKo ztnch>9~|tRoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TT zTTh?uzkGfC?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1 z-`^j0mu869W+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;( z^VdsD_p7Tfwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ> zwfE%R!HZAFZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B` z2nREWr!&Y`GpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y z@cHKC>(h%LuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z z^5ysM-~VTj&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bW zU0yj@TR+*_y4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@ zoql|E{q_B`pI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcD zpMLuH_WS>@zgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$ zXZU}c;s1XI_UvT#>}2)+cIoD7_UvTy+0)HuPoMqxaq;QX=Ch|eM@I)|XD3%z=Ns!c zo9j=vH(u>*yx&{@vcLB8aOMB;^8f4A|Iar5zuo@-d2a>=hO_q{tYTnbU@Qsp3ubV5 zb|Z~}fw9HY#WBRAbLo`qycPqVmfHWT1+90dD;COa2$Hql61}p-`GdU5l=H@t(hSeK z<${D|s{UX2^rTZQVBrO=eAC!QTgAtLE-UwGJ(lqCT7JZG(W%p?_vB~FF7~ut9;1}s zo_g<_5L<@(-(yp}&I)92{QfkQy`V6!jkD4F^lEdD-*yk~DH^&jZPhV#%2#-&efUxI z-1m*27oE|}I+eYu>|w;INAvxonNB}DQge8srS`UIQDGZAwL0>@F5fjb;n^f#vv#)X zs@qM)GH+Pa`eM8uAAQfbde3ij>$kpqDh?c%9G2|9^Rl&mBRY_jf6Um_`Ur26-HL%)=C-U;PD zpFF!0-Mr)E3qkwZWy^V=xG#SgFLO8gsL$n3&mOA1PrF?G{CQ#YKWm#iyY`vxI9|^< XS4Lv?c0sm}pz_Jn)z4*}Q$iB}{Sq+X literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_diagonal_2.png b/resources/g2/track/junior/steep_to_flat_diagonal_2.png new file mode 100644 index 0000000000000000000000000000000000000000..481b65c1ee7c60871c1a2fe3c1bfc23482b23ce8 GIT binary patch literal 956 zcmeAS@N?(olHy`uVBq!ia0y~yU=UD=Qlt z>pMH!2M2p6Cr1|-=QlSuPoF-2{rc^P4`050`~Bz7#`+BQ)(rmM+|kj(+1c{t)%xw- z*3)PEFJB+Odw=oi^WFC!FLu^u54Yyd_ZF`Ym+wzjpI>aex!HOD^zhT`^KTz-e|~%M z_xFe0r5WP28OrS$`h(e*=d-)=F$E&;NYlqhxC-++y&vtHJ z?LB#S@Z!_)+i$1Kn@j7vD_aL^dncPm=R4=O`?t@JpT9kS`}z9Awi>@q^9!4+Ylj<~r`tQ12M2d2C(kY~U*FxmfByXQ+qd7p zeEI$R_x~BB^BL5qvl}nxcit@>d|EsGzH|HI=*7>=cfaqy{CWNJ-`BtY=ho)uHy0Oo zmsbwf)=##!F820sk58UmUcJ71^6};CZy!GY`My0vyf=GsFn@i#e1Ep~>}vbf?ZLZe zrypNke|`V#=hqK^{`~sCJp)5H14A(bLq7w;!@70AF%;nkL_4%Xi<+Fp0tJA&v>$4Y6uHU_S^7+H7pWiz{Qr9O|Fez%Z@2${-kX7e;q3hfs~8v<7)yfuf*Bm1 z-AH3#V94@xaSY*@8QXu6_kaS2%gy@jT<4TLw%W5^nes(&@@ZCn2CWGTxwfwAE99?k z3oGBXIIPcF#a7TZIn%Vyc>d1dZIkUw=esU+X^Fg6!t~%oX1aXQ#YO#-nRf^3Nbc9Z kVdmV@^i$_uJ-c2F<8SfVSqhi_?*ZjPPgg&ebxsLQ09rPco&W#< literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_diagonal_3.png b/resources/g2/track/junior/steep_to_flat_diagonal_3.png new file mode 100644 index 0000000000000000000000000000000000000000..b17eae0ad225c646e73956284dfa31afb62ce915 GIT binary patch literal 1248 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 BQ78Za literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_diagonal_lift_2.png b/resources/g2/track/junior/steep_to_flat_diagonal_lift_2.png new file mode 100644 index 0000000000000000000000000000000000000000..9dee6ef127779b58bcc58b3e967ae486bc42dc15 GIT binary patch literal 976 zcmeAS@N?(olHy`uVBq!ia0y~yU=UD=Qlt z>pMH!2M2p6Cr1|-=QlSuPoF-2{rc^P4`050`~Bz7#`+BQ)(rmM+|kj(+1c{t)%xw- z*3)PEFJB+Odw=oi^WFC!FLu^u54Yyd_ZF`Ym+wzjpI>aex!HOD^zhT`^KTz-e|~%M z_xFe0r5WP28OrS$`h(e*=d-)=F$E&;NYlqhxC-++y&vtHJ z?LB#S@Z!_)+i$1Kn@j7vD_aL^dncPm=R4=O`?t@JpT9kS`}z9Awi>@q^9!4+Ylj<~r`tQ12M2d2C(kY~U*FxmfByXQ+qd7p zeEI$R_x~BB^BL5qvl}nxcit@>d|EsGzH|HI=*7>=cfaqy{CWNJ-`BtY=ho)uHy0Oo zmsbwf)=##!F820sk58UmUcJ71^6};CZy!GY`My0vyf=GsFn@i#e1Ep~>}vbf?ZLZe zrypNke|`V#=hqK^{`~sCJp)5H14A(bLq7w;!@70AF%;nkL_4%Xi<+Fp0tJA&v>$4Y6uHU_S^7+H7pWiz{Qr9O|Fez%Z@2${-kX7e;q3hfs~8v<7)yfuf*Bm1 z-AH3#V5swSaSV}|8ru^n#H`5S{CV%D8^7;ouD<75^80#2vUP63i60FN76$L@a+qJK zPO-bR>Dq-^eZeNPmrU{FHHvZ5sqtI&YR_iATiVC{9{NO@#9iN!)YS2P%eonli}OwH zubgOe)<)jZ!0y(P*EWl>=iffw{`~gh z@9z)0OEbi4GnCsi^aryq&u8D?&3}El@aNOg|DWss{~Z7ScmMzYhm{!^{23VH+1c~? z`Rk>n`_B85kb3GyG>~`0wxhzqc#(W zU-wsM$Twz~Y|pUWo#D1W!~bB0|M}woyN&-Z_W!><`~T_o|F;)2fFjCuzxw&}^Z)VBVn9H-f>+?t3%V!50SEqaT*Jm%DT)%tuz4NvZ9mxi6u^a9#3!OacOW3NG zfX}IAX&$bk=XO@rG1xR*iqh^~vQOr~kEzW0m%mte9NI7BYWna%#`UeSyMyM4JMl!x zhBM5$^0OlEcV=JrV;M!Y+)@^XbCwD}Gh%xVMg|o#G)8|tC6izx^MCKb!y=C!t>3mP zP9s-plWq&o=Nl7enY3IHmw#+?^Q#w!{bwojTWf09B%k>xnfxVncjd!FmIp6=yz*V^ zPxs-~JNs`uiWWZOt1#u++BKz$i?ru8^E~_-cl*}ulQL75%ubsoXj}L=B6JCx{Ir92 z93yt?-Y%6_SlfQ^{k$utqE1|U{%-utxmA4C_1%?XPYz}53gO?gf=QbzqvPs&Rv zt~RSgZ7+ecJ7$*a8N8N;9KZj&x97=x*_|Q{3s)H(>N?D=Qlt z>pMH!2M2p6Cr1|-=QlSuPoF-2{rc^P4`050`~Bz7#`+BQ)(rmM+|kj(+1c{t)%xw- z*3)PEFJB+Odw=oi^WFC!FLu^u54Yyd_ZF`Ym+wzjpI>aex!HOD^zhT`^KTz-e|~%M z_xFe0r5WP28OrS$`h(e*=d-)=F$E&;NYlqhxC-++y&vtHJ z?LB#S@Z!_)+i$1Kn@j7vD_aL^dncPm=R4=O`?t@JpT9kS`}z9Awi>@q^9!4+Ylj<~r`tQ12M2d2C(kY~U*FxmfByXQ+qd7p zeEI$R_x~BB^BL5qvl}nxcit@>d|EsGzH|HI=*7>=cfaqy{CWNJ-`BtY=ho)uHy0Oo zmsbwf)=##!F820sk58UmUcJ71^6};CZy!GY`My0vyf=GsFn@i#e1Ep~>}vbf?ZLZe zrypNke|`V#=hqK^{`~sCJp)5H14A(bLq7w;!@70AF%;nkL_4%Xi<+Fp0tJA&v>$4Y6uHU_S^7+H7pWiz{Qr9O|Fez%Z@2${-kX7e;q3hfs~8v<7)yfuf*Bm1 z-AH3#V9fAzaSXBOjh*DUt3`pQdH1w!Xa2rdu_&KtwYfTTwVjOF&p*7A0y;ZfLW4>g z_wC-d@BZ{jVbkCGO5b}CnC)4($>`0QX-uE)ElFr>VKLlu>*LXfLMi4t>UxeHep~o= zaU5(@j~DOM{XKcd*?B4vbGGI_SvfOc@ipfD_j;5zEV?;`|Bjodr&3R@SWzWQ^4*)NyUeHby{l9Ap7+kN?fK2` z)(`))?5(!{TzAYrc=P)onOTAVE}C5UJ6C$E-DIUSTaH6TisFIlYfls^n8>tqctlGs zEp*iM?D}1Ms;G+P@>HV_OhPSx#J?|out@Al&uiy>Ct4?^9FpF-{9@0Y%g}($#EUv8lJY3m3 zIeE3SaddI9va#|1>+d(Oc1>YmU|=i>@(X5gcy=R=fr0Uir;B4q1!M1&heeMScv=D( zcE)TxxUsMLzxiI#8@Y8XM}3wreSCiQ)lCO)cFWzn8}smC?ViqG?a!ZT-%Wg|@X6QW zmqh1fU5kJoJB#gqc0PEJdC2Gn$F+)Gk8qy7sZZ;f{B51PALj6GeOh&? zBa+uY(tW8%UheUJ??cxLHmuOS?APFz#Jl|R%G3>7_Y<0)tIcQ%`5JKHw3v@@l-a~9 z+=e%Ha>|Gm2i^;ezbUSCq`c?UVS~4#FzUNY%BY$se*0JMn;lfq}u()z4*}Q$iB}iN+$= literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_lift_2_1.png b/resources/g2/track/junior/steep_to_flat_lift_2_1.png new file mode 100644 index 0000000000000000000000000000000000000000..66382d7ee6e2e2346cc4d3e0a8d357676e598f76 GIT binary patch literal 265 zcmeAS@N?(olHy`uVBq!ia0y~yV31&7U=ZM7W?*2j{^h@%fq}s(z$e6&fq_BU*m$+G z@%F=qo2O6LcXqZ94)#t?7FSlDzkdDq>8Ja}{TIu}@AuYEXE2^_Z`^FIzg<1Qn%n-e zzxMxnb$bTsi*iav3=9m6B|(0{3=Yq3q%klslzO^2hEy=-p342^3< V_zyL^-wX^444$rjF6*2UngIRqYLx&0 literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_lift_2_2.png b/resources/g2/track/junior/steep_to_flat_lift_2_2.png new file mode 100644 index 0000000000000000000000000000000000000000..17e96bbd20999f19745e57bc7a9025e90885531b GIT binary patch literal 299 zcmeAS@N?(olHy`uVBq!ia0y~yV31*8VBq0kW?*1&W7V}~U|{eL@Ck8cU|{1Nc76Z= literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_lift_3_1.png b/resources/g2/track/junior/steep_to_flat_lift_3_1.png new file mode 100644 index 0000000000000000000000000000000000000000..cd8625707ee2a2442cfbb7adb3cc1eb266ad6c70 GIT binary patch literal 238 zcmeAS@N?(olHy`uVBq!ia0y~yU=U|uU=ZM7W?*1A^-)BNfq}s|z$e6&fq_Ba*}2(V zf4h3VeQ>aMatzW8=m0@vEJUr`sFv_tsBmFt%rquI9GCB70Stfq{Xs zB*-tA!Qt7BGzJESOivfbkP61u34wgfiX1METNXsT{p%mSD0h?A?78;OQ|ATFILP3q zaja$i-qbWD!81Fq?@u@*&Mq#vkkKnDH7fLe@#ec1d3-K~34~;)S~0F>d$D|V|6=BU sKSFF9lK4N?t-i~{vt#Q@yAP~PjLfgA71sP@U|?YIboFyt=akR{0Gm%w=l}o! literal 0 HcmV?d00001 diff --git a/resources/g2/track/junior/steep_to_flat_lift_3_2.png b/resources/g2/track/junior/steep_to_flat_lift_3_2.png new file mode 100644 index 0000000000000000000000000000000000000000..6a1c64c248580416188aa80c7689df4aa26a3a31 GIT binary patch literal 306 zcmeAS@N?(olHy`uVBq!ia0y~yV31~DVBq0kW?*1ga?{L(fq}s(z$e6&fq`MWdj4(e z{`b+V^_`u)lau#*>o=S0S99Cf4sc7vhx3W z_38G;i{<10B!0Qhz`(#*666=m;PC858Uq8vJWm(LkP61!zFeVZ0}dBYt|JbMwjBE% zzjeZ^l3yR|EN#j+8+iT{d(v_w=E2!XepO0=vQ~&6FKG)+?36m{_WIhPjr-+Rf69?PoP8#{>UQcnUw7N< zJ*$r^6&!iw?Iy|Nism|L46wm+!uO`}Y5M`TyJPe{aA4f3~qbgEY$o zfg%P52F8*gzhDN3XE)Lq7#M$ex;TbZF!oM)KW(uB&rw#Fe;(Qz+dNLMdHmb{iQ27~ zCFdg#)MzcY&&!|WJv&@*#j~8iYuj|+`)zCqRFt@|iAl?AY8a2#*E!$ST|_UoWF%Xi z(^s8gbV}l?OT2Vu&%-+@k;+?_HOs9jF4)zhV3+#)&F(q|_H$7!jQSUkIfSnjxK>?% zA$cC#?AqhIEBA4(*!i*j+n4`l<+JCU7t3n1KDV-(BQbN+qlWVzPF6pkv-kLM<+eHb zBK3a1KW(|zvUI(@;hLLYPl)>__jG${9y4H#Tp0YT?g;A^VRKQdFIpSlONc6lC!LYn zCbL)4xO7%y^X|i)`EBhrs}lB|U#{k5db~>IUr1-%^|A%~&v9*Qe0M0TKBy^hhLha} zq1r0`)h#PzrgQfv+U&Bb*nN9iY8AizqjTRyZ|Be7{l~W@Jvisn+soTG{G0Ul{71e6 zOnaxkxchv9kaDJ@#s8+lJr6#2Nkog?sMqk!SC&wmaoOd;sVkyOFP_+79pJ+IbnW9U z&h5<|+jhQNe&|O*o$V6Si`&tf!)z`(%Z>FVdQ&MBb@ E0NPGR&j0`b literal 0 HcmV?d00001 From c2a1cf8b4594c340d229c8ae63708c9d8a2cef3f Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 17:16:54 +0000 Subject: [PATCH 050/670] Remove old files from repository --- resources/g2/0.png | Bin 4582 -> 0 bytes resources/g2/1.png | Bin 5334 -> 0 bytes resources/g2/10.png | Bin 531 -> 0 bytes resources/g2/11.png | Bin 328 -> 0 bytes resources/g2/12.png | Bin 497 -> 0 bytes resources/g2/13.png | Bin 443 -> 0 bytes resources/g2/14.png | Bin 912 -> 0 bytes resources/g2/15.png | Bin 720 -> 0 bytes resources/g2/16.png | Bin 446 -> 0 bytes resources/g2/17.png | Bin 232 -> 0 bytes resources/g2/18.png | Bin 229 -> 0 bytes resources/g2/19.png | Bin 271 -> 0 bytes resources/g2/2.png | Bin 352 -> 0 bytes resources/g2/20.png | Bin 268 -> 0 bytes resources/g2/21.png | Bin 242 -> 0 bytes resources/g2/22.png | Bin 235 -> 0 bytes resources/g2/23.png | Bin 280 -> 0 bytes resources/g2/24.png | Bin 280 -> 0 bytes resources/g2/25.png | Bin 240 -> 0 bytes resources/g2/26.png | Bin 236 -> 0 bytes resources/g2/27.png | Bin 282 -> 0 bytes resources/g2/28.png | Bin 282 -> 0 bytes resources/g2/29.png | Bin 202 -> 0 bytes resources/g2/3.png | Bin 219 -> 0 bytes resources/g2/30.png | Bin 203 -> 0 bytes resources/g2/31.png | Bin 191 -> 0 bytes resources/g2/32.png | Bin 208 -> 0 bytes resources/g2/33.png | Bin 506 -> 0 bytes resources/g2/34.png | Bin 518 -> 0 bytes resources/g2/35.png | Bin 255 -> 0 bytes resources/g2/36.png | Bin 272 -> 0 bytes resources/g2/37.png | Bin 605 -> 0 bytes resources/g2/38.png | Bin 264 -> 0 bytes resources/g2/39.png | Bin 254 -> 0 bytes resources/g2/4.png | Bin 229 -> 0 bytes resources/g2/40.png | Bin 542 -> 0 bytes resources/g2/41.png | Bin 250 -> 0 bytes resources/g2/42.png | Bin 238 -> 0 bytes resources/g2/43.png | Bin 577 -> 0 bytes resources/g2/44.png | Bin 261 -> 0 bytes resources/g2/45.png | Bin 265 -> 0 bytes resources/g2/46.png | Bin 595 -> 0 bytes resources/g2/47.png | Bin 326 -> 0 bytes resources/g2/48.png | Bin 280 -> 0 bytes resources/g2/49.png | Bin 721 -> 0 bytes resources/g2/5.png | Bin 403 -> 0 bytes resources/g2/50.png | Bin 270 -> 0 bytes resources/g2/51.png | Bin 275 -> 0 bytes resources/g2/52.png | Bin 614 -> 0 bytes resources/g2/53.png | Bin 265 -> 0 bytes resources/g2/54.png | Bin 238 -> 0 bytes resources/g2/55.png | Bin 691 -> 0 bytes resources/g2/56.png | Bin 299 -> 0 bytes resources/g2/57.png | Bin 306 -> 0 bytes resources/g2/58.png | Bin 387 -> 0 bytes resources/g2/59.png | Bin 176 -> 0 bytes resources/g2/6.png | Bin 585 -> 0 bytes resources/g2/60.png | Bin 2968 -> 0 bytes resources/g2/61.png | Bin 1229 -> 0 bytes resources/g2/62.png | Bin 970 -> 0 bytes resources/g2/63.png | Bin 1217 -> 0 bytes resources/g2/64.png | Bin 1112 -> 0 bytes resources/g2/65.png | Bin 1238 -> 0 bytes resources/g2/66.png | Bin 956 -> 0 bytes resources/g2/67.png | Bin 1248 -> 0 bytes resources/g2/68.png | Bin 1110 -> 0 bytes resources/g2/69.png | Bin 1300 -> 0 bytes resources/g2/70.png | Bin 1004 -> 0 bytes resources/g2/71.png | Bin 1312 -> 0 bytes resources/g2/72.png | Bin 1209 -> 0 bytes resources/g2/73.png | Bin 1315 -> 0 bytes resources/g2/74.png | Bin 976 -> 0 bytes resources/g2/75.png | Bin 1325 -> 0 bytes resources/g2/76.png | Bin 1210 -> 0 bytes resources/g2/77.png | Bin 201 -> 0 bytes resources/g2/78.png | Bin 170 -> 0 bytes resources/g2/79.png | Bin 1143 -> 0 bytes resources/g2/8.png | Bin 557 -> 0 bytes resources/g2/9.png | Bin 335 -> 0 bytes 79 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 resources/g2/0.png delete mode 100644 resources/g2/1.png delete mode 100644 resources/g2/10.png delete mode 100644 resources/g2/11.png delete mode 100644 resources/g2/12.png delete mode 100644 resources/g2/13.png delete mode 100644 resources/g2/14.png delete mode 100644 resources/g2/15.png delete mode 100644 resources/g2/16.png delete mode 100644 resources/g2/17.png delete mode 100644 resources/g2/18.png delete mode 100644 resources/g2/19.png delete mode 100644 resources/g2/2.png delete mode 100644 resources/g2/20.png delete mode 100644 resources/g2/21.png delete mode 100644 resources/g2/22.png delete mode 100644 resources/g2/23.png delete mode 100644 resources/g2/24.png delete mode 100644 resources/g2/25.png delete mode 100644 resources/g2/26.png delete mode 100644 resources/g2/27.png delete mode 100644 resources/g2/28.png delete mode 100644 resources/g2/29.png delete mode 100644 resources/g2/3.png delete mode 100644 resources/g2/30.png delete mode 100644 resources/g2/31.png delete mode 100644 resources/g2/32.png delete mode 100644 resources/g2/33.png delete mode 100644 resources/g2/34.png delete mode 100644 resources/g2/35.png delete mode 100644 resources/g2/36.png delete mode 100644 resources/g2/37.png delete mode 100644 resources/g2/38.png delete mode 100644 resources/g2/39.png delete mode 100644 resources/g2/4.png delete mode 100644 resources/g2/40.png delete mode 100644 resources/g2/41.png delete mode 100644 resources/g2/42.png delete mode 100644 resources/g2/43.png delete mode 100644 resources/g2/44.png delete mode 100644 resources/g2/45.png delete mode 100644 resources/g2/46.png delete mode 100644 resources/g2/47.png delete mode 100644 resources/g2/48.png delete mode 100644 resources/g2/49.png delete mode 100644 resources/g2/5.png delete mode 100644 resources/g2/50.png delete mode 100644 resources/g2/51.png delete mode 100644 resources/g2/52.png delete mode 100644 resources/g2/53.png delete mode 100644 resources/g2/54.png delete mode 100644 resources/g2/55.png delete mode 100644 resources/g2/56.png delete mode 100644 resources/g2/57.png delete mode 100644 resources/g2/58.png delete mode 100644 resources/g2/59.png delete mode 100644 resources/g2/6.png delete mode 100644 resources/g2/60.png delete mode 100644 resources/g2/61.png delete mode 100644 resources/g2/62.png delete mode 100644 resources/g2/63.png delete mode 100644 resources/g2/64.png delete mode 100644 resources/g2/65.png delete mode 100644 resources/g2/66.png delete mode 100644 resources/g2/67.png delete mode 100644 resources/g2/68.png delete mode 100644 resources/g2/69.png delete mode 100644 resources/g2/70.png delete mode 100644 resources/g2/71.png delete mode 100644 resources/g2/72.png delete mode 100644 resources/g2/73.png delete mode 100644 resources/g2/74.png delete mode 100644 resources/g2/75.png delete mode 100644 resources/g2/76.png delete mode 100644 resources/g2/77.png delete mode 100644 resources/g2/78.png delete mode 100644 resources/g2/79.png delete mode 100644 resources/g2/8.png delete mode 100644 resources/g2/9.png diff --git a/resources/g2/0.png b/resources/g2/0.png deleted file mode 100644 index f99b17660d0c4cde90a5b3cd5e5d349d1512628b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4582 zcmeAS@N?(olHy`uVBq!ia0y~yU}ykg4rT@hhA$5${$yZaU`coMb!1@J*w6hZk(Ggg znIXU@#Fc@8fm@qj+E`fLTv}XNS($-BU6{e1fx(_Z+FYL9Sf9b(nnBsvSY12Z*gRd| zUD-NVTi@B)+}qneIN08~+@FELU78`Bfgzrq-CdvGU!B2UTR2{uA=+L(pP#>&fuUYn zx|-WQ-`E;w08RaZ0*_A_N#+~yOWb=mzS^4Z}-n{Zcg64+qwO5^y25`yWjUSFif^* z=vP-?&A_nO+PYudf3bXge=vJ@xOIQB`ut+!?d}ZA^V$3Bvp4(uA7@~A%+Bzio#D1W z!~bB0|M}v_)6=il*Z=o-{$E|(-fg|Vo43J$&)x`sM56x8F{` zzFhc!xAFh&4A-X@pI)E;f3g4n?b)ACOaH&k@c%!<|L6MuKgTyupWfZQfByRQ^XH%6 zzWsjl`SbmkKhJ*rc>V3e+YcXJ{rvg*=f7XipZ|Du^ZWhN|F2&BfB*i&whsT+-+#RL|LOMUw-fwRCPvY3H^?+^$xifVX)N)m|@*NBqf z{Irtt#G+J&g2c?c61}|C5(N`I13lB!R-;q~23{Xe7srr_xT~{%$48gT9xFd-HuLyt z#$|IuoATC1CEl4MbWG@y(_CGHpj)OUd2a=_ZAxHTx%!yVOS5S2g641X$DSAeocG)F zoaLTB2i0|(oz8#$XE*=(@3WrQp8NSNpR;w%{M0Ki8FT*XEdKYNQRj76-L$~vEE{xR zf4dg;*!Ztevmbi`Hv`A43I7tU=5ig_rXO+bSXlDw&1`ZBQW9IT7!sK5or5~wFl_nP_((x$g*W$~fB%aaZro-zW>}GXXr6I_;Ft7C8rlp` z^ToTTFfg2`_x|(scjr_=hfnDYDh?dIYps9nEjh(@;O}g~hTF4eN0;aOKl1-F`{fkQ zhH3skoiATIZms%9y!V9L1lEQ{T^Dl=*l3~uz$;%iSeh0105N`VC!L^iq z!BgvhM;)a(C7N_3m#{tfDt=|2utIemPs&LJT?YN&vz~Vtzv)j++hk&>+K~TG& zX+EwK*c#rP{qujrhCucI(!FZJHNQgy(k=-tVOXHef8rPSXK(4RyL&|$EACiUFf}c% z?s2f6)}&y`@ZJB}|J^@VOP9a;dV8u@DmTMfzvY{^fB*3Evi?kkShh~aio{L-PDj`? ztyr(rc$Q7j#JWHKo$a4*KeCxT%v+Z*l=z;l-&M1*jGglWi`IwbVkWb*&A)%^Z&A1^ zBE(ei@6rFV%70nBoF?xK7=8w`%n!AXs4lwW$p6f1_up+(rzl7=tdIZxKb7x6-rl;y zDhD|F@2_9CR#wKFH%LH*X~9?P-}O6cTA5b-k7UqbR9n&Xpm4cmJBtOg!i)I#t5g_l zf_`v2?c8&O(_}@nXw-h5#L}fvM`IPwH*g3vE){>VjD=y|PjT-3@ev1Kz5e>PYVM!) z=C61&r1zVDNG;v`F?F`_3}<0s--YH4=jL;At@w42aogX*<)2gX^Xuo^wfBAa{othC z6-zt28O?w1$b4T=&SuM)^3ST_&>^Q%=I&+3UmZGh=+(3uzkau^P42Rv6aFt@*~@U| zPw3_8db-zKyr2I3S^1gOb6?#56|G_hOkWqI3s*C|`15k1)}C*Zzfben+Re0~@%W33 z+~mT-#E0L0Rdt8!CpF1QmasqgS$${Wp=|rq-%^Zgbn+aO_4j2wt=qX{)31Na|Nnax z`*MMXBU>zE%D*S?l|<_PoZ@%W_!wRsR+-xRr&w(DrhvbXE`H+Kxtk@Vd7Wel^M#+k z|8%z+TfUb0v)}voo}ioS@+a8Wyz##JYI*;(Zn^3eSN!i^;dWce&2UuzXZ0V$ra8F} zHB=a8Gq}Zz)c?-e`pb2B{julz)eCQnJYvlFx#j;K(F6wRgWLzUzTH1(F+;@FS5eFF z=kve4B<=Z8@(9y|roTo1e*L+~sKU^2opr%R-|6X0-0p@#A4&qQ>}4-xsA=Z?d_u57 zIKzTd;DDn>PP-6U1wdEg2lLPyd^JDaFVVQ2`5nib>_E-}hB=NVjuH;f!HTG&Gj4&OD}pKKAgtlJeL8saM#{!%86_4^~Vo}B)Y!ZY>s(?3tH zp$D_t$<;Q!%BjQ&!wP0c5jsfqk|k1+k&swKR4IUaAcmLseNG5Wybj;jeq!W zFXZ~fo>aieabS0y#-X`KIYnN)WxQ5B>A;aUIjenbLtbihEI7NZ@5n6S4+0Da=I_7N z&iugrGzuJ>xvGY+qkANve{Abz}`{`hK3t)0z3zc)kEs51O6zoD{5@gpVoF( zZAI)7mb&7Db)T<_$BA{!F}-M1z3Fb&!q&J#hNc5j;!J)AR1J80xEIWL?(5*+-mR^& z$7J2ryjWRT%kPV)OB{MOnUj%)Q9=J;%a3e!p2i>C&F)bSHUW%Pu73W-BSPZ zj%Rh%TBAG1c^-S%b1b-b?pLopvjxjBd!5Mol_oEk9+WjOT-kT=&Kf7}e1oRF!V?>Q za5p{HXOLss#4osm^N-E>*$o^g<}>)P%)VaWz9lTzOZ&I|yJ-!t*E8(pI3jy$dZzG% z|7~gydJ?)Bzwyo5UbORhqruf%fyL8azx!;?;HB`-@#U+J+}oYGK6vUHFtJ8hTfBR5 zP9`EOe|s&{!>{EGF--zZJPm)mFTYcJuw7I8`YW}@G-igYTldz>mFE>QNi^Tud`0Hb z-|4~8;tyKl6AT>#_SDT|(0agBz;up9%9kzTw!K|kyQT7q?K6rQCglH(V@MJ3Opx-B zn#3o>*vH8D;f=H2!Hb2H&u}{a^>kYB`uxs+aSSO8EskHmdi=TAP#1C_hsloZ1uxgu ze3SLr+<{Dz2iMK27H+VQJGD~rBzJ*Reku#+jk(wC=bqj>?faWU2RLT+N*gt+hcKNm zJKtI%^yOFe=k^+gi7cD`G__{Wb7XzQP#{#u6w+jU{`tMC@VAQX4bSEm|33bSxrI}u z;nDYuW%|ktYz&NLip)Ed4|pD7VaTw0xcY`|)?Y=2d)(9JFNly@;!(VFIu8Sr0mD4O z3yuy98VB!Rk$ANAwDJx6Fo6U93a|g~`(gi|E7XB8Mf{ggh6mG?L;F|n?zpS`>o^x9 zi?N32*M!AfKNy-gO*k8(E53NFRgAS=EC21^&&h`vToS4rUc3Je-N7uxAaLQXg90P7 zgK9vz(C+r{`vX}HaQ@NFjye{vv#?$%pIw$ApXvHtu~j=GYtQ`g3}pDSo+UTiM_3~G zzl_#|{TXfs@~<2=JE{lnU^!-=^lym=!#pOV2Yi0twHaic{g^lo%xB=p^I-bY@ch#ErM}nj87yu${5%kSG39;V7c@7PcmZ)SF%ad#*H687FvJr+RV+kA%)?JT$b5u zHV5wm?{@uv^ye|71#|X>7D0i7M~>W(cD~~1nGopy;5CDvk{;vM3%ZOypD%ju-^D(G zhpm!@#lY0m`sZEYlr{*;fyahC-x~t+F#W#`y0z>!aVuFkt;e|J}>9DWHe^V zXDSjX;9kk{N8$xEh|{zq+5jK~aD~j`24$!}|aH{POQg4XQUD&u4bf ztzr4kxvBrX{A%_FZvmf%`}3bnf9&6H?Yk;L_`8c$bA1u#k3Vl8-WPV@$kA_5XJiu) zWc5?>bMR{T`Tg5_-UX5~au;wmGzfhVa=8C)eW+xkm%+{C|0}DQcd#sDIVkz#%lvk8 z!`9$(*d)N zZiZQleyM-*=TKmI?#sE$z2HaAs(!8o^;_G8m}aPb^JDnuc~0Klld+{ia+f;8f0y6) zH4GaB{=B)Kzb|jEDPzkG7PX)!{Hp8%O~pG@e_p+5_vX~xFcru5&+YdIG3;R3f8zQ1 zIY0g8n;LAq92T$q&41s&5(cZ*rAr?c&6E4N&^Udq_?p7!u}SypC;Y2WTFP{RC+p{? ziyvORcyXfj^R%{&J-@y#Jt6PKzJTQwUu?`SCYBe6eqLYsTk~^!5EIA2$gS)LUg&WIr{{jwinAp%9pPG(l7nG z{QbSy{~v5}_h0!Z$>4Y5xRrMK(d$p^1hywHo_TFPr-N}qLnxELf1lUq*$NJ&Ip;Cm zygpyBfpbD5lS#$j+L?chnFJiqNf{}h*!S-Y!<{2{HmErKoB7QD6qkangc`$-<@WV5 zsca84pWMqZar+_s_wbifdJab;j&;MV4sHWrpQmlju6R%T#O7iKV*XE)YoP&PK!cUQI!*4B4+Huv_n4-R(M z=a06R&*$eaW?-n7miG7Nj*b@2_ZF`Ym(LD1E_c_?&XzB)*6(Lv=vP-?&A_nO+PXX3 zx<6TcezEa(cZSXW{>zh{k25elW@otV&u~0F{d#@V!a29w(7BevL z9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ1_l8ePZ!6K z4ClSGxRZmtH?Lccf1$(*XEzNy!^J}%Ku+4HPr9ATYB;9|EG?u_g`+A;Meea^4t2gDti`q zA7pK*F8RAu=mY1RO{`_lHO;^O-BqFz`M*)ZF7ftHmxTL&C;wpEo^m)>sp8>Q`?v_Z zKZid=f4I(cWI?=OkBZf#TyxfngSOlSC;x1en!@PSB=fCc<3wv)jvr-C?KK@U57jID zZ<%z1?b6EF6OO(=XWu<@V*01un;#tf(J7?Ft@%me&WXmY6942mqfaj1fB6;fhQFJS z+!RobTz6Rc;*;NPj)&_#u0+|*w14q^>H3FLIa-c)Pj0@To62)#_T+}}^UGOsPuwxy zX8nEf`h(I*Ki0k3)6pjI^Qp!Yo5T5Pab2?IU*0cSKhb0N*B_D33+3cgZ9YAWG--7a z@M35A|6QWYH^t$}`z86S*NX3dzGt%f#S2+~^S8xh2(B{L{SciP`oY>VD_G>;H`__` z6Z@mA&whQ~sJbOZ|6*L&^fb%QT@jkpHCkHcgy_@GB}jJ;J9~&_eQqw+3w4p zlz+9)a@#6q^jUDSW?TODxHNXBt}BzDeQ|wP{hvE(Ry*#nQ!5eRrpQ_ubr5z8!I~R$xQPd zpMuW5oz1@Oh(Pb0TLRCvI`V(x`nU4*&y~w;SDO|an8mR~Z9Q)HxBr&(6aRT8i+)U; z_*U)rvu7Xnt+}~>kHz$uIrHX!kBatpvUCrA7kR6HH@p1C3pLhrw-jcr_PZ_q*6-Sc zo!8bf+E-us;bfeWmi+d+kNBS82hr!X-XbYAdj4i*fNc+0u=errN?_|Hx zSTsxd{AKft>~j8m3A>Gcy<}YN^!LoIpX`#EZ5s~i@1K&O%c`4wqLX1)so2-3{|HhI6M&)caCH*&VF{#Cij{-|K>Im_2= z=QLNp^7*#oX7t>7bLTxgaFgqs|B4F=rN=h({<$ksW4(f7p5Th9m&{E$xaO%|S$jK= z*IzYkYu1GG59H@CvZXUrhHv_oZc-3`Hb>=P9#?R>*}6@KW(u%_&dVMOHU1ak1 zTQSudD%D==d8_9w?E35f@OJUpo(l zH|hGBe3gOQwSIhcD0SL*=X>h!L)r0JPj7W=mh5EN&opBfpGoGt(5Z>*54oMO<2u`1 zwZJO-TXpE}8}CD+QtJHE#S>zh>`xcZp7dt(8Fs;vPZj@tWLkS{;<{x7coC z)zUQOSlP>SLie!k{U#GrIHfBn_fqo2bLR@U_(P@NME=g|RQ|C@{zH4W>QQr!lGs9T zws>{b=ihd27gmp6r2hL-c<cuzF zgVzHeUlysT&W&f?vHsPZ+cq~>2iLfEZ`C(d%X)cs-{o7{FAwdz{Oa1Ro^xUEbp&=U z;f{Jxb41R()gu1P1%np0A3;&8(?zX6tFF4ST#e$7i}N4>|bVgya2$o!49v&92Od>s4Ru`)%#HqGg3KY$p6$ zj$ShUo?EP`^g;HOj0?y+}QlR{2u-N>Gk=3{CSvrt#2f5o|q z1+#2Re<}a4`@Hl0!`*GV%UM=lp4{d->k>zR)ynf>&NkP?I+>RGow>}@dw2GxR~3hS zto1VfEOdR78q`;$abczRhq-+>v+wYHn>&AlxXaQ5^Ok7>aTxq64YD3 zXKoUIaNqVhx4iZ8ZMH1X-)0fccrHNu=o`sX1!og-vKMIacHgwCjS6`qB{KC4zeIM~ zfj7xpO>^}ahM_V4Qrt0!8%Dko#nw>8rL?cy9RDeG~G41%tpbI$>wIc)jd9w^V6E98|wZm zk~+BleAdgUhoYw>tDiY-P()|B;#2Znr!)QNLEky@Izz0B>SIzXLXO*-~6rW z)HHLiR#t+4=CX%1-o6K?N~YYev%FmlwWE}ic#X0 zb+cAxc05`U5pba`^NU*bE|a+;X=zu^{tKv8tqz!M%eNx6Z`=FIBwhYVcG?+=-J4Wz zEZ?>B+adcN(L+ZH&bMi7VcFC9dIjIN2fL5X-YLEK@w5=rQlriK%}N$My_UBt zNi9&uwTa(sw)&0Jf_tqVXf` z(EN`_XileS?N_U1C%rZ`>b>L>Wzh1obz@lgE$eNs|EJr0@;}p;m$Io<%ep*>*1l=| z!)oK?DL1U6Cv3@j`K?X0y0!gb-ntvr3J;G@kUbMUPi}9<)!d7(`I0{uX-)gR`gc_F z-;ZunPh{NM+R=W4{bzQz{Nto#mFml!*>*MxYi3ui3QDc`USLpTdt?2fyvdq3TV%3? z(!BR)f9tumty;DE=gt(#uhaj`i#y7fCv#t;N++%TpY(n^&5)gk5}dEB3e;&@#Nyzm zb=|J*f&2p|F8$`a-xk&et#gg%S#TgM?a_Sco&%!K)_L{?&6#p-!~M1z**`KDcen28 z_Y<9X{j&L~3v7&E?oQg4CtP~_j$O2>npu;-eeUh2AD4^xe#u=s)0QdFpY6v*UuDbx zd7L$At~VCkZ}|Vu_TR|@dq4HE3879wx+lJD?XS4{)o#Pe-;0%}o;~%MZ4c7}xzA;> z;rtt7-YYKb_%cVfDy7rz=R%iy-ERkq*Kc-zWPirP=9r*jw2@+3^SN!8lFekl*)V)@ z`MGn+*C_=De!r92^Xo+qW6;Vezo!~ah`$@RezoK6xk_u5k1pAvw)kR-$;_UsFK4e^ z-cfVpt(8p@|0X`Uk6}g{580fymh3X>+@pI>Wc@F_p9L>}Uw;3%?ZR>MSdN{n`!sLg zP2k^l^LKqo>9&V|uU%+bc`)ndg~CLmO8Ywd%KF2NyB~P&Jz`c}G27ySnyf|LHP`E< z6SLv_&t*@}+;eHqLY7FQkaWy)E5==T=gowI8z-xR3-V9bk2 zHe2Alc0>N;i%F_zw%qL(|*h#?|?nkYUEvw*{`k(hr%%g%NN zv+jQ%d7H@C>#OaKUp%kLefQCiRez6HOwW2Gp3`9Xqx=AO#c$2$#*xdfKFc~3AKPmf z`9^MeS?Slc@iEQ%UC&?MzPjR=JnLWU2il4IzsCQZaI)WnK zaF#N;F0{`oQ_0|X(c&o|nQt(^iIqRNK9$#if1+5W-JR2KUtXJ#)UrN)_6wH(if?`f zsotLb;X3Ce_>=yh()NFI)_aBP!dSDkwUsi-5pUdoTusQAxM2DzX!iz9{>1gY>Hju<{F1s_ zB6ic%g66yDnVUBn+=^aTdpb7l%lYdUr~dqIS8_k?QTT_Z2{!{H%KgNZ=Qu^%bK_*5CJiShBDA{671AyG*LDeZLgypuhgwgT^}S42Ng`a3&(@p(1r%(GrEKC`y;Tzu+s{Qry1RZbEyTa?+pEexP3e``?P%nwU5HF8R%t zS>JzL`PJmd=i?3c+nMdUHZSn?NxclI&CiNHRtsvr`<|NZ>|x*aeVgH_+`Q^vil&7* zTNyWdC#;*YsBY_2`!YEu`5%AweEiA1XK|otw|wOPg%iGHesuhB@82{Qorzaxoex-4 zw)?}>%Z<}*cxaIR%e;C@#;x;aNXSXDtdk7l5@pScbS?83{1OPu; B^ico+ diff --git a/resources/g2/10.png b/resources/g2/10.png deleted file mode 100644 index 296f07c15058ba87437aa1281d709974c679ef74..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 531 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4mJh`h6m-gKNuJo7>k44ofy`glX=O&z`&C3 z=*=(2NC zS+q$gGP2XfMM+S!mO({HXycdNZ(iPMS?0;Xlm5(SQ~mv$v+t_>U$@$XxAgeJL?NA; zHTz=D^~uSkJP4SPzgg#w{`AC&&%Z6nbT2@!db+JimC_v(4**8SY=XC;MUwW4_qp4X519=9hAHpIF5b z$||Sy+bqFmw`Y#sYb(|t#tYV;{8v-Lmd-5DylT4M8mR?7+P-v3g>X0FdI<_Y`@|J;Zb{43Y@{@Le$iZP+A8d+C@-4L^107h&1pr$sfNqz&P(bv9N5apRBy|o$?*MONbFPR gr0eloo_36JkAit7PCD?4fq{X+)78&qol`;+06fXqKmY&$ diff --git a/resources/g2/11.png b/resources/g2/11.png deleted file mode 100644 index 4d7afd5519717a64c843636e2d2c1add38bd92c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 328 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4kiW$hJ4Xg>lqjr7>k44ofy`glX=O&z`&C3 z=&YUEvQ?|4T)D2#S+OuC>dPK}hbg;^E?RuMYgxQeW9?tX z;)kCEQnzcqn4#b9CZTcS>3Qy}GavQ4NO&AM+TIbfZ8Fp367BkbV&Z!Zgcd!}Dq)-Z z@_*npnS&<|a@3u8u**p;>&)&wS2VI_XurBrSI#=|VX}$O={_-0m*4$L%rTE-W7${d bzLs9)8y(iyl0TV&fq}u()z4*}Q$iB}P@{Yo diff --git a/resources/g2/12.png b/resources/g2/12.png deleted file mode 100644 index 6c2346466919bb6071c743402dee01a3975f07ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 497 zcmeAS@N?(olHy`uVBq!ia0y~yV322EV36iuW?*30{BVgZ0|P@^fKP}k0|P_xZ0GW7 z{p@V{@OtCs)!xz3!tVLn$^F*t-PV(L2V2LhyRTO_pD*t3&8_b*pWp7U@2+fb%^;r6 z;I7Ya9jvWvFK(>Q5N$6n9LykXEG%y>t?%rd9c*ka&+eUUF0QPsY;64Y$l;$13=E7V zL4Lsu4$p3+F)%P%db&77RVU zc3J|gXJRbc;w&b`2De?Eu~~~FDy(r)_LRn#*O)5fBUQ5`4<;Nm=DZWoAyd$Dw%MUn z=Jb-iVzS4hxmxxeJ^hk5ljWC@7{`>28E(G$cE6v0-}7tHf~+fD8Xf{~9kD z0|RG)M`SSr1Gg{;GcwGYBf-GHz+U3%>&kwgjfqd4-%D_JKLZ29V^0^y5RLPDC&h|4 zDe$yKs(DRI6n6jjUtUT&si|sLceD7M=XZDWFTXOM&*9sikn2p&e`{YZ%e}=k`}V5^ zyI1YC@5*4-Y<*X9-;TdPgeB+ghf@VsZU(mukMpTLkdCpa+OpzQftQ%nU9%__xku_o z?eFjANL*H0`7xm)#@WQsbcJ)H`1gi~E(VPcUWPol9`;Ihy8!o+R6bTWYh&(aujUgQ z)NF6hIJDd(`i^3f$b=mZ`}kKJzQCq8DZ3!(M4J4R!yish(^C`rf7Y&`NiKMH&U?#W sIehcxbXc5zsKo9tZ%5$g;FVdQ&MBb@0Pu{W`Tzg` diff --git a/resources/g2/14.png b/resources/g2/14.png deleted file mode 100644 index 39d0aae67906f2e047c40538ee59aadea4293987..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 912 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4mJh`h6m-gKNuJoSkfJR9T^xl_H+M9WMyDr z;4JWnEM{QfI|Ravq8eTeARQ&H5hcO-X(i=}MX3x0iJ5sNdU>fO3MP66dZwwZMyU)8 z%zU0Mjv*f2Tdz!XUY#g%{Nul7?q=?Ttq%?a5N-> za7cltDWO1-qlvp&frH)g$DQxR*CKDnR_M>MeSh!!ocrJB-2c4iy_e?G{l_l#UUggh zro`&$pKYOL-}g`7JK60ef4P!b^w&=oa>q+|U+>-{uil=z`syk#@lvBl>3eVLWcRvl zRBMRX9jkr&Zq-gn`6;V^|CL-&evv2eC+DkgzvnkSa%Vblee2el77xp|OKLmDM*Hi3 zKmFvZ>5(fb46$?PyPWYCZ4kLWu|k4Z*>ltD=^r&*S~=Iu6ZD)=wfg_`>(>o03ORgd z=<-e6D?5+fMR7&8KsHxe?+bpmix=KI<_jutKKYTL?!YCypn)qlT}&>& zKT=hH_b3;V3G zz?h-%;=NyDjFX64lA_N|Cp0syzQl5Ti>Nc2amoB+41YrFA2GL|NbSNdnRxOm@{j5 zL|;-msI-{r!|aCNMNfWxcxl4tSX#pz;Ct(3j1JSa?bjCtEDByy{6BK3_1)$F-&rRX z?U~b8SXbY2=guEV1=i1dHg~Mwd2(0qiDQxvY(Lp5>h*`(Tb~v9FS6i(X#;18tbS-| zmmM>Q@Db@aSFZFU{YvvTaVRvZJt*9_m7!@t+M3S`>*8Y0FkD`@{Jy+cBZufO3MP66dZwwZMyU)8 zOn#m&jv*f2d#5feV=@$Qy&f8(ASlY=!kWa&v~f`qD^sIGNQgpMn1Xyg%BE92f4*%9Cb1YAuQTu*2rEKA@(-LReIJ38Pf4OC|?C)!h^UniaS3iGzWsO>9 zam2FA-|fz~Kem$fpS>rpWb>ape^VbQe6WyA`H*I)GkZ~?#EIL>bPJwooGAW2J&}RA z??QpysnDb8Aqk=qPGJH^@5Hw;@>qx^OB^`pJ@sG*Lr{yUQb?mf;khY|$?^uPHV7TH zFqvih^e_XXa*8NdVqCCfoV#`9iG*1_{xXfbvbip}8CAyy9(hyEv_goX?v7vnK1Z35 z1HZ$399JitooQs@&~V0n*YkM|kzCiybFck4u=s@N|7gYs(V`3w{$(1mMJP5LV5ttZ zWxU7W@TEa(#>dxBHB4VWztjCulI_mTHOb%hxN;?i|9RSVBV{rp^U|FR)7wkU_LU@u zEs{uh_&@BxRffKT1!sOleBXK6xbWe*1B}W(m%{%nWuL*sV0b-E{yG=a=T#Ah6(7d2 znzfbR>-XJZu)0fBVmrSY!QO>>pXSbiwHv0YjySMzA zTV69dBU$&I-Ny8AFIP?XqpuMM;}`Bo(|^84sYT$xd(I0YasoZI9Z7;ZG7D}NGdHw; zXK6{UY0D&uUEIW z%>JLYZmM9jL*vo^Pj}^hj+%c{;h5q3=9mOu6{1-oD!MfO3MP66dZwwZMyU)8 zj5eMwjv*f2d#76S9dh7tsa5WCaP;)_JjtkG!NeZ_%d9&B`AOBQcZ#TU*?7?%k_RE<&_HcgC=c>tn5HSB%cWGA0Ou^5=tabSe zJQrsq8?*k)eb9U7`KpCN-}k@b+@s6CzN+Eg9oqwIR_T4%=CjTV!Z diff --git a/resources/g2/17.png b/resources/g2/17.png deleted file mode 100644 index e81026a20516ac92bf5e71c5ab1bff6a958c3256..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 232 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*SPZ!4!3;&}N-f|u=;9$MGCb?t+-=&F{Wqw3;s(p!@I*Qr`do diff --git a/resources/g2/18.png b/resources/g2/18.png deleted file mode 100644 index 3c09112bcbc8545ec799cc4167897bddf5211a96..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 229 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*?PZ!4!3;&}NqPZ9pd6=t>`!}-R{C(N#{-W1|X z>y$a_72vf|%WkfD*gaR<#Y_uaG~8`BPu}qV?;}5^!1FJjpGgg>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*+PZ!4!3;&}NH}W#GxDzVASzZ`u4_26U_AY3Z1xryvfAR z1d+?7rI=~Mp*986WSDqEEMx97PY$BTWNc-dB%hfkU)&=J5m@6P&*fnitc*18iR%&D@+Mj@ixY4f4|8E5_+A U{IX4gfq{X+)78&qol`;+0Geo7+W-In diff --git a/resources/g2/2.png b/resources/g2/2.png deleted file mode 100644 index 674702e55092ec51082459e13474089b1e29e82b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 352 zcmeAS@N?(olHy`uVBq!ia0y~yU=U$oU=ZS9V_;y2zVJ_gfq{XsILO_JVcj{ImkbOH zEa{HEjtmSN`?>!lvNA9*a29w(7BevL9R^{>~w zjd*x;4+!ZrTu4YQuQ>gw_;|IkIs5VN(-PS>#z+N5*9CJV+q7-j|8lvtD0fe%#kJ|* z-Y<(t@KJdj)MzM}@OPfUhxbU=*!4}hDZ{a$r6;ns$W7AdSbJoHvB{OY{EU*qjO!ea zxim1|el2CB#uU@s(|N!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*MPZ!4!3;&}N4hl9X@UZ-hoWUB=|+75C8M~*K6CZO@unLs547xa6ur+ivpe9ocF-=y+_aaE<_P6? RF)%PNc)I$ztaD0e0ssx6TXO&a diff --git a/resources/g2/21.png b/resources/g2/21.png deleted file mode 100644 index 3ef302396b82c22584173bd33fe81142d7948301..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 242 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p)#PZ!4!3;&}NF7h@QaIpR?=5R0Iu$Mi+D0A3QMzUDTi!1lfYj3^W25!zv`m26z z>RBXrpL-))^KF$~=f88u@o6qimeu?5`>f*3ltsC%>3_J7`utKgx-e;$(v>A4TOK>8 qIaJAX#p!LV>o8rQ=D5CN&h6^mhl8BEoER7w7(8A5T-G@yGywp|I!`bF diff --git a/resources/g2/22.png b/resources/g2/22.png deleted file mode 100644 index 13c5deff4f0621eeeba2a995a0811fd296ec374c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 235 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*qPZ!4!3;&}NE^;;)@VIPlSGH)G-}g|WPu}v(%*DRl^|lpTOulOzxpwrf{kgL- z7bC^_qB?z!dIflG)Qa2vvv!aA{YCQv83UB2ES@Lnx#R!8LY2l9=_QuAGpC$B_}J&! j9&UCA)~N?p&9JTfyyY%e%L9G}1_lOCS3j3^P6!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*{o-U3d7XC*kZsct+;9=R!$g1jWAjBMKz?K{kV8ozo;NaDzp8rNb)j`^Oy~U01 zzc|9zGq}7h=H6eb^zG#u4e0_&cm6rT589*m{BLARtW7Ckcz=^yW8x9ZMxz4B*^@-v z^`1`9JYaJD>vE+T&OQsPSaq{Z3_Q-CUs1Ee;nlf&?`+;~7dhG=zrk_8!cmWyWjB^@ ej(U2Bwf&L7l#LT6zF}ZsVDNPHb6Mw<&;$S~ykCI; diff --git a/resources/g2/24.png b/resources/g2/24.png deleted file mode 100644 index d65776eb7675679f4b04093ded1f4cd30b501ce0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 280 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*{o-U3d7XHZ+79alqueW%|pZ0&hjeL`1PKqTD!{mm{TldfQH+{@nveEcK`qX|NO^-UWLLHMJxwaa<(H#B_XPt31B0ilpUXO@geCy^WMhv2 diff --git a/resources/g2/25.png b/resources/g2/25.png deleted file mode 100644 index 55b8ae32970665b4c8f2fd6bf00ea5e608f8c9ad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 240 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*aPZ!4!3;&}N4)Qh_aJb$)(9GW7_eg;6p#Wch<;swtjK^#3D>Iq*Oi=i|Xw}rG z0$+c`b(l)T_+NahrC(vWWa_uw2kz(dom3Id)!y?sUL)<2{=~+KCL#;fmoAcJH)6c> oIN(cB_gCjNjJBL_qc^fX)_vB@z`(%Z>FVdQ&MBb@0CG4_`v3p{ diff --git a/resources/g2/26.png b/resources/g2/26.png deleted file mode 100644 index c22e6db1713d739d9309b0f8231a35af09985a61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 236 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*KPZ!4!3;&}N4ssqa;9=hDC|_GLhwq}|uKz50i^6n;)W3)yoG9>`4T4b lp6%ggcVL}*VATxU!uM-sopoomF)%PNc)I$ztaD0e0stTDPu2hc diff --git a/resources/g2/27.png b/resources/g2/27.png deleted file mode 100644 index bde9cde380ed642acce8c8679100b6cc12ea261b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 282 zcmeAS@N?(olHy`uVBq!ia0y~yVBiB`4mJh`26+$Niwq15Ea{HEjtmSN`?>!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*1o-U3d7XHZ+79alqueT_RU;od(YQL>S^NkZl5)5jLL38Tu{``OR{qO(X@5P%9 zJNm!lvNA9* za29w(7BevL9RguSQ4OyK1_lO+64!{5;QX|b^2DN4hJwV*yb`^<)Di^~Jp(<{)K;TZ z1_p*1o-U3d7XHZ+79alqueX@CKJCZ)d*}I%DVS}NVQcU_U^4T(xck8h(?!`u@$3KD zSMC4%|Ig=#2~w-wN_-VsyYGMh|9)RQ&vg!=b}e^?m{|!DOC+B#ttet?$Yk+U%4W)J zNL(Z3=+}C)Z4IZ};}WeCj}2{6ha!a@}$KgL*hZM{< f-Em-KV`I?%`bqreZN)1L3=9mOu6{1-oD!Mc)o%sfY?PW|sZQ-eXJ&zn!%A)Lp!A*cBQZ$sh+r6dNkvnM20 z^%yj0x|uVy9qj60e9^TsO@L=Y&IOGHtO*GW3`=hsuk_kAS&4yxfx*+&&t;ucLK6VZ CJv);C diff --git a/resources/g2/3.png b/resources/g2/3.png deleted file mode 100644 index 20432f67df0771919c1388f0001b63e0d0bbd87e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 219 zcmeAS@N?(olHy`uVBq!ia0y~yU|?flVBq8ck%F^g=Q1!bFct^7J29*~C-ahlfq^C6 z(btiIVPik{pF~!W$^wtbVg?4j!ywFfJby(B0|SFZiEBhjaDG}zd16s2LqTF@UWr~_ zYKel0o`IfeYO7Hy0|SGPr;B5VM0hd-V_kLI{{%K822Q=Y`~T&gh14$A?w1G^I>N}= zRPgU-L5oTUqfkTQ_ph%6JOu>z-k0ln*km9p(WJoeD1qY;!!iYCW`^ii+g#7PH#Rdc PFfe$!`njxgN@xNA!7V^I diff --git a/resources/g2/30.png b/resources/g2/30.png deleted file mode 100644 index 4038923eafc98753bafb70abfccdbcf34a9d526b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 203 zcmeAS@N?(olHy`uVBq!ia0y~yU=U(pU=ZYBV_;yo5cTIL0|Ns~x}&cn1H;CC?mvmF z3=9mM1s;*b3=Dh+L6~vJ#O${W3=9$_t`Q}{`DrEPiAAXl1&Nt?C3<QV!N=-Yb?YU|CXXCE#zMFbxhvLN# aJ6AEku}yp!KaJO)0c5JHpUXO@geCxUpGR&0 diff --git a/resources/g2/31.png b/resources/g2/31.png deleted file mode 100644 index 06b5f195c936f44a3cb9cdd5a4ac99d03aadfacb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 191 zcmeAS@N?(olHy`uVBq!ia0y~yU=U(pU=ZYBV_;yo5cTIL0|Ns~x}&cn1H;CC?mvmF z3=9mM1s;*b3=Dh+L6~vJ#O${W3=9$_t`Q}{`DrEPiAAXl1&Nt?C3<c)o%sfY?PW|6(FvZ)hLDFSo;|sQf1|hR58qNx&@PxWaBwXe> r6p;Cd@hIB?hNEmfOi@g1Yz!LbwHy0OEKC>}7#KWV{an^LB{Ts5fgCpE diff --git a/resources/g2/32.png b/resources/g2/32.png deleted file mode 100644 index 84d69e23372932df5ab7cc7f5922b774cbfcf8f3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 208 zcmeAS@N?(olHy`uVBq!ia0y~yU=U(pU=ZYBV_;yo5cTIL0|Ns~x}&cn1H;CC?mvmF z3=9mM1s;*b3=Dh+L6~vJ#O${W3=9$_t`Q}{`DrEPiAAXl1&Nt?C3<AV36TpW?*1&RQo@hfq|hnz$e6&fq_9>S=m^h z!QY$P-kKphTYh;ydvvt0w6XC1ZhrY{26K6KZf*YS%Z2&P#nt=S|Nm!jU$0(n&mbJk zU_M`*-=4u)o83KMJKtM;`|b3_@B5plPY<`|t`C>bH)fc;JGlFP@#WjMw;w({fBkyz zd{r36slaDWVj*gBlF3xXmwvJb~4-W26R@ZlSE>lkxVqjokED7=pW^j0RBaMN9 zQQFhRF{FZV>x6p$W&?q?^4!ewoUO7}HnFP@1srdw{ont5s*d5G8~;8#ahyE-dEeW$ z>zJLmBJRowFqB&~oVt?Br*t{3*4;cKO*yZzv7255WqV`8$ za}>Fjxuqj-bAjPPIn_t!ZttA8AjE5-^OqINs}@bFT=((hV)NgT9~-8Yt=M}w(b3@I z+0gAPzTXM&EB%*vVdB?xjn1^UlS+I4J^jic@@UQ86Zf}N|6lPcnR%jGdw6Bwllk%Y zOGB@E&exgx^v#ud{Kt2#l9p&+{$>8VD_de2EVkEts4M#3xBR8WRu+!OlhtbyYaRx4 z@f_YU`?A8pNmXhtic^#&lFsLM)hhj&QeV*^QYmU%s8_GD@7MjGtRI_1FRYTQXJTMr OVDNPHb6Mw<&;$U3Y1nW8 diff --git a/resources/g2/34.png b/resources/g2/34.png deleted file mode 100644 index 992c5bdad436f723ad5cf0d75d2c2a5f2227e671..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 518 zcmeAS@N?(olHy`uVBq!ia0y~yV9;Y=U@%}|W?*2L;~n~*fq_9Qz$e6&fq|i4+<&or z{C4&HYHs^<2IJ}W#?9vXtDTK6`)lv_*0*PnejmO1wspTfi`Q-j1_s8GAirP+hi5m^ z7#JA4JY5_^Dj0J^4D${di2Usox-@Y{&_chh%1iiUJ#^hvy!0I|b6;q!;_*Hir8RT^ z7p5LtNB*F;Ls9R7ZtMI==2x(--~a#K=kkU%Dcr#mehs8nd zKDM^5v?C(>qRgHh)+{ej`sMO;?Yh`2E`OhJnfvK1eVLY~Ec&x@TKOdY z*R~^HE7Jt`A6xp?$!NC1xjP$;N&*8!o%>^-1uxCr`DIh3-tM$nTPj6rqw$8`iIc^ZXVyTVj&m*c@Cfk(u$9&=0VJ2C! zr|5;{g_8Tf=T+%Rbku)KvC(_u_NiRqd%DOg$ve63UovmK{(YyfE!`j`OSN8ci9U`WzX*gcQz`(%Z>FVdQ&MBb@0I9jd0|SF`fKP}k0|P^|xqdab z{pa%C`@Qw;8Kf7>$N#_n{&~1^zqtQ)_5A7f#^0x({$H=Y+S&NFb$>d8v7%C>0s{jB zV@Z%-FoVOh8)*y-3{{>kjv*C{y%#U;I%L4X{NQ4-*y#%|e%r5ITE%U+{r7&68;Z%Z zWFEhdpC!D*H&tebU*ojGRJMj&KEL<1UNkv#f$cl{LY_G(=Kgk%c|K*C-D)#gUC&{s zcIeh?#?@-SxDP*WpOxzM@y?Ogg`Z!mef@ap%^s1$_uo#Mh|Vzopr0M5H;T>t<8 diff --git a/resources/g2/36.png b/resources/g2/36.png deleted file mode 100644 index c83d1eba746364a7ca70563abe02aa35a220d8a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 272 zcmeAS@N?(olHy`uVBq!ia0y~yU{GaXU=U$pW?*3WG3})V0|SF@fKP}k0|P_9xPLXb z{d9ZdbOz(q&c@Hfm7C4=FZ*lTGf40E)?X|izg<25wsrsK^4)5i^J5qo7#K@}{DK)A zp4~`eU|^W&>Eakt!I*m9kju$XfaSsu!6WAm8tvb(VKdjJz1PgVB3kRY9QQQec&VAQ zxXkRO>H|)j?##KqKP8MduQM-vmYA2jGgeyq#mO51yFSnRxT@;5ujUVdw;O&OzZzjy zQMC04%cf^~j5dFTlr3I_H0HFiSMbSQO+Hew!oKe8T}F*(pCX;2?e+*aJpZ+9ZPuz^ dFaMsh=b9mHddryq6axbTgQu&X%Q~loCID#sYj*$u diff --git a/resources/g2/37.png b/resources/g2/37.png deleted file mode 100644 index f4579749ea9b0fa7c53ddd3c0f47ee19085380da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 605 zcmeAS@N?(olHy`uVBq!ia0y~yV9;Y=U@+ofW?*0tDVBW7z`)=U;1lA?z`*eT`uq3M ztNX?MzfV8CSU$elTz|E*@nwJQ{oeY|!Cff6tGVrW%?s9MU|?V@3GxeOaCmkjje&vju&0Y-NCo56sg8$MEAX@g z@-T8Oy7206{x6{w-~M*9y;}9^c#4tBs(<^JMgA>#nc9?iL*Z6p<>Ni>GE>aI3ED`N zD1SP3%yd!E$=$gxH~hA-z2;-^@a8#N^Ibkix6c1jap+p%;)iArnl9S@oZAspulhdo zqlwo1q7ePsk|*)gYd!`3RXCq^BKqaY!$z6MEUQZ=*_3QvV;NVzY3}4FnpNWOcK6v# zu<31*np}U-aObVe?pG2M^5+(vHaStW-J0{+HOU3NcX+GMxi_vT&y zmcNU(Z~axfqphF-Ct{0Z U7CSv+U|?YIboFyt=akR{0RIOkHvj+t diff --git a/resources/g2/38.png b/resources/g2/38.png deleted file mode 100644 index fa1dd09956fd38142265bfa277e441e6450ae989..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 264 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBq0kW?*3OmX57rU|_Hb@Ck8cU|^``w%@Lv zf7`nMee~*PbN$uM#{0eX|HsSsi~BE@kN>~je!9K!^Kj+=_3GcJpZ@(X5gcy=R=fq|jQ)5S5Qg0XbM!*z!hI9dg@*|+R1kG}sumOX0n z+QR4JAGvGPFS!d{USDvpD5_COY0r`Xj)bYQ?mNzj=I#<-aaH>O!|rWmBKQA%)^lX! z{66i!ynpXRm*bs$9cxw}*Ez18=TrM;_l>uA|A*?vzDoFd@AsU&)8q?h-TeEOS9%ij V3X$B9`3wvU44$rjF6*2Ung9nCY83zg diff --git a/resources/g2/39.png b/resources/g2/39.png deleted file mode 100644 index d47ffca2e2f45c0584ab64fdcfd0aaa42954a10a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 254 zcmeAS@N?(olHy`uVBq!ia0y~yV31~DVBq0kW?*1ga?{L(fq}s+z$e6&fq|i#+kU%x z{`=_Fx2^m8#r;2*@4oD>{l8xQf4uyDZ~evc@#zf4|7RPob~b(dAMxC13 zYO+)GT+U3`&nBT#%*XJ#_pz|z1w-~PXBG+_tcu_Mv@AjF^F>3YyS(Gq zOgnve_wN2ihGRkO%x}JC73BJ^V9S$O(5tOFaaZWilXVL7{Mnh0O={nAhJk^B!PC{x JWt~$(696(PT|xi= diff --git a/resources/g2/4.png b/resources/g2/4.png deleted file mode 100644 index 24395cc1b733bb3d547ebfb03c6c3d859e5ca747..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 229 zcmeAS@N?(olHy`uVBq!ia0y~yVBiE{4mJh`h6fYb1Q-|?SkfJR9T^xl_H+M9WCckU zctjR6Fz_7$VMb96uLcGN28j~ah?3y^w370~qEv>0#LT=By}Z;C1rt33J=4@yqf`b4 zhGb6{#}JL+WCq5%>bCz0Yyt|KA2O)y_)+`6UZD3(o0l_#&!XRThB1OYyrE2t3XBt6 z{{1Z2pkgGwiiOF6NrChG*H;OiDP}Q_U+SuNC>YJQU{zpvbbw{z&45f62eBg|2M#bW Zd^C+;aP+Ig4h9AW22WQ%mvv4FO#oCbMZN$4 diff --git a/resources/g2/40.png b/resources/g2/40.png deleted file mode 100644 index 1f1778adae4bf06ecc2b8422ded955a0318177ec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 542 zcmeAS@N?(olHy`uVBq!ia0y~yV9;S;V9@7aW?*1gf9}Ry1_lPp0G|+71_p-3^6~GZ zSKqeoujaPjuAbj7?!Vt#|NnOT|L47%&GrA!Hcn?SzU;64KVE*iz47yKWqStc)y~G= zcSQ{t7#J8!g8YIR9G=}sV_;yM?CIhdQo-0eC6Mp20*}jEre#YrPZs?@{7!=7?$o62 zI@L?BUsM(-{6F6BFnhm*lgDh0Bvt$GH{3mxer`Q%#3M9)?UNZ!ToeB_CMPtD`Z4M} z_`Y5|Im}bDwYjcU`sumHW}T(mQS!tbZHj z^&r`KPJ-t2g2L#_w@M7tCHJ}9f3(%^iP^>8{=yT+Gis8fKHSN)m$034`{0DSssE1V zu`t((?d?lZpK(ii_RDK-+7jZorMFfdjM#46fBaMB$6Z42b(d_j`6xDR(#+nwk`~u) z@Xljm7T^C^zHhbe@AmKYzw$oJD7BvPEA}~aJ>z6ff&7zsJC89iFfe$!`njxgN@xNA DMMv~K diff --git a/resources/g2/41.png b/resources/g2/41.png deleted file mode 100644 index 1aab1c2aad780d50b140c6ccea8cc976513e6b5d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 250 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBlwAW?*38s6TX-fq_9Qz$e6&fq|i#+kU%x z{^#=D@1s}Ww(egnAD_-(+%N9G+Sz!zz43l;{bqCh%l_KW1@}#3U|?V@3GxeOaCmkj zje&uo&eO#)q=M16ZzFG$qCo3bL2s=r=Z7ro9x;jO`#9)qRcz{A`+%WII>NF+dPk4= zp}YV0zpDND>4DgsrFY-5ZfM;)n~}|S?`ns)PA^>q^7mLinlP`bf$QC^b8C2#&Z+<7 z(7P_K-5>G3KlAFT*;lz%{&}MEKI$*W+RNcqwky*=u$Mnj%KfzaSsnue1B0ilpUXO@ GgeCyH9bu&a diff --git a/resources/g2/42.png b/resources/g2/42.png deleted file mode 100644 index 303ef490ee9fee7a81e983683b06ea6d6aaed3fd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 238 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBlwAW?*38s6TX-fq_9iz$e6&fq~(D^y=Hz z{r%$p+tu?I%g0x9+c%r*uXZ-x@2#KCU_9O4*q%X}hwH020|NtNNswPKgTu2MX$%Yu zrJgR1Ar*|FXAHTT4J23}>=!X=@w0V$$;i~N6Fd1`>#AahJL
;L{q_->rPt4wyneerh|L36dd{+c$F+2pkcY+mxdfq(PM>Gp1RPoG=m$#dvW sYs&Dg3kqw?`Jp=L<`lK*UMpl}=7=OzO^j+}U|?YIboFyt=akR{00G}rAOHXW diff --git a/resources/g2/43.png b/resources/g2/43.png deleted file mode 100644 index 1bedcf6fd3d24d8571a6ba73b1eb6cde7451fc51..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 577 zcmeAS@N?(olHy`uVBq!ia0y~yV9;e?V9@7aW?*1&;Mu&Gfq}szz$e6&fq~(+b^rV5 z)zj^bx2xw@bK9?WHvYfe{<6Pzv$_6a`S|~{jsKtbejcv;xqSEkdiDL@`sobD{o?-L zr=R}4{r>-W`Ty77+cQWkP61NQ@pROQQ&D2 zRAJKX^0@r_{!8BvA73{dcwltea_ad-9wPn5Cmg@Xo1Stk?`C{j^ybo`lr?2}FAhZi zICGDyu}ED!T)c1bhPrvz16JuO)vb>gTf6Kfclln+?N^=(u06H>`>D83CoWuk)$uE# z$Nb*>FT3Wf(JL}+P-ijla_n(lr{?LYW0dshTGJvuhMBAGao6?tw+9(4`DOibyUl|2 zwy*Ve{_;EMc70O%q}8Qy3sojd{5-FyJ1g_w457d0PgWTm*IxF=^ty589|?W`o2%O` zPgXeooFII_mZfiR=0Z#EaOTqD+k&2bpV#&EwSD!DlWNjh$^LEGZ$)tnlLUng1)sFm zH%V3KKlwUsva*@@l=naNK5VPellaWa|C-C}(}#GSxHU6RRUK!Wv&X{z?D6#upEZMC zMgIG1wjt@E$l_|t%ep`Ao48FE;t{713G_7i>YDgzrP_kWlh9Go}F&G3TW-(3$< zOZL8OlxOPZJ(c%IOg7$LUG{6%6JzxsmU^!H%^rM@6RFKOC||9Zb9!gpfsI1FpPS6j oOY8m9mvKJx_Z9EM^S|U9ZcAK9_Kw}cz`(%Z>FVdQ&MBb@06aMh>i_@% diff --git a/resources/g2/44.png b/resources/g2/44.png deleted file mode 100644 index 075dae7638a5ed80e91a52b7f7b51011b3106f97..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 261 zcmeAS@N?(olHy`uVBq!ia0y~yV31^BVBlt9W?*2bxM_WWfq}swz$e6&fq|i4+<&or z{C4&H+t&T>qgPjR+pl&uPG>OQ@2x-G-uQXAav86z0p^Cb=~5O2UN<&3o%PXiH2I;R7M7^M zw(R&*vyDHeC32tJRq%WAPyV*=n#VIg{QVc7sVHqB#_QhvTdaR|^0V0cX%%&Di*8Cy z?`ybjKDUkWz|O7Le=0^E)!i2!xtOs~$IW~3zS#{@V)2=o|Gc(oKK;k=Q$%{PShn0; Q1_lNOPgg&ebxsLQ0I$Mf7XSbN diff --git a/resources/g2/45.png b/resources/g2/45.png deleted file mode 100644 index 16f8ca9e62677dc5e70eea1344fc18607509b2a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBlt9W?*2L{I20J0|SFWfKP}k0|P@fxBYGF z{`b+Vx2xy(i~BE@kH74%z295^f4%x@XXF3z^3TJS(;1AX+Z#8V>nlw;mCV4vz*rLG z7tG-B>_!>`14Fx~i(^OyqwblFyoVfkSObh51K1XvaJ`~&PvOz8h8!=cBRqnvs;*jP z4puLpM7K;5lxTXT^(Ln7`@XNd4BF2(*se?T>y3W)(eYlv%Ria*dwU!CwI0RY7P)`s zOXFsqTT68emssaKSv^bP(Ydyp7FTafTds8eRB4^YDwjCk@2sa}Rz&(uyKnT1Su{!NK0i$;!sY`p(YL#l_9jr;95q+cQY-_twAcuYKFP z|9$l81Akb&7#J8BOM?7@862M7NMm4NJml%(7*fHwb?WV^*$zA{H$OWr@@u~TKhioX z;_(+_p}i~g=KT14-e6K%qT#8Z52pPVt>O5d`FwBrfA5-)|5I%Dbz6TvCI9H)@{A63 z`~T;Uny@{%uzKl?Sa+YoLrdpfuhTPUJg{@0^zVoaUEa$R>deb@->KC|1s`#?ePI1) zVd;#2t6!g1G)qdV>kT=cydb87FXq^ywI?ce64la zxU56@anBp&dYc33F{w+Bp1=Q;DL97j=yjvY3kRjYtZaL*%DF^e`}7I%H7?Ef)_Np4 ztako#`IMagVK19^wJheZ!jclws-B9S+j99m({`V=U#xyhu)o@LR!~PNCuARcsiT1N zk<^JlYIq)>3Q1|nZTEI$w~{^1k^0&r_whM1-Pb2M6t~RYQkfa!v`c^UwbcHFUh_3w zYL8A?_j2Oo$?JA<)TYX8tgt+}>F<56-sk=uiq9BNeajAcAy5@xJzry9lwYxsb$$K% zy;mQ9+?H`GAV0Qihv}sEw~K=_=EQaCl<#C+qFZGnvqMo$wz}Rf_*Rd2{>j$F&g;uP zX6u($e)SNzylrXj&QOogXkU5zJi*CNAFrA9n)emI&wPQ8g8Hr=3=9kmp00i_>zopr E04pvEg8%>k diff --git a/resources/g2/47.png b/resources/g2/47.png deleted file mode 100644 index 4dac4d418eb3c39185d90264ee24542fd5706b92..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 326 zcmeAS@N?(olHy`uVBq!ia0y~yU{GXWU=ZbCW?*3Wf3f@-0|SF!fKP}k0|Uc$_56Nu z|7vdg#q#mrr=Lz|Ft%rqo^Efv-&=pRv$43cakL zi|4Oj|9`u^va#{y+qbtLKKwjfc}m;$D+~+_j3q&S!3+-1Zlp0VFf8+QaSW+oY@OsN z)~vwe!noL}C2Hf+w}16-G2ZSKIQi|r58M1#Ra;(iF!u(#FPLb>#2bD{hdX$sxwMjT z_wM7Io(I-#i(Ig6LD7!nY2MS=BP4heBmXs}XU86uZNDv5&?Hg3{)d?J9eKs;#sYUP z&u`hVY)TTJf=olw>W*-qr%rqcPhU^^U9HW?_FI14&TBK99yi{(5zc;WpSaz{{?qkb h3o=XWd-pfRH`TK)u;Am1WME)m@O1TaS?83{1OVY0e=Gn1 diff --git a/resources/g2/48.png b/resources/g2/48.png deleted file mode 100644 index 9cb20f7ecf87aebe9271bc0944ac785af255ad30..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 280 zcmeAS@N?(olHy`uVBq!ia0y~yU{GRUU=ZbCW?*0td3NS00|SFufKP}k0|P@fx4pQs zva+#pI)ib)xW9dHuy=B@zO(acXX9pb{pt3`+tu^!8Kf7>$G?wWecQT!zqdaBi#Y%{xXlhSte75|Qc6+&|33Y6 z^YrQOqgPjR+uyeCw+{~fA1~i8?!VgE`2TF<{oeYY%XeS)*S2Snejcv8T|Ga#xcL8e z`)LJl{1_M*7)yfuf*Bm1-AH3#U=sFpaSW+ooI2(1w8aVnEq|9XPL=ExFw8Qk{9k@2 z&tUUzaqrzRXD%Ac=Y|HV{LX%Q^J?gn(9o;XGZ{r4boDoSnKPXd`^jBo#r)xF=+p08 zKQj4nFXPFo;ycG4dN*o?)t4%1OVev#uSqa3(|8xGS)I0LYP0%Bt<%rkAK&~~ClgZc zZWS#zbGmJ^Sf{Ct$?fuQU$S#2|M;xz@Lo6f*`_Va?f2RmsLRZMHs7f4`fs_l#(8VG znZKH_>-WjpUzu0*N9FX6-hb0N?#nK}x5)nfgy0-?Gj_e6e!q?1D~|X~bgr3f5Mjh< zp3v>{Z&|@YujcxFYJPpI#Tl8BCT^eU$$nhEOD|+;*SgzkdNuFav@bmEj{BB>a!KY> zt36hQ%hP!}-!d_-SF(APd0yqXcjSC~@2aX~k4ye@;n>tZ`Ra^GFP24so z75ARqQ@?HbljqNEZ1cbTTJ^f5^4$B^y+<@w++(Qi`rdf`^O`BIv_5Anlnb&s`u3~a zQvHoK4BJhQK0lH#ePB0hW3O4#qaXJ;lfRkYv5NWpX!4$^eq65MSr>gLo;|H78RvDI zGbh?veOpH7pNWt9OGEBPZtwlF^Wxv%yB_RsKmYM{E$98>#}hBvuL)d#@8gLg|34YQ zHDAR2XRthEoB1GFPF+sO;!}v7<2(L7c?+Tae2(ij?=MWdc)jp&=%2~Q>jeAR-}IfX jxbZ>WgTe~DWM4f)`?K6 diff --git a/resources/g2/5.png b/resources/g2/5.png deleted file mode 100644 index 05c0c429844714d85c6c48f43fa096ffb08ec4a8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 403 zcmeAS@N?(olHy`uVBq!ia0y~yV322EV36iuV_;xtu@BK_U|?WLcl32+VA$Bt{U?!? zfq{Xuz$3Dlfr0N32s4Umcr`FEFi4cRMwA5Srw}V>gA6KiUG=KXwRxBH9V>fZA8z225<^^d(xwCuR6`ztVf^IqND?~@ex zaxCs$`F8vDid$#B%qO%QpQm*#XHMd=ObhE!i@r~<3+(=#{gboaGdcgT;ql{tH!8_+ zHzXTpDjrkukUH#}`uNYQ42x$T{y%?PJW#XvU%6ps+hRMFUf;guEar{2T?Gf0R`9rm z$Z#`!PFiVlRc`xji5``Qb$2f(boh66S1L+yKC*iyc3tw?y31i%O*=x$i`zc_{`EOy zc0x!Dw;9_B_t*Qvc4{8WPF%v_o}H*7J>N(yUpV=lXV^6_61IBG2mcf^*PY6N$1}GHO?h- z(rd$Jz0)yo*rK%c+H`Y|Gb&eZUppqOa-nlW#QV|!aj)N6OBfc^><~3x8S-ag7R&$V zA6EY=aS2!%$7d(hw0!H%2a{5b`?wBlIecpSS)<}k*{}Z&>|pzKwEX4Yg!6y;FQ2{t ai8();b)iS|tlta_3=E#GelF{r5}E*terhoQ diff --git a/resources/g2/51.png b/resources/g2/51.png deleted file mode 100644 index 21ee9e0ddd232d3abfb7f31f828ee3b58a4470a3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 275 zcmeAS@N?(olHy`uVBq!ia0y~yV31;9VBqFpW?*0llgmBCz`)=X;1lA?z`(FwJ^!|K z|NH3G{o?-0#>R`~j7J)4r|NMj&Ye;3 gV_%*7{bhafQWl$+nF5y?7#J8lUHx3vIVCg!08VLat^fc4 diff --git a/resources/g2/52.png b/resources/g2/52.png deleted file mode 100644 index 5fd0252a14feb85622415f8e2ef1f71b006904d7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 614 zcmeAS@N?(olHy`uVBq!ia0y~yV9;S;V9@7aW?*1gf9}Ry1_lO?0G|+71_p-3^6~GZ zSKqeoujaPjuAbj7?!Vt#|NnOTW^?`jvyCtNYfrZ~{vR)&&S0$X>}($#EUv8lJY3m3 zIeE3SaddI9va#|1>+d(Oc1>YmU|=i>@(X5gcy=R=fr0Uir;B4q1!M1&heeMScv=D( zcE)TxxUsMLzxiI#8@Y8XM}3wreSCiQ)lCO)cFWzn8}smC?ViqG?a!ZT-%Wg|@X6QW zmqh1fU5kJoJB#gqc0PEJdC2Gn$F+)Gk8qy7sZZ;f{B51PALj6GeOh&? zBa+uY(tW8%UheUJ??cxLHmuOS?APFz#Jl|R%G3>7_Y<0)tIcQ%`5JKHw3v@@l-a~9 z+=e%Ha>|Gm2i^;ezbUSCq`c?UVS~4#FzUNY%BY$se*0JMn;lfq}u()z4*}Q$iB}iN+$= diff --git a/resources/g2/53.png b/resources/g2/53.png deleted file mode 100644 index 66382d7ee6e2e2346cc4d3e0a8d357676e598f76..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmeAS@N?(olHy`uVBq!ia0y~yV31&7U=ZM7W?*2j{^h@%fq}s(z$e6&fq_BU*m$+G z@%F=qo2O6LcXqZ94)#t?7FSlDzkdDq>8Ja}{TIu}@AuYEXE2^_Z`^FIzg<1Qn%n-e zzxMxnb$bTsi*iav3=9m6B|(0{3=Yq3q%klslzO^2hEy=-p342^3< V_zyL^-wX^444$rjF6*2UngIRqYLx&0 diff --git a/resources/g2/54.png b/resources/g2/54.png deleted file mode 100644 index cd8625707ee2a2442cfbb7adb3cc1eb266ad6c70..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 238 zcmeAS@N?(olHy`uVBq!ia0y~yU=U|uU=ZM7W?*1A^-)BNfq}s|z$e6&fq_Ba*}2(V zf4h3VeQ>aMatzW8=m0@vEJUr`sFv_tsBmFt%rquI9GCB70Stfq{Xs zB*-tA!Qt7BGzJESOivfbkP61u34wgfiX1METNXsT{p%mSD0h?A?78;OQ|ATFILP3q zaja$i-qbWD!81Fq?@u@*&Mq#vkkKnDH7fLe@#ec1d3-K~34~;)S~0F>d$D|V|6=BU sKSFF9lK4N?t-i~{vt#Q@yAP~PjLfgA71sP@U|?YIboFyt=akR{0Gm%w=l}o! diff --git a/resources/g2/55.png b/resources/g2/55.png deleted file mode 100644 index 76d67d4a47768ca84ff96ce9ae2d3c401c698532..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 691 zcmeAS@N?(olHy`uVBq!ia0y~yV9;S;U@+idW?*25^~<=-z`&3h;1lA?z`&qvY#d!& zoZsBsJbn86=+(Ea`=5s^S99BYCnxJWJ8xIdUo0P=&R{IAtZW|~yxQ4#y1j9~xc~R* zr<=|7_j~JK_SfEi`0)Sh@8_>y|Nism|L46wm+!uO`}Y5M`TyJPe{aA4f3~qbgEY$o zfg%P52F8*gzhDN3XE)Lq7#M$ex;TbZF!oM)KW(uB&rw#Fe;(Qz+dNLMdHmb{iQ27~ zCFdg#)MzcY&&!|WJv&@*#j~8iYuj|+`)zCqRFt@|iAl?AY8a2#*E!$ST|_UoWF%Xi z(^s8gbV}l?OT2Vu&%-+@k;+?_HOs9jF4)zhV3+#)&F(q|_H$7!jQSUkIfSnjxK>?% zA$cC#?AqhIEBA4(*!i*j+n4`l<+JCU7t3n1KDV-(BQbN+qlWVzPF6pkv-kLM<+eHb zBK3a1KW(|zvUI(@;hLLYPl)>__jG${9y4H#Tp0YT?g;A^VRKQdFIpSlONc6lC!LYn zCbL)4xO7%y^X|i)`EBhrs}lB|U#{k5db~>IUr1-%^|A%~&v9*Qe0M0TKBy^hhLha} zq1r0`)h#PzrgQfv+U&Bb*nN9iY8AizqjTRyZ|Be7{l~W@Jvisn+soTG{G0Ul{71e6 zOnaxkxchv9kaDJ@#s8+lJr6#2Nkog?sMqk!SC&wmaoOd;sVkyOFP_+79pJ+IbnW9U z&h5<|+jhQNe&|O*o$V6Si`&tf!)z`(%Z>FVdQ&MBb@ E0NPGR&j0`b diff --git a/resources/g2/56.png b/resources/g2/56.png deleted file mode 100644 index 17e96bbd20999f19745e57bc7a9025e90885531b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 299 zcmeAS@N?(olHy`uVBq!ia0y~yV31*8VBq0kW?*1&W7V}~U|{eL@Ck8cU|{1Nc76Z= diff --git a/resources/g2/57.png b/resources/g2/57.png deleted file mode 100644 index 6a1c64c248580416188aa80c7689df4aa26a3a31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 306 zcmeAS@N?(olHy`uVBq!ia0y~yV31~DVBq0kW?*1ga?{L(fq}s(z$e6&fq`MWdj4(e z{`b+V^_`u)lau#*>o=S0S99Cf4sc7vhx3W z_38G;i{<10B!0Qhz`(#*666=m;PC858Uq8vJWm(LkP61!zFeVZ0}dBYt|JbMwjBE% zzjeZ^l3yR|EN#j+8+iT{d(v_w=E2!XepO0=vQ~&6FKG)+?36m{_WIhPjr-+Rf69?PoP8#{>UQcnUw7N< zJ*$r^6&!iw?INSs54@I14-?iy0XB4ude`@%$Aj3=E7Co-U3d9^P9g9h`c|fXC%! zBEN_OW3-TJfJ@hd9qxTooH<1t7>}J&+WWC0<+%W#eVE%Pjcr95OIiAF`^WyOIF=F5 za`5wZz0%sb-ba+z9Lus@R`XeC!Os<(*D8b;3D3D%diGPF$aj~nY9-gBA4{}2o*Vyr zf4)5=ymWrfyMno&vbZ+cJI<7j+3qAK*yFe84Db2=Z*I+!Gk@}EYF+q}%`0#&y@ctW z{P~07ITNm0pY7()?5$n9;OG6n_vSNwPpJ#A;i-|j_G1+$MwY1ONSRn`m)3=E#GelF{r5}E+E^qb@W diff --git a/resources/g2/59.png b/resources/g2/59.png deleted file mode 100644 index df841457066aa674a74375828249dbe7f47cec68..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 176 zcmeAS@N?(olHy`uVBq!ia0y~yVBi2@4mJh`h9ms@x)~T4SkfJR9T^xl_H+M9WMyDr z;4JWnEM{QfI|Ravq8eTe3=9ksC9V-A!TD(=<%vb93~dIoxCe|nPd zGcYjddAc};Xapz!`2XLY<^BEt@~qBB1t%G_8t{lJJ27@NvQJ*YaI-=~Es&Az-hX)p ZiJYsVo-3U@7#J8BJYD@<);T3K0RW+|F;@Tp diff --git a/resources/g2/6.png b/resources/g2/6.png deleted file mode 100644 index a441a6c73d3938cc4a45399a518230ed79ab6ede..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 585 zcmeAS@N?(olHy`uVBq!ia0y~yV322EV36iuV_;xtu@BK_U|?V@4sv&5Sa(k5B?AKk zOS+@4BLl<6e(pbstPBhcoCO|{#S9F5he4R}c>anM1_lO+64!{5;QX|b^2DN4hJwV* zyb`^<)Di^~Jp(<{)K;TZ1_s7mo-U3d9^PlCDi$$03b+<_aHuc|Hbw|eWL8j`z`?>K zDA?$rWO0CtufavBh=E0k-Qfv?prDLm`;8~1XO~+A?>?z_bV5n!^*21T>;C($SoC%M z>f7(dFCX-s=%1gPDsQ*TPm^J_Rn3%rEHNckM?WVdyuQlBP?fcv_m9}KL@Kv(s_l( zoms35PacYI?O#~AK7BP4$CM*>Y^y~XeoNF9Rx?%X;BQD2uKu>wne*LS!@Mm07a!K; z<{o}Mg{h)=SKr?ZGiyij#p_J%gA%{ISFOld&ye~p|9JApA`6k#XOBH-dbQlLXI*&e zH@k*6+jq}(WKGwvKCp>D`E}^jznTZKQm4tqrS6}XdiFucOxv(8kBcIu8bY6?$6G&r z$UnJrYy0MOgZDFEhD)5=`rNzyYveN#XO?e_5xf%X#3n4b_4Rj2+mt3#M|Fqwb>A`u)b)O|foWIsd#K)!vG_rhr oF14oEc6Dt-!;jTjTkRN|)NV&Vw*7yUfq{X+)78&qol`;+03sFfe*gdg diff --git a/resources/g2/60.png b/resources/g2/60.png deleted file mode 100644 index 2b4369ea8a9a9aad804d46a001861e3d32e8cd9b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2968 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%0AyEDH|s zK6QAqpj5+7*)cZ0_H^T9H%XN%{0EMgEzp#k%zWcqRnnvS7Kt_kt0~L(F)%PNc)I$z JtaD0e0swA1Jz@X= diff --git a/resources/g2/61.png b/resources/g2/61.png deleted file mode 100644 index 1e6b999209c6eb1f6d3e843f006e1c662e2b84e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1229 zcmeAS@N?(olHy`uVBq!ia0y~yU~phyU{K~@W?*0tzWzsofq|JJz$e6&0WT0&R#rAP z)^~Qc4-WQDPL3`v&TnpRo<4p4`t{onAHID1_WRGDjrAGqtr`5ixuc_nv$N&PtM%Kv zt*6iSU%ozm_x|G3=ezGeUhJ&R9&XK@?=4;*F5jQ5KEK#_bF=gQ>EWl>=iffw{`~gh z@9z)0OEbi4GnCsi^aryq&u8D?&3}El@aNOg|DWss{~Z7ScmMzYhm{!^{23VH+1c~? z`Rk>n`_B85kb3GyG>~`0wxhzqc#(W zU-wsM$Twz~Y|pUWo#D1W!~bB0|M}woyN&-Z_W!><`~T_o|F;)2fFjCuzxw&}^Z)VBVn9H-f>+?t3%V!50SEqaT*Jm%DT)%tuz3BiE$uZ^+9Q}v%lWlarYft#p>VLUmPmIFZ@~7JSk1$q#3FP@u{>D!D7>1J=` z^_+4$YxXYb-#U|b-;aZP_z&JYmwn0fUi*PvH+R33`c`D=Qlt z>pMH!2M2p6Cr1|-=QlSuPoF-2{rc^P4`050`~Bz7#`+BQ)(rmM+|kj(+1c{t)%xw- z*3)PEFJB+Odw=oi^WFC!FLu^u54Yyd_ZF`Ym+wzjpI>aex!HOD^zhT`^KTz-e|~%M z_xFe0r5WP28OrS$`h(e*=d-)=F$E&;NYlqhxC-++y&vtHJ z?LB#S@Z!_)+i$1Kn@j7vD_aL^dncPm=R4=O`?t@JpT9kS`}z9Awi>@q^9!4+Ylj<~r`tQ12M2d2C(kY~U*FxmfByXQ+qd7p zeEI$R_x~BB^BL5qvl}nxcit@>d|EsGzH|HI=*7>=cfaqy{CWNJ-`BtY=ho)uHy0Oo zmsbwf)=##!F820sk58UmUcJ71^6};CZy!GY`My0vyf=GsFn@i#e1Ep~>}vbf?ZLZe zrypNke|`V#=hqK^{`~sCJp)5H14A(bLq7w;!@70AF%;nkL_4%Xi<+Fp0tJA&v>$4Y6uHU_S^7+H7pWiz{Qr9O|Fez%Z@2${-kX7e;q3hfs~8v<7)yfuf*Bm1 z-AH3#V5snPaSV}|>f7fjbU=ZF<>&v~O{by{J=4|MILR{NMwAb;?vHdqfwy~g)69Yc zy%s$ay>UsAZRL@rOI?(GI@ys{)iKJzf1=);T3K0RT!| BqfGz+ diff --git a/resources/g2/63.png b/resources/g2/63.png deleted file mode 100644 index 08346c46e43a4688f8efc9f1afcdf7df25d49314..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1217 zcmeAS@N?(olHy`uVBq!ia0y~yU~phyU{K*;W?*38yL4s&0|PTdfKP}k170AmtgLKo ztnch>9~|tRoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TT zTTh?uzkGfC?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1 z-`^j0mu869W+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;( z^VdsD_p7Tfwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ> zwfE%R!HZAFZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B` z2nREWr!&Y`GpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y z@cHKC>(h%LuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z z^5ysM-~VTj&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bW zU0yj@TR+*_y4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@ zoql|E{q_B`pI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcD zpMLuH_WS>@zgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$ zXZU}c;s1XI_UvT#>}2)+cIoD7_UvTy+0)HuPoMqxaq;QX=Ch|eM@I)|XD3%z=Ns!c zo9j=vH(u>*yx&{@vcLB8aOMB;^8f4A|Iar5zuo@-d2a>=hO_q{tYTnbU@Qsp3ubV5 zb|Z~}fid6H#WBRAbLo`qNi7OIEj#~Tl~H+d&NHoY@m58JU8cMHJpOrx+U>gRcq}sg z;FlN77K#hGH!!v9IX#(Ee)9tl=bpoE2{|u>9!9F&nYVPo?4PxQF@9>90*{t)?5XTC z)LVH-Rxsth*3vB-!=!KaNqiI8y4fS!EuhP&bS1<0Pd9djs7O7#xTq-H3vX%+RGRQKm^FHt zqH8yYiv#0^hmPtN{FS0cZ#aZsISMaX6|m3AaPp5Yl1vQqmjwx2W-Aah?!1@fAH-5< z^lJYC^CQi(#NYQ+Jxu1Vc~TwOzvgpf0z>hKU!mtRt_s)4xIdh3`uC!L&y$z3;*R
_nzGRZ{R+noM;>HM#ixuBxR)78&qol`;+0Gh=b AV*mgE diff --git a/resources/g2/64.png b/resources/g2/64.png deleted file mode 100644 index 0db6b59516a9b6b7f6ab442106770c0e4923f983..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1112 zcmeAS@N?(olHy`uVBq!ia0y~yU=U9~|tRoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TT zTTh?uzkGfC?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1 z-`^j0mu869W+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;( z^VdsD_p7Tfwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ> zwfE%R!HZAFZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B` z2nREWr!&Y`GpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y z@cHKC>(h%LuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z z^5ysM-~VTj&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bW zU0yj@TR+*_y4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@ zoql|E{q_B`pI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcD zpMLuH_WS>@zgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$ zXZU}c;s1XI_UvT#>}2)+cIoD7_UvTy+0)HuPoMqxaq;QX=Ch|eM@I)|XD3%z=Ns!c zo9j=vH(u>*yx&{@vcLB8aOMB;^8f4A|Iar5zuo@-d2a>=hO_q{tYTnbU@Qsp3ubV5 zb|Z~}fsxJA#WBR9H}_IBUyA|{>xFmq`Aq9ry*}puV#qA?@HsY_VQ+a$O=G;Jv)*}$ z=8h+dA}8VM zsmk1Zd4jKg(_{0@-)Z?emdKI;Vst01k}e761SM diff --git a/resources/g2/65.png b/resources/g2/65.png deleted file mode 100644 index b856b344c404c094bf00e9204fa93ca8c77c59e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1238 zcmeAS@N?(olHy`uVBq!ia0y~yU~phyU{K*;W?*38yL4s&0|PTdfKP}k170AmtgLKo ztnch>9~|tRoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TT zTTh?uzkGfC?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1 z-`^j0mu869W+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;( z^VdsD_p7Tfwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ> zwfE%R!HZAFZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B` z2nREWr!&Y`GpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y z@cHKC>(h%LuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z z^5ysM-~VTj&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bW zU0yj@TR+*_y4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@ zoql|E{q_B`pI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcD zpMLuH_WS>@zgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$ zXZU}c;s1XI_UvT#>}2)+cIoD7_UvTy+0)HuPoMqxaq;QX=Ch|eM@I)|XD3%z=Ns!c zo9j=vH(u>*yx&{@vcLB8aOMB;^8f4A|Iar5zuo@-d2a>=hO_q{tYTnbU@Qsp3ubV5 zb|Z~}fw9HY#WBRAbLo`qycPqVmfHWT1+90dD;COa2$Hql61}p-`GdU5l=H@t(hSeK z<${D|s{UX2^rTZQVBrO=eAC!QTgAtLE-UwGJ(lqCT7JZG(W%p?_vB~FF7~ut9;1}s zo_g<_5L<@(-(yp}&I)92{QfkQy`V6!jkD4F^lEdD-*yk~DH^&jZPhV#%2#-&efUxI z-1m*27oE|}I+eYu>|w;INAvxonNB}DQge8srS`UIQDGZAwL0>@F5fjb;n^f#vv#)X zs@qM)GH+Pa`eM8uAAQfbde3ij>$kpqDh?c%9G2|9^Rl&mBRY_jf6Um_`Ur26-HL%)=C-U;PD zpFF!0-Mr)E3qkwZWy^V=xG#SgFLO8gsL$n3&mOA1PrF?G{CQ#YKWm#iyY`vxI9|^< XS4Lv?c0sm}pz_Jn)z4*}Q$iB}{Sq+X diff --git a/resources/g2/66.png b/resources/g2/66.png deleted file mode 100644 index 481b65c1ee7c60871c1a2fe3c1bfc23482b23ce8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 956 zcmeAS@N?(olHy`uVBq!ia0y~yU=UD=Qlt z>pMH!2M2p6Cr1|-=QlSuPoF-2{rc^P4`050`~Bz7#`+BQ)(rmM+|kj(+1c{t)%xw- z*3)PEFJB+Odw=oi^WFC!FLu^u54Yyd_ZF`Ym+wzjpI>aex!HOD^zhT`^KTz-e|~%M z_xFe0r5WP28OrS$`h(e*=d-)=F$E&;NYlqhxC-++y&vtHJ z?LB#S@Z!_)+i$1Kn@j7vD_aL^dncPm=R4=O`?t@JpT9kS`}z9Awi>@q^9!4+Ylj<~r`tQ12M2d2C(kY~U*FxmfByXQ+qd7p zeEI$R_x~BB^BL5qvl}nxcit@>d|EsGzH|HI=*7>=cfaqy{CWNJ-`BtY=ho)uHy0Oo zmsbwf)=##!F820sk58UmUcJ71^6};CZy!GY`My0vyf=GsFn@i#e1Ep~>}vbf?ZLZe zrypNke|`V#=hqK^{`~sCJp)5H14A(bLq7w;!@70AF%;nkL_4%Xi<+Fp0tJA&v>$4Y6uHU_S^7+H7pWiz{Qr9O|Fez%Z@2${-kX7e;q3hfs~8v<7)yfuf*Bm1 z-AH3#V94@xaSY*@8QXu6_kaS2%gy@jT<4TLw%W5^nes(&@@ZCn2CWGTxwfwAE99?k z3oGBXIIPcF#a7TZIn%Vyc>d1dZIkUw=esU+X^Fg6!t~%oX1aXQ#YO#-nRf^3Nbc9Z kVdmV@^i$_uJ-c2F<8SfVSqhi_?*ZjPPgg&ebxsLQ09rPco&W#< diff --git a/resources/g2/67.png b/resources/g2/67.png deleted file mode 100644 index b17eae0ad225c646e73956284dfa31afb62ce915..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1248 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 diff --git a/resources/g2/72.png b/resources/g2/72.png deleted file mode 100644 index b2cd5dc98b7e545421adc9e7199c5585b9b1dc5f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1209 zcmeAS@N?(olHy`uVBq!ia0y~yU=UEWl>=iffw{`~gh z@9z)0OEbi4GnCsi^aryq&u8D?&3}El@aNOg|DWss{~Z7ScmMzYhm{!^{23VH+1c~? z`Rk>n`_B85kb3GyG>~`0wxhzqc#(W zU-wsM$Twz~Y|pUWo#D1W!~bB0|M}woyN&-Z_W!><`~T_o|F;)2fFjCuzxw&}^Z)VBVn9H-f>+?t3%V!50SEqaT*Jm%DT)%tuzxDJEocI3wan*`*p3D2h7(HWE;l=&0MWdc{ySN-& zZ>}M$81ePLa);maDAgF-pr!(W_zR0WH`q5YD{m7{QvLAkd%lcWR?$q+s8lfA7n zmnkloAL{U3E553Ag?;ukziyK#)fH2(sC2NXwXE>AiwI!e7$JI4>PzuzfkUeObuN44 zr>VWvcyuV7!QhFB@Uv_E?cRR-_;>%(FnO|cz0Vg8(bc7*`HSzZwlO*RB4^sY`sruy ztCneGFdvdyY_#=)+4L8+?hD0krGIZ;Y{4ftOL2wYpDhX(-0Uv!{OTgOZmAxr?f)mLprms2@4oLI zx0I60LNBhk$H$aiQ|1#_^@P866DOaepwB7aQ#UqD4O($>^Ul+!Oj*`{sXX1kC;#8n s=h-ut+|63OC3SVe&G?_6=hQzH58Yb5u5Udj2dD`0boFyt=akR{0I!i2rT_o{ diff --git a/resources/g2/73.png b/resources/g2/73.png deleted file mode 100644 index 64579a3a4a7b77eea649ac96ad7b636aa21b61bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1315 zcmeAS@N?(olHy`uVBq!ia0y~yU~phyU{K{?W?*1A+9%J-z`)E9;1lA?fES1>D=Qlt z>pMH!2M2p6Cr1|-=QlSuPoF-2{rc^P4`050`~Bz7#`+BQ)(rmM+|kj(+1c{t)%xw- z*3)PEFJB+Odw=oi^WFC!FLu^u54Yyd_ZF`Ym+wzjpI>aex!HOD^zhT`^KTz-e|~%M z_xFe0r5WP28OrS$`h(e*=d-)=F$E&;NYlqhxC-++y&vtHJ z?LB#S@Z!_)+i$1Kn@j7vD_aL^dncPm=R4=O`?t@JpT9kS`}z9Awi>@q^9!4+Ylj<~r`tQ12M2d2C(kY~U*FxmfByXQ+qd7p zeEI$R_x~BB^BL5qvl}nxcit@>d|EsGzH|HI=*7>=cfaqy{CWNJ-`BtY=ho)uHy0Oo zmsbwf)=##!F820sk58UmUcJ71^6};CZy!GY`My0vyf=GsFn@i#e1Ep~>}vbf?ZLZe zrypNke|`V#=hqK^{`~sCJp)5H14A(bLq7w;!@70AF%;nkL_4%Xi<+Fp0tJA&v>$4Y6uHU_S^7+H7pWiz{Qr9O|Fez%Z@2${-kX7e;q3hfs~8v<7)yfuf*Bm1 z-AH3#V7%z*;uzx5xpazS(P0H1*GTcs9sB-w$}pdcbx2U}_HwvXHf!09t4hMv6(7ES z-57NIw0;b`#dGeRI`=A{f18l5#`QdBZOz>v^W44P)uc^$%k*-$_vXl-S+#dF$H@mP zW!8tB*q(j=V@=pq8B?VfllAg1f8BPBuc~Zqa(btOv`g^4_1o7nZx`EmF<6Bw!)Ug` z@#k`1jg?d_IM2!k^Kk8CmvQ;)mbGs2A5-?t+Z$2}Sn4=DE0&rn==>{Mskq{v&C>JN zHW%#9VgWc1q)4#G9z7pJg zyVrbPM8h$$#plj>Pkph&W8z`E@cZ8%yxC{aIQRPJx{o$BE}rQVPRbs*D&0}=u={J@ zA-g!n@^jPo@zzZ*->PEuxXR~mGP4v{Jm0wY{TrF||J{e0`w#x`N10jV#jpMUNj~A|O`gsVA=5#Hou{jx%Q~loCIGAy BQ78Za diff --git a/resources/g2/74.png b/resources/g2/74.png deleted file mode 100644 index 9dee6ef127779b58bcc58b3e967ae486bc42dc15..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 976 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 D2CPlo diff --git a/resources/g2/78.png b/resources/g2/78.png deleted file mode 100644 index 7e0f3d7906cfe9d534d1bf1b3c17376f2c485b2c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 170 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|CT0c(hPjegvl$o|I0Jk_T>t<7ugt*k{{8=z z#-8687#J8!g8YIR9G=}sV_;zL_jGX#sff!xxskWQK*0H;_u&|GCf0pQ!55b_%=4)5 z5^5GuxMNd$(~jAy^QwQ^#@?jkS2PZ~%7^ENM#dbCYuw?*GQYKEx?&4&y~=@m)(oBb Xnz{e~-1xx2z`)??>gTe~DWM4fAapw& diff --git a/resources/g2/79.png b/resources/g2/79.png deleted file mode 100644 index a69189ee3e8590bcc659e22c5e66389056dd4aae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1143 zcmeAS@N?(olHy`uVBq!ia0y~yU=Rag4rT@hhR<1ZI2jliBuiW)N`mv#O3D+9QW+dm z@{>{(JaZG%Q-e|yQz{EjrrIztFe_z-M3hAM`dB6B=jtVb)aX^@7BGN-jeSKyVsdtB zi9%9pdS;%j()-=}l@u~lY?Z=IeGPmIoKrJ0J*tXQgRA^PlB=?lEmM^2?G$V(tSWK~ za#KqZ6)JLb@`|l0Y?Z*~TICg6frRyy6u?SKvTcwn`GuBNuFf>#! zGt)CPF*P$Y)KM@pFf`IPFw!?L(={})GBvX@GFN~CB|8P1qLehNAQv~NT}3Hrwn`Z# zB?VUc`sL;2dgaD?`9+T7#d8;`MLTPi3R$GdIlgbLHwFq;OmQDX>KlDb#X~h zD#E>34K5C;EJ)Q4N-fSWElN%eN=;J+xv9X)xhOTUB)=#mKR*W+iUAqUdYPFiR<7peZU%_oohzU-Up!8{{fJpeMc`3F^ zMN0N|hB;+93=9l50X`wF@8ADdW?=Z=ZEP;j{(rIm|LxiPr-%PP-M;GCjW(6MCi!B{$NAG?4|9@)*hr+h?cm2=IGPY3OQoZfgy~WE`Whu{| znRO}j^TN%0J{c`N5|?;0uY=RD@Zt9+sdW1ve7#fqvkwSb2FKcK{Z^kV{-PxIIA`MD z?&GBw1K#J!T)6)0zs!#RH;orZ{*g?v`#$BHm2<_Gegk44ofy`glX=O&z`&C3 z=PF6`T{>@1-s!oQZf`6Y^Pp(^=8Z@87)oUcJ#3h_TC4WT zR?oFe=c4>fPCSvBW2n0_KA*?!p0|{6(Ok8(2i78UmNTS15Pzd8w&uNwfXt1{4-*Qw zD*JD-1@2nB{qL1$eKx#8w``MN@2uBkx_$ZifjGJKK5Le*o6cyvbtAK;Q;+Jw@2@>? zi3vyh&pjhkDb@6fMX+g6=YfpM**B|RRY@MPelXW%qtA@vzc0$hm?(I>5~;D32s~5W zm3nB7jpdOlzfwWJ8IASN52PNdW-wwr!Flqf{e@VIS2bIFOPIdKSpVglcmDZZHW!n` z?M4%?Oyh9>zWQo`uwJO!n}~#{rI$JU=3V18a{Tp8^}#8|*}7tBKDR53%3byg=$r}` zn^C~z$2O<3`s@n^ju`0!AFlgyNG>?I_LcO-Bk_MzQ*H__Jv8~xrf)O#7#J8BJYD@< J);T3K0RRbB>rVgx diff --git a/resources/g2/9.png b/resources/g2/9.png deleted file mode 100644 index 750be398761a92689895ef131453bac58b2a8f7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 335 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4kiW$hJ4Xg>lqjr7>k44ofy`glX=O&z`&C3 z= Date: Sat, 14 Jan 2017 17:19:57 +0000 Subject: [PATCH 051/670] Correct filenames --- resources/g2/sprites.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index caf905a824..d9249ae663 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -87,16 +87,16 @@ "path": "icons/rct1_open_on_pressed.png" }, { - "path": "29.png" + "path": "icons/29.png" }, { - "path": "30.png" + "path": "icons/30.png" }, { - "path": "31.png" + "path": "icons/31.png" }, { - "path": "32.png" + "path": "icons/32.png" }, { "path": "icons/cheats.png" From b0bf1c9d7c2908f818b24eb0f55bca2049d2b295 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Sat, 14 Jan 2017 17:43:18 +0000 Subject: [PATCH 052/670] Add missing file --- resources/g2/sprites.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index d9249ae663..d7d684acb2 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -173,6 +173,9 @@ { "path": "track/junior/steep_to_flat_lift_3_2.png" }, + { + "path": "icons/58.png" + }, { "path": "icons/server_password.png" }, From afb85fa3d7999e811c15f6cf55ce13982da5025c Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 16 Jan 2017 22:46:45 +0000 Subject: [PATCH 053/670] Fix warning in cmdline_sprite.c --- src/openrct2/cmdline_sprite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index d768501a3b..8a47ee1313 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -14,6 +14,8 @@ *****************************************************************************/ #pragma endregion +#pragma warning(disable : 4706) // assignment within conditional expression + #include #include "cmdline_sprite.h" #include "drawing/drawing.h" From 7380c789e0c9ae6c2ebc0bfd85badde28bb3f477 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 16 Jan 2017 22:46:59 +0000 Subject: [PATCH 054/670] Implement platform_get_absolute_path for Windows --- src/openrct2/platform/windows.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index cc528147ab..b35896a688 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -1057,6 +1057,26 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size) #endif } +char * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath) +{ + utf8 path[MAX_PATH]; + safe_strcpy(path, basePath, sizeof(path)); + safe_strcat_path(path, relativePath, sizeof(path)); + + wchar_t * pathW = utf8_to_widechar(path); + wchar_t fullPathW[MAX_PATH]; + DWORD fullPathLen = GetFullPathNameW(pathW, countof(fullPathW), fullPathW, NULL); + + free(pathW); + + if (fullPathLen == 0) + { + return NULL; + } + + return widechar_to_utf8(fullPathW); +} + datetime64 platform_get_datetime_now_utc() { // Get file time From d89fc32864964fed6197605417bb9b2ec019c8bd Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Tue, 17 Jan 2017 21:33:24 +0000 Subject: [PATCH 055/670] Use get_directory_path instead of dirname() --- src/openrct2/cmdline_sprite.c | 8 +++++--- src/openrct2/platform/posix.c | 12 ++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 8a47ee1313..b584536322 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -662,6 +662,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) const char *spriteFilePath = argv[1]; const char *spriteDescriptionPath = argv[2]; + const char* directoryPath = path_get_directory(argv[1]); json_error_t error; json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); @@ -707,7 +708,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) //Resolve absolute sprite path - char* imagePath=platform_get_absolute_path(json_string_value(path),spriteDescriptionPath); + char* imagePath=platform_get_absolute_path(json_string_value(path),directoryPath); rct_g1_element spriteElement; uint8 *buffer; @@ -717,7 +718,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) json_decref(sprite_list); return -1; } - + free(imagePath); if (!sprite_file_open(spriteFilePath)) { fprintf(stderr, "Unable to open sprite file: %s\nCanceling\n", spriteFilePath); @@ -751,7 +752,8 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) } json_decref(sprite_list); - + free(directoryPath); + fprintf(stdout, "Finished\n"); return 1; } else { diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 775cb6925d..42025fcdc2 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -265,12 +265,12 @@ bool platform_directory_delete(const utf8 *path) char* platform_get_absolute_path(const char* relative_path,const char* base_path) { char path[MAX_PATH]; - - //This is to get around the fact that dirname() doesn't take a const char* - char base_path_copy[MAX_PATH]; - safe_strcpy(base_path_copy,base_path,MAX_PATH); - - snprintf(path,MAX_PATH,"%s/%s",dirname(base_path_copy),relative_path); + + if(base_path!=NULL) { + snprintf(path,MAX_PATH,"%s/%s",base_path,relative_path); + } else { + safe_strcpy(path,base_path,MAX_PATH); + } return realpath(path,NULL); } From 7d2490710c94d978ecc0f196969e6a50bb8fb593 Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Tue, 17 Jan 2017 22:23:08 +0000 Subject: [PATCH 056/670] Remove const --- src/openrct2/cmdline_sprite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index b584536322..9174c158ea 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -662,7 +662,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) const char *spriteFilePath = argv[1]; const char *spriteDescriptionPath = argv[2]; - const char* directoryPath = path_get_directory(argv[1]); + char* directoryPath = path_get_directory(argv[1]); json_error_t error; json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); From 7f74e07f2d1db2b7b8f945259730057df0352dc2 Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Tue, 17 Jan 2017 23:17:00 +0000 Subject: [PATCH 057/670] Log path to sprite file --- src/openrct2/cmdline_sprite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 9174c158ea..4aa076d603 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -665,6 +665,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) char* directoryPath = path_get_directory(argv[1]); json_error_t error; + log_verbose("Sprite description file path: %s\n",spriteDescriptionPath); json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); if(sprite_list == NULL) { From edd830293c53890d199e3131b1d282f7ef793f43 Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Wed, 18 Jan 2017 10:24:19 +0000 Subject: [PATCH 058/670] Correct path to sprite file --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea3731916c..e32db47621 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -406,7 +406,7 @@ else (WIN32) endif (NOT DISABLE_RCT2) add_custom_command( OUTPUT g2.dat - COMMAND ./openrct2 sprite build ${CMAKE_BINARY_DIR}/g2.dat ${CMAKE_CURRENT_SOURCE_DIR}/resources/g2/ + COMMAND ./openrct2 --verbose sprite build ${CMAKE_BINARY_DIR}/g2.dat ${CMAKE_CURRENT_SOURCE_DIR}/resources/g2/sprites.json WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) add_custom_target(g2 DEPENDS ${PROJECT} g2.dat) From dbd00670910e6929aff023ab6fd79edc8fdeda07 Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Wed, 18 Jan 2017 10:47:16 +0000 Subject: [PATCH 059/670] Remove logging --- CMakeLists.txt | 2 +- src/openrct2/cmdline_sprite.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e32db47621..4f1d03669d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -406,7 +406,7 @@ else (WIN32) endif (NOT DISABLE_RCT2) add_custom_command( OUTPUT g2.dat - COMMAND ./openrct2 --verbose sprite build ${CMAKE_BINARY_DIR}/g2.dat ${CMAKE_CURRENT_SOURCE_DIR}/resources/g2/sprites.json + COMMAND ./openrct2 sprite build ${CMAKE_BINARY_DIR}/g2.dat ${CMAKE_CURRENT_SOURCE_DIR}/resources/g2/sprites.json WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) add_custom_target(g2 DEPENDS ${PROJECT} g2.dat) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 4aa076d603..9174c158ea 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -665,7 +665,6 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) char* directoryPath = path_get_directory(argv[1]); json_error_t error; - log_verbose("Sprite description file path: %s\n",spriteDescriptionPath); json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); if(sprite_list == NULL) { From dbfd8982588493c89f8b42c1a1b81f122f32c5f9 Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Thu, 19 Jan 2017 14:24:45 +0000 Subject: [PATCH 060/670] Correct sprite paths in project files --- OpenRCT2.xcodeproj/project.pbxproj | 2 +- openrct2.proj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index c95cfabaf2..82fb2485eb 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -2504,7 +2504,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\" sprite build \"${SRCROOT}/data/g2.dat\" \"${SRCROOT}/resources/g2/\""; + shellScript = "\"${TARGET_BUILD_DIR}/${EXECUTABLE_PATH}\" sprite build \"${SRCROOT}/data/g2.dat\" \"${SRCROOT}/resources/g2/sprites.json\""; }; D4CA88671D4E962100060C11 /* Get Git Variables */ = { isa = PBXShellScriptBuildPhase; diff --git a/openrct2.proj b/openrct2.proj index fa6652969b..f9abece593 100644 --- a/openrct2.proj +++ b/openrct2.proj @@ -199,7 +199,7 @@ - From 52d2997a9fd793d68f16684c480893ac24c6df21 Mon Sep 17 00:00:00 2001 From: X123M3-256 Date: Thu, 19 Jan 2017 14:30:44 +0000 Subject: [PATCH 061/670] Fix more indentation --- src/openrct2/cmdline_sprite.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 9174c158ea..6d5b8ed3b9 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -673,9 +673,9 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) } if(!json_is_array(sprite_list)) { - fprintf(stderr,"Error: expected array\n"); - json_decref(sprite_list); - return -1; + fprintf(stderr,"Error: expected array\n"); + json_decref(sprite_list); + return -1; } bool silent = (argc >= 4 && strcmp(argv[3], "silent") == 0); @@ -691,16 +691,16 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) json_array_foreach(sprite_list,i,sprite_description) { if(!json_is_object(sprite_description)) { - fprintf(stderr,"Error: expected object for sprite %lu\n",(unsigned long)i); - json_decref(sprite_list); - return -1; + fprintf(stderr,"Error: expected object for sprite %lu\n",(unsigned long)i); + json_decref(sprite_list); + return -1; } json_t* path=json_object_get(sprite_description,"path"); if(!path || !json_is_string(path)) { - fprintf(stderr,"Error: no path provided for sprite %lu\n",(unsigned long)i); - json_decref(sprite_list); - return -1; + fprintf(stderr,"Error: no path provided for sprite %lu\n",(unsigned long)i); + json_decref(sprite_list); + return -1; } //Get x and y offsets, if present json_t* x_offset=json_object_get(sprite_description,"x_offset"); From 9a42edc695d3babd516728aaa2621b61d0626aea Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 19 Jan 2017 18:08:37 +0000 Subject: [PATCH 062/670] Fix return of exit code --- src/openrct2/platform/posix.c | 12 +++++------- src/openrct2/platform/windows.c | 19 +++++++++++-------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 42025fcdc2..587754a9fa 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -47,21 +47,19 @@ utf8 _userDataDirectoryPath[MAX_PATH] = { 0 }; utf8 _openrctDataDirectoryPath[MAX_PATH] = { 0 }; /** - * The function that is called directly from the host application (rct2.exe)'s WinMain. - * This will be removed when OpenRCT2 can be built as a stand alone application. + * The main entry point for non-Windows platforms. */ sint32 main(sint32 argc, const char **argv) { core_init(); - sint32 run_game = cmdline_run(argv, argc); - if (run_game == 1) - { + sint32 exitCode = cmdline_run(argv, argc); + if (exitCode == 1) { openrct2_launch(); + exitCode = gExitCode; } - exit(gExitCode); - return gExitCode; + return exitCode; } void platform_get_date_utc(rct2_date *out_date) diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index b35896a688..7f8856234f 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -67,12 +67,13 @@ sint32 RunOpenRCT2(int argc, char * * argv) core_init(); - int runGame = cmdline_run((const char **)argv, argc); - if (runGame == 1) { + sint32 exitCode = cmdline_run((const char **)argv, argc); + if (exitCode == 1) { openrct2_launch(); + exitCode = gExitCode; } - return gExitCode; + return exitCode; } #ifdef NO_RCT2 @@ -109,7 +110,7 @@ BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved) */ __declspec(dllexport) sint32 StartOpenRCT(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, sint32 nCmdShow) { - sint32 argc, runGame; + sint32 argc; char **argv; if (_dllModule == NULL) { @@ -118,9 +119,8 @@ __declspec(dllexport) sint32 StartOpenRCT(HINSTANCE hInstance, HINSTANCE hPrevIn core_init(); - // argv = CommandLineToArgvA(lpCmdLine, &argc); argv = (char**)windows_get_command_line_args(&argc); - runGame = cmdline_run((const char **)argv, argc); + sint32 exitCode = cmdline_run((const char **)argv, argc); // Free argv for (sint32 i = 0; i < argc; i++) { @@ -128,11 +128,14 @@ __declspec(dllexport) sint32 StartOpenRCT(HINSTANCE hInstance, HINSTANCE hPrevIn } free(argv); - if (runGame == 1) { + if (exitCode == 1) { openrct2_launch(); + exitCode = gExitCode; } - exit(gExitCode); + + exit(exitCode); + return exitCode; } #endif // NO_RCT2 From 3d9e6a4e2ddf4b235a90099ff131ea597ba5a88b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 25 Jan 2017 17:48:00 +0100 Subject: [PATCH 063/670] Fix formatting --- src/openrct2/cmdline/CommandLine.cpp | 2 +- src/openrct2/cmdline_sprite.c | 153 +++++++++++++++------------ src/openrct2/platform/platform.h | 2 +- src/openrct2/platform/posix.c | 16 +-- 4 files changed, 97 insertions(+), 76 deletions(-) diff --git a/src/openrct2/cmdline/CommandLine.cpp b/src/openrct2/cmdline/CommandLine.cpp index 47fa2c8d54..dae2f01696 100644 --- a/src/openrct2/cmdline/CommandLine.cpp +++ b/src/openrct2/cmdline/CommandLine.cpp @@ -571,7 +571,7 @@ extern "C" if (command == nullptr) { - return EXITCODE_FAIL; + return EXITCODE_FAIL; } if (command->Options != nullptr) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 6d5b8ed3b9..02a9fab659 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -607,22 +607,27 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) const char *spriteFilePath = argv[1]; const char *imagePath = argv[2]; - sint16 x_offset=0; - sint16 y_offset=0; + sint16 x_offset = 0; + sint16 y_offset = 0; - if(argc == 5) { + if(argc == 5) + { char* endptr; - x_offset=strtol(argv[3],&endptr,0); - if(*endptr!=0) { + + x_offset = strtol(argv[3], &endptr, 0); + if (*endptr != 0) + { fprintf(stderr, "X offset must be an integer\n"); return -1; - } - y_offset=strtol(argv[4],&endptr,0); - if(*endptr!=0) { + } + + y_offset = strtol(argv[4], &endptr, 0); + if (*endptr != 0) + { fprintf(stderr, "Y offset must be an integer\n"); return -1; - } } + } rct_g1_element spriteElement; uint8 *buffer; @@ -667,16 +672,18 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) json_error_t error; json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); - if(sprite_list == NULL) { - fprintf(stderr,"Error parsing sprite description file: %s at line %d column %d\n",error.text,error.line,error.column); - return -1; - } + if (sprite_list == NULL) + { + fprintf(stderr, "Error parsing sprite description file: %s at line %d column %d\n", error.text, error.line, error.column); + return -1; + } - if(!json_is_array(sprite_list)) { - fprintf(stderr,"Error: expected array\n"); - json_decref(sprite_list); - return -1; - } + if (!json_is_array(sprite_list)) + { + fprintf(stderr, "Error: expected array\n"); + json_decref(sprite_list); + return -1; + } bool silent = (argc >= 4 && strcmp(argv[3], "silent") == 0); @@ -689,68 +696,78 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) size_t i; json_t* sprite_description; - json_array_foreach(sprite_list,i,sprite_description) { - if(!json_is_object(sprite_description)) { - fprintf(stderr,"Error: expected object for sprite %lu\n",(unsigned long)i); - json_decref(sprite_list); - return -1; - } + json_array_foreach(sprite_list, i, sprite_description) + { + if(!json_is_object(sprite_description)) + { + fprintf(stderr, "Error: expected object for sprite %lu\n", (unsigned long)i); + json_decref(sprite_list); + return -1; + } - json_t* path=json_object_get(sprite_description,"path"); - if(!path || !json_is_string(path)) { - fprintf(stderr,"Error: no path provided for sprite %lu\n",(unsigned long)i); - json_decref(sprite_list); - return -1; - } + json_t* path = json_object_get(sprite_description,"path"); + if(!path || !json_is_string(path)) + { + fprintf(stderr, "Error: no path provided for sprite %lu\n", (unsigned long)i); + json_decref(sprite_list); + return -1; + } //Get x and y offsets, if present - json_t* x_offset=json_object_get(sprite_description,"x_offset"); - json_t* y_offset=json_object_get(sprite_description,"y_offset"); + json_t* x_offset = json_object_get(sprite_description, "x_offset"); + json_t* y_offset = json_object_get(sprite_description, "y_offset"); //Resolve absolute sprite path - char* imagePath=platform_get_absolute_path(json_string_value(path),directoryPath); + char* imagePath = platform_get_absolute_path(json_string_value(path), directoryPath); rct_g1_element spriteElement; uint8 *buffer; int bufferLength; - if (!sprite_file_import(imagePath, x_offset==NULL ? 0 : json_integer_value(x_offset), y_offset==NULL ? 0 : json_integer_value(y_offset), &spriteElement, &buffer, &bufferLength, gSpriteMode)) { - fprintf(stderr, "Could not import image file: %s\nCanceling\n", imagePath); - json_decref(sprite_list); - return -1; - } + + if (!sprite_file_import(imagePath, x_offset==NULL ? 0 : json_integer_value(x_offset), y_offset==NULL ? 0 : json_integer_value(y_offset), &spriteElement, &buffer, &bufferLength, gSpriteMode)) + { + fprintf(stderr, "Could not import image file: %s\nCanceling\n", imagePath); + json_decref(sprite_list); + return -1; + } + free(imagePath); - if (!sprite_file_open(spriteFilePath)) { - fprintf(stderr, "Unable to open sprite file: %s\nCanceling\n", spriteFilePath); - json_decref(sprite_list); - return -1; - } - - spriteFileHeader.num_entries++; - spriteFileHeader.total_size += bufferLength; - spriteFileEntries = realloc(spriteFileEntries, spriteFileHeader.num_entries * sizeof(rct_g1_element)); - - sprite_entries_make_relative(); - spriteFileData = realloc(spriteFileData, spriteFileHeader.total_size); - sprite_entries_make_absolute(); - - spriteFileEntries[spriteFileHeader.num_entries - 1] = spriteElement; - memcpy(spriteFileData + (spriteFileHeader.total_size - bufferLength), buffer, bufferLength); - spriteFileEntries[spriteFileHeader.num_entries - 1].offset = spriteFileData + (spriteFileHeader.total_size - bufferLength); - - free(buffer); - - if (!sprite_file_save(spriteFilePath)) { - fprintf(stderr, "Could not save sprite file: %s\nCanceling\n", imagePath); - json_decref(sprite_list); - return -1; - } - if (!silent) - fprintf(stdout, "Added: %s\n", imagePath); - sprite_file_close(); - - + if (!sprite_file_open(spriteFilePath)) + { + fprintf(stderr, "Unable to open sprite file: %s\nCanceling\n", spriteFilePath); + json_decref(sprite_list); + return -1; } + + spriteFileHeader.num_entries++; + spriteFileHeader.total_size += bufferLength; + spriteFileEntries = realloc(spriteFileEntries, spriteFileHeader.num_entries * sizeof(rct_g1_element)); + + sprite_entries_make_relative(); + spriteFileData = realloc(spriteFileData, spriteFileHeader.total_size); + sprite_entries_make_absolute(); + + spriteFileEntries[spriteFileHeader.num_entries - 1] = spriteElement; + memcpy(spriteFileData + (spriteFileHeader.total_size - bufferLength), buffer, bufferLength); + spriteFileEntries[spriteFileHeader.num_entries - 1].offset = spriteFileData + (spriteFileHeader.total_size - bufferLength); + + free(buffer); + + if (!sprite_file_save(spriteFilePath)) + { + fprintf(stderr, "Could not save sprite file: %s\nCanceling\n", imagePath); + json_decref(sprite_list); + return -1; + } + + if (!silent) + fprintf(stdout, "Added: %s\n", imagePath); + + sprite_file_close(); + + } + json_decref(sprite_list); free(directoryPath); diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index 62f076a89b..86941d1f5f 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -167,7 +167,7 @@ bool platform_original_game_data_exists(const utf8 *path); time_t platform_file_get_modified_time(const utf8* path); bool platform_ensure_directory_exists(const utf8 *path); bool platform_directory_delete(const utf8 *path); -char* platform_get_absolute_path(const char* relative_path,const char* base_path); +char* platform_get_absolute_path(const char* relative_path, const char* base_path); bool platform_lock_single_instance(); sint32 platform_enumerate_files_begin(const utf8 *pattern); bool platform_enumerate_files_next(sint32 handle, file_info *outFileInfo); diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 587754a9fa..ada8793db8 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -54,7 +54,8 @@ sint32 main(sint32 argc, const char **argv) core_init(); sint32 exitCode = cmdline_run(argv, argc); - if (exitCode == 1) { + if (exitCode == 1) + { openrct2_launch(); exitCode = gExitCode; } @@ -264,11 +265,14 @@ char* platform_get_absolute_path(const char* relative_path,const char* base_path { char path[MAX_PATH]; - if(base_path!=NULL) { - snprintf(path,MAX_PATH,"%s/%s",base_path,relative_path); - } else { - safe_strcpy(path,base_path,MAX_PATH); - } + if (base_path != NULL) + { + snprintf(path, MAX_PATH, "%s/%s", base_path, relative_path); + } + else + { + safe_strcpy(path, base_path, MAX_PATH); + } return realpath(path,NULL); } From 03606adbebff09b4f70a8bf0d6efdcd5e1bd15b5 Mon Sep 17 00:00:00 2001 From: X7123M3-256 Date: Fri, 27 Jan 2017 23:06:34 +0000 Subject: [PATCH 064/670] Fix more formatting --- src/openrct2/cmdline_sprite.c | 6 +++--- src/openrct2/platform/posix.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 02a9fab659..b930457bcd 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -610,9 +610,9 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) sint16 x_offset = 0; sint16 y_offset = 0; - if(argc == 5) + if (argc == 5) { - char* endptr; + char *endptr; x_offset = strtol(argv[3], &endptr, 0); if (*endptr != 0) @@ -718,7 +718,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) //Resolve absolute sprite path - char* imagePath = platform_get_absolute_path(json_string_value(path), directoryPath); + char *imagePath = platform_get_absolute_path(json_string_value(path), directoryPath); rct_g1_element spriteElement; uint8 *buffer; diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index ada8793db8..d48efed209 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -261,7 +261,7 @@ bool platform_directory_delete(const utf8 *path) return true; } -char* platform_get_absolute_path(const char* relative_path,const char* base_path) +char* platform_get_absolute_path(const char * relative_path,const char * base_path) { char path[MAX_PATH]; From ae3110e09d931710492164a4fb6d121127ceefd8 Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 31 Jan 2017 20:50:39 +0000 Subject: [PATCH 065/670] Remove exit call, probably no longer necessary --- src/openrct2/OpenRCT2.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/openrct2/OpenRCT2.cpp b/src/openrct2/OpenRCT2.cpp index 1816f98ac7..bfa3e6721f 100644 --- a/src/openrct2/OpenRCT2.cpp +++ b/src/openrct2/OpenRCT2.cpp @@ -299,9 +299,6 @@ extern "C" OpenRCT2::RunGameLoop(); } openrct2_dispose(); - - // HACK Some threads are still running which causes the game to not terminate. Investigation required! - exit(gExitCode); } void openrct2_dispose() From 428a3d6569d14842cf811d6463c4f4f8891ec686 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 7 May 2017 16:19:35 +0100 Subject: [PATCH 066/670] Organise new sprites and add JSON --- resources/g2/{87.png => icons/mute.png} | Bin .../g2/{88.png => icons/mute_pressed.png} | Bin .../g2/{80.png => icons/tab_disabled.png} | Bin resources/g2/{90.png => icons/unmute.png} | Bin .../g2/{89.png => icons/unmute_pressed.png} | Bin resources/g2/sprites.json | 39 ++++++++++++++++++ .../g2/{83.png => track/bm/booster_1.png} | Bin .../g2/{84.png => track/bm/booster_2.png} | Bin .../{81.png => track/intamin/booster_1.png} | Bin .../{82.png => track/intamin/booster_2.png} | Bin .../g2/{85.png => track/junior/booster_1.png} | Bin .../g2/{86.png => track/junior/booster_2.png} | Bin .../g2/{91.png => track/mini/booster_1.png} | Bin .../g2/{92.png => track/mini/booster_2.png} | Bin 14 files changed, 39 insertions(+) rename resources/g2/{87.png => icons/mute.png} (100%) rename resources/g2/{88.png => icons/mute_pressed.png} (100%) rename resources/g2/{80.png => icons/tab_disabled.png} (100%) rename resources/g2/{90.png => icons/unmute.png} (100%) rename resources/g2/{89.png => icons/unmute_pressed.png} (100%) rename resources/g2/{83.png => track/bm/booster_1.png} (100%) rename resources/g2/{84.png => track/bm/booster_2.png} (100%) rename resources/g2/{81.png => track/intamin/booster_1.png} (100%) rename resources/g2/{82.png => track/intamin/booster_2.png} (100%) rename resources/g2/{85.png => track/junior/booster_1.png} (100%) rename resources/g2/{86.png => track/junior/booster_2.png} (100%) rename resources/g2/{91.png => track/mini/booster_1.png} (100%) rename resources/g2/{92.png => track/mini/booster_2.png} (100%) diff --git a/resources/g2/87.png b/resources/g2/icons/mute.png similarity index 100% rename from resources/g2/87.png rename to resources/g2/icons/mute.png diff --git a/resources/g2/88.png b/resources/g2/icons/mute_pressed.png similarity index 100% rename from resources/g2/88.png rename to resources/g2/icons/mute_pressed.png diff --git a/resources/g2/80.png b/resources/g2/icons/tab_disabled.png similarity index 100% rename from resources/g2/80.png rename to resources/g2/icons/tab_disabled.png diff --git a/resources/g2/90.png b/resources/g2/icons/unmute.png similarity index 100% rename from resources/g2/90.png rename to resources/g2/icons/unmute.png diff --git a/resources/g2/89.png b/resources/g2/icons/unmute_pressed.png similarity index 100% rename from resources/g2/89.png rename to resources/g2/icons/unmute_pressed.png diff --git a/resources/g2/sprites.json b/resources/g2/sprites.json index d7d684acb2..19db0371c4 100644 --- a/resources/g2/sprites.json +++ b/resources/g2/sprites.json @@ -238,5 +238,44 @@ }, { "path": "icons/paste.png" + }, + { + "path": "icons/tab_disabled.png" + }, + { + "path": "track/intamin/booster_1.png" + }, + { + "path": "track/intamin/booster_2.png" + }, + { + "path": "track/bm/booster_1.png" + }, + { + "path": "track/bm/booster_2.png" + }, + { + "path": "track/junior/booster_1.png" + }, + { + "path": "track/junior/booster_2.png" + }, + { + "path": "icons/mute.png" + }, + { + "path": "icons/mute_pressed.png" + }, + { + "path": "icons/unmute.png" + }, + { + "path": "icons/unmute_pressed.png" + }, + { + "path": "track/mini/booster_1.png" + }, + { + "path": "track/mini/booster_2.png" } ] diff --git a/resources/g2/83.png b/resources/g2/track/bm/booster_1.png similarity index 100% rename from resources/g2/83.png rename to resources/g2/track/bm/booster_1.png diff --git a/resources/g2/84.png b/resources/g2/track/bm/booster_2.png similarity index 100% rename from resources/g2/84.png rename to resources/g2/track/bm/booster_2.png diff --git a/resources/g2/81.png b/resources/g2/track/intamin/booster_1.png similarity index 100% rename from resources/g2/81.png rename to resources/g2/track/intamin/booster_1.png diff --git a/resources/g2/82.png b/resources/g2/track/intamin/booster_2.png similarity index 100% rename from resources/g2/82.png rename to resources/g2/track/intamin/booster_2.png diff --git a/resources/g2/85.png b/resources/g2/track/junior/booster_1.png similarity index 100% rename from resources/g2/85.png rename to resources/g2/track/junior/booster_1.png diff --git a/resources/g2/86.png b/resources/g2/track/junior/booster_2.png similarity index 100% rename from resources/g2/86.png rename to resources/g2/track/junior/booster_2.png diff --git a/resources/g2/91.png b/resources/g2/track/mini/booster_1.png similarity index 100% rename from resources/g2/91.png rename to resources/g2/track/mini/booster_1.png diff --git a/resources/g2/92.png b/resources/g2/track/mini/booster_2.png similarity index 100% rename from resources/g2/92.png rename to resources/g2/track/mini/booster_2.png From b789b17c145919ca0c4d721c050b457827438e88 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 7 May 2017 16:19:55 +0100 Subject: [PATCH 067/670] Fix sprite building --- src/openrct2/cmdline_sprite.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index b930457bcd..4753ae7b5e 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -667,7 +667,7 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) const char *spriteFilePath = argv[1]; const char *spriteDescriptionPath = argv[2]; - char* directoryPath = path_get_directory(argv[1]); + char* directoryPath = path_get_directory(spriteDescriptionPath); json_error_t error; json_t* sprite_list=json_load_file(spriteDescriptionPath, JSON_REJECT_DUPLICATES, &error); @@ -728,15 +728,15 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) { fprintf(stderr, "Could not import image file: %s\nCanceling\n", imagePath); json_decref(sprite_list); + free(imagePath); return -1; } - free(imagePath); - if (!sprite_file_open(spriteFilePath)) { fprintf(stderr, "Unable to open sprite file: %s\nCanceling\n", spriteFilePath); json_decref(sprite_list); + free(imagePath); return -1; } @@ -758,12 +758,14 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) { fprintf(stderr, "Could not save sprite file: %s\nCanceling\n", imagePath); json_decref(sprite_list); + free(imagePath); return -1; } if (!silent) fprintf(stdout, "Added: %s\n", imagePath); + free(imagePath); sprite_file_close(); } From e310956e818cfaf2c4fa18c54df4be2b74289cdc Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 7 May 2017 19:15:27 +0100 Subject: [PATCH 068/670] Update command line help --- src/openrct2/cmdline/SpriteCommands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/cmdline/SpriteCommands.cpp b/src/openrct2/cmdline/SpriteCommands.cpp index 1ac6c2050c..52758066c0 100644 --- a/src/openrct2/cmdline/SpriteCommands.cpp +++ b/src/openrct2/cmdline/SpriteCommands.cpp @@ -24,7 +24,7 @@ extern "C" { - sint32 gSpriteMode = 0; + sint32 gSpriteMode = 0; } static const char * _mode; @@ -41,7 +41,7 @@ const CommandLineCommand CommandLine::SpriteCommands[] { // Main commands DefineCommand("append", " [x_offset y_offset]", SpriteOptions, HandleSprite), - DefineCommand("build", " [silent]", SpriteOptions, HandleSprite), + DefineCommand("build", " [silent]", SpriteOptions, HandleSprite), DefineCommand("create", "", SpriteOptions, HandleSprite), DefineCommand("details", " [idx]", SpriteOptions, HandleSprite), DefineCommand("export", " ", SpriteOptions, HandleSprite), From c4d2cd175d518d7f1fb601b880f140180a75c31d Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 7 May 2017 19:17:11 +0100 Subject: [PATCH 069/670] Use utf8 instead of char for platform_get_absolute_path --- src/openrct2/platform/platform.h | 2 +- src/openrct2/platform/posix.c | 4 ++-- src/openrct2/platform/windows.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index 86941d1f5f..fb0edc5a7d 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -167,7 +167,7 @@ bool platform_original_game_data_exists(const utf8 *path); time_t platform_file_get_modified_time(const utf8* path); bool platform_ensure_directory_exists(const utf8 *path); bool platform_directory_delete(const utf8 *path); -char* platform_get_absolute_path(const char* relative_path, const char* base_path); +utf8 * platform_get_absolute_path(const utf8 * relative_path, const utf8 * base_path); bool platform_lock_single_instance(); sint32 platform_enumerate_files_begin(const utf8 *pattern); bool platform_enumerate_files_next(sint32 handle, file_info *outFileInfo); diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index d48efed209..49236ea78a 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -261,9 +261,9 @@ bool platform_directory_delete(const utf8 *path) return true; } -char* platform_get_absolute_path(const char * relative_path,const char * base_path) +utf8 * platform_get_absolute_path(const utf8 * relative_path, const utf8 * base_path) { - char path[MAX_PATH]; + utf8 path[MAX_PATH]; if (base_path != NULL) { diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 7f8856234f..4fe901d10a 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -1060,7 +1060,7 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size) #endif } -char * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath) +utf8 * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath) { utf8 path[MAX_PATH]; safe_strcpy(path, basePath, sizeof(path)); From 4ab1289c831e3b07d84df80cb6d353388676f2d3 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Mon, 8 May 2017 04:00:23 +0000 Subject: [PATCH 070/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/it-IT.txt | 114 ++++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/data/language/it-IT.txt b/data/language/it-IT.txt index c41bcab30e..c9c908c65a 100644 --- a/data/language/it-IT.txt +++ b/data/language/it-IT.txt @@ -1,4 +1,4 @@ -# STR_XXXX part is read and XXXX becomes the string id number. +# STR_XXXX part is read and XXXX becomes the string id number. # Everything after the colon and before the new line will be saved as the string. # Use # at the beginning of a line to leave a comment. STR_0000 : @@ -947,7 +947,7 @@ STR_0941 :Nascondi pareti verticali STR_0942 :Attrazioni trasparenti STR_0943 :Scenario trasparente STR_0944 :Salva -STR_0945 :Non salv. +STR_0945 :Non salvare STR_0946 :Annulla STR_0947 :Salvare prima di caricare? STR_0948 :Salvare prima di uscire? @@ -1671,7 +1671,7 @@ STR_1663 :{WINDOW_COLOUR_2}Nausea: STR_1664 :{WINDOW_COLOUR_2}Energia: STR_1665 :{WINDOW_COLOUR_2}Fame: STR_1666 :{WINDOW_COLOUR_2}Sete: -STR_1667 :{WINDOW_COLOUR_2}Toilet: +STR_1667 :{WINDOW_COLOUR_2}Bagno: STR_1668 :{WINDOW_COLOUR_2}Soddisfazione: {BLACK}Ignota STR_1669 :{WINDOW_COLOUR_2}Soddisfazione: {BLACK}{COMMA16}% STR_1670 :{WINDOW_COLOUR_2}Totale clienti: {BLACK}{COMMA32} @@ -1721,7 +1721,7 @@ STR_1713 :{INLINE_SPRITE}{248}{19}{00}{00}{WINDOW_COLOUR_2}Annaffia i fiori STR_1714 :{INLINE_SPRITE}{249}{19}{00}{00}{WINDOW_COLOUR_2}Svuota i cestini STR_1715 :{INLINE_SPRITE}{250}{19}{00}{00}{WINDOW_COLOUR_2}Taglia l'erba STR_1716 :Non è un nome valido per il parco -STR_1717 :Impossibile ribattezzare il parco... +STR_1717 :Impossibile rinominare il parco... STR_1718 :Nome del parco STR_1719 :Digita il nome del parco: STR_1720 :{SMALLFONT}{BLACK}Battezza il parco @@ -2368,7 +2368,7 @@ STR_2358 :Unità STR_2359 :Valori reali STR_2360 :{WINDOW_COLOUR_2}Risoluzione: STR_2361 :Addolcimento del paesaggio -STR_2362 :{SMALLFONT}{BLACK}Attiva/disattiva l'addolcimento degli spigoli delle mattonelle del paesaggio +STR_2362 :{SMALLFONT}{BLACK}Attiva/disattiva l'addolcimento degli spigoli delle celle del paesaggio STR_2363 :Griglia sovrapposta al paesaggio STR_2364 :{SMALLFONT}{BLACK}Attiva/disattiva la griglia sovrapposta al paesaggio STR_2365 :La banca si rifiuta di concedere altri prestiti! @@ -2706,7 +2706,7 @@ STR_2696 :Colloca alberi STR_2697 :??? STR_2698 :??? STR_2699 :??? -STR_2700 :Frequenza di autosalvataggio: +STR_2700 :Salvataggio automatico: STR_2701 :Ogni minuto STR_2702 :Ogni 5 minuti STR_2703 :Ogni 15 minuti @@ -2724,8 +2724,8 @@ STR_2714 :- STR_2715 :. STR_2716 :/ STR_2717 :' -STR_2718 :(up) -STR_2719 :(new file) +STR_2718 :Sali di livello +STR_2719 :Crea nuovo STR_2720 :{UINT16}sec STR_2721 :{UINT16}sec STR_2722 :{UINT16}min:{UINT16}sec @@ -3102,7 +3102,7 @@ STR_3091 :Non ti è permesso cancellare questa sezione! STR_3092 :Non ti è permesso spostare o modificare la stazione di quest'attrazione! STR_3093 :{WINDOW_COLOUR_2}Preferito: {BLACK}{STRINGID} STR_3094 :N/A -STR_3095 :{WINDOW_COLOUR_2}Vel. catena di traino: +STR_3095 :{WINDOW_COLOUR_2}Velocità catena di traino: STR_3096 :{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{POP16}{VELOCITY} STR_3097 :{SMALLFONT}{BLACK}Seleziona la velocità della catena di traino sulla salita STR_3098 :Impossibile modificare la velocità della catena di traino sulla salita... @@ -3119,7 +3119,7 @@ STR_3108 :Prova STR_3109 :Apri STR_3110 :{WINDOW_COLOUR_2}Blocca le sezioni: {BLACK}{COMMA16} STR_3111 :{SMALLFONT}{BLACK}Clicca sul progetto per costruirlo -STR_3112 :{SMALLFONT}{BLACK}Clicca sul progetto per ribattezzarlo o cancellarlo +STR_3112 :{SMALLFONT}{BLACK}Clicca sul progetto per rinominarlo o cancellarlo STR_3113 :Scegli un altro progetto STR_3114 :{SMALLFONT}{BLACK}Torna alla finestra della scelta dei progetti STR_3115 :{SMALLFONT}{BLACK}Salva il progetto del tracciato @@ -3268,9 +3268,9 @@ STR_3257 :{SMALLFONT}{BLACK}Stabilisci se i visitatori in generale dovrebbero STR_3258 :Attrazioni più intense preferite STR_3259 :{SMALLFONT}{BLACK}Stabilisci se i visitatori in generale dovrebbero preferire solo attrazioni più intense STR_3260 :{WINDOW_COLOUR_2}Denaro per visitatore (media): -STR_3261 :{WINDOW_COLOUR_2}Felicità iniziale visitat.: -STR_3262 :{WINDOW_COLOUR_2}Fame iniziale visitat.: -STR_3263 :{WINDOW_COLOUR_2}Sete iniziale visitat.: +STR_3261 :{WINDOW_COLOUR_2}Felicità iniziale visitatori: +STR_3262 :{WINDOW_COLOUR_2}Fame iniziale visitatori: +STR_3263 :{WINDOW_COLOUR_2}Sete iniziale visitatori: STR_3264 :Impossibile aumentarlo ulteriormente! STR_3265 :Impossibile ridurlo ulteriormente! STR_3266 :{SMALLFONT}{BLACK}Stabilisci il prezzo dell'ingresso e delle attrazioni @@ -3302,7 +3302,7 @@ STR_3291 :Temperato STR_3292 :Caldo e secco STR_3293 :Freddo STR_3294 :Modifica... -STR_3295 :{SMALLFONT}{BLACK}Ribattezza il parco +STR_3295 :{SMALLFONT}{BLACK}Rinomina il parco STR_3296 :{SMALLFONT}{BLACK}Modifica il nome dello scenario STR_3297 :{SMALLFONT}{BLACK}Modifica le informazioni sul parco/scenario STR_3298 :{WINDOW_COLOUR_2}Nome parco: {BLACK}{STRINGID} @@ -3355,11 +3355,11 @@ STR_3344 :Strumento di progettazione degli ottovolanti STR_3345 :Strumento di gestione dei progetti di tracciato STR_3346 :Impossibile salvare il progetto di tracciato... STR_3347 :L{GREEN}attrazione è troppo grande, contiene troppi elementi o lo scenario è sparso su un'area troppo vasta -STR_3348 :Ribattezza +STR_3348 :Rinomina STR_3349 :Cancella STR_3350 :Battezza il progetto di tracciato STR_3351 :Digita il nome di questo progetto di tracciato: -STR_3352 :Impossibile ribattezzare il progetto di tracciato... +STR_3352 :Impossibile rinominare il progetto di tracciato... STR_3353 :Il nuovo nome contiene dei caratteri non validi STR_3354 :Esiste già un altro file con quel nome, o il file è protetto dalla scrittura STR_3355 :Il file è protetto dalla scrittura o è chiuso all'accesso @@ -3463,14 +3463,14 @@ STR_5121 :Ricerca STR_5122 :Attrazioni in base al tipo di percorso (come in RCT1) STR_5123 :Rinnova attrazioni STR_5124 : -STR_5125 :Tutti distruttibili +STR_5125 :Tutte distruttibili STR_5126 :Musica iniziale casuale STR_5127 :{SMALLFONT}{BLACK}Trascinando, modifica il paesaggio anziché cambiare altezza STR_5128 :Dimensione selezione STR_5129 :Inserire la dimensione della selezione tra {COMMA16} e {COMMA16} STR_5130 :Dimensione mappa STR_5131 :Inserire dimensione mappa tra {COMMA16} e {COMMA16} -STR_5132 :Aggiusta tutte le attrazioni +STR_5132 :Aggiusta attrazioni STR_5133 :{SMALLFONT}{BLACK}Modifica un'area più piccola dei terreni del parco STR_5134 :{SMALLFONT}{BLACK}Modifica un'area più grande dei terreni del parco STR_5135 :{SMALLFONT}{BLACK}Acquista nuovi terreni o permessi di costruzione @@ -3498,7 +3498,7 @@ STR_5154 :Rendering hardware STR_5155 :Permetti di testare percorsi non finiti STR_5156 :{SMALLFONT}{BLACK}Permette di effettuare il test della maggior parte dei percorsi anche quando il percorso non è un circuito completo, non si applica alla modalità sezioni a blocchi STR_5157 :Sblocca tutti i prezzi -STR_5158 :Torna al menù +STR_5158 :Torna al menu STR_5159 :Esci da OpenRCT2 STR_5160 :{POP16}{MONTH} {PUSH16}{PUSH16}{STRINGID}, anno {POP16}{COMMA16} STR_5161 :Formato data: @@ -3602,7 +3602,7 @@ STR_5256 :Create a new theme to make changes to STR_5257 :{SMALLFONT}{BLACK}Create a new theme based on the current one STR_5258 :{SMALLFONT}{BLACK}Delete the current theme STR_5259 :{SMALLFONT}{BLACK}Rename the current theme -STR_5260 :Screenshot Gigante +STR_5260 :Schermata gigante STR_5261 :Filtro STR_5262 :Wacky Worlds STR_5263 :Time Twister @@ -3620,15 +3620,15 @@ STR_5274 :{SMALLFONT}{BLACK}Percorso STR_5275 :Cerca per oggetti STR_5276 :Inserisci il nome di un oggetto da cercare STR_5277 :Pulisci -STR_5278 :Modalità Sandbox +STR_5278 :Modalità sandbox STR_5279 :Disattiva modalità sandbox STR_5280 :{SMALLFONT}{BLACK}Permetti la modifica delle impostazioni del terreno tramite la finestra Mappa e altre opzioni che sono solitamente non disponibili nella modifica Scenario STR_5281 :{SMALLFONT}{BLACK}Feature STR_5282 :RCT1 Ride Open/Close Lights STR_5283 :RCT1 Park Open/Close Lights STR_5284 :RCT1 Selezione Font Scenario -STR_5285 :ESPLODE!!! -STR_5286 :{SMALLFONT}{BLACK}Qualche visitatore esplode +STR_5285 :ESPLODI!!! +STR_5286 :{SMALLFONT}{BLACK}Fa esplodere alcuni visitatori STR_5287 :L'attrazione è già partita STR_5288 :Corsa chiusa STR_5289 :Nessun guasto per questa attrazione @@ -3646,7 +3646,7 @@ STR_5300 :{SMALLFONT}{BLACK}Licenzia velocemente il personale STR_5301 :{MEDIUMFONT}{BLACK}Cancella il prestito STR_5302 :Azzera prestito STR_5303 :Permetti la costruzione in pausa -STR_5304 :Sequenza Titolo: +STR_5304 :Sequenza del titolo: STR_5305 :RollerCoaster Tycoon 1 STR_5306 :RollerCoaster Tycoon 1 (AA) STR_5307 :RollerCoaster Tycoon 1 (AA + LL) @@ -3685,12 +3685,12 @@ STR_5339 :{SMALLFONT}{BLACK}Altezza base STR_5340 :{SMALLFONT}{BLACK}Clearance height STR_5341 : STR_5342 : -STR_5343 :Posiziona personale automaticamente +STR_5343 :Colloca automaticamente il personale STR_5344 :Changelog -STR_5345 :Trucchi Finanziari -STR_5346 :Trucchi Visitatori -STR_5347 :Trucchi Parco -STR_5348 :Trucchi Attrazione +STR_5345 :Trucchi finanziari +STR_5346 :Trucchi visitatori +STR_5347 :Trucchi parco +STR_5348 :Trucchi attrazioni STR_5349 :{SMALLFONT}{BLACK}Tutte le attrazioni STR_5350 :Max STR_5351 :Min @@ -3699,22 +3699,22 @@ STR_5353 :{BLACK}Energia: STR_5354 :{BLACK}Fame: STR_5355 :{BLACK}Sete: STR_5356 :{BLACK}Nausea: -STR_5357 :{BLACK}Tolleranza Nausea: -STR_5358 :{BLACK}Necessità Bagno: -STR_5359 :Rimuovi Visitatori +STR_5357 :{BLACK}Tolleranza nausea: +STR_5358 :{BLACK}Bagno: +STR_5359 :Rimuovi visitatori STR_5360 :{SMALLFONT}{BLACK}Rimuovi tutti i visitatori dalla mappa -STR_5361 :Su titti i visitatori: +STR_5361 :Dai a tutti i visitatori: STR_5362 :{BLACK}Imposta ai visitatori l'intensità attrazione: STR_5363 :Più di 1 STR_5364 :Meno di 15 STR_5365 :{BLACK}Velocità personale: STR_5366 :Normale STR_5367 :Veloce -STR_5368 :Resetta lo stato dei crash -STR_5369 :Parametri Parco... +STR_5368 :Reset stato incidenti +STR_5369 :Parametri parco... STR_5370 :{SMALLFONT}{BLACK}Clicca questo pulsante per modificare il parco{NEWLINE}parametri come restrizione,{NEWLINE}generazione visitatori e soldi. STR_5371 :Selezione oggetti -STR_5372 :Inverti il drag destra del mouse +STR_5372 :Inverti direzione trascinamento con clic destro STR_5373 :Nome {STRINGID} STR_5374 :Data {STRINGID} STR_5375 :{UP} @@ -3778,11 +3778,11 @@ STR_5432 :Comando: STR_5433 :Sequenza Titoli STR_5434 :Editor Comandi STR_5435 :Rinomina salvataggio -STR_5436 :Modifica Sequenza dei Titoli... +STR_5436 :Modifica sequenza titolo... STR_5437 :Nessun salvataggio selezionato STR_5438 :Non puoi fare modifiche mentre l'editor dei comandi è aperto STR_5439 :A wait command with at least 4 seconds is required with a restart command -STR_5440 :Minimizza la schermata a tutto quando si perde il focus +STR_5440 :Riduci schermo intero se il gioco perde il focus STR_5441 :{SMALLFONT}{BLACK}Identifica le attrazioni in base al percorso{NEWLINE}in modo che si possano sostituirne successivamente{NEWLINE}i veicoli (come in RCT1) STR_5442 :Voto del parco: STR_5443 :Velocità{MOVE_X}{87}{STRINGID} @@ -3798,14 +3798,14 @@ STR_5452 :Visibilità della barra STR_5453 :Selezione altra corsa STR_5454 :FPS senza limiti STR_5455 :Abilita modalità sandbox -STR_5456 :Disabilita verifiche di pulizia +STR_5456 :Disabilita controlli distanze STR_5457 :Disabilita limite supporti STR_5458 :Ruota senso orario STR_5459 :Ruota antiorario STR_5460 :Ruota visuale antiorario STR_5461 :Imposta parametri visitatori STR_5462 :{CURRENCY} -STR_5463 :Obiettivo: {OPENQUOTES}Divertirsi!{ENDQUOTES} +STR_5463 :Obiett. "Divertiti" STR_5464 :Generale STR_5465 :Clima STR_5466 :Personale @@ -3815,7 +3815,7 @@ STR_5469 :Scorri la mappa in alto STR_5470 :Scorri la mappa a sinistra STR_5471 :Scorri la mappa in basso STR_5472 :Scorri la mappa a destra -STR_5473 :Ciclo giorno / notte +STR_5473 :Ciclo giorno/notte STR_5474 :Mostra testo nei cartelli in maiuscolo STR_5475 :{COMMA16} settimane STR_5476 :Hardware @@ -3849,12 +3849,12 @@ STR_5503 :Inserisci hostname o indirizzo IP: STR_5504 :{SMALLFONT}{BLACK}Show multiplayer status STR_5505 :Impossibile connettersi al server. STR_5506 :I visitatori ignorano l'intensità -STR_5507 :Il tuttofare taglia l'erba in modo predefinito +STR_5507 :I tuttofare tagliano l'erba di default STR_5508 :Permetti caricamento file con checksum errato STR_5509 :{SMALLFONT}{BLACK}Permetti il caricamento di scenari e salvataggi{NEWLINE}che hanno un codice di controllo errato,{NEWLINE}come ad esempio gli scenari della demo{NEWLINE}o i salvataggi danneggiati. STR_5510 :Scheda audio predefinita STR_5511 :(UNKNOWN) -STR_5512 :Salva gioco con nome... +STR_5512 :Salva partita con nome... STR_5513 :Salvataggio veloce STR_5514 :Disattiva vandalismi STR_5515 :{SMALLFONT}{BLACK}Impedisce ai visitatori di vandalizzare il parco quando sono arrabbiati @@ -3896,12 +3896,12 @@ STR_5550 :{POP16}{POP16}Anno {COMMA16}, {PUSH16}{PUSH16}{MONTH} {PUSH16}{PUSH STR_5551 :Anno/Giorno/Mese STR_5552 :{POP16}{POP16}Anno {COMMA16}, {PUSH16}{PUSH16}{PUSH16}{STRINGID} {MONTH} STR_5553 :Gioco in pausa quando l'overlay di Steam è aperto -STR_5554 :{SMALLFONT}{BLACK}Enable mountain tool +STR_5554 :{SMALLFONT}{BLACK}Attiva lo strumento montagna STR_5555 :Mostra i veicoli di altre attrazioni STR_5556 :{SMALLFONT}{BLACK}Caccia giocatore STR_5557 :Rimani connesso in caso di asincronia (multigiocatore) STR_5558 :È necessario riavviare il gioco per attivare questa opzione -STR_5559 :Ispezioni ogni 10 minuti +STR_5559 :Ispezioni ogni 10 min. STR_5560 :{SMALLFONT}{BLACK}Imposta l'intervallo di ispezione a {OPENQUOTES}Ogni 10 minuti{ENDQUOTES} su tutte le attrazioni STR_5561 :Caricamento lingua fallito STR_5562 :ATTENZIONE! @@ -3921,7 +3921,7 @@ STR_5575 :Massimo numero giocatori: STR_5576 :Porta: STR_5577 :Won sudcoreani (W) STR_5578 :Rubli russi (R) -STR_5579 :Window scale factor: +STR_5579 :Fattore di scala: STR_5580 :Corona ceca (Kc) STR_5581 :Mostra FPS STR_5582 :Blocca il mouse nella finestra @@ -4042,7 +4042,7 @@ STR_5729 :{SMALLFONT}{BLACK}Richiede il rendering hardware STR_5730 :Nearest Neighbour STR_5731 :Lineare STR_5732 :Anisotropico -STR_5733 :Scala con N. Neighbour a valori interi +STR_5733 :Scala con "Nearest Neighbour" a valori interi # tooltip for tab in options window STR_5734 :{SMALLFONT}{BLACK}Rendering STR_5735 :Stato della rete @@ -4050,8 +4050,8 @@ STR_5736 :Giocatore STR_5737 :Chiuso, ma {COMMA16} persone sono sull'attrazione STR_5738 :Chiuso, ma {COMMA16} persone sono sull'attrazione STR_5739 :{WINDOW_COLOUR_2}Clienti nelle attrazioni: {BLACK}{COMMA16} -STR_5740 :Rimuovi scadenza da campagne di marketing -STR_5741 :{SMALLFONT}{BLACK}Permette di creare campagne di marketing infinite +STR_5740 :Campagne di marketing infinite +STR_5741 :{SMALLFONT}{BLACK}Permette di creare campagne di marketing senza scadenza STR_5742 :Autenticazione... STR_5743 :Connessione... STR_5744 :Risoluzione indirizzo... @@ -4098,7 +4098,7 @@ STR_5784 :{BLACK}Completare gli scenari precedenti per sbloccare questo. STR_5785 :Impossibile rinominare il gruppo... STR_5786 :Nome di gruppo non valido STR_5787 :{COMMA32} giocatori connessi -STR_5788 :Tempo ispezioni predefinito: +STR_5788 :Ispeziona attrazioni: STR_5789 :Disattiva effetto fulmine STR_5790 :{SMALLFONT}{BLACK}Attiva/disattiva i prezzi di RCT1{NEWLINE}(es. sia prezzo di ingresso che prezzo sulle attrazioni) STR_5791 :{SMALLFONT}{BLACK}Imposta l'affidabilità di tutte le attrazioni a 100%{NEWLINE}e reimposta la loro data di costruzione a {OPENQUOTES}quest'anno{ENDQUOTES} @@ -4147,14 +4147,14 @@ STR_5832 :{SMALLFONT}{BLACK}Mostra l'altezza in unità generiche invece del f STR_5833 :{SMALLFONT}{BLACK}Cambia il formato della data utilizzato STR_5834 :{SMALLFONT}{BLACK}Seleziona il dispositivo audio utilizzato da OpenRCT2 STR_5835 :{SMALLFONT}{BLACK}Disattiva l'audio del gioco se la finestra perde il focus -STR_5836 :{SMALLFONT}{BLACK}Imposta la musica da utilizzare nel menù principale.{NEWLINE}Selezionando RCT1 sarà necessario copiare il file 'data/css17.dat' dalla cartella di RCT1 a 'data/css50.dat' nella cartella di RCT2, oppure impostare il percorso di RCT1 nella scheda "Altro". +STR_5836 :{SMALLFONT}{BLACK}Imposta la musica da utilizzare nel menu principale.{NEWLINE}Selezionando RCT1 sarà necessario copiare il file 'data/css17.dat' dalla cartella di RCT1 a 'data/css50.dat' nella cartella di RCT2, oppure impostare il percorso di RCT1 nella scheda "Altro". STR_5837 :{SMALLFONT}{BLACK}Crea e gestisci i temi dell'interfaccia STR_5838 :{SMALLFONT}{BLACK}Mostra un pulsante differente per le finanze nella barra degli strumenti STR_5839 :{SMALLFONT}{BLACK}Mostra un pulsante differente per le ricerche e sviluppo nella barra degli strumenti STR_5840 :{SMALLFONT}{BLACK}Mostra un pulsante differente per i trucchi nella barra degli strumenti STR_5841 :{SMALLFONT}{BLACK}Mostra un pulsante differente per le novità nella barra degli strumenti STR_5842 :{SMALLFONT}{BLACK}Mostra scenari divisi per difficoltà (come in RCT2) o per gioco di origine (come in RCT1) -STR_5843 :{SMALLFONT}{BLACK}Abilita lo sblocco degli scenari (RCT1) +STR_5843 :{SMALLFONT}{BLACK}Abilita lo sblocco degli scenari come in RCT1 STR_5844 :{SMALLFONT}{BLACK}Connettiti al server multigiocatore{NEWLINE}anche in caso di asincronia o errori STR_5845 :{SMALLFONT}{BLACK}Aggiungi un pulsante{NEWLINE}per debuggare nella barra.{NEWLINE}Abilita le shortcut nellatastiera per la console sviluppatori STR_5846 :{SMALLFONT}{BLACK}Imposta i salvataggi automatici di OpenRCT2 spesso @@ -4184,12 +4184,12 @@ STR_5869 :{WINDOW_COLOUR_2}Sito provider: {BLACK}{STRING} STR_5870 :{SMALLFONT}{BLACK}Mostra le informazioni del server STR_5871 :Le piante non invecchiano STR_5872 :{SMALLFONT}{BLACK}Disabilità l'invecchiamento delle piante. -STR_5873 :Permetti catena di traino su tutti i pezzi del tracciato +STR_5873 :Permetti catena di traino su tutti i pezzi STR_5874 :{SMALLFONT}{BLACK}Permette di rendere qualsiasi pezzo del tracciato una catena di traino STR_5875 :Motore di rendering: STR_5876 :{SMALLFONT}{BLACK}Il motore grafico usato per mostrare la grafica del gioco. STR_5877 :Software -STR_5878 :Software (rendering hardware) +STR_5878 :Rendering hardware STR_5879 :OpenGL (sperimentale) STR_5880 :Solo selezionati STR_5881 :Solo non selezionati @@ -4217,7 +4217,7 @@ STR_5902 :Mostra i bounding box STR_5903 :Mostra la finestra di debug del rendering STR_5904 :Reimposta data STR_5905 :{SMALLFONT}{BLACK}Uno strumento di generazione mappe che crea automaticamente un paesaggio personalizzato -STR_5906 :Zoom alla posizione del cursore +STR_5906 :Zoom rispetto alla posizione del cursore STR_5907 :{SMALLFONT}{BLACK}Se abilitato, effettuando lo zoom l'ingrandimento avverrà centrato sul cursore anziché al centro dello schermo. STR_5908 :Permetti qualsiasi cambio di tipo percorso STR_5909 :{SMALLFONT}{BLACK}Permette di cambiare liberamente il tipo di percorso. Potrebbe causare blocchi del gioco. @@ -4314,7 +4314,7 @@ STR_5998 :Aggiungi denaro STR_5999 :Imposta denaro STR_6000 :Inserire il nuovo valore STR_6001 :Attiva effetti luce (sperimentale) -STR_6002 :{SMALLFONT}{BLACK}Le attrazioni e i lampioni saranno illuminati di notte.{NEWLINE}Richiede il motore di rendering hardware. +STR_6002 :{SMALLFONT}{BLACK}Le attrazioni e i lampioni saranno illuminati di notte. Richiede il motore di rendering hardware. STR_6003 :Vista sezionata STR_6004 :Vista sezionata STR_6005 :Attiva la vista sezionata @@ -4345,7 +4345,7 @@ STR_6029 :Costruzione percorso - Demolisci attuale STR_6030 :{SMALLFONT}{BLACK}Contagocce scenario. Fare clic su un qualsiasi elemento dello scenario per attivare la costruzione di quel pezzo. STR_6031 :Descrizione server: STR_6032 :Messaggio di benvenuto server: -STR_6033 :Percorso installazione di RCT1: +STR_6033 :Cartella di RCT1: STR_6035 :Selezionare la cartella di installazione di RCT1 STR_6036 :{SMALLFONT}{BLACK}Pulisci STR_6037 :Selezionare una cartella di installazione di RCT1 valida From 9dd820e2e7fe7a17620a13e9e5dea62f64c4d83b Mon Sep 17 00:00:00 2001 From: Craig Craig Date: Sat, 29 Apr 2017 19:00:31 -0500 Subject: [PATCH 071/670] Spelling fixes --- src/openrct2/network/network.cpp | 4 ++-- src/openrct2/object/RideObject.cpp | 2 +- src/openrct2/peep/peep.c | 2 +- src/openrct2/platform/shared.c | 2 +- src/openrct2/ride/ride.c | 4 ++-- src/openrct2/ride/ride.h | 2 +- src/openrct2/ride/station.c | 2 +- src/openrct2/ride/track_design_save.c | 2 +- src/openrct2/windows/editor_object_selection.c | 6 +++--- src/openrct2/windows/track_list.c | 2 +- src/openrct2/world/map.c | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/openrct2/network/network.cpp b/src/openrct2/network/network.cpp index d608a6dbe4..73966301a3 100644 --- a/src/openrct2/network/network.cpp +++ b/src/openrct2/network/network.cpp @@ -1877,7 +1877,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket if (commandCommand == GAME_COMMAND_PLACE_SCENERY) { if ( ticks - connection.Player->LastPlaceSceneryTime < ACTION_COOLDOWN_TIME_PLACE_SCENERY && - // Incase platform_get_ticks() wraps after ~49 days, ignore larger logged times. + // In case platform_get_ticks() wraps after ~49 days, ignore larger logged times. ticks > connection.Player->LastPlaceSceneryTime ) { if (!(group->CanPerformCommand(MISC_COMMAND_TOGGLE_SCENERY_CLUSTER))) { @@ -1891,7 +1891,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket else if (commandCommand == GAME_COMMAND_DEMOLISH_RIDE) { if ( ticks - connection.Player->LastDemolishRideTime < ACTION_COOLDOWN_TIME_DEMOLISH_RIDE && - // Incase platform_get_ticks() wraps after ~49 days, ignore larger logged times. + // In case platform_get_ticks() wraps after ~49 days, ignore larger logged times. ticks > connection.Player->LastDemolishRideTime ) { Server_Send_SHOWERROR(connection, STR_CANT_DO_THIS, STR_NETWORK_ACTION_RATE_LIMIT_MESSAGE); diff --git a/src/openrct2/object/RideObject.cpp b/src/openrct2/object/RideObject.cpp index 476e452b76..c07a20fff6 100644 --- a/src/openrct2/object/RideObject.cpp +++ b/src/openrct2/object/RideObject.cpp @@ -239,7 +239,7 @@ void RideObject::Load() image_index += b; } - // Verticle + // Vertical if (vehicleEntry->sprite_flags & VEHICLE_SPRITE_FLAG_VERTICAL_SLOPES) { vehicleEntry->var_28 = image_index; diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index bbbf9553e4..6ed111ba80 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -9298,7 +9298,7 @@ static void peep_pathfind_heuristic_search(sint16 x, sint16 y, uint8 z, rct_peep if (counter >= 200 || _peepPathFindTilesChecked <= 0) { /* The current search ends here. * The path continues, so the goal could still be reachable from here. - * If the search result is better than the best so far (in the paramaters), + * If the search result is better than the best so far (in the parameters), * then update the parameters with this search before continuing to the next map element. */ if (new_score < *endScore || (new_score == *endScore && counter < *endSteps )) { // Update the search results diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 119f174649..2f3ee893a9 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -725,7 +725,7 @@ void platform_toggle_windowed_mode() /** * This is not quite the same as the below function as we don't want to - * derfererence the cursor before the function. + * dereference the cursor before the function. * rct2: 0x0407956 */ void platform_set_cursor(uint8 cursor) diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index c0ec0b7242..9a6f7cc0a4 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -5946,7 +5946,7 @@ foundRideEntry: } *outRideIndex = rideIndex; - // Ride/vehicle colour is calcualted before applying to ensure + // Ride/vehicle colour is calculated before applying to ensure // correct colour is passed over the network. if (!(flags & GAME_COMMAND_FLAG_APPLY) && !(flags & GAME_COMMAND_FLAG_NETWORKED)) { *outRideColour = @@ -6756,7 +6756,7 @@ void increment_turn_count_4_plus_elements(rct_ride* ride, uint8 type){ switch (type){ case 0: case 1: - // Just incase fallback to 3 element turn + // Just in case fallback to 3 element turn increment_turn_count_3_elements(ride, type); return; case 2: diff --git a/src/openrct2/ride/ride.h b/src/openrct2/ride/ride.h index 891a5bbed3..087afb2284 100644 --- a/src/openrct2/ride/ride.h +++ b/src/openrct2/ride/ride.h @@ -759,7 +759,7 @@ enum { RIDE_TYPE_FLAG_HAS_DATA_LOGGING = 1 << 9, RIDE_TYPE_FLAG_HAS_DROPS = 1 << 10, RIDE_TYPE_FLAG_NO_TEST_MODE = 1 << 11, - RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES = 1 << 12, // used by rides with two variaties, like the u and o shapes of the dinghy slide and the dry and submerged track of the water coaster + RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES = 1 << 12, // used by rides with two varieties, like the u and o shapes of the dinghy slide and the dry and submerged track of the water coaster RIDE_TYPE_FLAG_NO_VEHICLES = 1 << 13, // used only by maze, spiral slide and shops RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS = 1 << 14, RIDE_TYPE_FLAG_HAS_NO_TRACK = 1 << 15, diff --git a/src/openrct2/ride/station.c b/src/openrct2/ride/station.c index b6009b6fbc..b6341429b6 100644 --- a/src/openrct2/ride/station.c +++ b/src/openrct2/ride/station.c @@ -84,7 +84,7 @@ static void ride_update_station_blocksection(rct_ride *ride, sint32 stationIndex static void ride_update_station_bumpercar(rct_ride *ride, sint32 stationIndex) { // Change of station depart flag should really call invalidate_station_start - // but since bumpercars do not have station lights there is no point. + // but since dodgems do not have station lights there is no point. if ( ride->status == RIDE_STATUS_CLOSED || (ride->lifecycle_flags & (RIDE_LIFECYCLE_BROKEN_DOWN | RIDE_LIFECYCLE_CRASHED)) diff --git a/src/openrct2/ride/track_design_save.c b/src/openrct2/ride/track_design_save.c index 1454eee63c..880917df2a 100644 --- a/src/openrct2/ride/track_design_save.c +++ b/src/openrct2/ride/track_design_save.c @@ -951,7 +951,7 @@ static bool track_design_save_to_td6_for_tracked_ride(uint8 rideIndex, rct_track sint32 z = 0; // Find the start of the track. - // It has to do this as a backwards loop incase this is an incomplete track. + // It has to do this as a backwards loop in case this is an incomplete track. if (track_block_get_previous(trackElement.x, trackElement.y, trackElement.element, &trackBeginEnd)) { rct_map_element* initial_map = trackElement.element; do { diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 4714194ee7..8a0c1704fe 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -292,9 +292,9 @@ static rct_object_entry DefaultSelectedObjects[] = { { 0x00000085, { "PATHASH " }, 0 }, // Footpath: Ash Footpath // The following are for all random map generation features to work out the box - { 0x00000087, { "SCGJUNGL" }, 0 }, // Jungle Themeing - { 0x00000087, { "SCGSNOW " }, 0 }, // Snow and Ice Themeing - { 0x00000087, { "SCGWATER" }, 0 } // Water Feature Themeing + { 0x00000087, { "SCGJUNGL" }, 0 }, // Jungle Theming + { 0x00000087, { "SCGSNOW " }, 0 }, // Snow and Ice Theming + { 0x00000087, { "SCGWATER" }, 0 } // Water Feature Theming }; enum { diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 28e3cee226..48c47a330a 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -497,7 +497,7 @@ static void window_track_list_paint(rct_window *w, rct_drawpixelinfo *dpi) gfx_draw_string_left(dpi, STR_MAX_POSITIVE_VERTICAL_G, &gForces, COLOUR_BLACK, x, y); y += 10; - // Maximum negative verical Gs + // Maximum negative vertical Gs gForces = td6->max_negative_vertical_g * 32; gfx_draw_string_left(dpi, STR_MAX_NEGATIVE_VERTICAL_G, &gForces, COLOUR_BLACK, x, y); y += 10; diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index 0caf293471..7d1c171994 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -1615,7 +1615,7 @@ static money32 map_set_land_height(sint32 flags, sint32 x, sint32 y, sint32 heig return MONEY32_UNDEFINED; } - // Divide by 2 and subtract 7 to get the ingame units. + // Divide by 2 and subtract 7 to get the in-game units. if (height > 142) { gGameCommandErrorText = STR_TOO_HIGH; return MONEY32_UNDEFINED; From bafae38eb8804783cc82a59e0d44d6f2831201ca Mon Sep 17 00:00:00 2001 From: Luca Andrea Rossi Date: Mon, 8 May 2017 22:16:48 +0200 Subject: [PATCH 072/670] Add Italian language contributor --- contributors.md | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.md b/contributors.md index d0c380d5a6..db7f1bd1a6 100644 --- a/contributors.md +++ b/contributors.md @@ -109,6 +109,7 @@ Includes all git commit authors. Aliases are GitHub user names. * Finnish - (DJHasis), (Zode), (TheWing) * French - (fbourigault), Joël Troch (JoelTroch), Michael Steenbeek (Gymnasiast), Romain Vigier (rvgr), (AziasYur), Hugo Courtial (s0r00t), David Delobel (incyclum) * German - (danidoedel), (atmaxinger), (Yepoleb), Daniel Kessel (dkessel), Leon (AllGoodNamesAreTaken), (raidcookie) +* Italian - Luca Andrea Rossi (LucaRed) * Japanese - Aaron van Geffen (AaronVanGeffen), Nick Hall (nickhall), (jhako), Harry Lam (daihakken) * Korean - "TELK" (telk5093), (NeverDruid); small fixes: (kexplo) * Polish - Adrian Wielgosik (adrian17), (lopezloo), Michał Janiszewski (janisozaur) From 2bb3a297b49d693f4dcc584ef6890f912ef6d94d Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 3 May 2017 21:06:22 +0200 Subject: [PATCH 073/670] Do not close new campaign window when starting a campaign results in an error, fixes #4810 --- src/openrct2/management/marketing.c | 10 ++++++++-- src/openrct2/management/marketing.h | 2 +- src/openrct2/windows/new_campaign.c | 6 ++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/openrct2/management/marketing.c b/src/openrct2/management/marketing.c index 0bcad0cb14..01b7efe6a6 100644 --- a/src/openrct2/management/marketing.c +++ b/src/openrct2/management/marketing.c @@ -138,10 +138,16 @@ void marketing_set_guest_campaign(rct_peep *peep, sint32 campaign) } } -void marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks) +bool marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks) { gGameCommandErrorTitle = STR_CANT_START_MARKETING_CAMPAIGN; - game_do_command(0, (numWeeks << 8) | GAME_COMMAND_FLAG_APPLY, 0, (rideOrItem << 8) | type, GAME_COMMAND_START_MARKETING_CAMPAIGN, 0, 0); + sint32 retVal = game_do_command(0, (numWeeks << 8) | GAME_COMMAND_FLAG_APPLY, 0, (rideOrItem << 8) | type, GAME_COMMAND_START_MARKETING_CAMPAIGN, 0, 0); + if (retVal == MONEY32_UNDEFINED) { + return false; + } + else { + return true; + } } /** diff --git a/src/openrct2/management/marketing.h b/src/openrct2/management/marketing.h index 869816e76c..79f21068f3 100644 --- a/src/openrct2/management/marketing.h +++ b/src/openrct2/management/marketing.h @@ -47,7 +47,7 @@ extern uint8 gMarketingCampaignRideIndex[22]; sint32 marketing_get_campaign_guest_generation_probability(sint32 campaign); void marketing_update(); void marketing_set_guest_campaign(rct_peep *peep, sint32 campaign); -void marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks); +bool marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks); void game_command_start_campaign(sint32* eax, sint32* ebx, sint32* ecx, sint32* edx, sint32* esi, sint32* edi, sint32* ebp); bool marketing_is_campaign_type_applicable(sint32 campaignType); diff --git a/src/openrct2/windows/new_campaign.c b/src/openrct2/windows/new_campaign.c index 681ed2c4f2..aa8483438a 100644 --- a/src/openrct2/windows/new_campaign.c +++ b/src/openrct2/windows/new_campaign.c @@ -225,8 +225,10 @@ static void window_new_campaign_mouseup(rct_window *w, rct_widgetindex widgetInd window_close(w); break; case WIDX_START_BUTTON: - marketing_start_campaign(w->campaign.campaign_type, w->campaign.ride_id, w->campaign.no_weeks); - window_close(w); + if (marketing_start_campaign(w->campaign.campaign_type, w->campaign.ride_id, w->campaign.no_weeks)) + { + window_close(w); + } break; } } From f9acdcb02dc2b34d1db96928deb613cadbc09097 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 7 May 2017 00:55:28 +0100 Subject: [PATCH 074/670] Use callback mechanism in case server rejects command --- src/openrct2/game.c | 1 + src/openrct2/management/marketing.c | 19 +++++++++++-------- src/openrct2/management/marketing.h | 3 ++- src/openrct2/windows/new_campaign.c | 5 +---- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/openrct2/game.c b/src/openrct2/game.c index 19e5804d75..f8d31d254a 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -86,6 +86,7 @@ GAME_COMMAND_CALLBACK_POINTER* game_command_callback_table[] = { game_command_callback_hire_new_staff_member, game_command_callback_pickup_guest, game_command_callback_pickup_staff, + game_command_callback_marketing_start_campaign, }; sint32 game_command_playerid = -1; diff --git a/src/openrct2/management/marketing.c b/src/openrct2/management/marketing.c index 01b7efe6a6..343f4872e3 100644 --- a/src/openrct2/management/marketing.c +++ b/src/openrct2/management/marketing.c @@ -138,16 +138,19 @@ void marketing_set_guest_campaign(rct_peep *peep, sint32 campaign) } } -bool marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks) +void game_command_callback_marketing_start_campaign(sint32 eax, sint32 ebx, sint32 ecx, sint32 edx, sint32 esi, sint32 edi, sint32 ebp) +{ + if (ebx != MONEY32_UNDEFINED) + { + window_close_by_class(WC_NEW_CAMPAIGN); + } +} + +void marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks) { gGameCommandErrorTitle = STR_CANT_START_MARKETING_CAMPAIGN; - sint32 retVal = game_do_command(0, (numWeeks << 8) | GAME_COMMAND_FLAG_APPLY, 0, (rideOrItem << 8) | type, GAME_COMMAND_START_MARKETING_CAMPAIGN, 0, 0); - if (retVal == MONEY32_UNDEFINED) { - return false; - } - else { - return true; - } + game_command_callback = game_command_callback_marketing_start_campaign; + game_do_command(0, (numWeeks << 8) | GAME_COMMAND_FLAG_APPLY, 0, (rideOrItem << 8) | type, GAME_COMMAND_START_MARKETING_CAMPAIGN, 0, 0); } /** diff --git a/src/openrct2/management/marketing.h b/src/openrct2/management/marketing.h index 79f21068f3..5ecd403837 100644 --- a/src/openrct2/management/marketing.h +++ b/src/openrct2/management/marketing.h @@ -47,7 +47,8 @@ extern uint8 gMarketingCampaignRideIndex[22]; sint32 marketing_get_campaign_guest_generation_probability(sint32 campaign); void marketing_update(); void marketing_set_guest_campaign(rct_peep *peep, sint32 campaign); -bool marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks); +void game_command_callback_marketing_start_campaign(sint32 eax, sint32 ebx, sint32 ecx, sint32 edx, sint32 esi, sint32 edi, sint32 ebp); +void marketing_start_campaign(sint32 type, sint32 rideOrItem, sint32 numWeeks); void game_command_start_campaign(sint32* eax, sint32* ebx, sint32* ecx, sint32* edx, sint32* esi, sint32* edi, sint32* ebp); bool marketing_is_campaign_type_applicable(sint32 campaignType); diff --git a/src/openrct2/windows/new_campaign.c b/src/openrct2/windows/new_campaign.c index aa8483438a..45333fbbf4 100644 --- a/src/openrct2/windows/new_campaign.c +++ b/src/openrct2/windows/new_campaign.c @@ -225,10 +225,7 @@ static void window_new_campaign_mouseup(rct_window *w, rct_widgetindex widgetInd window_close(w); break; case WIDX_START_BUTTON: - if (marketing_start_campaign(w->campaign.campaign_type, w->campaign.ride_id, w->campaign.no_weeks)) - { - window_close(w); - } + marketing_start_campaign(w->campaign.campaign_type, w->campaign.ride_id, w->campaign.no_weeks); break; } } From 563cd78ef782a591c170843a55982c1d8602a035 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Mon, 8 May 2017 22:49:02 +0100 Subject: [PATCH 075/670] Fix #5449: Underflow of gNumGuestsHeadingForPark in SC4 import --- src/openrct2/rct1/S4Importer.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 17f9697eaf..6d21bd846f 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1417,9 +1417,16 @@ private: peep_update_name_sort(dst); - if (!dst->outside_of_park && dst->type == PEEP_TYPE_GUEST) + if (dst->type == PEEP_TYPE_GUEST) { - gNumGuestsInPark++; + if (dst->outside_of_park && dst->state != PEEP_STATE_LEAVING_PARK) + { + gNumGuestsHeadingForPark++; + } + else + { + gNumGuestsInPark++; + } } } From bccedd3b1f328b43a9aada2a5cb8522254a9b3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 8 May 2017 23:52:03 +0200 Subject: [PATCH 076/670] Change network version after f9acdcb02 --- src/openrct2/network/network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 7d5350e24d..5ab29f7ec0 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "1" +#define NETWORK_STREAM_VERSION "2" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus From a53b01d5b9078f19e5bed50b554cf68e2785cb1e Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Mon, 8 May 2017 23:54:38 +0200 Subject: [PATCH 077/670] Remove magic numbers and Americanisms --- src/openrct2/localisation/localisation.c | 8 +- src/openrct2/localisation/string_ids.h | 10 +- src/openrct2/paint/map_element/surface.c | 15 +- src/openrct2/peep/peep.c | 26 +-- src/openrct2/peep/peep.h | 14 +- src/openrct2/peep/peep_data.c | 154 +++++++++--------- src/openrct2/rct1.h | 6 +- src/openrct2/rct1/tables.cpp | 12 +- .../coaster/air_powered_vertical_coaster.c | 4 +- .../ride/coaster/reverse_freefall_coaster.c | 4 +- src/openrct2/ride/ride.c | 10 +- src/openrct2/ride/ride.h | 4 +- src/openrct2/ride/ride_data.c | 34 ++-- src/openrct2/ride/ride_ratings.c | 2 +- src/openrct2/ride/track.c | 8 +- src/openrct2/ride/track.h | 8 +- src/openrct2/ride/track_data.c | 32 ++-- src/openrct2/ride/track_data_old.c | 8 +- src/openrct2/ride/track_design.c | 2 +- src/openrct2/ride/vehicle.c | 28 ++-- src/openrct2/ride/vehicle.h | 4 +- src/openrct2/sprites.h | 16 +- .../windows/editor_object_selection.c | 2 +- src/openrct2/windows/ride.c | 4 +- src/openrct2/windows/ride_construction.c | 2 +- src/openrct2/world/map.c | 4 +- test/testpaint/data.c | 8 +- 27 files changed, 219 insertions(+), 210 deletions(-) diff --git a/src/openrct2/localisation/localisation.c b/src/openrct2/localisation/localisation.c index c5fdc8b6ea..afe2b7266f 100644 --- a/src/openrct2/localisation/localisation.c +++ b/src/openrct2/localisation/localisation.c @@ -136,9 +136,9 @@ const rct_string_id PeepThoughts[] = { STR_PEEP_THOUGHT_TYPE_UMBRELLA, STR_PEEP_THOUGHT_TYPE_DRINK, STR_PEEP_THOUGHT_TYPE_BURGER, - STR_PEEP_THOUGHT_TYPE_FRIES, + STR_PEEP_THOUGHT_TYPE_CHIPS, STR_PEEP_THOUGHT_TYPE_ICE_CREAM, - STR_PEEP_THOUGHT_TYPE_COTTON_CANDY, + STR_PEEP_THOUGHT_TYPE_CANDYFLOSS, 0, 0, 0, @@ -170,9 +170,9 @@ const rct_string_id PeepThoughts[] = { STR_PEEP_THOUGHT_TYPE_UMBRELLA_MUCH, STR_PEEP_THOUGHT_TYPE_DRINK_MUCH, STR_PEEP_THOUGHT_TYPE_BURGER_MUCH, - STR_PEEP_THOUGHT_TYPE_FRIES_MUCH, + STR_PEEP_THOUGHT_TYPE_CHIPS_MUCH, STR_PEEP_THOUGHT_TYPE_ICE_CREAM_MUCH, - STR_PEEP_THOUGHT_TYPE_COTTON_CANDY_MUCH, + STR_PEEP_THOUGHT_TYPE_CANDYFLOSS_MUCH, 0, 0, 0, diff --git a/src/openrct2/localisation/string_ids.h b/src/openrct2/localisation/string_ids.h index 32121afaa5..ba89735563 100644 --- a/src/openrct2/localisation/string_ids.h +++ b/src/openrct2/localisation/string_ids.h @@ -509,7 +509,7 @@ enum { STR_RIDE_MODE_UNLIMITED_RIDES_PER_ADMISSION = 1071, STR_RIDE_MODE_MAZE = 1072, STR_RIDE_MODE_RACE = 1073, - STR_RIDE_MODE_BUMPER_CAR = 1074, + STR_RIDE_MODE_DODGEMS = 1074, STR_RIDE_MODE_SWING = 1075, STR_RIDE_MODE_SHOP_STALL = 1076, STR_RIDE_MODE_ROTATION = 1077, @@ -960,9 +960,9 @@ enum { STR_PEEP_THOUGHT_TYPE_UMBRELLA = 1522, STR_PEEP_THOUGHT_TYPE_DRINK = 1523, STR_PEEP_THOUGHT_TYPE_BURGER = 1524, - STR_PEEP_THOUGHT_TYPE_FRIES = 1525, + STR_PEEP_THOUGHT_TYPE_CHIPS = 1525, STR_PEEP_THOUGHT_TYPE_ICE_CREAM = 1526, - STR_PEEP_THOUGHT_TYPE_COTTON_CANDY = 1527, + STR_PEEP_THOUGHT_TYPE_CANDYFLOSS = 1527, // STR_1528 : // STR_1529 : // STR_1530 : @@ -994,9 +994,9 @@ enum { STR_PEEP_THOUGHT_TYPE_UMBRELLA_MUCH = 1556, STR_PEEP_THOUGHT_TYPE_DRINK_MUCH = 1557, STR_PEEP_THOUGHT_TYPE_BURGER_MUCH = 1558, - STR_PEEP_THOUGHT_TYPE_FRIES_MUCH = 1559, + STR_PEEP_THOUGHT_TYPE_CHIPS_MUCH = 1559, STR_PEEP_THOUGHT_TYPE_ICE_CREAM_MUCH = 1560, - STR_PEEP_THOUGHT_TYPE_COTTON_CANDY_MUCH = 1561, + STR_PEEP_THOUGHT_TYPE_CANDYFLOSS_MUCH = 1561, // STR_1562 : // STR_1563 : // STR_1564 : diff --git a/src/openrct2/paint/map_element/surface.c b/src/openrct2/paint/map_element/surface.c index 28dbaa6097..09ce04da48 100644 --- a/src/openrct2/paint/map_element/surface.c +++ b/src/openrct2/paint/map_element/surface.c @@ -1176,11 +1176,10 @@ void surface_paint(uint8 direction, uint16 height, rct_map_element * mapElement) rct2_peep_spawn * spawn = &gPeepSpawns[i]; if ((spawn->x & 0xFFE0) == pos.x && (spawn->y & 0xFFE0) == pos.y) { - // TODO: SPR_TERRAIN_SELECTION_SQUARE_SIMPLE ??? (no variations) - sub_98196C(2624, 0, 0, 32, 32, 16, spawn->z * 16, rotation); + sub_98196C(SPR_TERRAIN_SELECTION_SQUARE_SIMPLE, 0, 0, 32, 32, 16, spawn->z * 16, rotation); sint32 offset = ((spawn->direction ^ 2) + rotation) & 3; - uint32 image_id = (3111 + offset) | 0x20380000; + uint32 image_id = (PEEP_SPAWN_ARROW_0 + offset) | 0x20380000; sub_98196C(image_id, 0, 0, 32, 32, 19, spawn->z * 16, rotation); } } @@ -1190,13 +1189,12 @@ void surface_paint(uint8 direction, uint16 height, rct_map_element * mapElement) // loc_660E9A: if (mapElement->properties.surface.ownership & OWNERSHIP_OWNED) { assert(surfaceShape < countof(byte_97B444)); - // TODO: SPR_TERRAIN_SELECTION_SQUARE? - paint_attach_to_previous_ps(2625 + byte_97B444[surfaceShape], 0, 0); + paint_attach_to_previous_ps(SPR_TERRAIN_SELECTION_SQUARE + byte_97B444[surfaceShape], 0, 0); } else if (mapElement->properties.surface.ownership & OWNERSHIP_AVAILABLE) { rct_xy16 pos = {gPaintMapPosition.x, gPaintMapPosition.y}; paint_struct * backup = g_ps_F1AD28; sint32 height2 = (map_element_height(pos.x + 16, pos.y + 16) & 0xFFFF) + 3; - sub_98196C(22955, 16, 16, 1, 1, 0, height2, rotation); + sub_98196C(SPR_LAND_OWNERSHIP_AVAILABLE, 16, 16, 1, 1, 0, height2, rotation); g_ps_F1AD28 = backup; } } @@ -1205,13 +1203,12 @@ void surface_paint(uint8 direction, uint16 height, rct_map_element * mapElement) && !(mapElement->properties.surface.ownership & OWNERSHIP_OWNED)) { if (mapElement->properties.surface.ownership & OWNERSHIP_CONSTRUCTION_RIGHTS_OWNED) { assert(surfaceShape < countof(byte_97B444)); - // TODO: SPR_TERRAIN_SELECTION_DOTTED ??? - paint_attach_to_previous_ps(2644 + byte_97B444[surfaceShape], 0, 0); + paint_attach_to_previous_ps(SPR_TERRAIN_SELECTION_DOTTED + byte_97B444[surfaceShape], 0, 0); } else if (mapElement->properties.surface.ownership & OWNERSHIP_CONSTRUCTION_RIGHTS_AVAILABLE) { paint_struct * backup = g_ps_F1AD28; rct_xy16 pos = {gPaintMapPosition.x, gPaintMapPosition.y}; sint32 height2 = map_element_height(pos.x + 16, pos.y + 16) & 0xFFFF; - sub_98196C(22956, 16, 16, 1, 1, 0, height2 + 3, rotation); + sub_98196C(SPR_LAND_CONSTRUCTION_RIGHTS_AVAILABLE, 16, 16, 1, 1, 0, height2 + 3, rotation); g_ps_F1AD28 = backup; } } diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index 6ed111ba80..c09741b961 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -750,9 +750,9 @@ static const uint8 byte_9822F4[] = { 0, // SHOP_ITEM_UMBRELLA 100, // SHOP_ITEM_DRINK 150, // SHOP_ITEM_BURGER - 120, // SHOP_ITEM_FRIES + 120, // SHOP_ITEM_CHIPS 60, // SHOP_ITEM_ICE_CREAM - 50, // SHOP_ITEM_COTTON_CANDY + 50, // SHOP_ITEM_CANDYFLOSS 0, // SHOP_ITEM_EMPTY_CAN 0, // SHOP_ITEM_RUBBISH 0, // SHOP_ITEM_EMPTY_BURGER_BOX @@ -828,9 +828,9 @@ static const uint8 peep_item_containers[] = { 0xFF, // PEEP_ITEM_UMBRELLA SHOP_ITEM_EMPTY_CAN, // PEEP_ITEM_DRINK SHOP_ITEM_EMPTY_BURGER_BOX, // PEEP_ITEM_BURGER - SHOP_ITEM_RUBBISH, // PEEP_ITEM_FRIES + SHOP_ITEM_RUBBISH, // PEEP_ITEM_CHIPS 0xFF, // PEEP_ITEM_ICE_CREAM - 0xFF, // PEEP_ITEM_COTTON_CANDY + 0xFF, // PEEP_ITEM_CANDYFLOSS 0xFF, // PEEP_ITEM_EMPTY_CAN 0xFF, // PEEP_ITEM_RUBBISH 0xFF, // PEEP_ITEM_EMPTY_BURGER_BOX @@ -1677,14 +1677,14 @@ typedef struct item_pref_t { item_pref_t item_order_preference[] = { { 0, PEEP_ITEM_ICE_CREAM, PEEP_SPRITE_TYPE_ICE_CREAM }, - { 0, PEEP_ITEM_FRIES, PEEP_SPRITE_TYPE_FRIES }, + { 0, PEEP_ITEM_CHIPS, PEEP_SPRITE_TYPE_CHIPS }, { 0, PEEP_ITEM_PIZZA, PEEP_SPRITE_TYPE_PIZZA }, { 0, PEEP_ITEM_BURGER, PEEP_SPRITE_TYPE_BURGER }, { 0, PEEP_ITEM_DRINK, PEEP_SPRITE_TYPE_DRINK }, { 0, PEEP_ITEM_COFFEE, PEEP_SPRITE_TYPE_COFFEE }, { 0, PEEP_ITEM_CHICKEN, PEEP_SPRITE_TYPE_CHICKEN }, { 0, PEEP_ITEM_LEMONADE, PEEP_SPRITE_TYPE_LEMONADE }, - { 0, PEEP_ITEM_COTTON_CANDY, PEEP_SPRITE_TYPE_CANDYFLOSS }, + { 0, PEEP_ITEM_CANDYFLOSS, PEEP_SPRITE_TYPE_CANDYFLOSS }, { 0, PEEP_ITEM_POPCORN, PEEP_SPRITE_TYPE_PIZZA }, { 0, PEEP_ITEM_HOT_DOG, PEEP_SPRITE_TYPE_HOT_DOG }, { 0, PEEP_ITEM_TENTACLE, PEEP_SPRITE_TYPE_TENTACLE }, @@ -4886,7 +4886,7 @@ static void peep_update_queuing(rct_peep* peep){ if (!(peep->time_in_queue & 0x3F) && peep->action == 0xFE && peep->next_action_sprite_type == 2){ switch (peep->sprite_type) { case PEEP_SPRITE_TYPE_ICE_CREAM: - case PEEP_SPRITE_TYPE_FRIES: + case PEEP_SPRITE_TYPE_CHIPS: case PEEP_SPRITE_TYPE_BURGER: case PEEP_SPRITE_TYPE_DRINK: case PEEP_SPRITE_TYPE_CANDYFLOSS: @@ -4980,7 +4980,7 @@ static void peep_update_mowing(rct_peep* peep){ for (; (map_element_get_type(map_element) != MAP_ELEMENT_TYPE_SURFACE); map_element++); if ((map_element->properties.surface.terrain & MAP_ELEMENT_SURFACE_TERRAIN_MASK) == (TERRAIN_GRASS << 5)){ - map_element->properties.surface.grass_length = 0; + map_element->properties.surface.grass_length = GRASS_LENGTH_MOWED; map_invalidate_tile_zoom0(peep->next_x, peep->next_y, map_element->base_height * 8, map_element->base_height * 8 + 16); } peep->staff_lawns_mown++; @@ -5659,9 +5659,9 @@ static const uint8 item_standard_litter[32] = { LITTER_TYPE_RUBBISH, // PEEP_ITEM_UMBRELLA LITTER_TYPE_RUBBISH, // PEEP_ITEM_DRINK LITTER_TYPE_RUBBISH, // PEEP_ITEM_BURGER - LITTER_TYPE_RUBBISH, // PEEP_ITEM_FRIES + LITTER_TYPE_RUBBISH, // PEEP_ITEM_CHIPS LITTER_TYPE_RUBBISH, // PEEP_ITEM_ICE_CREAM - LITTER_TYPE_RUBBISH, // PEEP_ITEM_COTTON_CANDY + LITTER_TYPE_RUBBISH, // PEEP_ITEM_CANDYFLOSS LITTER_TYPE_EMPTY_CAN, // PEEP_ITEM_EMPTY_CAN LITTER_TYPE_RUBBISH, // PEEP_ITEM_RUBBISH LITTER_TYPE_EMPTY_BURGER_BOX, // PEEP_ITEM_EMPTY_BURGER_BOX @@ -7603,9 +7603,9 @@ static sint32 peep_has_food_standard_flag(rct_peep* peep){ return peep->item_standard_flags &( PEEP_ITEM_DRINK | PEEP_ITEM_BURGER | - PEEP_ITEM_FRIES | + PEEP_ITEM_CHIPS | PEEP_ITEM_ICE_CREAM | - PEEP_ITEM_COTTON_CANDY | + PEEP_ITEM_CANDYFLOSS | PEEP_ITEM_PIZZA | PEEP_ITEM_POPCORN | PEEP_ITEM_HOT_DOG | @@ -10932,7 +10932,7 @@ static bool sub_69AF1E(rct_peep *peep, sint32 rideIndex, sint32 shopItem, money3 } if ((shopItem == SHOP_ITEM_BALLOON) || (shopItem == SHOP_ITEM_ICE_CREAM) - || (shopItem == SHOP_ITEM_COTTON_CANDY) || (shopItem == SHOP_ITEM_SUNGLASSES)) { + || (shopItem == SHOP_ITEM_CANDYFLOSS) || (shopItem == SHOP_ITEM_SUNGLASSES)) { if (gClimateCurrentRainLevel != 0) return 0; } diff --git a/src/openrct2/peep/peep.h b/src/openrct2/peep/peep.h index febf0fd835..6e1e67de26 100644 --- a/src/openrct2/peep/peep.h +++ b/src/openrct2/peep/peep.h @@ -82,9 +82,9 @@ enum PEEP_THOUGHT_TYPE { PEEP_THOUGHT_TYPE_UMBRELLA = 42, PEEP_THOUGHT_TYPE_DRINK = 43, PEEP_THOUGHT_TYPE_BURGER = 44, - PEEP_THOUGHT_TYPE_FRIES = 45, + PEEP_THOUGHT_TYPE_CHIPS = 45, PEEP_THOUGHT_TYPE_ICE_CREAM = 46, - PEEP_THOUGHT_TYPE_COTTON_CANDY = 47, + PEEP_THOUGHT_TYPE_CANDYFLOSS = 47, PEEP_THOUGHT_TYPE_PIZZA = 51, @@ -111,9 +111,9 @@ enum PEEP_THOUGHT_TYPE { PEEP_THOUGHT_TYPE_UMBRELLA_MUCH = 76, PEEP_THOUGHT_TYPE_DRINK_MUCH = 77, PEEP_THOUGHT_TYPE_BURGER_MUCH = 78, - PEEP_THOUGHT_TYPE_FRIES_MUCH = 79, + PEEP_THOUGHT_TYPE_CHIPS_MUCH = 79, PEEP_THOUGHT_TYPE_ICE_CREAM_MUCH = 80, - PEEP_THOUGHT_TYPE_COTTON_CANDY_MUCH = 81, + PEEP_THOUGHT_TYPE_CANDYFLOSS_MUCH = 81, PEEP_THOUGHT_TYPE_PIZZA_MUCH = 85, @@ -334,9 +334,9 @@ enum PEEP_ITEM { PEEP_ITEM_UMBRELLA = (1 << 4), PEEP_ITEM_DRINK = (1 << 5), PEEP_ITEM_BURGER = (1 << 6), - PEEP_ITEM_FRIES = (1 << 7), + PEEP_ITEM_CHIPS = (1 << 7), PEEP_ITEM_ICE_CREAM = (1 << 8), - PEEP_ITEM_COTTON_CANDY = (1 << 9), + PEEP_ITEM_CANDYFLOSS = (1 << 9), PEEP_ITEM_EMPTY_CAN = (1 << 10), PEEP_ITEM_RUBBISH = (1 << 11), PEEP_ITEM_EMPTY_BURGER_BOX = (1 << 12), @@ -398,7 +398,7 @@ enum PEEP_SPRITE_TYPE { PEEP_SPRITE_TYPE_ENTERTAINER_SHERIFF = 13, PEEP_SPRITE_TYPE_ENTERTAINER_PIRATE = 14, PEEP_SPRITE_TYPE_ICE_CREAM = 15, - PEEP_SPRITE_TYPE_FRIES = 16, + PEEP_SPRITE_TYPE_CHIPS = 16, PEEP_SPRITE_TYPE_BURGER = 17, PEEP_SPRITE_TYPE_DRINK = 18, PEEP_SPRITE_TYPE_BALLOON = 19, diff --git a/src/openrct2/peep/peep_data.c b/src/openrct2/peep/peep_data.c index a0707ae485..44f57831d9 100644 --- a/src/openrct2/peep/peep_data.c +++ b/src/openrct2/peep/peep_data.c @@ -624,43 +624,43 @@ static const uint8 PeepSpriteImage_IceCream_34_sequence[] = { 0, 1, 2, 3, 4, 5, static const uint8 PeepSpriteImage_IceCream_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; static const uint8 PeepSpriteImage_IceCream_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; -static const uint8 PeepSpriteImage_Fries_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; -static const uint8 PeepSpriteImage_Fries_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; -static const uint8 PeepSpriteImage_Fries_02_sequence[] = { 0 }; -static const uint8 PeepSpriteImage_Fries_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static const uint8 PeepSpriteImage_Fries_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; -static const uint8 PeepSpriteImage_Fries_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; -static const uint8 PeepSpriteImage_Fries_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static const uint8 PeepSpriteImage_Fries_07_sequence[] = { 0 }; -static const uint8 PeepSpriteImage_Fries_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static const uint8 PeepSpriteImage_Fries_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static const uint8 PeepSpriteImage_Fries_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; -static const uint8 PeepSpriteImage_Fries_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; -static const uint8 PeepSpriteImage_Fries_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; -static const uint8 PeepSpriteImage_Fries_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; -static const uint8 PeepSpriteImage_Fries_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; -static const uint8 PeepSpriteImage_Fries_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; -static const uint8 PeepSpriteImage_Fries_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; -static const uint8 PeepSpriteImage_Fries_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; -static const uint8 PeepSpriteImage_Fries_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; -static const uint8 PeepSpriteImage_Fries_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; -static const uint8 PeepSpriteImage_Fries_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; -static const uint8 PeepSpriteImage_Fries_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; -static const uint8 PeepSpriteImage_Fries_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; +static const uint8 PeepSpriteImage_Chips_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; +static const uint8 PeepSpriteImage_Chips_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; +static const uint8 PeepSpriteImage_Chips_02_sequence[] = { 0 }; +static const uint8 PeepSpriteImage_Chips_03_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const uint8 PeepSpriteImage_Chips_04_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 12, 13, 14 }; +static const uint8 PeepSpriteImage_Chips_05_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; +static const uint8 PeepSpriteImage_Chips_06_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static const uint8 PeepSpriteImage_Chips_07_sequence[] = { 0 }; +static const uint8 PeepSpriteImage_Chips_08_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const uint8 PeepSpriteImage_Chips_09_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static const uint8 PeepSpriteImage_Chips_10_sequence[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }; +static const uint8 PeepSpriteImage_Chips_11_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; +static const uint8 PeepSpriteImage_Chips_12_sequence[] = { 0, 1, 2, 3, 4, 5 }; +static const uint8 PeepSpriteImage_Chips_13_sequence[] = { 0, 1, 2, 3, 4, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_14_sequence[] = { 8, 8, 9, 9, 10, 10, 9, 9, 8, 8, 11, 12, 13, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 13, 13, 8, 8, 9, 9, 8, 8 }; +static const uint8 PeepSpriteImage_Chips_15_sequence[] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11 }; +static const uint8 PeepSpriteImage_Chips_16_sequence[] = { 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4 }; +static const uint8 PeepSpriteImage_Chips_17_sequence[] = { 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 1, 2, 3, 4, 3, 2, 1, 0, 5, 6, 7 }; +static const uint8 PeepSpriteImage_Chips_18_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 17, 18, 18, 18, 18, 18, 18, 18, 17, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 15, 16, 15, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_19_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 15, 14, 14, 14, 14, 14, 14, 19, 20, 20, 20, 19, 14, 14, 14, 14, 14, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_20_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 14, 15, 15, 15, 16, 17, 17, 17, 14, 11, 12, 13, 12, 13, 12, 11, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_21_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_22_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 21, 22, 21, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 29, 30, 31, 32, 31, 30, 31, 32, 31, 30, 31, 32, 31, 30, 29, 0 }; +static const uint8 PeepSpriteImage_Chips_23_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 16, 17, 18, 19, 18, 17, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_24_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 11, 12, 13, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 15, 16, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 18, 19, 20, 21, 22, 21, 20, 21, 22, 21, 20, 21, 22, 20, 19, 18, 0, 0, 23, 24, 25, 26, 27, 28, 28, 26, 24, 0, 0, 0, 0, 0, 0 }; +static const uint8 PeepSpriteImage_Chips_25_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_26_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; +static const uint8 PeepSpriteImage_Chips_27_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11, 12, 11, 10, 10, 10, 13, 14, 14, 14, 13, 10, 10, 10, 11, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_28_sequence[] = { 0, 1, 2, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 4, 4, 3, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_29_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_30_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 5, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_31_sequence[] = { 0, 1, 2, 3, 4, 5, 5, 5, 5, 6, 7, 6, 5, 5, 5, 5, 5, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_32_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 6, 7, 8, 7, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_33_sequence[] = { 0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_34_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16, 15, 14, 8, 9, 10, 11, 12, 13, 8, 9, 10, 11, 12, 13, 7, 6, 5, 4, 3, 2, 1, 0 }; +static const uint8 PeepSpriteImage_Chips_35_sequence[] = { 0, 1, 2, 2, 2, 2, 3, 4, 5, 5, 5, 5, 4 }; +static const uint8 PeepSpriteImage_Chips_36_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 12, 11, 12, 11, 12, 11, 12, 11, 11, 11, 11, 11, 13, 14, 15 }; static const uint8 PeepSpriteImage_Burger_00_sequence[] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 }; static const uint8 PeepSpriteImage_Burger_01_sequence[] = { 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8 }; @@ -2481,44 +2481,44 @@ static const rct_peep_animation PeepSpriteImage_IceCream[] = { { 7181, countof(PeepSpriteImage_IceCream_36_sequence), PeepSpriteImage_IceCream_36_sequence }, }; -static const rct_peep_animation PeepSpriteImage_Fries[] = { - { 7609, countof(PeepSpriteImage_Fries_00_sequence), PeepSpriteImage_Fries_00_sequence }, - { 6585, countof(PeepSpriteImage_Fries_01_sequence), PeepSpriteImage_Fries_01_sequence }, - { 7605, countof(PeepSpriteImage_Fries_02_sequence), PeepSpriteImage_Fries_02_sequence }, - { 7733, countof(PeepSpriteImage_Fries_03_sequence), PeepSpriteImage_Fries_03_sequence }, - { 6697, countof(PeepSpriteImage_Fries_04_sequence), PeepSpriteImage_Fries_04_sequence }, - { 6757, countof(PeepSpriteImage_Fries_05_sequence), PeepSpriteImage_Fries_05_sequence }, - { 6561, countof(PeepSpriteImage_Fries_06_sequence), PeepSpriteImage_Fries_06_sequence }, - { 7681, countof(PeepSpriteImage_Fries_07_sequence), PeepSpriteImage_Fries_07_sequence }, - { 7685, countof(PeepSpriteImage_Fries_08_sequence), PeepSpriteImage_Fries_08_sequence }, - { 6637, countof(PeepSpriteImage_Fries_09_sequence), PeepSpriteImage_Fries_09_sequence }, - { 6645, countof(PeepSpriteImage_Fries_10_sequence), PeepSpriteImage_Fries_10_sequence }, - { 6813, countof(PeepSpriteImage_Fries_11_sequence), PeepSpriteImage_Fries_11_sequence }, - { 11301, countof(PeepSpriteImage_Fries_12_sequence), PeepSpriteImage_Fries_12_sequence }, - { 6825, countof(PeepSpriteImage_Fries_13_sequence), PeepSpriteImage_Fries_13_sequence }, - { 6845, countof(PeepSpriteImage_Fries_14_sequence), PeepSpriteImage_Fries_14_sequence }, - { 6909, countof(PeepSpriteImage_Fries_15_sequence), PeepSpriteImage_Fries_15_sequence }, - { 11325, countof(PeepSpriteImage_Fries_16_sequence), PeepSpriteImage_Fries_16_sequence }, - { 6957, countof(PeepSpriteImage_Fries_17_sequence), PeepSpriteImage_Fries_17_sequence }, - { 11513, countof(PeepSpriteImage_Fries_18_sequence), PeepSpriteImage_Fries_18_sequence }, - { 11513, countof(PeepSpriteImage_Fries_19_sequence), PeepSpriteImage_Fries_19_sequence }, - { 11597, countof(PeepSpriteImage_Fries_20_sequence), PeepSpriteImage_Fries_20_sequence }, - { 11669, countof(PeepSpriteImage_Fries_21_sequence), PeepSpriteImage_Fries_21_sequence }, - { 11669, countof(PeepSpriteImage_Fries_22_sequence), PeepSpriteImage_Fries_22_sequence }, - { 11801, countof(PeepSpriteImage_Fries_23_sequence), PeepSpriteImage_Fries_23_sequence }, - { 11669, countof(PeepSpriteImage_Fries_24_sequence), PeepSpriteImage_Fries_24_sequence }, - { 11377, countof(PeepSpriteImage_Fries_25_sequence), PeepSpriteImage_Fries_25_sequence }, - { 6989, countof(PeepSpriteImage_Fries_26_sequence), PeepSpriteImage_Fries_26_sequence }, - { 7041, countof(PeepSpriteImage_Fries_27_sequence), PeepSpriteImage_Fries_27_sequence }, - { 7101, countof(PeepSpriteImage_Fries_28_sequence), PeepSpriteImage_Fries_28_sequence }, - { 11401, countof(PeepSpriteImage_Fries_29_sequence), PeepSpriteImage_Fries_29_sequence }, - { 7121, countof(PeepSpriteImage_Fries_30_sequence), PeepSpriteImage_Fries_30_sequence }, - { 7149, countof(PeepSpriteImage_Fries_31_sequence), PeepSpriteImage_Fries_31_sequence }, - { 7249, countof(PeepSpriteImage_Fries_32_sequence), PeepSpriteImage_Fries_32_sequence }, - { 7309, countof(PeepSpriteImage_Fries_33_sequence), PeepSpriteImage_Fries_33_sequence }, - { 7329, countof(PeepSpriteImage_Fries_34_sequence), PeepSpriteImage_Fries_34_sequence }, - { 7285, countof(PeepSpriteImage_Fries_35_sequence), PeepSpriteImage_Fries_35_sequence }, - { 7181, countof(PeepSpriteImage_Fries_36_sequence), PeepSpriteImage_Fries_36_sequence }, +static const rct_peep_animation PeepSpriteImage_Chips[] = { + { 7609, countof(PeepSpriteImage_Chips_00_sequence), PeepSpriteImage_Chips_00_sequence }, + { 6585, countof(PeepSpriteImage_Chips_01_sequence), PeepSpriteImage_Chips_01_sequence }, + { 7605, countof(PeepSpriteImage_Chips_02_sequence), PeepSpriteImage_Chips_02_sequence }, + { 7733, countof(PeepSpriteImage_Chips_03_sequence), PeepSpriteImage_Chips_03_sequence }, + { 6697, countof(PeepSpriteImage_Chips_04_sequence), PeepSpriteImage_Chips_04_sequence }, + { 6757, countof(PeepSpriteImage_Chips_05_sequence), PeepSpriteImage_Chips_05_sequence }, + { 6561, countof(PeepSpriteImage_Chips_06_sequence), PeepSpriteImage_Chips_06_sequence }, + { 7681, countof(PeepSpriteImage_Chips_07_sequence), PeepSpriteImage_Chips_07_sequence }, + { 7685, countof(PeepSpriteImage_Chips_08_sequence), PeepSpriteImage_Chips_08_sequence }, + { 6637, countof(PeepSpriteImage_Chips_09_sequence), PeepSpriteImage_Chips_09_sequence }, + { 6645, countof(PeepSpriteImage_Chips_10_sequence), PeepSpriteImage_Chips_10_sequence }, + { 6813, countof(PeepSpriteImage_Chips_11_sequence), PeepSpriteImage_Chips_11_sequence }, + { 11301, countof(PeepSpriteImage_Chips_12_sequence), PeepSpriteImage_Chips_12_sequence }, + { 6825, countof(PeepSpriteImage_Chips_13_sequence), PeepSpriteImage_Chips_13_sequence }, + { 6845, countof(PeepSpriteImage_Chips_14_sequence), PeepSpriteImage_Chips_14_sequence }, + { 6909, countof(PeepSpriteImage_Chips_15_sequence), PeepSpriteImage_Chips_15_sequence }, + { 11325, countof(PeepSpriteImage_Chips_16_sequence), PeepSpriteImage_Chips_16_sequence }, + { 6957, countof(PeepSpriteImage_Chips_17_sequence), PeepSpriteImage_Chips_17_sequence }, + { 11513, countof(PeepSpriteImage_Chips_18_sequence), PeepSpriteImage_Chips_18_sequence }, + { 11513, countof(PeepSpriteImage_Chips_19_sequence), PeepSpriteImage_Chips_19_sequence }, + { 11597, countof(PeepSpriteImage_Chips_20_sequence), PeepSpriteImage_Chips_20_sequence }, + { 11669, countof(PeepSpriteImage_Chips_21_sequence), PeepSpriteImage_Chips_21_sequence }, + { 11669, countof(PeepSpriteImage_Chips_22_sequence), PeepSpriteImage_Chips_22_sequence }, + { 11801, countof(PeepSpriteImage_Chips_23_sequence), PeepSpriteImage_Chips_23_sequence }, + { 11669, countof(PeepSpriteImage_Chips_24_sequence), PeepSpriteImage_Chips_24_sequence }, + { 11377, countof(PeepSpriteImage_Chips_25_sequence), PeepSpriteImage_Chips_25_sequence }, + { 6989, countof(PeepSpriteImage_Chips_26_sequence), PeepSpriteImage_Chips_26_sequence }, + { 7041, countof(PeepSpriteImage_Chips_27_sequence), PeepSpriteImage_Chips_27_sequence }, + { 7101, countof(PeepSpriteImage_Chips_28_sequence), PeepSpriteImage_Chips_28_sequence }, + { 11401, countof(PeepSpriteImage_Chips_29_sequence), PeepSpriteImage_Chips_29_sequence }, + { 7121, countof(PeepSpriteImage_Chips_30_sequence), PeepSpriteImage_Chips_30_sequence }, + { 7149, countof(PeepSpriteImage_Chips_31_sequence), PeepSpriteImage_Chips_31_sequence }, + { 7249, countof(PeepSpriteImage_Chips_32_sequence), PeepSpriteImage_Chips_32_sequence }, + { 7309, countof(PeepSpriteImage_Chips_33_sequence), PeepSpriteImage_Chips_33_sequence }, + { 7329, countof(PeepSpriteImage_Chips_34_sequence), PeepSpriteImage_Chips_34_sequence }, + { 7285, countof(PeepSpriteImage_Chips_35_sequence), PeepSpriteImage_Chips_35_sequence }, + { 7181, countof(PeepSpriteImage_Chips_36_sequence), PeepSpriteImage_Chips_36_sequence }, }; static const rct_peep_animation PeepSpriteImage_Burger[] = { @@ -4402,7 +4402,7 @@ static const rct_sprite_bounds PeepSpriteBounds_IceCream[] = { { 9, 22, 7 }, }; -static const rct_sprite_bounds PeepSpriteBounds_Fries[] = { +static const rct_sprite_bounds PeepSpriteBounds_Chips[] = { { 8, 16, 5 }, { 8, 16, 5 }, { 8, 16, 5 }, @@ -5421,7 +5421,7 @@ rct_peep_animation_entry g_peep_animation_entries[] = { PeepSpriteImage_EntertainerSheriff, PeepSpriteBounds_EntertainerSheriff }, { PeepSpriteImage_EntertainerPirate, PeepSpriteBounds_EntertainerPirate }, { PeepSpriteImage_IceCream, PeepSpriteBounds_IceCream }, - { PeepSpriteImage_Fries, PeepSpriteBounds_Fries }, + { PeepSpriteImage_Chips, PeepSpriteBounds_Chips }, { PeepSpriteImage_Burger, PeepSpriteBounds_Burger }, { PeepSpriteImage_Drink, PeepSpriteBounds_Drink }, { PeepSpriteImage_Balloon, PeepSpriteBounds_Balloon }, diff --git a/src/openrct2/rct1.h b/src/openrct2/rct1.h index cddd7cccba..5b565dee68 100644 --- a/src/openrct2/rct1.h +++ b/src/openrct2/rct1.h @@ -824,9 +824,9 @@ enum { RCT1_RIDE_TYPE_SWINGING_SHIP, RCT1_RIDE_TYPE_SWINGING_INVERTER_SHIP, RCT1_RIDE_TYPE_ICE_CREAM_STALL, - RCT1_RIDE_TYPE_FRIES_STALL, + RCT1_RIDE_TYPE_CHIPS_STALL, RCT1_RIDE_TYPE_DRINK_STALL, - RCT1_RIDE_TYPE_COTTON_CANDY_STALL, + RCT1_RIDE_TYPE_CANDYFLOSS_STALL, RCT1_RIDE_TYPE_BURGER_BAR, RCT1_RIDE_TYPE_MERRY_GO_ROUND, RCT1_RIDE_TYPE_BALLOON_STALL, @@ -837,7 +837,7 @@ enum { RCT1_RIDE_TYPE_3D_CINEMA, RCT1_RIDE_TYPE_GRAVITRON, RCT1_RIDE_TYPE_SPACE_RINGS, - RCT1_RIDE_TYPE_REVERSE_WHOA_BELLY_ROLLER_COASTER, + RCT1_RIDE_TYPE_REVERSE_FREEFALL_ROLLER_COASTER, RCT1_RIDE_TYPE_SOUVENIR_STALL, RCT1_RIDE_TYPE_VERTICAL_ROLLER_COASTER, RCT1_RIDE_TYPE_PIZZA_STALL, diff --git a/src/openrct2/rct1/tables.cpp b/src/openrct2/rct1/tables.cpp index a819cc351d..1867fc8d7b 100644 --- a/src/openrct2/rct1/tables.cpp +++ b/src/openrct2/rct1/tables.cpp @@ -92,7 +92,7 @@ namespace RCT1 PEEP_SPRITE_TYPE_ENTERTAINER_KNIGHT, // 0x0A PEEP_SPRITE_TYPE_ENTERTAINER_ASTRONAUT, // 0x0B PEEP_SPRITE_TYPE_ICE_CREAM, // 0x0C - PEEP_SPRITE_TYPE_FRIES, // 0x0D + PEEP_SPRITE_TYPE_CHIPS, // 0x0D PEEP_SPRITE_TYPE_BURGER, // 0x0E PEEP_SPRITE_TYPE_DRINK, // 0x0F PEEP_SPRITE_TYPE_BALLOON, // 0x10 @@ -373,9 +373,9 @@ namespace RCT1 case RCT1_RIDE_TYPE_HEDGE_MAZE: case RCT1_RIDE_TYPE_SPIRAL_SLIDE: case RCT1_RIDE_TYPE_ICE_CREAM_STALL: - case RCT1_RIDE_TYPE_FRIES_STALL: + case RCT1_RIDE_TYPE_CHIPS_STALL: case RCT1_RIDE_TYPE_DRINK_STALL: - case RCT1_RIDE_TYPE_COTTON_CANDY_STALL: + case RCT1_RIDE_TYPE_CANDYFLOSS_STALL: case RCT1_RIDE_TYPE_BURGER_BAR: case RCT1_RIDE_TYPE_BALLOON_STALL: case RCT1_RIDE_TYPE_INFORMATION_KIOSK: @@ -722,9 +722,9 @@ namespace RCT1 "SWSH1 ", // RCT1_RIDE_TYPE_SWINGING_SHIP "SWSH2 ", // RCT1_RIDE_TYPE_SWINGING_INVERTER_SHIP "ICECR1 ", // RCT1_RIDE_TYPE_ICE_CREAM_STALL - "CHPSH ", // RCT1_RIDE_TYPE_FRIES_STALL + "CHPSH ", // RCT1_RIDE_TYPE_CHIPS_STALL "DRNKS ", // RCT1_RIDE_TYPE_DRINK_STALL - "CNDYF ", // RCT1_RIDE_TYPE_COTTON_CANDY_STALL + "CNDYF ", // RCT1_RIDE_TYPE_CANDYFLOSS_STALL "BURGB ", // RCT1_RIDE_TYPE_BURGER_BAR "MGR1 ", // RCT1_RIDE_TYPE_MERRY_GO_ROUND "BALLN ", // RCT1_RIDE_TYPE_BALLOON_STALL @@ -735,7 +735,7 @@ namespace RCT1 "C3D ", // RCT1_RIDE_TYPE_3D_CINEMA "TOPSP1 ", // RCT1_RIDE_TYPE_GRAVITRON "SRINGS ", // RCT1_RIDE_TYPE_SPACE_RINGS - "REVF1 ", // RCT1_RIDE_TYPE_REVERSE_WHOA_BELLY_ROLLER_COASTER + "REVF1 ", // RCT1_RIDE_TYPE_REVERSE_FREEFALL_ROLLER_COASTER "SOUVS ", // RCT1_RIDE_TYPE_SOUVENIR_STALL "BMVD ", // RCT1_RIDE_TYPE_VERTICAL_ROLLER_COASTER "PIZZS ", // RCT1_RIDE_TYPE_PIZZA_STALL diff --git a/src/openrct2/ride/coaster/air_powered_vertical_coaster.c b/src/openrct2/ride/coaster/air_powered_vertical_coaster.c index 1fbb07b4ae..df89a01187 100644 --- a/src/openrct2/ride/coaster/air_powered_vertical_coaster.c +++ b/src/openrct2/ride/coaster/air_powered_vertical_coaster.c @@ -790,9 +790,9 @@ TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(sint32 tra return air_powered_vertical_rc_track_right_bank; case TRACK_ELEM_BRAKES: return air_powered_vertical_rc_track_brakes; - case TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE: + case TRACK_ELEM_REVERSE_FREEFALL_SLOPE: return air_powered_vertical_rc_track_vertical_slope_up; - case TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL: + case TRACK_ELEM_REVERSE_FREEFALL_VERTICAL: return air_powered_vertical_rc_track_vertical_up; case TRACK_ELEM_AIR_THRUST_TOP_CAP: return air_powered_vertical_rc_track_vertical_top; diff --git a/src/openrct2/ride/coaster/reverse_freefall_coaster.c b/src/openrct2/ride/coaster/reverse_freefall_coaster.c index 77493f28b1..ffd6487397 100644 --- a/src/openrct2/ride/coaster/reverse_freefall_coaster.c +++ b/src/openrct2/ride/coaster/reverse_freefall_coaster.c @@ -364,9 +364,9 @@ TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(sint32 trackTy case TRACK_ELEM_BEGIN_STATION: case TRACK_ELEM_MIDDLE_STATION: return paint_reverse_freefall_rc_station; - case TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE: + case TRACK_ELEM_REVERSE_FREEFALL_SLOPE: return paint_reverse_freefall_rc_slope; - case TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL: + case TRACK_ELEM_REVERSE_FREEFALL_VERTICAL: return paint_reverse_freefall_rc_vertical; } return NULL; diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 9a6f7cc0a4..89d2d8d8e9 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -4529,7 +4529,7 @@ static rct_vehicle *vehicle_create_car( vehicle->sprite_direction = scenario_rand() & 0x1E; chosenLoc.y = y + (scenario_rand() & 0xFF); chosenLoc.x = x + (scenario_rand() & 0xFF); - } while (vehicle_update_bumper_car_collision(vehicle, chosenLoc.x, chosenLoc.y, NULL)); + } while (vehicle_update_dodgems_collision(vehicle, chosenLoc.x, chosenLoc.y, NULL)); sprite_move(chosenLoc.x, chosenLoc.y, z, (rct_sprite*)vehicle); } else { @@ -8065,9 +8065,9 @@ bool shop_item_is_food_or_drink(sint32 shopItem) switch (shopItem) { case SHOP_ITEM_DRINK: case SHOP_ITEM_BURGER: - case SHOP_ITEM_FRIES: + case SHOP_ITEM_CHIPS: case SHOP_ITEM_ICE_CREAM: - case SHOP_ITEM_COTTON_CANDY: + case SHOP_ITEM_CANDYFLOSS: case SHOP_ITEM_PIZZA: case SHOP_ITEM_POPCORN: case SHOP_ITEM_HOT_DOG: @@ -8101,9 +8101,9 @@ bool shop_item_is_food(sint32 shopItem) { switch (shopItem) { case SHOP_ITEM_BURGER: - case SHOP_ITEM_FRIES: + case SHOP_ITEM_CHIPS: case SHOP_ITEM_ICE_CREAM: - case SHOP_ITEM_COTTON_CANDY: + case SHOP_ITEM_CANDYFLOSS: case SHOP_ITEM_PIZZA: case SHOP_ITEM_POPCORN: case SHOP_ITEM_HOT_DOG: diff --git a/src/openrct2/ride/ride.h b/src/openrct2/ride/ride.h index 087afb2284..b72e860dbd 100644 --- a/src/openrct2/ride/ride.h +++ b/src/openrct2/ride/ride.h @@ -813,9 +813,9 @@ enum { SHOP_ITEM_UMBRELLA, SHOP_ITEM_DRINK, SHOP_ITEM_BURGER, - SHOP_ITEM_FRIES, + SHOP_ITEM_CHIPS, SHOP_ITEM_ICE_CREAM, - SHOP_ITEM_COTTON_CANDY, + SHOP_ITEM_CANDYFLOSS, SHOP_ITEM_EMPTY_CAN, SHOP_ITEM_RUBBISH, SHOP_ITEM_EMPTY_BURGER_BOX, diff --git a/src/openrct2/ride/ride_data.c b/src/openrct2/ride/ride_data.c index 6356f95bf1..5b036d2aae 100644 --- a/src/openrct2/ride/ride_data.c +++ b/src/openrct2/ride/ride_data.c @@ -58,7 +58,7 @@ const bool hasRunningTrack[0x60] = { true, // 16 Go Karts true, // 17 Log Flume true, // 18 River Rapids - false, // 19 Bumper Cars + false, // 19 Dodgems false, // 1a Pirate Ship false, // 1b Swinging Inverter Ship false, // 1c Food Stall @@ -158,7 +158,7 @@ const uint8 initialUpkeepCosts[0x60] = { 50, // 16 Go Karts 80, // 17 Log Flume 82, // 18 River Rapids - 50, // 19 Bumper Cars + 50, // 19 Dodgems 50, // 1a Pirate Ship 50, // 1b Swinging Inverter Ship 50, // 1c Food Stall @@ -251,7 +251,7 @@ const uint8 costPerTrackPiece[0x60] = { 0, // 16 Go Karts 0, // 17 Log Flume 0, // 18 River Rapids - 0, // 19 Bumper Cars + 0, // 19 Dodgems 0, // 1a Pirate Ship 0, // 1b Swinging Inverter Ship 0, // 1c Food Stall @@ -347,7 +347,7 @@ const uint8 rideUnknownData1[0x60] = { 8, // 16 Go Karts 9, // 17 Log Flume 10, // 18 River Rapids - 5, // 19 Bumper Cars + 5, // 19 Dodgems 0, // 1a Pirate Ship 0, // 1b Swinging Inverter Ship 0, // 1c Food Stall @@ -444,7 +444,7 @@ const bool rideUnknownData2[0x60] = { false, // 16 Go Karts false, // 17 Log Flume false, // 18 River Rapids - false, // 19 Bumper Cars + false, // 19 Dodgems false, // 1a Pirate Ship false, // 1b Swinging Inverter Ship false, // 1c Food Stall @@ -538,7 +538,7 @@ const uint8 rideUnknownData3[0x60] = { 0, // 16 Go Karts 10, // 17 Log Flume 10, // 18 River Rapids - 0, // 19 Bumper Cars + 0, // 19 Dodgems 0, // 1a Pirate Ship 0, // 1b Swinging Inverter Ship 0, // 1c Food Stall @@ -632,7 +632,7 @@ const uint8 rideBonusValue[0x60] = { 55, // 16 Go Karts 65, // 17 Log Flume 70, // 18 River Rapids - 35, // 19 Bumper Cars + 35, // 19 Dodgems 35, // 1a Pirate Ship 35, // 1b Swinging Inverter Ship 15, // 1c Food Stall @@ -742,7 +742,7 @@ const rct_ride_name_convention RideNameConvention[96] = { { RIDE_COMPONENT_TYPE_CAR, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 16 Go Karts { RIDE_COMPONENT_TYPE_BOAT, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 17 Log Flume { RIDE_COMPONENT_TYPE_BOAT, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 18 River Rapids - { RIDE_COMPONENT_TYPE_CAR, RIDE_COMPONENT_TYPE_BUILDING, RIDE_COMPONENT_TYPE_STATION }, // 19 Bumper Cars + { RIDE_COMPONENT_TYPE_CAR, RIDE_COMPONENT_TYPE_BUILDING, RIDE_COMPONENT_TYPE_STATION }, // 19 Dodgems { RIDE_COMPONENT_TYPE_SHIP, RIDE_COMPONENT_TYPE_STRUCTURE, RIDE_COMPONENT_TYPE_STATION }, // 1a Pirate Ship { RIDE_COMPONENT_TYPE_SHIP, RIDE_COMPONENT_TYPE_STRUCTURE, RIDE_COMPONENT_TYPE_STATION }, // 1b Swinging Inverter Ship { RIDE_COMPONENT_TYPE_CAR, RIDE_COMPONENT_TYPE_BUILDING, RIDE_COMPONENT_TYPE_STATION }, // 1c Food Stall @@ -934,7 +934,7 @@ const uint8 RideAvailableModes[] = { RIDE_MODE_RACE, RIDE_MODE_CONTINUOUS_CIRCUIT, 0xFF, // 16 Go Karts RIDE_MODE_CONTINUOUS_CIRCUIT, 0xFF, // 17 Log Flume RIDE_MODE_CONTINUOUS_CIRCUIT, 0xFF, // 18 River Rapids - RIDE_MODE_BUMPERCAR, 0xFF, // 19 Bumper Cars + RIDE_MODE_BUMPERCAR, 0xFF, // 19 Dodgems RIDE_MODE_SWING, 0xFF, // 1A Pirate Ship RIDE_MODE_SWING, 0xFF, // 1B Swinging Inverter Ship RIDE_MODE_SHOP_STALL, 0xFF, // 1C Food Stall @@ -1032,7 +1032,7 @@ const uint8 RideAvailableBreakdowns[] = { (1 << BREAKDOWN_VEHICLE_MALFUNCTION), // 16 Go Karts (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_CONTROL_FAILURE), // 17 Log Flume (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_CONTROL_FAILURE), // 18 River Rapids - (1 << BREAKDOWN_SAFETY_CUT_OUT), // 19 Bumper Cars + (1 << BREAKDOWN_SAFETY_CUT_OUT), // 19 Dodgems (1 << BREAKDOWN_SAFETY_CUT_OUT), // 1A Pirate Ship (1 << BREAKDOWN_SAFETY_CUT_OUT), // 1B Swinging Inverter Ship 0, // 1C Food Stall @@ -1412,9 +1412,9 @@ const money8 DefaultShopItemPrice[SHOP_ITEM_COUNT] = { MONEY(2,50), // SHOP_ITEM_UMBRELLA MONEY(1,20), // SHOP_ITEM_DRINK MONEY(1,50), // SHOP_ITEM_BURGER - MONEY(1,50), // SHOP_ITEM_FRIES + MONEY(1,50), // SHOP_ITEM_CHIPS MONEY(0,90), // SHOP_ITEM_ICE_CREAM - MONEY(0,80), // SHOP_ITEM_COTTON_CANDY + MONEY(0,80), // SHOP_ITEM_CANDYFLOSS MONEY(0,00), // SHOP_ITEM_EMPTY_CAN MONEY(0,00), // SHOP_ITEM_RUBBISH MONEY(0,00), // SHOP_ITEM_EMPTY_BURGER_BOX @@ -1528,9 +1528,9 @@ const uint32 ShopItemImage[SHOP_ITEM_COUNT] = { SPR_SHOP_ITEM_UMBRELLA, SPR_SHOP_ITEM_DRINK, SPR_SHOP_ITEM_BURGER, - SPR_SHOP_ITEM_FRIES, + SPR_SHOP_ITEM_CHIPS, SPR_SHOP_ITEM_ICE_CREAM, - SPR_SHOP_ITEM_COTTON_CANDY, + SPR_SHOP_ITEM_CANDYFLOSS, SPR_SHOP_ITEM_EMPTY_CAN, SPR_SHOP_ITEM_RUBBISH, SPR_SHOP_ITEM_EMPTY_BURGER_BOX, @@ -1663,7 +1663,7 @@ const rct_ride_lift_data RideLiftData[] = { { 255, 5, 5 }, // Go Karts { 255, 5, 5 }, // Log Flume { 255, 5, 5 }, // River Rapids - { 255, 5, 5 }, // Bumper Cars + { 255, 5, 5 }, // Dodgems { 255, 5, 5 }, // Pirate Ship { 255, 5, 5 }, // Swinging Inverter Ship { 255, 5, 5 }, // Food Stall @@ -2435,9 +2435,9 @@ const rct_shop_item_stats ShopItemStats[SHOP_ITEM_COUNT] = { { 20, 35, 25, 50 }, // SHOP_ITEM_UMBRELLA { 3, 12, 20, 10 }, // SHOP_ITEM_DRINK { 5, 19, 19, 22 }, // SHOP_ITEM_BURGER - { 4, 16, 16, 18 }, // SHOP_ITEM_FRIES + { 4, 16, 16, 18 }, // SHOP_ITEM_CHIPS { 4, 10, 15, 6 }, // SHOP_ITEM_ICE_CREAM - { 3, 9, 9, 6 }, // SHOP_ITEM_COTTON_CANDY + { 3, 9, 9, 6 }, // SHOP_ITEM_CANDYFLOSS { 0, 0, 0, 0 }, // SHOP_ITEM_EMPTY_CAN { 0, 0, 0, 0 }, // SHOP_ITEM_RUBBISH { 0, 0, 0, 0 }, // SHOP_ITEM_EMPTY_BURGER_BOX diff --git a/src/openrct2/ride/ride_ratings.c b/src/openrct2/ride/ride_ratings.c index 00c8169d31..194158aa64 100644 --- a/src/openrct2/ride/ride_ratings.c +++ b/src/openrct2/ride/ride_ratings.c @@ -717,7 +717,7 @@ static uint16 ride_compute_upkeep(rct_ride *ride) // The data originally here was 20's and 0's. The 20's all represented // rides that had tracks. The 0's were fixed rides like crooked house or - // bumper cars. + // dodgems. // Data source is 0x0097E3AC if (hasRunningTrack[ride->type]) { totalLength *= 20; diff --git a/src/openrct2/ride/track.c b/src/openrct2/ride/track.c index b253659461..6a03382678 100644 --- a/src/openrct2/ride/track.c +++ b/src/openrct2/ride/track.c @@ -167,8 +167,8 @@ const rct_trackdefinition TrackDefinitions[256] = { { TRACK_FLAT, TRACK_SLOPE_NONE, TRACK_SLOPE_DOWN_60, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE { TRACK_FLAT, TRACK_SLOPE_DOWN_60, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122 { TRACK_LIFT_HILL_CABLE, TRACK_SLOPE_DOWN_60, TRACK_SLOPE_UP_25, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_CABLE_LIFT_HILL - { TRACK_WHOA_BELLY, TRACK_VANGLE_WHOA_BELLY, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_REVERSE_WHOA_BELLY_SLOPE - { TRACK_WHOA_BELLY, TRACK_VANGLE_WHOA_BELLY, TRACK_VANGLE_WHOA_BELLY, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_REVERSE_WHOA_BELLY_VERTICAL + { TRACK_REVERSE_FREEFALL, TRACK_VANGLE_REVERSE_FREEFALL, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_REVERSE_FREEFALL_SLOPE + { TRACK_REVERSE_FREEFALL, TRACK_VANGLE_REVERSE_FREEFALL, TRACK_VANGLE_REVERSE_FREEFALL, TRACK_BANK_NONE,TRACK_BANK_NONE, TRACK_NONE }, // ELEM_REVERSE_FREEFALL_VERTICAL { TRACK_FLAT, TRACK_SLOPE_UP_90, TRACK_SLOPE_UP_90, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_90_DEG_UP { TRACK_FLAT, TRACK_SLOPE_DOWN_90, TRACK_SLOPE_DOWN_90, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_90_DEG_DOWN { TRACK_FLAT, TRACK_SLOPE_UP_90, TRACK_SLOPE_UP_60, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_NONE }, // ELEM_60_DEG_UP_TO_90_DEG_UP @@ -428,8 +428,8 @@ const rct_trackdefinition FlatRideTrackDefinitions[256] = { { TRACK_FLAT, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // FLAT_TRACK_ELEM_1_X_1_B { TRACK_FLAT, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, TRACK_216 }, // FLAT_TRACK_ELEM_1_X_4_C { TRACK_FLAT, TRACK_SLOPE_NONE, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // FLAT_TRACK_ELEM_3_X_3 - { TRACK_WHOA_BELLY, TRACK_SLOPE_UP_90, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // 124 - { TRACK_WHOA_BELLY, TRACK_SLOPE_UP_90, TRACK_SLOPE_UP_90, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // 125 + { TRACK_REVERSE_FREEFALL, TRACK_SLOPE_UP_90, TRACK_SLOPE_NONE, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // 124 + { TRACK_REVERSE_FREEFALL, TRACK_SLOPE_UP_90, TRACK_SLOPE_UP_90, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // 125 { TRACK_FLAT, TRACK_SLOPE_UP_90, TRACK_SLOPE_UP_90, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // 126 { TRACK_FLAT, TRACK_SLOPE_DOWN_90, TRACK_SLOPE_DOWN_90, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // 127 { TRACK_FLAT, TRACK_SLOPE_UP_90, TRACK_SLOPE_UP_60, TRACK_BANK_NONE, TRACK_BANK_NONE, 0 }, // 128 diff --git a/src/openrct2/ride/track.h b/src/openrct2/ride/track.h index 279a758b4a..fc2509e116 100644 --- a/src/openrct2/ride/track.h +++ b/src/openrct2/ride/track.h @@ -119,7 +119,7 @@ enum { TRACK_LOG_FLUME_REVERSER, TRACK_HEARTLINE_ROLL, TRACK_REVERSER, - TRACK_WHOA_BELLY, + TRACK_REVERSE_FREEFALL, TRACK_SLOPE_TO_FLAT, TRACK_BLOCK_BRAKES, TRACK_SLOPE_ROLL_BANKING, @@ -171,7 +171,7 @@ enum { TRACK_SLOPE_DOWN_90 = 18, TRACK_VANGLE_TOWER = 10, - TRACK_VANGLE_WHOA_BELLY = 10 + TRACK_VANGLE_REVERSE_FREEFALL = 10 }; enum { @@ -335,8 +335,8 @@ enum { TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE, TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122, TRACK_ELEM_CABLE_LIFT_HILL, - TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE, - TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL, + TRACK_ELEM_REVERSE_FREEFALL_SLOPE, + TRACK_ELEM_REVERSE_FREEFALL_VERTICAL, TRACK_ELEM_90_DEG_UP, TRACK_ELEM_90_DEG_DOWN, TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP, diff --git a/src/openrct2/ride/track_data.c b/src/openrct2/ride/track_data.c index 9adff5b41a..768b9f4a3f 100644 --- a/src/openrct2/ride/track_data.c +++ b/src/openrct2/ride/track_data.c @@ -399,8 +399,8 @@ const rct_track_coordinates TrackCoordinates[256] = { { 0, 0, 88, 0, -96, 0 }, // ELEM_60_DEG_DOWN_TO_FLAT_LONG_BASE { 0, 0, 88, 0, -96, 0 }, // ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE { 0, 0, 0, -96, -96, 0 }, // ELEM_CABLE_LIFT_HILL - { 0, 0, 0, 240, -160, 0 }, // ELEM_REVERSE_WHOA_BELLY_SLOPE - { 0, 0, 0, 80, 32, 0 }, // ELEM_REVERSE_WHOA_BELLY_VERTICAL + { 0, 0, 0, 240, -160, 0 }, // ELEM_REVERSE_FREEFALL_SLOPE + { 0, 0, 0, 80, 32, 0 }, // ELEM_REVERSE_FREEFALL_VERTICAL { 0, 0, 0, 32, 32, 0 }, // ELEM_90_DEG_UP { 0, 0, 32, 0, 32, 0 }, // ELEM_90_DEG_DOWN { 0, 0, 0, 56, 32, 0 }, // ELEM_60_DEG_UP_TO_90_DEG_UP @@ -1097,7 +1097,7 @@ const uint64 RideTypePossibleTrackConfigurations[RIDE_TYPE_COUNT] = { /* RIDE_TYPE_3D_CINEMA */ 0, /* RIDE_TYPE_TOP_SPIN */ 0, /* RIDE_TYPE_SPACE_RINGS */ 0, - /* RIDE_TYPE_REVERSE_FREEFALL_COASTER */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL_STEEP) | (1ULL << TRACK_WHOA_BELLY), + /* RIDE_TYPE_REVERSE_FREEFALL_COASTER */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL_STEEP) | (1ULL << TRACK_REVERSE_FREEFALL), /* RIDE_TYPE_LIFT */ (1ULL << TRACK_TOWER_BASE), /* RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER */ (1ULL << TRACK_FLAT) | (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL) | (1ULL << TRACK_LIFT_HILL_STEEP) | (1ULL << TRACK_FLAT_ROLL_BANKING) | (1ULL << TRACK_VERTICAL_LOOP) | (1ULL << TRACK_SLOPE) | (1ULL << TRACK_SLOPE_STEEP) | (1ULL << TRACK_SLOPE_LONG) | (1ULL << TRACK_SLOPE_CURVE) | (1ULL << TRACK_SLOPE_CURVE_STEEP) | (1ULL << TRACK_S_BEND) | (1ULL << TRACK_CURVE_SMALL) | (1ULL << TRACK_CURVE) | (1ULL << TRACK_HELIX_SMALL) | (1ULL << TRACK_BRAKES) | (1ULL << TRACK_ON_RIDE_PHOTO) | (1ULL << TRACK_SLOPE_VERTICAL) | (1ULL << TRACK_SLOPE_CURVE_BANKED) | (1ULL << TRACK_BLOCK_BRAKES) | (1ULL << TRACK_SLOPE_ROLL_BANKING) | (1ULL << TRACK_CURVE_VERTICAL), /* RIDE_TYPE_CASH_MACHINE */ 0, @@ -1130,7 +1130,7 @@ const uint64 RideTypePossibleTrackConfigurations[RIDE_TYPE_COUNT] = { /* RIDE_TYPE_MONORAIL_CYCLES */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_S_BEND) | (1ULL << TRACK_CURVE_SMALL) | (1ULL << TRACK_CURVE), /* RIDE_TYPE_COMPACT_INVERTED_COASTER */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL) | (1ULL << TRACK_FLAT_ROLL_BANKING) | (1ULL << TRACK_VERTICAL_LOOP) | (1ULL << TRACK_SLOPE) | (1ULL << TRACK_SLOPE_STEEP) | (1ULL << TRACK_SLOPE_CURVE) | (1ULL << TRACK_SLOPE_CURVE_STEEP) | (1ULL << TRACK_S_BEND) | (1ULL << TRACK_CURVE_SMALL) | (1ULL << TRACK_CURVE) | (1ULL << TRACK_TWIST) | (1ULL << TRACK_HALF_LOOP) | (1ULL << TRACK_CORKSCREW) | (1ULL << TRACK_HELIX_LARGE) | (1ULL << TRACK_BRAKES) | (1ULL << TRACK_ON_RIDE_PHOTO) | (1ULL << TRACK_SLOPE_VERTICAL) | (1ULL << TRACK_BLOCK_BRAKES), /* RIDE_TYPE_WATER_COASTER */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL) | (1ULL << TRACK_FLAT_ROLL_BANKING) | (1ULL << TRACK_SLOPE) | (1ULL << TRACK_SLOPE_STEEP) | (1ULL << TRACK_SLOPE_CURVE) | (1ULL << TRACK_S_BEND) | (1ULL << TRACK_CURVE_SMALL) | (1ULL << TRACK_CURVE) | (1ULL << TRACK_HELIX_SMALL) | (1ULL << TRACK_BRAKES) | (1ULL << TRACK_BLOCK_BRAKES), - /* RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL_STEEP) | (1ULL << TRACK_LIFT_HILL_CURVE) | (1ULL << TRACK_FLAT_ROLL_BANKING) | (1ULL << TRACK_CURVE) | (1ULL << TRACK_BRAKES) | (1ULL << TRACK_WHOA_BELLY) | (1ULL << TRACK_SLOPE_TO_FLAT), + /* RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL_STEEP) | (1ULL << TRACK_LIFT_HILL_CURVE) | (1ULL << TRACK_FLAT_ROLL_BANKING) | (1ULL << TRACK_CURVE) | (1ULL << TRACK_BRAKES) | (1ULL << TRACK_REVERSE_FREEFALL) | (1ULL << TRACK_SLOPE_TO_FLAT), /* RIDE_TYPE_INVERTED_HAIRPIN_COASTER */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_LIFT_HILL) | (1ULL << TRACK_LIFT_HILL_STEEP) | (1ULL << TRACK_FLAT_ROLL_BANKING) | (1ULL << TRACK_SLOPE) | (1ULL << TRACK_SLOPE_STEEP) | (1ULL << TRACK_SLOPE_LONG) | (1ULL << TRACK_SLOPE_CURVE) | (1ULL << TRACK_CURVE_VERY_SMALL) | (1ULL << TRACK_CURVE_SMALL) | (1ULL << TRACK_BRAKES) | (1ULL << TRACK_BLOCK_BRAKES), /* RIDE_TYPE_MAGIC_CARPET */ 0, /* RIDE_TYPE_SUBMARINE_RIDE */ (1ULL << TRACK_STRAIGHT) | (1ULL << TRACK_STATION_END) | (1ULL << TRACK_CURVE_VERY_SMALL) | (1ULL << TRACK_CURVE_SMALL), @@ -5591,8 +5591,8 @@ const uint8 TrackPieceLengths[256] = { 165, // TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE 165, // TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122 138, // TRACK_ELEM_CABLE_LIFT_HILL - 32, // TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE - 32, // TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL + 32, // TRACK_ELEM_REVERSE_FREEFALL_SLOPE + 32, // TRACK_ELEM_REVERSE_FREEFALL_VERTICAL 32, // TRACK_ELEM_90_DEG_UP 32, // TRACK_ELEM_90_DEG_DOWN 32, // TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP @@ -31250,8 +31250,8 @@ const money32 TrackPricing[] = { 376832, // TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE 376832, // TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122 643072, // TRACK_ELEM_CABLE_LIFT_HILL - 491520, // TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE - 65536, // TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL + 491520, // TRACK_ELEM_REVERSE_FREEFALL_SLOPE + 65536, // TRACK_ELEM_REVERSE_FREEFALL_VERTICAL 69632, // TRACK_ELEM_90_DEG_UP 69632, // TRACK_ELEM_90_DEG_DOWN 114688, // TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP @@ -32024,8 +32024,8 @@ const uint8 TrackElementMirrorMap[] = { TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE, TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122, TRACK_ELEM_CABLE_LIFT_HILL, - TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE, - TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL, + TRACK_ELEM_REVERSE_FREEFALL_SLOPE, + TRACK_ELEM_REVERSE_FREEFALL_VERTICAL, TRACK_ELEM_90_DEG_UP, TRACK_ELEM_90_DEG_DOWN, TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP, @@ -32284,8 +32284,8 @@ const uint32 TrackHeightMarkerPositions[256] = { (1 << 0) | (1 << 3), // TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE (1 << 0) | (1 << 3), // TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122 (1 << 0) | (1 << 3), // TRACK_ELEM_CABLE_LIFT_HILL - (1 << 0) | (1 << 5), // TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE - (1 << 0), // TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL + (1 << 0) | (1 << 5), // TRACK_ELEM_REVERSE_FREEFALL_SLOPE + (1 << 0), // TRACK_ELEM_REVERSE_FREEFALL_VERTICAL (1 << 0), // TRACK_ELEM_90_DEG_UP (1 << 0), // TRACK_ELEM_90_DEG_DOWN (1 << 0), // TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP @@ -32544,8 +32544,8 @@ const uint8 TrackSequenceElementAllowedWallEdges[][16] = { { 0b1010, 0b1010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE { 0b1010, 0b1010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122 { 0b1010, 0b1010, 0b1010, 0b1010, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_CABLE_LIFT_HILL - { 0b1010, 0b1010, 0b1010, 0b1010, 0b1010, 0b1011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL + { 0b1010, 0b1010, 0b1010, 0b1010, 0b1010, 0b1011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_REVERSE_FREEFALL_SLOPE + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_REVERSE_FREEFALL_VERTICAL { 0b1111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_90_DEG_UP { 0b1111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_90_DEG_DOWN { 0b1011, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP @@ -33319,8 +33319,8 @@ const uint16 TrackFlags[] = { /* TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE */ TRACK_ELEM_FLAG_DOWN, /* TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122 */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_0100, /* TRACK_ELEM_CABLE_LIFT_HILL */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_0100, - /* TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE */ TRACK_ELEM_FLAG_UP, - /* TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL */ TRACK_ELEM_FLAG_UP, + /* TRACK_ELEM_REVERSE_FREEFALL_SLOPE */ TRACK_ELEM_FLAG_UP, + /* TRACK_ELEM_REVERSE_FREEFALL_VERTICAL */ TRACK_ELEM_FLAG_UP, /* TRACK_ELEM_90_DEG_UP */ TRACK_ELEM_FLAG_UP, /* TRACK_ELEM_90_DEG_DOWN */ TRACK_ELEM_FLAG_DOWN | TRACK_ELEM_FLAG_1000, /* TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP */ TRACK_ELEM_FLAG_UP | TRACK_ELEM_FLAG_0100, diff --git a/src/openrct2/ride/track_data_old.c b/src/openrct2/ride/track_data_old.c index af4f12087f..1d799cb59b 100644 --- a/src/openrct2/ride/track_data_old.c +++ b/src/openrct2/ride/track_data_old.c @@ -9510,8 +9510,8 @@ static const uint32 _OldReverseFreefallCoasterTrackPaintFunctions[256] = { 0, 0, 0, - 0x00768DF4, // TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE - 0x00768E04, // TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL + 0x00768DF4, // TRACK_ELEM_REVERSE_FREEFALL_SLOPE + 0x00768E04, // TRACK_ELEM_REVERSE_FREEFALL_VERTICAL 0, 0, 0, @@ -16790,8 +16790,8 @@ static const uint32 _OldAirPoweredVerticalCoasterTrackPaintFunctions[256] = { 0, 0, 0, - 0x008AFB14, // TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE - 0x008AFB34, // TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL + 0x008AFB14, // TRACK_ELEM_REVERSE_FREEFALL_SLOPE + 0x008AFB34, // TRACK_ELEM_REVERSE_FREEFALL_VERTICAL 0, 0, 0, diff --git a/src/openrct2/ride/track_design.c b/src/openrct2/ride/track_design.c index b031523e82..3cd258f59f 100644 --- a/src/openrct2/ride/track_design.c +++ b/src/openrct2/ride/track_design.c @@ -1833,7 +1833,7 @@ static void track_design_preview_clear_map() map_element->clearance_height = 0; map_element->properties.surface.slope = 0; map_element->properties.surface.terrain = 0; - map_element->properties.surface.grass_length = 1; + map_element->properties.surface.grass_length = GRASS_LENGTH_CLEAR_0; map_element->properties.surface.ownership = OWNERSHIP_OWNED; } map_update_tile_pointers(); diff --git a/src/openrct2/ride/vehicle.c b/src/openrct2/ride/vehicle.c index 399188d8e0..d5cacbbc01 100644 --- a/src/openrct2/ride/vehicle.c +++ b/src/openrct2/ride/vehicle.c @@ -53,7 +53,7 @@ static void vehicle_update_rotating(rct_vehicle* vehicle); static void vehicle_update_space_rings_operating(rct_vehicle* vehicle); static void vehicle_update_haunted_house_operating(rct_vehicle* vehicle); static void vehicle_update_crooked_house_operating(rct_vehicle* vehicle); -static void vehicle_update_bumpcar_mode(rct_vehicle* vehicle); +static void vehicle_update_dodgems_mode(rct_vehicle* vehicle); static void vehicle_update_swinging(rct_vehicle* vehicle); static void vehicle_update_simulator_operating(rct_vehicle* vehicle); static void vehicle_update_top_spin_operating(rct_vehicle* vehicle); @@ -68,7 +68,7 @@ static void vehicle_update_waiting_for_cable_lift(rct_vehicle *vehicle); static void vehicle_update_travelling_cable_lift(rct_vehicle* vehicle); static void vehicle_update_crash_setup(rct_vehicle* vehicle); static void vehicle_update_collision_setup(rct_vehicle* vehicle); -static sint32 vehicle_update_motion_bumper_car(rct_vehicle* vehicle); +static sint32 vehicle_update_motion_dodgems(rct_vehicle* vehicle); static void sub_6D63D4(rct_vehicle *vehicle); static bool vehicle_update_motion_collision_detection(rct_vehicle *vehicle, sint16 x, sint16 y, sint16 z, uint16 *otherVehicleIndex); static void vehicle_update_sound(rct_vehicle *vehicle); @@ -1620,8 +1620,8 @@ static void vehicle_update(rct_vehicle *vehicle) case VEHICLE_STATUS_CRASHED: vehicle_update_crash(vehicle); break; - case VEHICLE_STATUS_TRAVELLING_BUMPER_CARS: - vehicle_update_bumpcar_mode(vehicle); + case VEHICLE_STATUS_TRAVELLING_DODGEMS: + vehicle_update_dodgems_mode(vehicle); break; case VEHICLE_STATUS_SWINGING: vehicle_update_swinging(vehicle); @@ -2036,7 +2036,7 @@ static void vehicle_update_waiting_for_passengers(rct_vehicle* vehicle){ * * rct2: 0x006D91BF */ -static void vehicle_update_bumpcar_mode(rct_vehicle* vehicle) { +static void vehicle_update_dodgems_mode(rct_vehicle *vehicle) { rct_ride* ride = get_ride(vehicle->ride); rct_ride_entry* rideEntry = get_ride_entry(vehicle->ride_subtype); rct_ride_entry_vehicle* vehicleEntry = &rideEntry->vehicles[vehicle->vehicle_type]; @@ -2046,7 +2046,7 @@ static void vehicle_update_bumpcar_mode(rct_vehicle* vehicle) { vehicle_invalidate(vehicle); } - vehicle_update_motion_bumper_car(vehicle); + vehicle_update_motion_dodgems(vehicle); // Update the length of time vehicle has been in bumper mode if (vehicle->sub_state++ == 0xFF) { @@ -2163,13 +2163,13 @@ static void vehicle_update_waiting_to_depart(rct_vehicle* vehicle) { switch (ride->mode) { case RIDE_MODE_BUMPERCAR: - vehicle->status = VEHICLE_STATUS_TRAVELLING_BUMPER_CARS; + vehicle->status = VEHICLE_STATUS_TRAVELLING_DODGEMS; vehicle_invalidate_window(vehicle); // Bumper mode uses sub_state / var_CE to tell how long // the vehicle has been ridden. vehicle->sub_state = 0; vehicle->var_CE = 0; - vehicle_update_bumpcar_mode(vehicle); + vehicle_update_dodgems_mode(vehicle); break; case RIDE_MODE_SWING: vehicle->status = VEHICLE_STATUS_SWINGING; @@ -5034,7 +5034,7 @@ void vehicle_get_g_forces(rct_vehicle *vehicle, sint32 *verticalG, sint32 *later case TRACK_ELEM_25_DEG_DOWN_LEFT_BANKED: case TRACK_ELEM_25_DEG_DOWN_RIGHT_BANKED: case TRACK_ELEM_WHIRLPOOL: - case TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL: + case TRACK_ELEM_REVERSE_FREEFALL_VERTICAL: case TRACK_ELEM_90_DEG_UP: case TRACK_ELEM_90_DEG_DOWN: case TRACK_ELEM_DIAG_FLAT: @@ -5300,7 +5300,7 @@ void vehicle_get_g_forces(rct_vehicle *vehicle, sint32 *verticalG, sint32 *later vertFactor = -160; //6d74FD break; - case TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE: + case TRACK_ELEM_REVERSE_FREEFALL_SLOPE: case TRACK_ELEM_AIR_THRUST_VERTICAL_DOWN_TO_LEVEL: vertFactor = 120; //6d7458 @@ -5574,7 +5574,7 @@ sint32 vehicle_is_used_in_pairs(rct_vehicle *vehicle) * * rct2: 0x006DA44E */ -static sint32 vehicle_update_motion_bumper_car(rct_vehicle* vehicle) { +static sint32 vehicle_update_motion_dodgems(rct_vehicle* vehicle) { _vehicleMotionTrackFlags = 0; rct_ride* ride = get_ride(vehicle->ride); @@ -5633,7 +5633,7 @@ static sint32 vehicle_update_motion_bumper_car(rct_vehicle* vehicle) { location.x += Unk9A36C4[oldC4 + 1].x; location.y += Unk9A36C4[oldC4 + 1].y; - if (!vehicle_update_bumper_car_collision(vehicle, location.x, location.y, &collideSprite)) { + if (!vehicle_update_dodgems_collision(vehicle, location.x, location.y, &collideSprite)) { vehicle_invalidate(vehicle); sprite_move( location.x, @@ -5664,7 +5664,7 @@ static sint32 vehicle_update_motion_bumper_car(rct_vehicle* vehicle) { location.x += Unk9A36C4[direction].x; location.y += Unk9A36C4[direction].y; - if (vehicle_update_bumper_car_collision(vehicle, location.x, location.y, &collideSprite)) + if (vehicle_update_dodgems_collision(vehicle, location.x, location.y, &collideSprite)) break; vehicle->remaining_distance -= Unk9A36C4[direction].distance; @@ -5744,7 +5744,7 @@ static sint32 vehicle_update_motion_bumper_car(rct_vehicle* vehicle) { * * rct2: 0x006DD365 */ -bool vehicle_update_bumper_car_collision(rct_vehicle *vehicle, sint16 x, sint16 y, uint16 *spriteId) +bool vehicle_update_dodgems_collision(rct_vehicle *vehicle, sint16 x, sint16 y, uint16 *spriteId) { uint16 bp = (vehicle->var_44 * 30) >> 9; uint32 trackType = vehicle->track_type >> 2; diff --git a/src/openrct2/ride/vehicle.h b/src/openrct2/ride/vehicle.h index ef80c3f28b..833f9373e1 100644 --- a/src/openrct2/ride/vehicle.h +++ b/src/openrct2/ride/vehicle.h @@ -266,7 +266,7 @@ enum { VEHICLE_STATUS_TRAVELLING_BOAT, VEHICLE_STATUS_CRASHING, VEHICLE_STATUS_CRASHED, - VEHICLE_STATUS_TRAVELLING_BUMPER_CARS, + VEHICLE_STATUS_TRAVELLING_DODGEMS, VEHICLE_STATUS_SWINGING, VEHICLE_STATUS_ROTATING, VEHICLE_STATUS_FERRIS_WHEEL_ROTATING, @@ -383,7 +383,7 @@ rct_vehicle *vehicle_get_head(rct_vehicle *vehicle); rct_vehicle *vehicle_get_tail(rct_vehicle *vehicle); const rct_vehicle_info *vehicle_get_move_info(sint32 cd, sint32 typeAndDirection, sint32 offset); uint16 vehicle_get_move_info_size(sint32 cd, sint32 typeAndDirection); -bool vehicle_update_bumper_car_collision(rct_vehicle *vehicle, sint16 x, sint16 y, uint16 *spriteId); +bool vehicle_update_dodgems_collision(rct_vehicle *vehicle, sint16 x, sint16 y, uint16 *spriteId); extern rct_vehicle *gCurrentVehicle; extern uint8 _vehicleStationIndex; diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 6fac78c95c..53dfe4c8b4 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -28,9 +28,18 @@ enum { SPR_EDGE_WOOD_BLACK_BASE = 1663, SPR_EDGE_ICE_BASE = 1831, + SPR_TERRAIN_SELECTION_SQUARE_SIMPLE = 2624, // Used for showing peep spawn + SPR_TERRAIN_SELECTION_SQUARE = 2625, // Used to show land owned by park + SPR_TERRAIN_SELECTION_DOTTED = 2644, // Used to show construction rights owned by park + SPR_PALETTE_1_START = 3100, SPR_PALETTE_1_END = 3110, + PEEP_SPAWN_ARROW_0 = 3111, + PEEP_SPAWN_ARROW_1 = 3112, + PEEP_SPAWN_ARROW_2 = 3113, + PEEP_SPAWN_ARROW_3 = 3114, + // This is the start of every character there are // 224 characters per font (first 32 are control codes hence why it doesn't go to 255) // 4 fonts @@ -52,9 +61,9 @@ enum { SPR_SHOP_ITEM_UMBRELLA = 5065, SPR_SHOP_ITEM_DRINK = 5066, SPR_SHOP_ITEM_BURGER = 5067, - SPR_SHOP_ITEM_FRIES = 5068, + SPR_SHOP_ITEM_CHIPS = 5068, SPR_SHOP_ITEM_ICE_CREAM = 5069, - SPR_SHOP_ITEM_COTTON_CANDY = 5070, + SPR_SHOP_ITEM_CANDYFLOSS = 5070, SPR_SHOP_ITEM_EMPTY_CAN = 5071, SPR_SHOP_ITEM_RUBBISH = 5072, SPR_SHOP_ITEM_EMPTY_BURGER_BOX = 5073, @@ -659,6 +668,9 @@ enum { SPR_RIDE_DESIGN_PREVIEW_MAZE_ICE_BLOCKS = 21992, SPR_RIDE_DESIGN_PREVIEW_MAZE_WOODEN_FENCES = 21993, + SPR_LAND_OWNERSHIP_AVAILABLE = 22955, + SPR_LAND_CONSTRUCTION_RIGHTS_AVAILABLE = 22956, + SPR_DUCK = 23133, SPR_NEXT_WEATHER = 23189, diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 8a0c1704fe..4bcd52e8b4 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -278,7 +278,7 @@ static rct_object_entry DefaultSelectedObjects[] = { { 0x00000080, { "FAID1 " }, 0 }, // Ride: First Aid Room { 0x00000080, { "INFOK " }, 0 }, // Ride: Information Kiosk { 0x00000080, { "DRNKS " }, 0 }, // Ride: Drinks Stall - { 0x00000080, { "CNDYF " }, 0 }, // Ride: Cotton Candy Stall + { 0x00000080, { "CNDYF " }, 0 }, // Ride: Candyfloss Stall { 0x00000080, { "BURGB " }, 0 }, // Ride: Burger Bar { 0x00000080, { "BALLN " }, 0 }, // Ride: Balloon Stall { 0x00000080, { "ARRT1 " }, 0 }, // Ride: Corkscrew Roller Coaster diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index c7b4bc1dc8..3c723c0a83 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -1018,7 +1018,7 @@ static const rct_string_id VehicleStatusNames[] = { STR_TRAVELLING_AT_1, // VEHICLE_STATUS_TRAVELLING_BOAT STR_CRASHING, // VEHICLE_STATUS_CRASHING STR_CRASHED_0, // VEHICLE_STATUS_CRASHED - STR_TRAVELLING_AT_2, // VEHICLE_STATUS_TRAVELLING_BUMPER_CARS + STR_TRAVELLING_AT_2, // VEHICLE_STATUS_TRAVELLING_DODGEMS STR_SWINGING, // VEHICLE_STATUS_SWINGING STR_ROTATING_0, // VEHICLE_STATUS_ROTATING STR_ROTATING_1, // VEHICLE_STATUS_FERRIS_WHEEL_ROTATING @@ -1101,7 +1101,7 @@ static const rct_string_id RideModeNames[] = { STR_RIDE_MODE_UNLIMITED_RIDES_PER_ADMISSION, STR_RIDE_MODE_MAZE, STR_RIDE_MODE_RACE, - STR_RIDE_MODE_BUMPER_CAR, + STR_RIDE_MODE_DODGEMS, STR_RIDE_MODE_SWING, STR_RIDE_MODE_SHOP_STALL, STR_RIDE_MODE_ROTATION, diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index b9762fed70..7861813d1e 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -1455,7 +1455,7 @@ static void window_ride_construction_mousedown(rct_widgetindex widgetIndex, rct_ } if (ride->type == RIDE_TYPE_REVERSE_FREEFALL_COASTER || ride->type == RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER) { if (_rideConstructionState == RIDE_CONSTRUCTION_STATE_FRONT && _currentTrackCurve == TRACK_CURVE_NONE) { - _currentTrackCurve = TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE | 0x100; + _currentTrackCurve = TRACK_ELEM_REVERSE_FREEFALL_SLOPE | 0x100; sub_6C84CE(); } } else { diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index 7d1c171994..26d985a3df 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -406,7 +406,7 @@ void map_init(sint32 size) map_element->base_height = 14; map_element->clearance_height = 14; map_element->properties.surface.slope = 0; - map_element->properties.surface.grass_length = 1; + map_element->properties.surface.grass_length = GRASS_LENGTH_CLEAR_0; map_element->properties.surface.ownership = 0; map_element->properties.surface.terrain = 0; @@ -3927,7 +3927,7 @@ static void clear_element_at(sint32 x, sint32 y, rct_map_element **elementPtr) element->clearance_height = 2; element->properties.surface.slope = 0; element->properties.surface.terrain = 0; - element->properties.surface.grass_length = 1; + element->properties.surface.grass_length = GRASS_LENGTH_CLEAR_0; element->properties.surface.ownership = 0; // Because this element is not completely removed, the pointer must be updated manually // The rest of the elements are removed from the array, so the pointer doesn't need to be updated. diff --git a/test/testpaint/data.c b/test/testpaint/data.c index d67a298fd7..73992471b9 100644 --- a/test/testpaint/data.c +++ b/test/testpaint/data.c @@ -754,8 +754,8 @@ const utf8string TrackElemNames[] = { "TRACK_ELEM_FLAT_TO_60_DEG_DOWN_LONG_BASE", "TRACK_ELEM_60_DEG_UP_TO_FLAT_LONG_BASE_122", "TRACK_ELEM_CABLE_LIFT_HILL", - "TRACK_ELEM_REVERSE_WHOA_BELLY_SLOPE", - "TRACK_ELEM_REVERSE_WHOA_BELLY_VERTICAL", + "TRACK_ELEM_REVERSE_FREEFALL_SLOPE", + "TRACK_ELEM_REVERSE_FREEFALL_VERTICAL", "TRACK_ELEM_90_DEG_UP", "TRACK_ELEM_90_DEG_DOWN", "TRACK_ELEM_60_DEG_UP_TO_90_DEG_UP", @@ -1107,8 +1107,8 @@ const utf8string TrackCodeNames[256] = { "flat_to_60_deg_down_long_base", "60_deg_up_to_flat_long_base122", "cable_lift_hill", - "reverse_whoa_belly_slope", - "reverse_whoa_belly_vertical", + "reverse_freefall_slope", + "reverse_freefall_vertical", "90_deg_up", "90_deg_down", "60_deg_up_to_90_deg_up", From 787ddf811f26c00660430d765539ac64607d7d3d Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Tue, 9 May 2017 04:00:21 +0000 Subject: [PATCH 078/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/sv-SE.txt | 31 +++++++++++++++++---- data/language/zh-CN.txt | 62 ++++++++++++++++++++++++++--------------- 2 files changed, 66 insertions(+), 27 deletions(-) diff --git a/data/language/sv-SE.txt b/data/language/sv-SE.txt index 04b5679986..35d82008cc 100644 --- a/data/language/sv-SE.txt +++ b/data/language/sv-SE.txt @@ -2744,7 +2744,7 @@ STR_2739 :Ingen STR_2740 :RollerCoaster Tycoon 1 STR_2741 :RollerCoaster Tycoon 2 STR_2742 :css50.dat hittades inte -STR_2743 :Kopiera data\css17.dat från din RCT1-installation till data\css50.dat i din RCT2-installation. +STR_2743 :Kopiera 'data/css17.dat' från din RCT1-installation till 'data/css50.dat' i din RCT2-installation eller kolla så att sökvägen till RCT1 i 'Diverse' fliken är korrekt. STR_2744 :[ STR_2745 :\ STR_2746 :] @@ -4140,7 +4140,7 @@ STR_5832 :{SMALLFONT}{BLACK}Visa höjd som generella enheter istället för v STR_5833 :{SMALLFONT}{BLACK}Välj vilket datumformat du ska använda STR_5834 :{SMALLFONT}{BLACK}Välj vilken ljudenhet OpenRCT2 ska använda STR_5835 :{SMALLFONT}{BLACK}Tysta spelet om spelet tappar fokus -STR_5836 :{SMALLFONT}{BLACK}Välj vilken musik som ska spelas på huvudmenyn.{NEWLINE}Val av RCT1 sången kräver att du kopierar 'data/css17.dat' från din RCT1-mapp till 'data/css50.dat' i din RCT2-mapp. +STR_5836 :{SMALLFONT}{BLACK}Välj vilken musik som ska spelas på huvudmenyn.{NEWLINE}Val av RCT1 sången kräver att du kopierar 'data/css17.dat' från din RCT1-mapp till 'data/css50.dat' i din RCT2-mapp eller kolla så att sökvägen till RCT1 i 'Diverse' fliken är korrekt. STR_5837 :{SMALLFONT}{BLACK}Skapa och hantera egna UI-teman STR_5838 :{SMALLFONT}{BLACK}Visa en knapp för 'finans'-fönstret i verktygsfältet STR_5839 :{SMALLFONT}{BLACK}Visa en knapp för 'forskning & utveckling'-fönstret i verktygsfältet @@ -4337,10 +4337,31 @@ STR_6029 :Åkturkonstruktion - Riv valda spår STR_6030 :{SMALLFONT}{BLACK}Dekorations-väljaren. Klicka på en dekoration på kartan för att välja samma del för konstruktion. STR_6031 :Server Beskrivning: STR_6032 :Server Hälsning: - +STR_6033 :Sökvägen till RCT1-mappen: +STR_6035 :Vänligen välj installationsmappen för RCT1 +STR_6036 :{SMALLFONT}{BLACK}Rensa +STR_6037 :Vänligen välj en giltig sökväg till RCT1-mappen +STR_6038 :{SMALLFONT}{BLACK}Om du har RCT1-installerat, navigera till den mappen för att ladda scenarion, music, m.m. STR_6039 :{SMALLFONT}{BLACK}Demolera attraktioner snabbt -STR_6040 :Redigera scenario inställningar -STR_6041 :{BLACK}Inga mekaniker är anställda! +STR_6040 :Redigera scenario-inställningar +STR_6041 :{BLACK}Inga mekaniker är anställda! +STR_6042 :Ladda höjdkarta +STR_6043 :Välj höjdkarta +STR_6044 :Utjämna höjdkarta +STR_6045 :Styrka +STR_6046 :Normalisera höjdkarta +STR_6047 :Utjämna rutor +STR_6048 :Fel med höjdkarta +STR_6049 :Fel vid inläsning av PNG +STR_6050 :Fel vid inläsning av bitmap +STR_6051 :Höjden och bredden måste vara lika +STR_6052 :Höjdkartan är för stor och kommer skäras av +STR_6053 :Höjdkartan kan inte normaliseras +STR_6054 :Endast 24-bit bitmaps stöds +STR_6055 :OpenRCT2 Höjdkart-filer +STR_6056 :{SMALLFONT}{BLACK}Tysta +STR_6057 :{SMALLFONT}{BLACK}Visa en knapp för att 'Tysta' spelet i verktygsfältet +STR_6058 :Tysta ############# # Scenarion # diff --git a/data/language/zh-CN.txt b/data/language/zh-CN.txt index 2a0409c242..1ee7a25c88 100644 --- a/data/language/zh-CN.txt +++ b/data/language/zh-CN.txt @@ -3772,17 +3772,17 @@ STR_5424 :等待{MOVE_X}{87}{COMMA16} STR_5425 :重新开始 STR_5426 :结束 STR_5427 :坐标: -STR_5428 :Anticlockwise rotations: +STR_5428 :逆时针旋转次数: STR_5429 :放大级别: STR_5430 :等待秒数: STR_5431 :要读取的存档: STR_5432 :命令: STR_5433 :Title Sequences -STR_5434 :Command Editor -STR_5435 :Rename save +STR_5434 :命令编辑器 +STR_5435 :重命名存档 STR_5436 :编辑主菜单动画... STR_5437 :暂无存档被选中 -STR_5438 :Can't make changes while command editor is open +STR_5438 :当命令编辑器打开时不能做出改变 STR_5439 :A wait command with at least 4 seconds is required with a restart command STR_5440 :当焦点失去时最小化全屏幕的游戏 STR_5441 :{SMALLFONT}{BLACK}根据轨道类型区分游乐设施{NEWLINE}使得车辆类型可以在建造后更改{NEWLINE}(过山车大亨1行为). @@ -3790,9 +3790,9 @@ STR_5442 :Force park rating: STR_5443 :速度{MOVE_X}{87}{STRINGID} STR_5444 :速度: STR_5445 :速度 -STR_5446 :Get -STR_5447 :Type {STRINGID} -STR_5448 :Ride / Vehicle {STRINGID} +STR_5446 :取得 +STR_5447 :类型 {STRINGID} +STR_5448 :游乐设施/车辆 {STRINGID} STR_5449 :减慢游戏速度 STR_5450 :加快游戏速度 STR_5451 :打开作弊窗口 @@ -3858,7 +3858,7 @@ STR_5511 :(UNKNOWN) STR_5512 :另存游戏 STR_5513 :(快速)保存游戏 STR_5514 :禁止故意破坏 -STR_5515 :{SMALLFONT}{BLACK}Stops guests from vandalising your park when they're angry +STR_5515 :{SMALLFONT}{BLACK}游客愤怒时阻止其可以毁坏公物 STR_5516 :{SMALLFONT}{BLACK}黑色 STR_5517 :{SMALLFONT}{BLACK}灰色 STR_5518 :{SMALLFONT}{BLACK}白色 @@ -3909,17 +3909,17 @@ STR_5562 :警告! STR_5563 :此功能暂未稳定地使用,请多加留意. STR_5564 :插入已损坏元素 STR_5565 :{SMALLFONT}{BLACK}在一个网格的最上插入一个已损坏的地图元素.此插入会隐藏其他元素. -STR_5566 :Password: +STR_5566 :密码: STR_5567 :Advertise -STR_5568 :Password Required -STR_5569 :This server requires a password +STR_5568 :需要密码 +STR_5569 :此服务器需要密码 STR_5570 :Fetch Servers -STR_5571 :Join Game -STR_5572 :Add To Favourites -STR_5573 :Remove From Favourites -STR_5574 :Server Name: -STR_5575 :Max Players: -STR_5576 :Port: +STR_5571 :加入游戏 +STR_5572 :添加至收藏 +STR_5573 :从收藏中去除 +STR_5574 :服务器名称: +STR_5575 :最大人数: +STR_5576 :端口: STR_5577 :韩元 (W) STR_5578 :卢布 (R) STR_5579 :窗口缩放比例: @@ -3957,11 +3957,11 @@ STR_5610 :{SMALLFONT}{BLACK}移除选中的地图元素. 使用时请注意. STR_5611 :G STR_5612 :{SMALLFONT}{BLACK}Ghost flag STR_5613 :B -STR_5614 :{SMALLFONT}{BLACK}Broken flag +STR_5614 :{SMALLFONT}{BLACK}损坏标记 STR_5615 :L -STR_5616 :{SMALLFONT}{BLACK}Last element for tile flag -STR_5617 :{SMALLFONT}{BLACK}Move selected element up. -STR_5618 :{SMALLFONT}{BLACK}Move selected element down. +STR_5616 :{SMALLFONT}{BLACK}网格标记的最后一个元素 +STR_5617 :{SMALLFONT}{BLACK}将选中的元素移至上方. +STR_5618 :{SMALLFONT}{BLACK}将选中的元素移至下方. STR_5619 :过山车大亨 STR_5620 :过山车大亨:快乐天地 STR_5621 :过山车大亨:极限反转 @@ -4075,7 +4075,7 @@ STR_5759 :下载地图中 ... ({INT32} / {INT32}) KB STR_5760 :港币 (HK$) STR_5761 :新台币 (NT$) STR_5762 :人民币 (CN{YEN}) -STR_5763 :All files +STR_5763 :所有文件 STR_5764 :不正确的游乐设施类型 STR_5765 :无法修改类型不正确的游乐设施 STR_5766 : @@ -4354,6 +4354,24 @@ STR_6038 :{SMALLFONT}{BLACK}如果你安装了过山车大亨1, 设置此选 STR_6039 :{SMALLFONT}{BLACK}快速拆除游乐设施 STR_6040 :编辑剧情选项 STR_6041 :{BLACK}没有雇佣机械师! +STR_6042 :载入高度图 +STR_6043 :选择高度图 +STR_6044 :平滑高度图 +STR_6045 :强度 +STR_6046 :归一化高度图 +STR_6047 :平滑网格 +STR_6048 :高度图错误 +STR_6049 :PNG读取错误 +STR_6050 :位图读取错误 +STR_6051 :宽度和高度需要相匹配 +STR_6052 :此高度图过大, 将被切开 +STR_6053 :此高度图不能被归一化 +STR_6054 :只支持24位的位图 +STR_6055 :OpenRCT2高度图文件 +STR_6056 :{SMALLFONT}{BLACK}静音 +STR_6057 :{SMALLFONT}{BLACK}在工具栏为静音选项显示一个单独的按钮 +STR_6058 :静音 + From 8d7fa07cbae288ffc453c5f7c106d2a47b6a417b Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Tue, 9 May 2017 14:45:16 +0100 Subject: [PATCH 079/670] Update readme.md with RCT1 info [ci skip] --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 799d8c090d..9d92e6d0f3 100644 --- a/readme.md +++ b/readme.md @@ -35,7 +35,7 @@ RollerCoaster Tycoon 2 was originally written by Chris Sawyer in x86 assembly an # 2 Downloading the game (pre-built) -OpenRCT2 requires original files of RollerCoaster Tycoon 2 to play. It can be bought at either [Steam](http://store.steampowered.com/app/285330/) or [GOG.com](http://www.gog.com/game/rollercoaster_tycoon_2). +OpenRCT2 requires original files of RollerCoaster Tycoon 2 to play. It can be bought at either [Steam](http://store.steampowered.com/app/285330/) or [GOG.com](http://www.gog.com/game/rollercoaster_tycoon_2). If you have the original RollerCoaster Tycoon and its expansion packs, you can [point OpenRCT2 to these](https://github.com/OpenRCT2/OpenRCT2/wiki/Loading-RCT1-scenarios-and-data) in order to play the original scenarios. [OpenRCT2.org](https://openrct2.org/downloads) offers precompiled builds and installers of the latest master and the develop branch. There is also a cross platform [Launcher](https://github.com/LRFLEW/OpenRCT2Launcher/releases) available that will automatically update your build of the game so that you always have the latest version. From b83934da95d3df39521bf8adaa10ecf6603b5fbd Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Wed, 10 May 2017 04:00:24 +0000 Subject: [PATCH 080/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/nl-NL.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index 61d5a6ebe1..feaa1c3238 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -3275,10 +3275,10 @@ STR_3269 :Verbied veranderen landschap STR_3270 :{SMALLFONT}{BLACK}Verbied het veranderen van het landschap STR_3271 :Verbied hoog bouwen STR_3272 :{SMALLFONT}{BLACK}Verbied bouwen boven boomhoogte -STR_3273 :Hogere moeilijkheid parkwaardering -STR_3274 :{SMALLFONT}{BLACK}Maak het krijgen van een goede parkwaardering uitdagender -STR_3275 :Hogere moeilijkheid bezoekersgeneratie -STR_3276 :{SMALLFONT}{BLACK}Maak het moeilijker om bezoekers aan te trekken +STR_3273 :Hogere eisen voor goede parkwaardering +STR_3274 :{SMALLFONT}{BLACK}Maakt het krijgen van een goede parkwaardering uitdagender +STR_3275 :Hogere eisen voor trekken bezoekers +STR_3276 :{SMALLFONT}{BLACK}Maakt het moeilijker om bezoekers aan te trekken STR_3277 :{WINDOW_COLOUR_2}Prijs landaankoop: STR_3278 :{WINDOW_COLOUR_2}Prijs bouwrechten: STR_3279 :Gratis entree / Per rit betalen From 3331ab8a2d2a7ad2811f9cceeed5b740e601e1cd Mon Sep 17 00:00:00 2001 From: xp4xbox Date: Wed, 10 May 2017 16:05:05 -0400 Subject: [PATCH 081/670] Make B&M booster fins rectangular --- resources/g2/track/bm/booster_1.png | Bin 433 -> 436 bytes resources/g2/track/bm/booster_2.png | Bin 388 -> 388 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/resources/g2/track/bm/booster_1.png b/resources/g2/track/bm/booster_1.png index b8aae8c2e09496b2349374045d168c4eb23f25ff..15d999cf3599972cba220379fb37611200fe1f62 100644 GIT binary patch delta 359 zcmdnUyoGr}SpDVOx8Fyv{$H=2&S2a;efoCw{Cs2mW^?`d>(}>-`~N@h{eQOcHFnbk z1_lPkk|4ie28U-i(ij*R1wCCHLo7~Dy>xd{vjPumLS_@k)hMs4@Amy~)?-HrCh2%T)EB zJbt2XPw8Ezqt`oM&es3^WP#z*o^bmg_kT Wwuk3@Q($0VVDNPHb6Mw<&;$S&(78PT delta 356 zcmdnOypefASpECx)&J|&FWBdHVGE>(}>-`~N@h{eQOcu06{N z7#J8BOM?7@862M7NMm4NuoN4?e+hCWa5?oyDlHs*|R@-srjX{_lwRe>R#VS1x8n87XX<2Mx7-|UogF9q?ES|E!HI^ObqwlDx@2p2Da~?j`I{Y| zSjE(qX}ruJbk6nTmTaDzP0wU4R{WPX!O?eJklvY1Gei#kx@_@0!GVdP@{C!+p;GyW zkFVRg7_7<{HhK5Bn}@5=+)-+$V@fkm%uH!R@tu`Up}!9(Y)!wI{#rutTjn;Eti{`Z zUl99#a*^4pqqQ~vR!XjNdFHMi$f|DV2h z>vO%9)UCSpJ;(H0o0q-cwftn%wA^!VP8(&%89ys)Hr#BudENQ?tQ8%y&r4iQ+h;zx zzVF}{mYxgBOSyyP=8LBVN_;6x+_qF|Qv5OFjwd=(6a1P4wk=CclbE2+kotaY^1bJE zK7H40TnttjxMs{%Z|7d&a<%tub)yxy+B$kx%Kew?u=JTmOU(>XQ zt=WJ13@s@)(>LnB{c96dLf)u{{GYRZiR0lvH~sx4x0T+}s7ju?P2*XCa#WYMW660# zWnqq8VtHPn2i*O46dLB7Il98~`7w#b$L`CUxYT`SuMXf7&nvK)!@$76;OXk;vd$@? F2>_d%nt=cS From 86d8863496709eea9edf9cb29690d47869a8e577 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Thu, 11 May 2017 08:43:53 +0100 Subject: [PATCH 082/670] Fix #5456: Paths with non-ASCII characters mishandled on macOS (#5463) --- src/openrct2/platform/macos.m | 9 +++++++++ src/openrct2/platform/platform.h | 1 + src/openrct2/platform/posix.c | 2 +- src/openrct2/windows/options.c | 6 +++++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/openrct2/platform/macos.m b/src/openrct2/platform/macos.m index b70fbf2bce..07a5049d06 100644 --- a/src/openrct2/platform/macos.m +++ b/src/openrct2/platform/macos.m @@ -133,6 +133,15 @@ utf8 *platform_open_directory_browser(const utf8 *title) } } +utf8* macos_str_decomp_to_precomp(utf8 *input) +{ + @autoreleasepool + { + NSString *inputDecomp = [NSString stringWithUTF8String:input]; + return strdup([inputDecomp.precomposedStringWithCanonicalMapping cStringUsingEncoding:NSUTF8StringEncoding]); + } +} + bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, size_t outSize) { @autoreleasepool { diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index fb0edc5a7d..ed48c36a68 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -241,6 +241,7 @@ void core_init(); #ifdef __MACOSX__ void macos_disallow_automatic_window_tabbing(); + utf8* macos_str_decomp_to_precomp(); #endif // On macOS the resizing behaviour effectively resizes the window in the same diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 49236ea78a..b0678be14f 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -116,7 +116,7 @@ void platform_get_time_local(rct2_time *out_time) static size_t platform_utf8_to_multibyte(const utf8 *path, char *buffer, size_t buffer_size) { wchar_t *wpath = utf8_to_widechar(path); - setlocale(LC_CTYPE, ""); + setlocale(LC_CTYPE, "UTF-8"); size_t len = wcstombs(NULL, wpath, 0); bool truncated = false; if (len > buffer_size - 1) { diff --git a/src/openrct2/windows/options.c b/src/openrct2/windows/options.c index d29d7ba5e1..07194f02f8 100644 --- a/src/openrct2/windows/options.c +++ b/src/openrct2/windows/options.c @@ -1966,7 +1966,11 @@ static void window_options_paint(rct_window *w, rct_drawpixelinfo *dpi) w->x + window_options_misc_widgets[WIDX_WINDOW_LIMIT].left + 1, w->y + window_options_misc_widgets[WIDX_WINDOW_LIMIT].top ); - set_format_arg(0, uintptr_t, (uintptr_t)gConfigGeneral.rct1_path); + #ifdef __MACOSX__ + set_format_arg(0, uintptr_t, (uintptr_t)macos_str_decomp_to_precomp(gConfigGeneral.rct1_path)); + #else + set_format_arg(0, uintptr_t, (uintptr_t)gConfigGeneral.rct1_path); + #endif gfx_draw_string_left_clipped( dpi, STR_STRING, From 58deb3a54a19624b098bb5e4afd4ef9922b49274 Mon Sep 17 00:00:00 2001 From: CraigCraig Date: Thu, 11 May 2017 04:45:59 -0500 Subject: [PATCH 083/670] Grammar, readability, and spelling fixes [ci skip] --- src/openrct2/OpenRCT2.cpp | 4 +-- src/openrct2/drawing/line.c | 36 ++++++++++---------- src/openrct2/input.c | 2 +- src/openrct2/interface/screenshot.c | 2 +- src/openrct2/localisation/LanguagePack.cpp | 2 +- src/openrct2/localisation/convert.c | 2 +- src/openrct2/localisation/language.cpp | 2 +- src/openrct2/object/ObjectManager.cpp | 2 +- src/openrct2/paint/map_element/map_element.c | 2 +- src/openrct2/peep/peep.c | 4 +-- src/openrct2/rct2/addresses.h | 8 ++--- src/openrct2/rct2/interop.c | 2 +- src/openrct2/ride/ride.c | 6 ++-- src/openrct2/windows/guest.c | 28 +++++++-------- src/openrct2/windows/ride_construction.c | 2 +- src/openrct2/windows/shortcut_key_change.c | 2 +- src/openrct2/world/mapgen.c | 4 +-- src/openrct2/world/park.c | 2 +- src/openrct2/world/sprite.c | 2 +- 19 files changed, 57 insertions(+), 57 deletions(-) diff --git a/src/openrct2/OpenRCT2.cpp b/src/openrct2/OpenRCT2.cpp index bfa3e6721f..db5a198f96 100644 --- a/src/openrct2/OpenRCT2.cpp +++ b/src/openrct2/OpenRCT2.cpp @@ -169,8 +169,8 @@ extern "C" objRepo->LoadOrConstruct(); // TODO Like objects, this can take a while if there are a lot of track designs - // its also really something really we might want to do in the background - // as its not required until the player wants to place a new ride. + // it's also really something we might want to do in the background + // as it's not required until the player wants to place a new ride. tdRepo->Scan(); scenarioRepo->Scan(); diff --git a/src/openrct2/drawing/line.c b/src/openrct2/drawing/line.c index ee5ec7439f..bad30e151b 100644 --- a/src/openrct2/drawing/line.c +++ b/src/openrct2/drawing/line.c @@ -24,35 +24,35 @@ static void gfx_draw_line_on_buffer(rct_drawpixelinfo *dpi, char colour, sint32 { y -= dpi->y; - //Check to make sure point is in the y range + // Check to make sure point is in the y range if (y < 0)return; if (y >= dpi->height)return; - //Check to make sure we are drawing at least a pixel + // Check to make sure we are drawing at least a pixel if (!no_pixels) no_pixels++; x -= dpi->x; - //If x coord outside range leave + // If x coord outside range leave if (x < 0){ - //Unless the number of pixels is enough to be in range + // Unless the number of pixels is enough to be in range no_pixels += x; if (no_pixels <= 0)return; - //Resets starting point to 0 as we don't draw outside the range + // Resets starting point to 0 as we don't draw outside the range x = 0; } - //Ensure that the end point of the line is within range + // Ensure that the end point of the line is within range if (x + no_pixels - dpi->width > 0){ - //If the end point has any pixels outside range - //cut them off. If there are now no pixels return. + // If the end point has any pixels outside range + // cut them off. If there are now no pixels return. no_pixels -= x + no_pixels - dpi->width; if (no_pixels <= 0)return; } - //Get the buffer we are drawing to and move to the first coordinate. + // Get the buffer we are drawing to and move to the first coordinate. uint8* bits_pointer = dpi->bits + y*(dpi->pitch + dpi->width) + x; - //Draw the line to the specified colour + // Draw the line to the specified colour for (; no_pixels > 0; --no_pixels, ++bits_pointer){ *bits_pointer = colour; } @@ -87,9 +87,9 @@ void gfx_draw_line_software(rct_drawpixelinfo *dpi, sint32 x1, sint32 y1, sint32 return; } - //Bresenhams algorithm + // Bresenham's algorithm - //If vertical plot points upwards + // If vertical plot points upwards sint32 steep = abs(y2 - y1) > abs(x2 - x1); if (steep){ sint32 temp_y2 = y2; @@ -100,7 +100,7 @@ void gfx_draw_line_software(rct_drawpixelinfo *dpi, sint32 x1, sint32 y1, sint32 x1 = temp_y2; } - //If line is right to left swap direction + // If line is right to left swap direction if (x1 > x2){ sint32 temp_y2 = y2; sint32 temp_x2 = x2; @@ -116,27 +116,27 @@ void gfx_draw_line_software(rct_drawpixelinfo *dpi, sint32 x1, sint32 y1, sint32 sint32 y_step; sint32 y = y1; - //Direction of step + // Direction of step if (y1 < y2)y_step = 1; else y_step = -1; for (sint32 x = x1, x_start = x1, no_pixels = 1; x < x2; ++x,++no_pixels){ - //Vertical lines are drawn 1 pixel at a time + // Vertical lines are drawn 1 pixel at a time if (steep)gfx_draw_line_on_buffer(dpi, colour, x, y, 1); error -= delta_y; if (error < 0){ - //Non vertical lines are drawn with as many pixels in a horizontal line as possible + // Non vertical lines are drawn with as many pixels in a horizontal line as possible if (!steep)gfx_draw_line_on_buffer(dpi, colour, y, x_start, no_pixels); - //Reset non vertical line vars + // Reset non vertical line vars x_start = x + 1; no_pixels = 1; y += y_step; error += delta_x; } - //Catch the case of the last line + // Catch the case of the last line if (x + 1 == x2 && !steep){ gfx_draw_line_on_buffer(dpi, colour, y, x_start, no_pixels); } diff --git a/src/openrct2/input.c b/src/openrct2/input.c index 5de4eb0512..72a267c783 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -1072,7 +1072,7 @@ void process_mouse_over(sint32 x, sint32 y) ebx = 0; edi = cursorId; // Window event WE_UNKNOWN_0E was called here, but no windows actually implemented a handler and - // its not known what it was for + // it's not known what it was for cursorId = edi; if ((ebx & 0xFF) != 0) { diff --git a/src/openrct2/interface/screenshot.c b/src/openrct2/interface/screenshot.c index af45a9c394..30d517feb5 100644 --- a/src/openrct2/interface/screenshot.c +++ b/src/openrct2/interface/screenshot.c @@ -81,7 +81,7 @@ static sint32 screenshot_get_next_path(char *path, size_t size) char park_name[128]; format_string(park_name, 128, gParkName, &gParkNameArgs); - // retrieve current time + // Retrieve current time rct2_date currentDate; platform_get_date_local(¤tDate); rct2_time currentTime; diff --git a/src/openrct2/localisation/LanguagePack.cpp b/src/openrct2/localisation/LanguagePack.cpp index 5f90c1c417..a1848ad332 100644 --- a/src/openrct2/localisation/LanguagePack.cpp +++ b/src/openrct2/localisation/LanguagePack.cpp @@ -326,7 +326,7 @@ public: //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Parsing //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - // Partial support to open a uncompiled language file which parses tokens and converts them to the corresponding character + // Partial support to open an uncompiled language file which parses tokens and converts them to the corresponding character // code. Due to resource strings (strings in scenarios and objects) being written to the original game's string table, // get_string will use those if the same entry in the loaded language is empty. // diff --git a/src/openrct2/localisation/convert.c b/src/openrct2/localisation/convert.c index 85c64e81bd..9df0b04db5 100644 --- a/src/openrct2/localisation/convert.c +++ b/src/openrct2/localisation/convert.c @@ -87,7 +87,7 @@ static wchar_t encoding_convert_x_to_unicode(wchar_t code, const encoding_conver wchar_t encoding_convert_unicode_to_rct2(wchar_t unicode) { - // Can't do a binary search as its sorted by RCT2 code, not unicode + // Can't do a binary search as it's sorted by RCT2 code, not unicode for (sint32 i = 0; i < countof(RCT2ToUnicodeTable); i++) { if (RCT2ToUnicodeTable[i].unicode == unicode) return RCT2ToUnicodeTable[i].code; } diff --git a/src/openrct2/localisation/language.cpp b/src/openrct2/localisation/language.cpp index f746201207..e45af5637f 100644 --- a/src/openrct2/localisation/language.cpp +++ b/src/openrct2/localisation/language.cpp @@ -111,7 +111,7 @@ bool language_open(sint32 id) gCurrentLanguage = id; TryLoadFonts(); - // Objects and their localized strings need to be refreshed + // Objects and their localised strings need to be refreshed GetObjectManager()->ResetObjects(); return true; } diff --git a/src/openrct2/object/ObjectManager.cpp b/src/openrct2/object/ObjectManager.cpp index 2d0fdf0d85..257f9f6bcf 100644 --- a/src/openrct2/object/ObjectManager.cpp +++ b/src/openrct2/object/ObjectManager.cpp @@ -297,7 +297,7 @@ private: object->Unload(); delete object; - // Because its possible to have the same loaded object for multiple + // Because it's possible to have the same loaded object for multiple // slots, we have to make sure find and set all of them to nullptr if (_loadedObjects != nullptr) { diff --git a/src/openrct2/paint/map_element/map_element.c b/src/openrct2/paint/map_element/map_element.c index c549ee0dae..de035300cd 100644 --- a/src/openrct2/paint/map_element/map_element.c +++ b/src/openrct2/paint/map_element/map_element.c @@ -255,7 +255,7 @@ static void sub_68B3FB(sint32 x, sint32 y) rct_xy16 dword_9DE574 = gPaintMapPosition; g_currently_drawn_item = map_element; - //setup the painting of for example: the underground, signs, rides, scenery, etc. + // Setup the painting of for example: the underground, signs, rides, scenery, etc. switch (map_element_get_type(map_element)) { case MAP_ELEMENT_TYPE_SURFACE: diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index c09741b961..b4d0accb42 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -4056,7 +4056,7 @@ static void peep_update_ride_sub_state_20(rct_peep* peep){ return; } - // Do not play toilet flush sound on title screen as its considered loud and annoying + // Do not play toilet flush sound on title screen as it's considered loud and annoying if (!(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)) { audio_play_sound_at_location(SOUND_TOILET_FLUSH, peep->x, peep->y, peep->z); } @@ -4838,7 +4838,7 @@ static void peep_update_queuing(rct_peep* peep){ // Fix #4819: Occasionally the peep->next_in_queue is incorrectly set // to prevent this from causing the peeps to enter a loop // first check if the next in queue is actually nearby - // if they are not then its safe to assume that this is + // if they are not then it's safe to assume that this is // the front of the queue. rct_peep* next_peep = GET_PEEP(peep->next_in_queue); if (abs(next_peep->x - peep->x) < 32 && diff --git a/src/openrct2/rct2/addresses.h b/src/openrct2/rct2/addresses.h index 2e66b25130..4f4d9f6c52 100644 --- a/src/openrct2/rct2/addresses.h +++ b/src/openrct2/rct2/addresses.h @@ -83,7 +83,7 @@ #define RCT2_ADDRESS_SPRITE_LISTS_HEAD 0x013573BC #define RCT2_ADDRESS_SPRITE_LISTS_COUNT 0x013573C8 -//How many ticks the scenario has existed for +// How many ticks the scenario has existed for #define RCT2_ADDRESS_SAVED_VIEW_X 0x0138869A #define RCT2_ADDRESS_SAVED_VIEW_Y 0x0138869C #define RCT2_ADDRESS_SAVED_VIEW_ZOOM 0x0138869E @@ -298,9 +298,9 @@ #define RCT2_ADDRESS_PARK_ENTRANCE_GHOST_EXISTS 0x009E32D2 #define RCT2_ADDRESS_PARK_ENTRANCE_GHOST_PRICE 0x009E32D3 -//Every pixel changed by rain is stored. -//32bit (pixel_offset 24 bit)(pixel_colour 8 bit) -//Use the rainPixels[] global in drawing.c from now on +// Every pixel changed by rain is stored. +// 32bit (pixel_offset 24 bit)(pixel_colour 8 bit) +// Use the rainPixels[] global in drawing.c from now on #define RCT2_ADDRESS_RAIN_PIXEL_STORE 0x00EDF850 #define RCT2_ADDRESS_UNCOMPLETED_RESEARCH_TYPES 0x00EE787C diff --git a/src/openrct2/rct2/interop.c b/src/openrct2/rct2/interop.c index e427bbb175..3378edc84b 100644 --- a/src/openrct2/rct2/interop.c +++ b/src/openrct2/rct2/interop.c @@ -183,7 +183,7 @@ bool rct2_interop_setup_segment() rct2_interop_get_segment_data_path(segmentDataPath, sizeof(segmentDataPath)); // Warning: for Windows this will fail if given a non-ASCII path, - // but given this code is temporary - its not worth resolving. + // but given this code is temporary - it's not worth resolving. FILE * file = fopen(segmentDataPath, "rb"); if (file == NULL) { diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 89d2d8d8e9..b67638404b 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -453,7 +453,7 @@ bool ride_try_get_origin_element(sint32 rideIndex, rct_xy_element *output) // Found a track piece for target ride - // Check if its not the station or ??? (but allow end piece of station) + // Check if it's not the station or ??? (but allow end piece of station) bool specialTrackPiece = ( it.element->properties.track.type != TRACK_ELEM_BEGIN_STATION && it.element->properties.track.type != TRACK_ELEM_MIDDLE_STATION && @@ -2303,7 +2303,7 @@ static sint32 ride_get_new_breakdown_problem(rct_ride *ride) sint32 availableBreakdownProblems, monthsOld, totalProbability, randomProbability, problemBits, breakdownProblem; rct_ride_entry *entry; - // Brake failure is more likely when its raining + // Brake failure is more likely when it's raining _breakdownProblemProbabilities[BREAKDOWN_BRAKES_FAILURE] = gClimateCurrentRainLevel == 0 ? 3 : 20; entry = get_ride_entry_by_ride(ride); @@ -5294,7 +5294,7 @@ static sint32 ride_is_valid_for_open(sint32 rideIndex, sint32 goingToBeOpen, sin ride = get_ride(rideIndex); - // Check to see if construction tool in use. If it is close the construction window + // Check to see if construction tool is in use. If it is close the construction window // to set the track to its final state and clean up ghosts. // We can't just call close as it would cause a stack overflow during shop creation // with auto open on. diff --git a/src/openrct2/windows/guest.c b/src/openrct2/windows/guest.c index 81489bf271..8e22d2e606 100644 --- a/src/openrct2/windows/guest.c +++ b/src/openrct2/windows/guest.c @@ -1132,7 +1132,7 @@ void window_guest_overview_update(rct_window* w){ else w->highlighted_item++; - // Disable peep watching thought for multiplayer as its client specific + // Disable peep watching thought for multiplayer as it's client specific if (network_get_mode() == NETWORK_MODE_NONE) { // Create the "I have the strangest feeling I am being watched thought" if ((w->highlighted_item & 0xFFFF) >= 3840) { @@ -1369,16 +1369,16 @@ void window_guest_stats_paint(rct_window *w, rct_drawpixelinfo *dpi) window_guest_thoughts_tab_paint(w, dpi); window_guest_inventory_tab_paint(w, dpi); - //ebx + // ebx rct_peep* peep = GET_PEEP(w->number); // Not sure why this is not stats widgets - //cx + // cx sint32 x = w->x + window_guest_rides_widgets[WIDX_PAGE_BACKGROUND].left + 4; - //dx + // dx sint32 y = w->y + window_guest_rides_widgets[WIDX_PAGE_BACKGROUND].top + 4; - //Happiness + // Happiness gfx_draw_string_left(dpi, STR_GUEST_STAT_HAPPINESS_LABEL, gCommonFormatArgs, COLOUR_BLACK, x, y); sint32 happiness = peep->happiness; @@ -1389,7 +1389,7 @@ void window_guest_stats_paint(rct_window *w, rct_drawpixelinfo *dpi) } window_guest_stats_bars_paint(happiness, x, y, w, dpi, ebp); - //Energy + // Energy y += 10; gfx_draw_string_left(dpi, STR_GUEST_STAT_ENERGY_LABEL, gCommonFormatArgs, COLOUR_BLACK, x, y); @@ -1401,7 +1401,7 @@ void window_guest_stats_paint(rct_window *w, rct_drawpixelinfo *dpi) if (energy < 10)energy = 10; window_guest_stats_bars_paint(energy, x, y, w, dpi, ebp); - //Hunger + // Hunger y += 10; gfx_draw_string_left(dpi, STR_GUEST_STAT_HUNGER_LABEL, gCommonFormatArgs, COLOUR_BLACK, x, y); @@ -1420,7 +1420,7 @@ void window_guest_stats_paint(rct_window *w, rct_drawpixelinfo *dpi) } window_guest_stats_bars_paint(hunger, x, y, w, dpi, ebp); - //Thirst + // Thirst y += 10; gfx_draw_string_left(dpi, STR_GUEST_STAT_THIRST_LABEL, gCommonFormatArgs, COLOUR_BLACK, x, y); @@ -1439,7 +1439,7 @@ void window_guest_stats_paint(rct_window *w, rct_drawpixelinfo *dpi) } window_guest_stats_bars_paint(thirst, x, y, w, dpi, ebp); - //Nausea + // Nausea y += 10; gfx_draw_string_left(dpi, STR_GUEST_STAT_NAUSEA_LABEL, gCommonFormatArgs, COLOUR_BLACK, x, y); @@ -1455,7 +1455,7 @@ void window_guest_stats_paint(rct_window *w, rct_drawpixelinfo *dpi) } window_guest_stats_bars_paint(nausea, x, y, w, dpi, ebp); - //Bathroom + // Bathroom y += 10; gfx_draw_string_left(dpi, STR_GUEST_STAT_TOILET_LABEL, gCommonFormatArgs, COLOUR_BLACK, x, y); @@ -1680,9 +1680,9 @@ void window_guest_rides_paint(rct_window *w, rct_drawpixelinfo *dpi) rct_peep* peep = GET_PEEP(w->number); - //cx + // cx sint32 x = w->x + window_guest_rides_widgets[WIDX_PAGE_BACKGROUND].left + 2; - //dx + // dx sint32 y = w->y + window_guest_rides_widgets[WIDX_PAGE_BACKGROUND].top + 2; gfx_draw_string_left(dpi, STR_GUEST_LABEL_RIDES_BEEN_ON, NULL, COLOUR_BLACK, x, y); @@ -1947,9 +1947,9 @@ void window_guest_thoughts_paint(rct_window *w, rct_drawpixelinfo *dpi) rct_peep* peep = GET_PEEP(w->number); - //cx + // cx sint32 x = w->x + window_guest_thoughts_widgets[WIDX_PAGE_BACKGROUND].left + 4; - //dx + // dx sint32 y = w->y + window_guest_thoughts_widgets[WIDX_PAGE_BACKGROUND].top + 4; gfx_draw_string_left(dpi, STR_GUEST_RECENT_THOUGHTS_LABEL, NULL, COLOUR_BLACK, x, y); diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index 7861813d1e..f2d67acc4f 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -1802,7 +1802,7 @@ static void window_ride_construction_mouseup_demolish(rct_window* w) _rideConstructionState2 = RIDE_CONSTRUCTION_STATE_BACK; } - // Invalidate the selected track element or make sure its at origin??? + // Invalidate the selected track element or make sure it's at origin??? x = _currentTrackBeginX; y = _currentTrackBeginY; z = _currentTrackBeginZ; diff --git a/src/openrct2/windows/shortcut_key_change.c b/src/openrct2/windows/shortcut_key_change.c index 1845ab4bcb..84abe19c70 100644 --- a/src/openrct2/windows/shortcut_key_change.c +++ b/src/openrct2/windows/shortcut_key_change.c @@ -44,7 +44,7 @@ static void window_shortcut_change_mouseup(rct_window *w, rct_widgetindex widget static void window_shortcut_change_invalidate(rct_window *w); static void window_shortcut_change_paint(rct_window *w, rct_drawpixelinfo *dpi); -//0x9A3F7C +// 0x9A3F7C static rct_window_event_list window_shortcut_change_events = { NULL, window_shortcut_change_mouseup, diff --git a/src/openrct2/world/mapgen.c b/src/openrct2/world/mapgen.c index d61fd1f3a5..1242e794dd 100644 --- a/src/openrct2/world/mapgen.c +++ b/src/openrct2/world/mapgen.c @@ -200,7 +200,7 @@ void mapgen_generate(mapgen_settings *settings) // Small blobs, small hills and lakes mapgen_blobs(32, _heightSize / 32, _heightSize / 16, 4, 18); - // Smooth the land so that their aren't cliffs round every blob. + // Smooth the land so that there aren't cliffs round every blob. mapgen_smooth_height(2); } @@ -488,7 +488,7 @@ static void mapgen_blob_fill(sint32 height) for (sint32 y = top; y <= bottom; y++) { if (y >= firstLand && y <= lastLand && landX[x * _heightSize + y]) { - // Not only do we know its landlocked to both x and y + // Not only do we know it's landlocked to both x and y // we can change the land too set_height(x, y, BLOB_HEIGHT); } diff --git a/src/openrct2/world/park.c b/src/openrct2/world/park.c index 323cba9b16..c11ac09383 100644 --- a/src/openrct2/world/park.c +++ b/src/openrct2/world/park.c @@ -359,7 +359,7 @@ void reset_park_entry() /** * Calculates the probability of a new guest. Also sets total ride value and suggested guest maximum. - * Total ride value should probably be set else where, as its not just used for guest generation. + * Total ride value should probably be set elsewhere, as it's not just used for guest generation. * Suggested guest maximum should probably be an output result, not a global. * @returns A probability out of 65535 * rct2: 0x0066730A diff --git a/src/openrct2/world/sprite.c b/src/openrct2/world/sprite.c index d0e8127212..47ad51e5f5 100644 --- a/src/openrct2/world/sprite.c +++ b/src/openrct2/world/sprite.c @@ -697,7 +697,7 @@ void litter_remove_at(sint32 x, sint32 y, sint32 z) } /** - * Determines whether its worth tweening a sprite or not when frame smoothing is on. + * Determines whether it's worth tweening a sprite or not when frame smoothing is on. */ static bool sprite_should_tween(rct_sprite *sprite) { From d6b32591ae8d07a6a80f1d86a26060eb2520f993 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Thu, 11 May 2017 17:31:29 +0100 Subject: [PATCH 084/670] Implement guard function for decrementing guest counts * Implement guard function for decrementing guest counts * Implement separate functions for incr/decr of peep count globals * assert() on attempt to increment guest counts over UINT16_MAX * Increase network version --- src/openrct2/network/network.h | 2 +- src/openrct2/peep/peep.c | 52 ++++++++++++++++++++++++++------ src/openrct2/peep/peep.h | 5 +++ src/openrct2/rct1/S4Importer.cpp | 4 +-- src/openrct2/ride/vehicle.c | 2 +- 5 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 5ab29f7ec0..01c06aba5d 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "2" +#define NETWORK_STREAM_VERSION "3" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index b4d0accb42..43a09acf19 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -2033,11 +2033,11 @@ void peep_sprite_remove(rct_peep* peep){ void peep_remove(rct_peep* peep){ if (peep->type == PEEP_TYPE_GUEST){ if (peep->outside_of_park == 0){ - gNumGuestsInPark--; + decrement_guests_in_park(); gToolbarDirtyFlags |= BTM_TB_DIRTY_FLAG_PEEP_COUNT; } if (peep->state == PEEP_STATE_ENTERING_PARK){ - gNumGuestsHeadingForPark--; + decrement_guests_heading_for_park(); } } peep_sprite_remove(peep); @@ -5207,7 +5207,7 @@ static void peep_update_leaving_park(rct_peep* peep){ peep->outside_of_park = 1; peep->destination_tolerence = 5; - gNumGuestsInPark--; + decrement_guests_in_park(); gToolbarDirtyFlags |= BTM_TB_DIRTY_FLAG_PEEP_COUNT; peep->var_37 = 1; @@ -5312,7 +5312,7 @@ static void peep_update_entering_park(rct_peep* peep){ if (peep->var_37 != 1){ sub_693C9E(peep); if ((_unk_F1EE18 & F1EE18_OUTSIDE_PARK)) { - gNumGuestsHeadingForPark--; + decrement_guests_heading_for_park(); peep_sprite_remove(peep); } return; @@ -5330,8 +5330,8 @@ static void peep_update_entering_park(rct_peep* peep){ peep->outside_of_park = 0; peep->time_in_park = gScenarioTicks; - gNumGuestsInPark++; - gNumGuestsHeadingForPark--; + increment_guests_in_park(); + decrement_guests_heading_for_park(); gToolbarDirtyFlags |= BTM_TB_DIRTY_FLAG_PEEP_COUNT; window_invalidate_by_class(WC_GUEST_LIST); } @@ -7260,7 +7260,7 @@ rct_peep *peep_generate(sint32 x, sint32 y, sint32 z) } peep_update_name_sort(peep); - gNumGuestsHeadingForPark++; + increment_guests_heading_for_park(); return peep; } @@ -8070,7 +8070,7 @@ static sint32 peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rc if (!(gParkFlags & PARK_FLAGS_PARK_OPEN)){ peep->state = PEEP_STATE_LEAVING_PARK; peep->var_37 = 1; - gNumGuestsHeadingForPark--; + decrement_guests_heading_for_park(); peep_window_state_update(peep); return peep_return_to_center_of_tile(peep); } @@ -8127,7 +8127,7 @@ static sint32 peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rc if (!found){ peep->state = PEEP_STATE_LEAVING_PARK; peep->var_37 = 1; - gNumGuestsHeadingForPark--; + decrement_guests_heading_for_park(); peep_window_state_update(peep); return peep_return_to_center_of_tile(peep); } @@ -8149,7 +8149,7 @@ static sint32 peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rc if (entranceFee > peep->cash_in_pocket){ peep->state = PEEP_STATE_LEAVING_PARK; peep->var_37 = 1; - gNumGuestsHeadingForPark--; + decrement_guests_heading_for_park(); peep_window_state_update(peep); return peep_return_to_center_of_tile(peep); } @@ -12808,3 +12808,35 @@ void peep_autoposition(rct_peep *newPeep) sprite_move(x, y, z + 16, (rct_sprite *)newPeep); invalidate_sprite_2((rct_sprite *)newPeep); } + +void increment_guests_in_park(){ + if (gNumGuestsInPark < UINT16_MAX){ + gNumGuestsInPark++; + } else { + openrct2_assert(false, "Attempt to increment guests in park above max value (65535)."); + } +} + +void increment_guests_heading_for_park(){ + if (gNumGuestsHeadingForPark < UINT16_MAX){ + gNumGuestsHeadingForPark++; + } else { + openrct2_assert(false, "Attempt to increment guests heading for park above max value (65535)."); + } +} + +void decrement_guests_in_park(){ + if (gNumGuestsInPark > 0){ + gNumGuestsInPark--; + } else { + log_error("Attempt to decrement guests in park below zero."); + } +} + +void decrement_guests_heading_for_park(){ + if (gNumGuestsHeadingForPark > 0){ + gNumGuestsHeadingForPark--; + } else { + log_error("Attempt to decrement guests heading for park below zero."); + } +} diff --git a/src/openrct2/peep/peep.h b/src/openrct2/peep/peep.h index 6e1e67de26..d094872fce 100644 --- a/src/openrct2/peep/peep.h +++ b/src/openrct2/peep/peep.h @@ -780,4 +780,9 @@ void pathfind_logging_disable(); void peep_autoposition(rct_peep *newPeep); +void increment_guests_in_park(); +void increment_guests_heading_for_park(); +void decrement_guests_in_park(); +void decrement_guests_heading_for_park(); + #endif diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 6d21bd846f..c821d5ef1b 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1421,11 +1421,11 @@ private: { if (dst->outside_of_park && dst->state != PEEP_STATE_LEAVING_PARK) { - gNumGuestsHeadingForPark++; + increment_guests_heading_for_park(); } else { - gNumGuestsInPark++; + increment_guests_in_park(); } } } diff --git a/src/openrct2/ride/vehicle.c b/src/openrct2/ride/vehicle.c index d5cacbbc01..b6fdfc8742 100644 --- a/src/openrct2/ride/vehicle.c +++ b/src/openrct2/ride/vehicle.c @@ -4602,7 +4602,7 @@ static void vehicle_kill_all_passengers(rct_vehicle* vehicle) { for (uint8 i = 0; i < curVehicle->num_peeps; i++) { rct_peep* peep = GET_PEEP(curVehicle->peep[i]); if (peep->outside_of_park == 0) { - gNumGuestsInPark--; + decrement_guests_in_park(); gToolbarDirtyFlags |= BTM_TB_DIRTY_FLAG_PEEP_COUNT; } From d56dd24a2039b72ffc8a7be7a0d0686e40b141db Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Fri, 12 May 2017 04:00:21 +0000 Subject: [PATCH 085/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/pt-BR.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/language/pt-BR.txt b/data/language/pt-BR.txt index dbb71df864..ea5115dfb0 100644 --- a/data/language/pt-BR.txt +++ b/data/language/pt-BR.txt @@ -4363,6 +4363,10 @@ STR_6051 :A largura e a altura precisam combinar STR_6052 :A altura do mapa é muito grande, e será cortada STR_6053 :A altura do mapa não pode ser normalizada STR_6054 :Apenas bitmaps de 24-bit são suportados +STR_6055 :Arquivo OpenRCT2 de altura de mapa +STR_6056 :{SMALLFONT}{BLACK}Mudo +STR_6057 :{SMALLFONT}{BLACK}Mostrar na barra de ferramentas um botão separado para a opção Mudo +STR_6058 :Mudo ############# # Scenarios # From 3ba33d098e4812de74a9e9c42a6ebfa253335280 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Fri, 12 May 2017 23:41:25 +0200 Subject: [PATCH 086/670] Set correct base height for newly inserted corrupt elements --- src/openrct2/network/network.h | 2 +- src/openrct2/world/tile_inspector.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 01c06aba5d..00a86ef231 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "3" +#define NETWORK_STREAM_VERSION "4" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/world/tile_inspector.c b/src/openrct2/world/tile_inspector.c index d621dd296b..807e96ff3b 100644 --- a/src/openrct2/world/tile_inspector.c +++ b/src/openrct2/world/tile_inspector.c @@ -83,7 +83,7 @@ sint32 tile_inspector_insert_corrupt_at(sint32 x, sint32 y, sint16 elementIndex, corruptElement->type = MAP_ELEMENT_TYPE_CORRUPT; // Set the base height to be the same as the selected element - rct_map_element *const selectedElement = map_get_nth_element_at(x, y, elementIndex); + rct_map_element *const selectedElement = map_get_nth_element_at(x, y, elementIndex + 1); if (!selectedElement) { return MONEY32_UNDEFINED; } From 6472c0e6c32af01e52cedcae7a4c1ce879c971dc Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 12 May 2017 22:43:48 +0100 Subject: [PATCH 087/670] Allow ride names to duplicate existing user strings, fixes #5211 --- src/openrct2/localisation/localisation.h | 6 ++++ src/openrct2/network/network.h | 2 +- src/openrct2/network/twitch.cpp | 2 +- src/openrct2/peep/peep.c | 2 +- src/openrct2/rct1/S4Importer.cpp | 8 ++--- src/openrct2/ride/ride.c | 44 +++++++++++++----------- src/openrct2/ride/track_design.c | 2 +- src/openrct2/world/banner.cpp | 4 +-- src/openrct2/world/map.c | 2 +- src/openrct2/world/park.c | 2 +- 10 files changed, 41 insertions(+), 33 deletions(-) diff --git a/src/openrct2/localisation/localisation.h b/src/openrct2/localisation/localisation.h index 439db31af5..e857a34143 100644 --- a/src/openrct2/localisation/localisation.h +++ b/src/openrct2/localisation/localisation.h @@ -59,6 +59,12 @@ wchar_t encoding_convert_big5_to_unicode(wchar_t big5); #define MAX_USER_STRINGS 1024 #define USER_STRING_MAX_LENGTH 32 +// Constants used by user_string_allocate +enum { + USER_STRING_HIGH_ID_NUMBER = 1 << 2, + USER_STRING_DUPLICATION_PERMITTED = 1 << 7 +}; + // Real name data extern const char real_name_initials[16]; extern const char *real_names[1024]; diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 00a86ef231..bf760fe980 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "4" +#define NETWORK_STREAM_VERSION "5" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/network/twitch.cpp b/src/openrct2/network/twitch.cpp index d6259dd74d..4bf1357e51 100644 --- a/src/openrct2/network/twitch.cpp +++ b/src/openrct2/network/twitch.cpp @@ -491,7 +491,7 @@ namespace Twitch if (!is_user_string_id(peep->name_string_idx) && !(peep->peep_flags & PEEP_FLAGS_LEAVING_PARK)) { // Rename peep and add flags - rct_string_id newStringId = user_string_allocate(4, member->Name); + rct_string_id newStringId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER, member->Name); if (newStringId != 0) { peep->name_string_idx = newStringId; diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index 43a09acf19..e3deb7b2a2 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -12562,7 +12562,7 @@ money32 set_peep_name(sint32 flags, sint32 state, uint16 sprite_index, uint8* te return MONEY32_UNDEFINED; } - rct_string_id newId = user_string_allocate(4, newName); + rct_string_id newId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER, newName); if (newId == 0) { return MONEY32_UNDEFINED; } diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index c821d5ef1b..569acbd75d 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -675,7 +675,7 @@ private: std::string rideName = GetUserString(src->name); if (!rideName.empty()) { - rct_string_id rideNameStringId = user_string_allocate(4, rideName.c_str()); + rct_string_id rideNameStringId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER, rideName.c_str()); if (rideNameStringId != 0) { dst->name = rideNameStringId; @@ -1286,7 +1286,7 @@ private: std::string peepName = GetUserString(src->name_string_idx); if (!peepName.empty()) { - rct_string_id peepNameStringId = user_string_allocate(4, peepName.c_str()); + rct_string_id peepNameStringId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER, peepName.c_str()); if (peepNameStringId != 0) { dst->name_string_idx = peepNameStringId; @@ -1887,7 +1887,7 @@ private: } } - rct_string_id stringId = user_string_allocate(4, parkName.c_str()); + rct_string_id stringId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER, parkName.c_str()); if (stringId != 0) { gParkName = stringId; @@ -2338,7 +2338,7 @@ private: std::string bannerText = GetUserString(src->string_idx); if (!bannerText.empty()) { - rct_string_id bannerTextStringId = user_string_allocate(128, bannerText.c_str()); + rct_string_id bannerTextStringId = user_string_allocate(USER_STRING_DUPLICATION_PERMITTED, bannerText.c_str()); if (bannerTextStringId != 0) { dst->string_idx = bannerTextStringId; diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index b67638404b..4a86641867 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -5584,7 +5584,7 @@ void game_command_set_ride_name(sint32 *eax, sint32 *ebx, sint32 *ecx, sint32 *e return; } - rct_string_id newUserStringId = user_string_allocate(4, newName); + rct_string_id newUserStringId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER | USER_STRING_DUPLICATION_PERMITTED, newName); if (newUserStringId == 0) { *ebx = MONEY32_UNDEFINED; return; @@ -5972,18 +5972,18 @@ foundRideEntry: ride_set_colour_preset(ride, *outRideColour & 0xFF); ride->overall_view = 0xFFFF; +#pragma pack(push, 1) + struct { + uint16 type_name; + uint16 number; + } name_args; + assert_struct_size(name_args, 4); +#pragma pack(pop) + // Ride name if (rideEntryIndex == 255) { useDefaultName: ride->name = STR_NONE; - -#pragma pack(push, 1) - struct { - uint16 type_name; - uint16 number; - } name_args; - assert_struct_size(name_args, 4); -#pragma pack(pop) name_args.type_name = 2 + ride->type; name_args.number = 0; do { @@ -5999,20 +5999,22 @@ foundRideEntry: } ride->name = 1; ride->name_arguments_type_name = rideEntry->name; - ride->name_arguments_number = 0; - rct_string_id rideNameStringId = 0; - for (sint32 i = 0; i < 100; i++) { - ride->name_arguments_number++; - format_string(rideNameBuffer, 256, ride->name, &ride->name_arguments); + name_args.type_name = 2 + ride->type; + name_args.number = 0; - rideNameStringId = user_string_allocate(4, rideNameBuffer); - if (rideNameStringId != 0) { - ride->name = rideNameStringId; - break; - } - } - if (rideNameStringId == 0) { + do { + name_args.number++; + format_string(rideNameBuffer, 256, ride->name, &name_args); + } while (ride_name_exists(rideNameBuffer)); + + ride->name_arguments_type_name = name_args.type_name; + ride->name_arguments_number = name_args.number; + + rideNameStringId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER | USER_STRING_DUPLICATION_PERMITTED, rideNameBuffer); + if (rideNameStringId != 0) { + ride->name = rideNameStringId; + } else { goto useDefaultName; } } diff --git a/src/openrct2/ride/track_design.c b/src/openrct2/ride/track_design.c index 3cd258f59f..ec835a957d 100644 --- a/src/openrct2/ride/track_design.c +++ b/src/openrct2/ride/track_design.c @@ -1339,7 +1339,7 @@ static bool sub_6D2189(rct_track_td6 *td6, money32 *cost, uint8 *rideId, uint8 * } rct_ride *ride = get_ride(rideIndex); - rct_string_id new_ride_name = user_string_allocate(132, ""); + rct_string_id new_ride_name = user_string_allocate(USER_STRING_HIGH_ID_NUMBER | USER_STRING_DUPLICATION_PERMITTED, ""); if (new_ride_name != 0) { rct_string_id old_name = ride->name; ride->name = new_ride_name; diff --git a/src/openrct2/world/banner.cpp b/src/openrct2/world/banner.cpp index 791dff48d6..29e2d3fb10 100644 --- a/src/openrct2/world/banner.cpp +++ b/src/openrct2/world/banner.cpp @@ -325,7 +325,7 @@ static money32 BannerSetName(uint8 bannerIndex, dst = utf8_write_codepoint(dst, FORMAT_COLOUR_CODE_START + banner->text_colour); String::Set(dst, 256, newName, 32); - rct_string_id stringId = user_string_allocate(128, buffer); + rct_string_id stringId = user_string_allocate(USER_STRING_DUPLICATION_PERMITTED, buffer); if (stringId != 0) { rct_string_id prevStringId = banner->string_idx; @@ -392,7 +392,7 @@ static money32 BannerSetStyle(uint8 bannerIndex, uint8 colour, uint8 textColour, utf8_insert_codepoint(buffer, colourCodepoint); } - rct_string_id stringId = user_string_allocate(128, buffer); + rct_string_id stringId = user_string_allocate(USER_STRING_DUPLICATION_PERMITTED, buffer); if (stringId != 0) { rct_string_id prevStringId = banner->string_idx; diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index 26d985a3df..e5dc9bed40 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -4393,7 +4393,7 @@ void game_command_set_sign_name(sint32* eax, sint32* ebx, sint32* ecx, sint32* e } if (newName[0] != 0) { - rct_string_id string_id = user_string_allocate(128, newName); + rct_string_id string_id = user_string_allocate(USER_STRING_DUPLICATION_PERMITTED, newName); if (string_id != 0) { rct_string_id prev_string_id = banner->string_idx; banner->string_idx = string_id; diff --git a/src/openrct2/world/park.c b/src/openrct2/world/park.c index c11ac09383..39a9bfdbb1 100644 --- a/src/openrct2/world/park.c +++ b/src/openrct2/world/park.c @@ -825,7 +825,7 @@ void game_command_set_park_name(sint32 *eax, sint32 *ebx, sint32 *ecx, sint32 *e return; } - newUserStringId = user_string_allocate(4, newName); + newUserStringId = user_string_allocate(USER_STRING_HIGH_ID_NUMBER, newName); if (newUserStringId == 0) { gGameCommandErrorText = STR_INVALID_NAME_FOR_PARK; *ebx = MONEY32_UNDEFINED; From eb868089c8cebb8dc9ffc6f08fa7bb5ce078f9da Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Sun, 14 May 2017 23:45:44 +0100 Subject: [PATCH 088/670] Fix #5470: Available construction rights only displays once (#5476) --- src/openrct2/windows/land_rights.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2/windows/land_rights.c b/src/openrct2/windows/land_rights.c index 75ad5ee085..47a392339a 100644 --- a/src/openrct2/windows/land_rights.c +++ b/src/openrct2/windows/land_rights.c @@ -122,7 +122,9 @@ void window_land_rights_open() static void window_land_rights_close(rct_window *w) { - hide_construction_rights(); + if (gLandRemainingConstructionSales == 0) { + hide_construction_rights(); + } // If the tool wasn't changed, turn tool off if (land_rights_tool_is_active()) From 26287f5a3e471cf583b965193e800201ca00931a Mon Sep 17 00:00:00 2001 From: CraigCraig Date: Mon, 15 May 2017 02:28:43 -0500 Subject: [PATCH 089/670] More readability, grammar, spelling fixes --- src/openrct2/Imaging.cpp | 2 +- src/openrct2/cheats.c | 4 +- src/openrct2/cmdline_sprite.c | 4 +- src/openrct2/config/Config.cpp | 2 +- src/openrct2/drawing/drawing.c | 20 +++--- src/openrct2/drawing/drawing.h | 6 +- src/openrct2/drawing/drawing_fast.cpp | 42 +++++------ src/openrct2/drawing/sprite.cpp | 70 +++++++++---------- src/openrct2/game.c | 18 ++--- src/openrct2/interface/Fonts.cpp | 2 +- src/openrct2/interface/chat.c | 12 ++-- src/openrct2/interface/console.c | 18 ++--- src/openrct2/localisation/currency.h | 8 +-- src/openrct2/localisation/format_codes.h | 4 +- src/openrct2/localisation/localisation.c | 48 ++++++------- src/openrct2/management/finance.c | 2 +- src/openrct2/paint/map_element/banner.c | 2 +- src/openrct2/paint/map_element/fence.c | 2 +- src/openrct2/rct2/addresses.h | 16 ++--- src/openrct2/ride/gentle/circus_show.c | 8 +-- src/openrct2/ride/gentle/crooked_house.c | 14 ++-- src/openrct2/ride/gentle/dodgems.c | 4 +- src/openrct2/ride/ride.c | 4 +- src/openrct2/ride/thrill/go_karts.c | 2 +- src/openrct2/ride/water/log_flume.c | 2 +- src/openrct2/windows/banner.c | 10 +-- src/openrct2/windows/changelog.c | 2 +- src/openrct2/windows/cheats.c | 6 +- src/openrct2/windows/editor_bottom_toolbar.c | 6 +- src/openrct2/windows/editor_main.c | 2 +- .../windows/editor_object_selection.c | 4 +- src/openrct2/windows/guest.c | 44 ++++++------ src/openrct2/windows/guest_list.c | 2 +- src/openrct2/world/Duck.cpp | 2 +- src/openrct2/world/banner.h | 12 ++-- src/openrct2/world/entrance.cpp | 2 +- src/openrct2/world/footpath.h | 2 +- 37 files changed, 205 insertions(+), 205 deletions(-) diff --git a/src/openrct2/Imaging.cpp b/src/openrct2/Imaging.cpp index 03baed2797..d7db91d385 100644 --- a/src/openrct2/Imaging.cpp +++ b/src/openrct2/Imaging.cpp @@ -64,7 +64,7 @@ namespace Imaging return false; } - // Setup png reading + // Setup PNG reading png_set_read_fn(png_ptr, &fs, PngReadData); png_set_sig_bytes(png_ptr, sig_read); diff --git a/src/openrct2/cheats.c b/src/openrct2/cheats.c index 5c1e933608..4523f5b369 100644 --- a/src/openrct2/cheats.c +++ b/src/openrct2/cheats.c @@ -195,10 +195,10 @@ static void cheat_reset_crash_status() rct_ride *ride; FOR_ALL_RIDES(i, ride){ - //reset crash status + // Reset crash status if (ride->lifecycle_flags & RIDE_LIFECYCLE_CRASHED) ride->lifecycle_flags &= ~RIDE_LIFECYCLE_CRASHED; - //reset crash history + // Reset crash history ride->last_crash_type = RIDE_CRASH_TYPE_NONE; } window_invalidate_by_class(WC_RIDE); diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 4753ae7b5e..3f8deffef4 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -712,12 +712,12 @@ sint32 cmdline_for_sprite(const char **argv, sint32 argc) json_decref(sprite_list); return -1; } - //Get x and y offsets, if present + // Get x and y offsets, if present json_t* x_offset = json_object_get(sprite_description, "x_offset"); json_t* y_offset = json_object_get(sprite_description, "y_offset"); - //Resolve absolute sprite path + // Resolve absolute sprite path char *imagePath = platform_get_absolute_path(json_string_value(path), directoryPath); rct_g1_element spriteElement; diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index 9dd72fdd2a..c1ba09ccc5 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -171,7 +171,7 @@ namespace Config model->load_save_sort = reader->GetSint32("load_save_sort", SORT_NAME_ASCENDING); model->minimize_fullscreen_focus_loss = reader->GetBoolean("minimize_fullscreen_focus_loss", true); - //Default config setting is false until the games canvas can be separated from the effect + // Default config setting is false until the games canvas can be separated from the effect model->day_night_cycle = reader->GetBoolean("day_night_cycle", false); model->enable_light_fx = reader->GetBoolean("enable_light_fx", false); diff --git a/src/openrct2/drawing/drawing.c b/src/openrct2/drawing/drawing.c index 80116fe69f..0b9d727850 100644 --- a/src/openrct2/drawing/drawing.c +++ b/src/openrct2/drawing/drawing.c @@ -89,7 +89,7 @@ uint8 gOtherPalette[256] = { 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF }; -//Originally 0x9ABE04 +// Originally 0x9ABE04 uint8 text_palette[0x8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; @@ -314,26 +314,26 @@ const uint16 palette_to_g1_offset[PALETTE_TO_G1_OFFSET_COUNT] = { SPR_PALETTE_LIGHT_PINK, - SPR_PALETTE_WATER, // PALETTE_WATER (water) + SPR_PALETTE_WATER, // PALETTE_WATER (water) SPR_PALETTE_3100, - SPR_PALETTE_3101, // PALETTE_34 + SPR_PALETTE_3101, // PALETTE_34 SPR_PALETTE_3102, SPR_PALETTE_3103, SPR_PALETTE_3104, SPR_PALETTE_3106, SPR_PALETTE_3107, - SPR_PALETTE_3108, // 40 + SPR_PALETTE_3108, // 40 SPR_PALETTE_3109, SPR_PALETTE_3110, SPR_PALETTE_3105, SPR_PALETTE_4948, - SPR_PALETTE_4949, // PALETTE_45 + SPR_PALETTE_4949, // PALETTE_45 SPR_PALETTE_4950, - SPR_PALETTE_DARKEN_3, // PALETTE_DARKEN_3 - SPR_PALETTE_4952, // Decreases contrast - SPR_PALETTE_DARKEN_1, // PALETTE_DARKEN_1 - SPR_PALETTE_DARKEN_2, // PALETTE_DARKEN_2 (construction marker) - SPR_PALETTE_4955, // PALETTE_51 + SPR_PALETTE_DARKEN_3, // PALETTE_DARKEN_3 + SPR_PALETTE_4952, // Decreases contrast + SPR_PALETTE_DARKEN_1, // PALETTE_DARKEN_1 + SPR_PALETTE_DARKEN_2, // PALETTE_DARKEN_2 (construction marker) + SPR_PALETTE_4955, // PALETTE_51 SPR_PALETTE_TRANSLUCENT_GREY, SPR_PALETTE_TRANSLUCENT_GREY_HIGHLIGHT, diff --git a/src/openrct2/drawing/drawing.h b/src/openrct2/drawing/drawing.h index 0a6b3a1fec..9088238c3c 100644 --- a/src/openrct2/drawing/drawing.h +++ b/src/openrct2/drawing/drawing.h @@ -66,7 +66,7 @@ typedef struct rct_g1_element_32bit { sint16 x_offset; // 0x08 sint16 y_offset; // 0x0A uint16 flags; // 0x0C - uint16 zoomed_offset; // 0x0E + uint16 zoomed_offset; // 0x0E } rct_g1_element_32bit; assert_struct_size(rct_g1_element_32bit, 0x10); @@ -102,13 +102,13 @@ typedef enum { PALETTE_34 = 34, - PALETTE_45 = 45, // Decolorize + lighten + PALETTE_45 = 45, // Decolourise + lighten PALETTE_DARKEN_3 = 47, PALETTE_DARKEN_1 = 49, PALETTE_DARKEN_2 = 50, - PALETTE_51 = 51, // Decolorize + darken + PALETTE_51 = 51, // Decolourise + darken PALETTE_TRANSLUCENT_GREY = 52, PALETTE_TRANSLUCENT_GREY_HIGHLIGHT = 53, PALETTE_TRANSLUCENT_GREY_SHADOW = 54, diff --git a/src/openrct2/drawing/drawing_fast.cpp b/src/openrct2/drawing/drawing_fast.cpp index 6e9576a033..13f309db45 100644 --- a/src/openrct2/drawing/drawing_fast.cpp +++ b/src/openrct2/drawing/drawing_fast.cpp @@ -47,35 +47,35 @@ static void FASTCALL DrawRLESprite2(const uint8* RESTRICT source_bits_pointer, next_dest_pointer += line_width & source_y_start_mask; height -= zoom_amount & source_y_start_mask; - //For every line in the image + // For every line in the image for (sint32 i = 0; i < height; i += zoom_amount) { sint32 y = source_y_start + i; uint8 i2 = i >> zoom_level; - //The first part of the source pointer is a list of offsets to different lines - //This will move the pointer to the correct source line. + // The first part of the source pointer is a list of offsets to different lines + // This will move the pointer to the correct source line. const uint8 *next_source_pointer = source_bits_pointer + ((uint16*)source_bits_pointer)[y]; uint8* loop_dest_pointer = next_dest_pointer + line_width * i2; uint8 last_data_line = 0; - //For every data section in the line + // For every data section in the line while (!last_data_line) { const uint8* source_pointer = next_source_pointer; uint8* dest_pointer = loop_dest_pointer; sint32 no_pixels = *source_pointer++; - //gap_size is the number of non drawn pixels you require to - //jump over on your destination + // gap_size is the number of non drawn pixels you require to + // jump over on your destination uint8 gap_size = *source_pointer++; - //The last bit in no_pixels tells you if you have reached the end of a line + // The last bit in no_pixels tells you if you have reached the end of a line last_data_line = no_pixels & 0x80; - //Clear the last data line bit so we have just the no_pixels + // Clear the last data line bit so we have just the no_pixels no_pixels &= 0x7f; - //Have our next source pointer point to the next data section + // Have our next source pointer point to the next data section next_source_pointer = source_pointer + no_pixels; - //Calculates the start point of the image + // Calculates the start point of the image sint32 x_start = gap_size - source_x_start; const sint32 x_diff = x_start & ~zoom_mask; const sint32 x_mask = ~less_or_equal_zero_mask(x_diff); @@ -89,23 +89,23 @@ static void FASTCALL DrawRLESprite2(const uint8* RESTRICT source_bits_pointer, dest_pointer += (x_start >> zoom_level) & ~sign; - //If the start is negative we require to remove part of the image. - //This is done by moving the image pointer to the correct position. + // If the start is negative we require to remove part of the image. + // This is done by moving the image pointer to the correct position. source_pointer -= x_start & sign; - //The no_pixels will be reduced in this operation + // The no_pixels will be reduced in this operation no_pixels += x_start & sign; - //Reset the start position to zero as we have taken into account all moves + // Reset the start position to zero as we have taken into account all moves x_start &= ~sign; sint32 x_end = x_start + no_pixels; - //If the end position is further out than the whole image - //end position then we need to shorten the line again + // If the end position is further out than the whole image + // end position then we need to shorten the line again const sint32 pixels_till_end = x_end - width; - //Shorten the line + // Shorten the line no_pixels -= pixels_till_end & ~(less_or_equal_zero_mask(pixels_till_end)); - //Finally after all those checks, copy the image onto the drawing surface - //If the image type is not a basic one we require to mix the pixels + // Finally after all those checks, copy the image onto the drawing surface + // If the image type is not a basic one we require to mix the pixels if (image_type & IMAGE_TYPE_REMAP) {//In the .exe these are all unraveled loops for (; no_pixels > 0; no_pixels -= zoom_amount, source_pointer += zoom_amount, dest_pointer++) { uint8 al = *source_pointer; @@ -117,8 +117,8 @@ static void FASTCALL DrawRLESprite2(const uint8* RESTRICT source_bits_pointer, *dest_pointer = al; } } else if (image_type & IMAGE_TYPE_TRANSPARENT) {//In the .exe these are all unraveled loops - //Doesn't use source pointer ??? mix with background only? - //Not Tested + // Doesn't use source pointer ??? mix with background only? + // Not Tested for (; no_pixels > 0; no_pixels -= zoom_amount, dest_pointer++) { uint8 pixel = *dest_pointer; diff --git a/src/openrct2/drawing/sprite.cpp b/src/openrct2/drawing/sprite.cpp index f2cc5cbadc..9add114156 100644 --- a/src/openrct2/drawing/sprite.cpp +++ b/src/openrct2/drawing/sprite.cpp @@ -281,7 +281,7 @@ extern "C" if (image_type & IMAGE_TYPE_REMAP){ assert(palette_pointer != nullptr); - //image with remaps + // Image with remaps for (; height > 0; height -= zoom_amount){ uint8* next_source_pointer = source_pointer + source_line_width; uint8* next_dest_pointer = dest_pointer + dest_line_width; @@ -299,10 +299,10 @@ extern "C" return; } - //Image is Transparent. It only uses source pointer for - //telling if it needs to be drawn not for colour. Colour provided - //by the palette pointer. - if (image_type & IMAGE_TYPE_TRANSPARENT){//Not tested + // Image is transparent. It only uses source pointer for + // telling if it needs to be drawn not for colour. Colour provided + // by the palette pointer. + if (image_type & IMAGE_TYPE_TRANSPARENT){ // Not tested assert(palette_pointer != nullptr); for (; height > 0; height -= zoom_amount){ uint8* next_source_pointer = source_pointer + source_line_width; @@ -323,8 +323,8 @@ extern "C" return; } - //Basic bitmap no fancy stuff - if (!(source_image->flags & G1_FLAG_BMP)){//Not tested + // Basic bitmap no fancy stuff + if (!(source_image->flags & G1_FLAG_BMP)){ // Not tested for (; height > 0; height -= zoom_amount){ uint8* next_source_pointer = source_pointer + source_line_width; uint8* next_dest_pointer = dest_pointer + dest_line_width; @@ -339,7 +339,7 @@ extern "C" return; } - //Basic bitmap with no draw pixels + // Basic bitmap with no draw pixels for (; height > 0; height -= zoom_amount){ uint8* next_source_pointer = source_pointer + source_line_width; uint8* next_dest_pointer = dest_pointer + dest_line_width; @@ -455,7 +455,7 @@ extern "C" return; } - //Its used super often so we will define it to a separate variable. + // Its used super often so we will define it to a separate variable. sint32 zoom_level = dpi->zoom_level; sint32 zoom_mask = 0xFFFFFFFF << zoom_level; @@ -464,9 +464,9 @@ extern "C" y -= ~zoom_mask; } - //This will be the height of the drawn image + // This will be the height of the drawn image sint32 height = g1_source->height; - //This is the start y coordinate on the destination + // This is the start y coordinate on the destination sint16 dest_start_y = y + g1_source->y_offset; // For whatever reason the RLE version does not use @@ -481,16 +481,16 @@ extern "C" sint32 source_start_y = 0; if (dest_start_y < 0){ - //If the destination y is negative reduce the height of the - //image as we will cut off the bottom + // If the destination y is negative reduce the height of the + // image as we will cut off the bottom height += dest_start_y; - //If the image is no longer visible nothing to draw + // If the image is no longer visible nothing to draw if (height <= 0){ return; } - //The source image will start a further up the image + // The source image will start a further up the image source_start_y -= dest_start_y; - //The destination start is now reset to 0 + // The destination start is now reset to 0 dest_start_y = 0; } else{ @@ -503,33 +503,33 @@ extern "C" sint32 dest_end_y = dest_start_y + height; if (dest_end_y > dpi->height){ - //If the destination y is outside of the drawing - //image reduce the height of the image + // If the destination y is outside of the drawing + // image reduce the height of the image height -= dest_end_y - dpi->height; } - //If the image no longer has anything to draw + // If the image no longer has anything to draw if (height <= 0)return; dest_start_y >>= zoom_level; - //This will be the width of the drawn image + // This will be the width of the drawn image sint32 width = g1_source->width; - //This is the source start x coordinate + // This is the source start x coordinate sint32 source_start_x = 0; - //This is the destination start x coordinate + // This is the destination start x coordinate sint16 dest_start_x = ((x + g1_source->x_offset + ~zoom_mask)&zoom_mask) - dpi->x; if (dest_start_x < 0){ - //If the destination is negative reduce the width - //image will cut off the side + // If the destination is negative reduce the width + // image will cut off the side width += dest_start_x; - //If there is no image to draw + // If there is no image to draw if (width <= 0){ return; } - //The source start will also need to cut off the side + // The source start will also need to cut off the side source_start_x -= dest_start_x; - //Reset the destination to 0 + // Reset the destination to 0 dest_start_x = 0; } else{ @@ -541,27 +541,27 @@ extern "C" sint32 dest_end_x = dest_start_x + width; if (dest_end_x > dpi->width){ - //If the destination x is outside of the drawing area - //reduce the image width. + // If the destination x is outside of the drawing area + // reduce the image width. width -= dest_end_x - dpi->width; - //If there is no image to draw. + // If there is no image to draw. if (width <= 0)return; } dest_start_x >>= zoom_level; uint8* dest_pointer = (uint8*)dpi->bits; - //Move the pointer to the start point of the destination + // Move the pointer to the start point of the destination dest_pointer += ((dpi->width >> zoom_level) + dpi->pitch) * dest_start_y + dest_start_x; if (g1_source->flags & G1_FLAG_RLE_COMPRESSION){ - //We have to use a different method to move the source pointer for - //rle encoded sprites so that will be handled within this function + // We have to use a different method to move the source pointer for + // rle encoded sprites so that will be handled within this function gfx_rle_sprite_to_buffer(g1_source->offset, dest_pointer, palette_pointer, dpi, image_type, source_start_y, height, source_start_x, width); return; } uint8* source_pointer = g1_source->offset; - //Move the pointer to the start point of the source + // Move the pointer to the start point of the source source_pointer += g1_source->width*source_start_y + source_start_x; if (!(g1_source->flags & G1_FLAG_1)) { @@ -585,7 +585,7 @@ extern "C" assert(imgColour->flags & G1_FLAG_BMP); if (dpi->zoom_level != 0) { - // TODO implement other zoom levels (probably not used though) + // TODO: Implement other zoom levels (probably not used though) assert(false); return; } diff --git a/src/openrct2/game.c b/src/openrct2/game.c index f8d31d254a..44884b798b 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -163,7 +163,7 @@ void update_palette_effects() rct_water_type* water_type = (rct_water_type*)object_entry_groups[OBJECT_TYPE_WATER].chunks[0]; if (gClimateLightningFlash == 1) { - // change palette to lighter colour during lightning + // Change palette to lighter colour during lightning sint32 palette = SPR_GAME_PALETTE_DEFAULT; if ((intptr_t)water_type != -1) { @@ -182,7 +182,7 @@ void update_palette_effects() gClimateLightningFlash++; } else { if (gClimateLightningFlash == 2) { - // change palette back to normal after lightning + // Change palette back to normal after lightning sint32 palette = SPR_GAME_PALETTE_DEFAULT; if ((intptr_t)water_type != -1) { @@ -200,7 +200,7 @@ void update_palette_effects() } } - // animate the water/lava/chain movement palette + // Animate the water/lava/chain movement palette uint32 shade = 0; if (gConfigGeneral.render_weather_gloom) { uint8 gloom = gClimateCurrentWeatherGloom; @@ -294,7 +294,7 @@ void game_update() if (network_get_mode() == NETWORK_MODE_CLIENT && network_get_status() == NETWORK_STATUS_CONNECTED && network_get_authstatus() == NETWORK_AUTH_OK) { if (network_get_server_tick() - gCurrentTicks >= 10) { - // make sure client doesn't fall behind the server too much + // Make sure client doesn't fall behind the server too much numUpdates += 10; } } @@ -372,7 +372,7 @@ void game_logic_update() network_update(); if (network_get_mode() == NETWORK_MODE_CLIENT && network_get_status() == NETWORK_STATUS_CONNECTED && network_get_authstatus() == NETWORK_AUTH_OK) { if (gCurrentTicks >= network_get_server_tick()) { - // don't run past the server + // Don't run past the server return; } } @@ -426,7 +426,7 @@ void game_logic_update() window_error_open(title_text, body_text); } - // start autosave timer after update + // Start autosave timer after update if (gLastAutoSaveUpdate == AUTOSAVE_PAUSE) gLastAutoSaveUpdate = platform_get_ticks(); } @@ -584,7 +584,7 @@ sint32 game_do_command_p(sint32 command, sint32 *eax, sint32 *ebx, sint32 *ecx, network_add_player_money_spent(network_get_current_player_id(), cost); } - // start autosave timer after game command + // Start autosave timer after game command if (gLastAutoSaveUpdate == AUTOSAVE_PAUSE) gLastAutoSaveUpdate = platform_get_ticks(); @@ -1017,7 +1017,7 @@ static void limit_autosave_count(const size_t numberOfFilesToKeep, bool processL qsort (autosaveFiles, autosavesCount, sizeof (char*), compare_autosave_file_paths); - // calculate how many saves we need to delete. + // Calculate how many saves we need to delete. numAutosavesToDelete = autosavesCount - numberOfFilesToKeep; i=0; @@ -1047,7 +1047,7 @@ void game_autosave() saveFlags |= 2; } - // retrieve current time + // Retrieve current time rct2_date currentDate; platform_get_date_local(¤tDate); rct2_time currentTime; diff --git a/src/openrct2/interface/Fonts.cpp b/src/openrct2/interface/Fonts.cpp index 5dafe43351..79149cfab6 100644 --- a/src/openrct2/interface/Fonts.cpp +++ b/src/openrct2/interface/Fonts.cpp @@ -89,7 +89,7 @@ const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] = { { "ru-RU", "Russian", "Russian", FONT(&TTFFontArial), RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_RUSSIAN { "cs-CZ", "Czech", "Czech", FONT(&TTFFontArial), RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_CZECH { "ja-JP", "Japanese", "Japanese", FONT(&TTFFontMSGothic), RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_JAPANESE - { "nb-NO", "Norwegian", "Norsk", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_NORWEGIAN + { "nb-NO", "Norwegian", "Norsk", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_NORWEGIAN { "ca-ES", "Catalan", u8"Català", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_SPANISH }, // LANGUAGE_CATALAN }; diff --git a/src/openrct2/interface/chat.c b/src/openrct2/interface/chat.c index 2dfd7b021a..16876d553e 100644 --- a/src/openrct2/interface/chat.c +++ b/src/openrct2/interface/chat.c @@ -113,16 +113,16 @@ void chat_draw(rct_drawpixelinfo * dpi) if (_chatTop < 50) { _chatTop = 50; - } else if (_chatHeight < 150) { //Min height + } else if (_chatHeight < 150) { // Min height _chatTop = _chatBottom - 150; _chatHeight = 150; } - gfx_set_dirty_blocks(_chatLeft, _chatTop - 5, _chatRight, _chatBottom + 5); //Background area + Textbox - gfx_filter_rect(dpi, _chatLeft, _chatTop - 5, _chatRight, _chatBottom + 5, PALETTE_51); //Opaque gray background + gfx_set_dirty_blocks(_chatLeft, _chatTop - 5, _chatRight, _chatBottom + 5); // Background area + Textbox + gfx_filter_rect(dpi, _chatLeft, _chatTop - 5, _chatRight, _chatBottom + 5, PALETTE_51); // Opaque gray background gfx_fill_rect_inset(dpi, _chatLeft, _chatTop - 5, _chatRight, _chatBottom + 5, chatBackgroundColor, INSET_RECT_FLAG_FILL_NONE); gfx_fill_rect_inset(dpi, _chatLeft + 1, _chatTop - 4, _chatRight - 1, _chatBottom - inputLineHeight - 6, chatBackgroundColor, INSET_RECT_FLAG_BORDER_INSET); - gfx_fill_rect_inset(dpi, _chatLeft + 1, _chatBottom - inputLineHeight - 5, _chatRight - 1, _chatBottom + 4, chatBackgroundColor, INSET_RECT_FLAG_BORDER_INSET); //Textbox + gfx_fill_rect_inset(dpi, _chatLeft + 1, _chatBottom - inputLineHeight - 5, _chatRight - 1, _chatBottom + 4, chatBackgroundColor, INSET_RECT_FLAG_BORDER_INSET); // Textbox } sint32 x = _chatLeft + 5; @@ -158,7 +158,7 @@ void chat_draw(rct_drawpixelinfo * dpi) inputLineHeight = gfx_draw_string_left_wrapped(dpi, (void*)&lineCh, x, y + 3, _chatWidth - 10, STR_STRING, TEXT_COLOUR_255); gfx_set_dirty_blocks(x, y, x + _chatWidth, y + inputLineHeight + 15); - //TODO: Show caret if the input text have multiple lines + // TODO: Show caret if the input text has multiple lines if (_chatCaretTicks < 15 && gfx_get_string_width(lineBuffer) < (_chatWidth - 10)) { memcpy(lineBuffer, _chatCurrentLine, gTextInput.selection_offset); lineBuffer[gTextInput.selection_offset] = 0; @@ -232,7 +232,7 @@ sint32 chat_history_draw_string(rct_drawpixelinfo *dpi, void *args, sint32 x, si sint32 expectedY = y - (numLines * lineHeight); if (expectedY < 50) { - return (numLines * lineHeight); //Skip drawing, return total height. + return (numLines * lineHeight); // Skip drawing, return total height. } lineY = y; diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 6114464827..3f88984921 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -857,8 +857,8 @@ static sint32 cc_set(const utf8 **argv, sint32 argc) bool run_get_money = true; if (gCashEncrypted != ENCRYPT_MONEY(money)) { if (game_do_command(0, GAME_COMMAND_FLAG_APPLY, CHEAT_SETMONEY, money, GAME_COMMAND_CHEAT, 0, 0) != MONEY32_UNDEFINED) { - //When in networked client mode, console_execute_silent("get money") - //does not print value accurately. Instead, print the argument. + // When in networked client mode, console_execute_silent("get money") + // does not print value accurately. Instead, print the argument. if (network_get_mode() == NETWORK_MODE_CLIENT) { run_get_money = false; console_printf("money %d.%d0", money / 10, money % 10); @@ -1025,8 +1025,8 @@ static sint32 cc_set(const utf8 **argv, sint32 argc) else if (strcmp(argv[0], "cheat_sandbox_mode") == 0 && invalidArguments(&invalidArgs, int_valid[0])) { if (gCheatsSandboxMode != (int_val[0] != 0)) { if (game_do_command(0, GAME_COMMAND_FLAG_APPLY, CHEAT_SANDBOXMODE, (int_val[0] != 0), GAME_COMMAND_CHEAT, 0, 0) != MONEY32_UNDEFINED) { - //Change it locally so it shows the accurate value in the - //"console_execute_silent("get cheat_sandbox_mode")" line when in network client mode + // Change it locally so it shows the accurate value in the + // "console_execute_silent("get cheat_sandbox_mode")" line when in networked client mode gCheatsSandboxMode = (int_val[0] != 0); } else { @@ -1038,8 +1038,8 @@ static sint32 cc_set(const utf8 **argv, sint32 argc) else if (strcmp(argv[0], "cheat_disable_clearance_checks") == 0 && invalidArguments(&invalidArgs, int_valid[0])) { if (gCheatsDisableClearanceChecks != (int_val[0] != 0)) { if (game_do_command(0, GAME_COMMAND_FLAG_APPLY, CHEAT_DISABLECLEARANCECHECKS, (int_val[0] != 0), GAME_COMMAND_CHEAT, 0, 0) != MONEY32_UNDEFINED) { - //Change it locally so it shows the accurate value in the - //"console_execute_silent("get cheat_disable_clearance_checks")" line when in network client mode + // Change it locally so it shows the accurate value in the + // "console_execute_silent("get cheat_disable_clearance_checks")" line when in networked client mode gCheatsDisableClearanceChecks = (int_val[0] != 0); } else { @@ -1051,8 +1051,8 @@ static sint32 cc_set(const utf8 **argv, sint32 argc) else if (strcmp(argv[0], "cheat_disable_support_limits") == 0 && invalidArguments(&invalidArgs, int_valid[0])) { if (gCheatsDisableSupportLimits != (int_val[0] != 0)) { if (game_do_command(0, GAME_COMMAND_FLAG_APPLY, CHEAT_DISABLESUPPORTLIMITS, (int_val[0] != 0), GAME_COMMAND_CHEAT, 0, 0) != MONEY32_UNDEFINED) { - //Change it locally so it shows the accurate value in the - //"console_execute_silent("get cheat_disable_support_limits")" line when in network client mode + // Change it locally so it shows the accurate value in the + // "console_execute_silent("get cheat_disable_support_limits")" line when in networked client mode gCheatsDisableSupportLimits = (int_val[0] != 0); } else { @@ -1080,7 +1080,7 @@ static sint32 cc_twitch(const utf8 **argv, sint32 argc) #ifdef DISABLE_TWITCH console_writeline_error("OpenRCT2 build not compiled with Twitch integration."); #else - // TODO add some twitch commands + // TODO: Add some twitch commands #endif return 0; } diff --git a/src/openrct2/localisation/currency.h b/src/openrct2/localisation/currency.h index 4e2930bea2..bb6a7fe9aa 100644 --- a/src/openrct2/localisation/currency.h +++ b/src/openrct2/localisation/currency.h @@ -34,11 +34,11 @@ typedef enum { CURRENCY_WON, // South Korean Won CURRENCY_ROUBLE, // Russian Rouble CURRENCY_CZECH_KORUNA, // Czech koruna - CURRENCY_HKD, // Hong Kong Dollar - CURRENCY_TWD, // New Taiwan Dollar - CURRENCY_YUAN, // Chinese Yuan + CURRENCY_HKD, // Hong Kong Dollar + CURRENCY_TWD, // New Taiwan Dollar + CURRENCY_YUAN, // Chinese Yuan - CURRENCY_CUSTOM, // Custom currency + CURRENCY_CUSTOM, // Custom currency CURRENCY_END // Last item } CURRENCY_TYPE; diff --git a/src/openrct2/localisation/format_codes.h b/src/openrct2/localisation/format_codes.h index 750e3d0f0c..b7b00b8184 100644 --- a/src/openrct2/localisation/format_codes.h +++ b/src/openrct2/localisation/format_codes.h @@ -93,7 +93,7 @@ enum { FORMAT_PALESILVER, FORMAT_COLOUR_CODE_END = FORMAT_PALESILVER, - // Extra non-ascii characters + // Extra non-ASCII characters FORMAT_AMINUSCULE = 159, FORMAT_CENT = 162, FORMAT_POUND = 163, @@ -125,7 +125,7 @@ enum { FORMAT_TICK = 10003, FORMAT_CROSS = 10005, - // Format codes that need suitable unicode allocations + // Format codes that need suitable Unicode allocations FORMAT_SYMBOL_i = 20000, FORMAT_SYMBOL_RAILWAY = 20001, FORMAT_SYMBOL_ROAD = 20002, diff --git a/src/openrct2/localisation/localisation.c b/src/openrct2/localisation/localisation.c index afe2b7266f..61da4a4b13 100644 --- a/src/openrct2/localisation/localisation.c +++ b/src/openrct2/localisation/localisation.c @@ -71,12 +71,12 @@ const rct_string_id ResearchFundingLevelNames[] = { }; const rct_string_id MarketingCampaignNames[ADVERTISING_CAMPAIGN_COUNT][3] = { - { STR_MARKETING_VOUCHERS_FOR_FREE_ENTRY_TO_THE_PARK, STR_VOUCHERS_FOR_FREE_ENTRY_TO, STR_MARKETING_FINISHED_FREE_ENTRY }, // ADVERTISING_CAMPAIGN_PARK_ENTRY_FREE, + { STR_MARKETING_VOUCHERS_FOR_FREE_ENTRY_TO_THE_PARK, STR_VOUCHERS_FOR_FREE_ENTRY_TO, STR_MARKETING_FINISHED_FREE_ENTRY }, // ADVERTISING_CAMPAIGN_PARK_ENTRY_FREE, { STR_MARKETING_VOUCHERS_FOR_FREE_RIDES_ON_A_PARTICULAR_RIDE, STR_VOUCHERS_FOR_FREE_RIDE_ON, STR_MARKETING_FINISHED_FREE_RIDES }, // ADVERTISING_CAMPAIGN_RIDE_FREE, { STR_MARKETING_VOUCHERS_FOR_HALF_PRICE_ENTRY_TO_THE_PARK, STR_VOUCHERS_FOR_HALF_PRICE_ENTRY_TO, STR_MARKETING_FINISHED_HALF_PRICE_ENTRY }, // ADVERTISING_CAMPAIGN_PARK_ENTRY_HALF_PRICE, - { STR_MARKETING_VOUCHERS_FOR_FREE_FOOD_OR_DRINK, STR_VOUCHERS_FOR_FREE, STR_MARKETING_FINISHED_FREE_RIDE }, // ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE, - { STR_MARKETING_ADVERTISING_CAMPAIGN_FOR_THE_PARK, STR_ADVERTISING_CAMPAIGN_FOR_1, STR_MARKETING_FINISHED_PARK_ADS }, // ADVERTISING_CAMPAIGN_PARK, - { STR_MARKETING_ADVERTISING_CAMPAIGN_FOR_A_PARTICULAR_RIDE, STR_ADVERTISING_CAMPAIGN_FOR_2, STR_MARKETING_FINISHED_RIDE_ADS }, // ADVERTISING_CAMPAIGN_RIDE, + { STR_MARKETING_VOUCHERS_FOR_FREE_FOOD_OR_DRINK, STR_VOUCHERS_FOR_FREE, STR_MARKETING_FINISHED_FREE_RIDE }, // ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE, + { STR_MARKETING_ADVERTISING_CAMPAIGN_FOR_THE_PARK, STR_ADVERTISING_CAMPAIGN_FOR_1, STR_MARKETING_FINISHED_PARK_ADS }, // ADVERTISING_CAMPAIGN_PARK, + { STR_MARKETING_ADVERTISING_CAMPAIGN_FOR_A_PARTICULAR_RIDE, STR_ADVERTISING_CAMPAIGN_FOR_2, STR_MARKETING_FINISHED_RIDE_ADS }, // ADVERTISING_CAMPAIGN_RIDE, }; const rct_string_id RideInspectionIntervalNames[] = { @@ -411,7 +411,7 @@ static void format_integer(char **dest, size_t *size, sint64 value) nend = (*dest) - 1; reverse_string(); - format_push_char_safe('\0'); // truncate overflowed string + format_push_char_safe('\0'); // Truncate overflowed string } else { // Reverse string nend = (*dest) - 1; @@ -494,7 +494,7 @@ static void format_comma_separated_integer(char **dest, size_t *size, sint64 val nend = (*dest) - 1; reverse_string(); - format_push_char_safe('\0'); // truncate overflowed string + format_push_char_safe('\0'); // Truncate overflowed string } else { // Reverse string nend = *dest - 1; @@ -587,7 +587,7 @@ static void format_comma_separated_fixed_1dp(char **dest, size_t *size, sint64 v nend = (*dest) - 1; reverse_string(); - format_push_char_safe('\0'); // truncate overflowed string + format_push_char_safe('\0'); // Truncate overflowed string } else { // Reverse string nend = *dest - 1; @@ -686,7 +686,7 @@ static void format_comma_separated_fixed_2dp(char **dest, size_t *size, sint64 v nend = (*dest) - 1; reverse_string(); - format_push_char_safe('\0'); // truncate overflowed string + format_push_char_safe('\0'); // Truncate overflowed string } else { // Reverse string nend = *dest - 1; @@ -708,7 +708,7 @@ static void format_currency(char **dest, size_t *size, sint64 value) value = -value; } - //Round the value away from zero + // Round the value away from zero value = (value + 99) / 100; // Currency symbol @@ -1217,7 +1217,7 @@ money32 string_to_money(char * string_to_monetise) const char* decimal_char = language_get_string(STR_LOCALE_DECIMAL_POINT); char * text_ptr = string_to_monetise; int i, j, sign; - //Remove everything except numbers decimal, and minus sign(s) + // Remove everything except numbers decimal, and minus sign(s) for (i = 0; text_ptr[i] != '\0'; ++i) { while (!( (text_ptr[i] >= '0' && text_ptr[i] <= '9') || @@ -1225,7 +1225,7 @@ money32 string_to_money(char * string_to_monetise) (text_ptr[i] == '-') || (text_ptr[i] == '\0') )) { - //move everything over to the left by one + // Move everything over to the left by one for (j = i; text_ptr[j] != '\0'; ++j) { text_ptr[j] = text_ptr[j + 1]; } @@ -1233,7 +1233,7 @@ money32 string_to_money(char * string_to_monetise) } } - //if first character of shortened string is a minus, consider number negative + // If first character of shortened string is a minus, consider number negative if (text_ptr[0] == '-') { sign = -1; } @@ -1241,7 +1241,7 @@ money32 string_to_money(char * string_to_monetise) sign = 1; } - //now minus signs can be removed from string + // Now minus signs can be removed from string for (i = 0; text_ptr[i] != '\0'; ++i) { if (text_ptr[i] == '-') { for (j = i; text_ptr[j] != '\0'; ++j) { @@ -1251,8 +1251,8 @@ money32 string_to_money(char * string_to_monetise) } } - //Due to the nature of strstr and strtok, decimals at the very beginning will be ignored, causing - //".1" to be interpreted as "1". To prevent this, prefix with "0" if decimal is at the beginning. + // Due to the nature of strstr and strtok, decimals at the very beginning will be ignored, causing + // ".1" to be interpreted as "1". To prevent this, prefix with "0" if decimal is at the beginning. char * buffer = (char *)malloc(strlen(string_to_monetise) + 4); if (string_to_monetise[0] == decimal_char[0]) { strcpy(buffer, "0"); @@ -1264,7 +1264,7 @@ money32 string_to_money(char * string_to_monetise) int number = 0, decimal = 0; if (strstr(buffer, decimal_char) == NULL) { - //if decimal char does not exist, no tokenising is needed. + // If decimal char does not exist, no tokenising is needed. number = atoi(buffer); } else { @@ -1274,16 +1274,16 @@ money32 string_to_money(char * string_to_monetise) if (numberText != NULL) number = atoi(numberText); if (decimalText != NULL) decimal = atoi(decimalText); - //The second parameter in MONEY must be two digits in length, while the game only ever uses - //the first of the two digits. - //Convert invalid numbers, such as ".6", ".234", ".05", to ".60", ".20", ".00" (respectively) + // The second parameter in MONEY must be two digits in length, while the game only ever uses + // the first of the two digits. + // Convert invalid numbers, such as ".6", ".234", ".05", to ".60", ".20", ".00" (respectively) while (decimal > 10) decimal /= 10; if (decimal < 10) decimal *= 10; } free(buffer); money32 result = MONEY(number, decimal); - //check if MONEY resulted in overflow + // Check if MONEY resulted in overflow if ((number > 0 && result < 0) || result / 10 < number) { result = INT_MAX; } @@ -1299,14 +1299,14 @@ void money_to_string(money32 amount, char * buffer_to_put_value_to, size_t buffe } int sign = amount >= 0 ? 1 : -1; int a = abs(amount); - if (a / 10 > 0 && a % 10 > 0) { // if whole and decimal exist + if (a / 10 > 0 && a % 10 > 0) { // If whole and decimal exist const char* decimal_char = language_get_string(STR_LOCALE_DECIMAL_POINT); snprintf(buffer_to_put_value_to, buffer_len, "%d%s%d0", (a / 10) * sign, decimal_char, a % 10); } - else if (a / 10 > 0 && a % 10 == 0) { // if whole exists, but not decimal + else if (a / 10 > 0 && a % 10 == 0) { // If whole exists, but not decimal snprintf(buffer_to_put_value_to, buffer_len, "%d", (a / 10) * sign); } - else if (a / 10 == 0 && a % 10 > 0) { //if decimal exists, but not whole + else if (a / 10 == 0 && a % 10 > 0) { // If decimal exists, but not whole const char* decimal_char = language_get_string(STR_LOCALE_DECIMAL_POINT); snprintf(buffer_to_put_value_to, buffer_len, "%s0%s%d0", sign < 0 ? "-" : "", decimal_char, a % 10); } @@ -1359,7 +1359,7 @@ sint32 win1252_to_utf8(utf8string dst, const char *src, size_t srcLength, size_t log_error("Unsupported conversion from %s to %s, errno = %d", from_charset, to_charset, error); break; default: - log_error("Unknown error while initializing iconv, errno = %d", error); + log_error("Unknown error while initialising iconv, errno = %d", error); } return 0; } diff --git a/src/openrct2/management/finance.c b/src/openrct2/management/finance.c index 0b285d5f3c..cca43cfd86 100644 --- a/src/openrct2/management/finance.c +++ b/src/openrct2/management/finance.c @@ -180,7 +180,7 @@ void finance_reset_history() */ void finance_init() { - // It only initializes the first month + // It only initialises the first month for (uint32 i = 0; i < RCT_EXPENDITURE_TYPE_COUNT; i++) { gExpenditureTable[i] = 0; } diff --git a/src/openrct2/paint/map_element/banner.c b/src/openrct2/paint/map_element/banner.c index 987064b756..86c11a017b 100644 --- a/src/openrct2/paint/map_element/banner.c +++ b/src/openrct2/paint/map_element/banner.c @@ -62,7 +62,7 @@ void banner_paint(uint8 direction, sint32 height, rct_map_element* map_element) uint32 base_id = (direction << 1) + banner_scenery->image; uint32 image_id = base_id; - if (map_element->flags & MAP_ELEMENT_FLAG_GHOST)//if being placed + if (map_element->flags & MAP_ELEMENT_FLAG_GHOST) // if being placed { gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_NONE; image_id |= construction_markers[gConfigGeneral.construction_marker_colour]; diff --git a/src/openrct2/paint/map_element/fence.c b/src/openrct2/paint/map_element/fence.c index e7e88925e9..0c4e8f8665 100644 --- a/src/openrct2/paint/map_element/fence.c +++ b/src/openrct2/paint/map_element/fence.c @@ -174,7 +174,7 @@ void fence_paint(uint8 direction, sint32 height, rct_map_element * map_element) dword_141F710 = construction_markers[gConfigGeneral.construction_marker_colour]; } - // save map_element + // Save map_element uint8 ah = sceneryEntry->wall.height * 8 - 2; diff --git a/src/openrct2/rct2/addresses.h b/src/openrct2/rct2/addresses.h index 4f4d9f6c52..c86c1ce169 100644 --- a/src/openrct2/rct2/addresses.h +++ b/src/openrct2/rct2/addresses.h @@ -110,20 +110,20 @@ // the new C modules or changed behaviour of code that used them. #define RCT2_ADDRESS_RIDE_FLAGS 0x0097CF40 -#define RCT2_ADDRESS_Y_RELATED_GLOBAL_1 0x9E3D12 //uint16 -#define RCT2_ADDRESS_Y_END_POINT_GLOBAL 0x9ABDAC //sint16 -#define RCT2_ADDRESS_Y_START_POINT_GLOBAL 0xEDF808 //sint16 -#define RCT2_ADDRESS_X_RELATED_GLOBAL_1 0x9E3D10 //uint16 -#define RCT2_ADDRESS_X_END_POINT_GLOBAL 0x9ABDA8 //sint16 -#define RCT2_ADDRESS_X_START_POINT_GLOBAL 0xEDF80C //sint16 -#define RCT2_ADDRESS_DPI_LINE_LENGTH_GLOBAL 0x9ABDB0 //uint16 width+pitch +#define RCT2_ADDRESS_Y_RELATED_GLOBAL_1 0x9E3D12 // uint16 +#define RCT2_ADDRESS_Y_END_POINT_GLOBAL 0x9ABDAC // sint16 +#define RCT2_ADDRESS_Y_START_POINT_GLOBAL 0xEDF808 // sint16 +#define RCT2_ADDRESS_X_RELATED_GLOBAL_1 0x9E3D10 // uint16 +#define RCT2_ADDRESS_X_END_POINT_GLOBAL 0x9ABDA8 // sint16 +#define RCT2_ADDRESS_X_START_POINT_GLOBAL 0xEDF80C // sint16 +#define RCT2_ADDRESS_DPI_LINE_LENGTH_GLOBAL 0x9ABDB0 // uint16 width+pitch #define RCT2_ADDRESS_LAND_TOOL_SIZE 0x009A9800 #define RCT2_ADDRESS_SAVE_PROMPT_MODE 0x009A9802 #define RCT2_ADDRESS_MAP_TOOLTIP_ARGS 0x009A9808 #define RCT2_ADDRESS_CONFIG_FIRST_TIME_LOAD_OBJECTS 0x009AA00D #define RCT2_ADDRESS_CONFIG_FIRST_TIME_LOAD_CONFIG 0x009AB4C6 #define RCT2_ADDRESS_SCENARIO_TEXT_TEMP_CHUNK 0x009ADAF8 -#define RCT2_ADDRESS_NAUSEA_THRESHOLDS 0x00982390 //uint16 +#define RCT2_ADDRESS_NAUSEA_THRESHOLDS 0x00982390 // uint16 // An array of pointers to the start of a way to // translate between scroll positions for drawing diff --git a/src/openrct2/ride/gentle/circus_show.c b/src/openrct2/ride/gentle/circus_show.c index a0d87c3845..876fb13c17 100644 --- a/src/openrct2/ride/gentle/circus_show.c +++ b/src/openrct2/ride/gentle/circus_show.c @@ -77,19 +77,19 @@ static void paint_circus_show(uint8 rideIndex, uint8 trackSequence, uint8 direct sint32 cornerSegments = 0; switch (trackSequence) { case 1: - // top + // Top cornerSegments = SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC; break; case 3: - // right + // Right cornerSegments = SEGMENT_CC | SEGMENT_BC | SEGMENT_D4; break; case 6: - // left + // Left cornerSegments = SEGMENT_C8 | SEGMENT_B8 | SEGMENT_D0; break; case 7: - // bottom + // Bottom cornerSegments = SEGMENT_D0 | SEGMENT_C0 | SEGMENT_D4; break; } diff --git a/src/openrct2/ride/gentle/crooked_house.c b/src/openrct2/ride/gentle/crooked_house.c index 2e8dcf0d18..8aeaf24df4 100644 --- a/src/openrct2/ride/gentle/crooked_house.c +++ b/src/openrct2/ride/gentle/crooked_house.c @@ -31,7 +31,7 @@ rct_crooked_house_bound_box crooked_house_data[] = { {6, 0, 42, 24}, {0, 0, 0, 0}, {-16, -16, 32, 32}, - {0, 0, 0, 0}, // unused + {0, 0, 0, 0}, // Unused {0, 6, 24, 42} }; @@ -81,28 +81,28 @@ static void paint_crooked_house(uint8 rideIndex, uint8 trackSequence, uint8 dire switch(trackSequence) { case 3: sub_88ABA4(direction, 32, 224, 0, height); break; - //case 5: sub_88ABA4(direction, 0, 224, 1, height); break; + // case 5: sub_88ABA4(direction, 0, 224, 1, height); break; case 6: sub_88ABA4(direction, 224, 32, 4, height); break; case 7: sub_88ABA4(direction, 224, 224, 2, height); break; - //case 8: sub_88ABA4(rideIndex, 224, 0, 3, height); break; + // case 8: sub_88ABA4(rideIndex, 224, 0, 3, height); break; } sint32 cornerSegments = 0; switch (trackSequence) { case 1: - // top + // Top cornerSegments = SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC; break; case 3: - // right + // Right cornerSegments = SEGMENT_CC | SEGMENT_BC | SEGMENT_D4; break; case 6: - // left + // Left cornerSegments = SEGMENT_C8 | SEGMENT_B8 | SEGMENT_D0; break; case 7: - // bottom + // Bottom cornerSegments = SEGMENT_D0 | SEGMENT_C0 | SEGMENT_D4; break; } diff --git a/src/openrct2/ride/gentle/dodgems.c b/src/openrct2/ride/gentle/dodgems.c index e15767469f..32da2d259a 100644 --- a/src/openrct2/ride/gentle/dodgems.c +++ b/src/openrct2/ride/gentle/dodgems.c @@ -64,7 +64,7 @@ static void paint_dodgems(uint8 rideIndex, uint8 trackSequence, uint8 direction, switch (direction) { case 2: trackSequence = 15 - trackSequence; - // fallthrough + // Fallthrough case 0: if ((trackSequence / 4) & 1) { paint_dodgems_roof(height + 30, 0); @@ -75,7 +75,7 @@ static void paint_dodgems(uint8 rideIndex, uint8 trackSequence, uint8 direction, case 3: trackSequence = 15 - trackSequence; - // fallthrough + // Fallthrough case 1: if ((trackSequence / 4) & 1) { paint_dodgems_roof(height + 30, 1); diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 4a86641867..df740f4bb6 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -2659,7 +2659,7 @@ rct_peep *find_closest_mechanic(sint32 x, sint32 y, sint32 forInspection) if (peep->x == MAP_LOCATION_NULL) continue; - // manhattan distance + // Manhattan distance distance = abs(peep->x - x) + abs(peep->y - y); if (distance < closestDistance) { closestDistance = distance; @@ -2693,7 +2693,7 @@ rct_peep *ride_get_assigned_mechanic(rct_ride *ride) #define MAKE_TUNEID_LIST(...) (uint8[]){(countof(((uint8[]){__VA_ARGS__}))), __VA_ARGS__} -//0x009AEF28 +// 0x009AEF28 uint8 *ride_music_style_tuneids[] = { MAKE_TUNEID_LIST(13), // MUSIC_STYLE_DODGEMS_BEAT MAKE_TUNEID_LIST(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12), // MUSIC_STYLE_FAIRGROUND_ORGAN diff --git a/src/openrct2/ride/thrill/go_karts.c b/src/openrct2/ride/thrill/go_karts.c index db0218ba93..1b1d22f67b 100644 --- a/src/openrct2/ride/thrill/go_karts.c +++ b/src/openrct2/ride/thrill/go_karts.c @@ -77,7 +77,7 @@ enum SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NW_NE = 20801, SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NE_SE = 20802, SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_SE_SW = 20803, - SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_SW_NW = 20804, // empty + SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_SW_NW = 20804, // Empty SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NW_NE = 20805, SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NE_SE = 20806, SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_SE_SW = 20807, diff --git a/src/openrct2/ride/water/log_flume.c b/src/openrct2/ride/water/log_flume.c index 111841e355..67968405df 100644 --- a/src/openrct2/ride/water/log_flume.c +++ b/src/openrct2/ride/water/log_flume.c @@ -206,7 +206,7 @@ static void paint_log_flume_track_station(uint8 rideIndex, uint8 trackSequence, } track_paint_util_draw_station_3(rideIndex, trackSequence, direction, height + 2, height, mapElement); - // covers shouldn't be offset by +2 + // Covers shouldn't be offset by +2 paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); diff --git a/src/openrct2/windows/banner.c b/src/openrct2/windows/banner.c index 12d50a76b1..865bdf06a6 100644 --- a/src/openrct2/windows/banner.c +++ b/src/openrct2/windows/banner.c @@ -63,15 +63,15 @@ static const rct_string_id BannerColouredTextFormats[] = { }; rct_widget window_banner_widgets[] = { - { WWT_FRAME, 0, 0, WW - 1, 0, WH - 1, 0xFFFFFFFF, STR_NONE}, // panel / background + { WWT_FRAME, 0, 0, WW - 1, 0, WH - 1, 0xFFFFFFFF, STR_NONE}, // panel / background { WWT_CAPTION, 0, 1, WW - 2, 1, 14, STR_BANNER_WINDOW_TITLE, STR_WINDOW_TITLE_TIP}, // title bar { WWT_CLOSEBOX, 0, WW - 13, WW - 3, 2, 13, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP}, // close x button - { WWT_VIEWPORT, 1, 3, WW - 26,17, WH - 20, 0x0FFFFFFFE, STR_NONE}, // tab content panel + { WWT_VIEWPORT, 1, 3, WW - 26,17, WH - 20, 0x0FFFFFFFE, STR_NONE}, // tab content panel { WWT_FLATBTN, 1, WW - 25, WW - 2, 19, 42, SPR_RENAME, STR_CHANGE_BANNER_TEXT_TIP}, // change banner button { WWT_FLATBTN, 1, WW - 25, WW - 2, 43, 66, SPR_NO_ENTRY, STR_SET_AS_NO_ENTRY_BANNER_TIP}, // no entry button { WWT_FLATBTN, 1, WW - 25, WW - 2, 67, 90, SPR_DEMOLISH, STR_DEMOLISH_BANNER_TIP}, // demolish button { WWT_COLOURBTN, 1, 5, 16, WH - 16,WH - 5, 0xFFFFFFFF, STR_SELECT_MAIN_SIGN_COLOUR_TIP}, // high money - { WWT_DROPDOWN, 1, 43, 81, WH - 16,WH - 5, 0xFFFFFFFF, STR_NONE}, // high money + { WWT_DROPDOWN, 1, 43, 81, WH - 16,WH - 5, 0xFFFFFFFF, STR_NONE}, // high money { WWT_DROPDOWN_BUTTON, 1, 70, 80, WH - 15,WH - 6, STR_DROPDOWN_GLYPH, STR_SELECT_TEXT_COLOUR_TIP}, // high money { WIDGETS_END }, }; @@ -239,7 +239,7 @@ static void window_banner_mousedown(rct_widgetindex widgetIndex, rct_window*w, r gDropdownItemsArgs[i] = BannerColouredTextFormats[i + 1]; } - //Switch to the dropdown box widget. + // Switch to the dropdown box widget. widget--; window_dropdown_show_text_custom_width( @@ -306,7 +306,7 @@ static void window_banner_invalidate(rct_window *w) rct_widget* colour_btn = &window_banner_widgets[WIDX_MAIN_COLOUR]; colour_btn->type = WWT_EMPTY; - //scenery item not sure why we use this instead of banner? + // Scenery item not sure why we use this instead of banner? rct_scenery_entry* sceneryEntry = get_banner_entry(banner->type); if (sceneryEntry->banner.flags & 1) colour_btn->type = WWT_COLOURBTN; diff --git a/src/openrct2/windows/changelog.c b/src/openrct2/windows/changelog.c index 9a123f9945..8d1880a5e5 100644 --- a/src/openrct2/windows/changelog.c +++ b/src/openrct2/windows/changelog.c @@ -45,7 +45,7 @@ rct_widget window_changelog_widgets[] = { { WWT_CAPTION, 0, 1, WW - 2, 1, 14, STR_CHANGELOG_TITLE, STR_WINDOW_TITLE_TIP }, // title bar { WWT_CLOSEBOX, 0, WW - 13, WW - 3, 2, 13, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP }, // close x button { WWT_RESIZE, 1, 0, WW - 1, 14, WH - 1, 0xFFFFFFFF, STR_NONE }, // content panel - { WWT_SCROLL, 1, 3, WW - 3, 16, WH - 15, SCROLL_BOTH, STR_NONE }, // scroll area + { WWT_SCROLL, 1, 3, WW - 3, 16, WH - 15, SCROLL_BOTH, STR_NONE }, // scroll area { WIDGETS_END }, }; diff --git a/src/openrct2/windows/cheats.c b/src/openrct2/windows/cheats.c index 07ca87260d..d41424a478 100644 --- a/src/openrct2/windows/cheats.c +++ b/src/openrct2/windows/cheats.c @@ -176,7 +176,7 @@ enum WINDOW_CHEATS_WIDGET_IDX { #define MAX_BTN_LEFT ((sint16)(XPL(1.5))) #define MAX_BTN_RIGHT ((sint16)(WPL(1))) -#define TXTO 3 //text horizontal offset from button left (for button text) +#define TXTO 3 // Text horizontal offset from button left (for button text) #pragma endregion #define MAIN_CHEATS_WIDGETS \ @@ -261,7 +261,7 @@ static rct_widget window_cheats_misc_widgets[] = { { WWT_CLOSEBOX, 1, XPL(0), WPL(0), YPL(13), HPL(13), STR_CHEAT_WATER_PLANTS, STR_NONE }, // Water plants { WWT_CLOSEBOX, 1, XPL(1), WPL(1), YPL(13), HPL(13), STR_CHEAT_FIX_VANDALISM, STR_NONE }, // Fix vandalism { WWT_CLOSEBOX, 1, XPL(0), WPL(0), YPL(14), HPL(14), STR_CHEAT_REMOVE_LITTER, STR_NONE }, // Remove litter - { WWT_CHECKBOX, 1, XPL(0), WPL(0), YPL(15), HPL(15), STR_CHEAT_DISABLE_PLANT_AGING, STR_CHEAT_DISABLE_PLANT_AGING_TIP }, // Disable plant aging + { WWT_CHECKBOX, 1, XPL(0), WPL(0), YPL(15), HPL(15), STR_CHEAT_DISABLE_PLANT_AGING, STR_CHEAT_DISABLE_PLANT_AGING_TIP }, // Disable plant ageing { WWT_CLOSEBOX, 1, MAX_BTN_LEFT, MAX_BTN_RIGHT, YPL(16), HPL(16), STR_FAST, STR_NONE }, // Fast staff { WWT_CLOSEBOX, 1, MIN_BTN_LEFT, MIN_BTN_RIGHT, YPL(16), HPL(16), STR_NORMAL, STR_NONE }, // Normal staff { WIDGETS_END }, @@ -736,7 +736,7 @@ static void window_cheats_misc_mouseup(rct_window *w, rct_widgetindex widgetInde case WIDX_SANDBOX_MODE: game_do_command(0, GAME_COMMAND_FLAG_APPLY, CHEAT_SANDBOXMODE, !gCheatsSandboxMode, GAME_COMMAND_CHEAT, 0, 0); // To prevent tools from staying active after disabling cheat - //tool_cancel(); + // tool_cancel(); break; case WIDX_RESET_DATE: game_do_command(0, GAME_COMMAND_FLAG_APPLY, CHEAT_RESETDATE, 0, GAME_COMMAND_CHEAT, 0, 0); diff --git a/src/openrct2/windows/editor_bottom_toolbar.c b/src/openrct2/windows/editor_bottom_toolbar.c index 119181d5d0..0895da0644 100644 --- a/src/openrct2/windows/editor_bottom_toolbar.c +++ b/src/openrct2/windows/editor_bottom_toolbar.c @@ -65,7 +65,7 @@ static void window_editor_bottom_toolbar_jump_forward_to_save_scenario(); static rct_window_event_list window_editor_bottom_toolbar_events = { NULL, - window_editor_bottom_toolbar_mouseup, //0x0066f5ae, + window_editor_bottom_toolbar_mouseup, // 0x0066f5ae, NULL, NULL, NULL, @@ -89,8 +89,8 @@ static rct_window_event_list window_editor_bottom_toolbar_events = { NULL, NULL, NULL, - window_editor_bottom_toolbar_invalidate, //0x0066f1c9, - window_editor_bottom_toolbar_paint, //0x0066f25c, + window_editor_bottom_toolbar_invalidate, // 0x0066f1c9, + window_editor_bottom_toolbar_paint, // 0x0066f25c, NULL }; diff --git a/src/openrct2/windows/editor_main.c b/src/openrct2/windows/editor_main.c index aea46deec3..fd585e133c 100644 --- a/src/openrct2/windows/editor_main.c +++ b/src/openrct2/windows/editor_main.c @@ -49,7 +49,7 @@ static rct_window_event_list window_editor_main_events = { NULL, NULL, NULL, - window_editor_main_paint,// 0x0066FC97, //window_editor_main_paint, + window_editor_main_paint,// 0x0066FC97, // window_editor_main_paint, NULL, }; diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 4bcd52e8b4..d737afe684 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -913,7 +913,7 @@ void window_editor_object_selection_mousedown(rct_widgetindex widgetIndex, rct_w gDropdownItemsArgs[DDIX_FILTER_WW] = STR_OBJECT_FILTER_WW; gDropdownItemsArgs[DDIX_FILTER_TT] = STR_OBJECT_FILTER_TT; gDropdownItemsArgs[DDIX_FILTER_CUSTOM] = STR_OBJECT_FILTER_CUSTOM; - //Track manager cannot select multiple, so only show selection filters if not in track manager + // Track manager cannot select multiple, so only show selection filters if not in track manager if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) { num_items = 7; gDropdownItemsFormat[DDIX_FILTER_SEPERATOR] = 0; @@ -1014,7 +1014,7 @@ static void window_editor_object_selection_scroll_mousedown(rct_window *w, sint3 window_close_all(); //window_close(w); - //This function calls window_track_list_open + // This function calls window_track_list_open window_editor_object_selection_manage_tracks(); return; } diff --git a/src/openrct2/windows/guest.c b/src/openrct2/windows/guest.c index 8e22d2e606..922cde0462 100644 --- a/src/openrct2/windows/guest.c +++ b/src/openrct2/windows/guest.c @@ -72,23 +72,23 @@ enum WINDOW_GUEST_WIDGET_IDX { validate_global_widx(WC_PEEP, WIDX_ACTION_LBL); rct_widget window_guest_overview_widgets[] = { - {WWT_FRAME, 0, 0, 191, 0, 156, 0xFFFFFFFF, STR_NONE}, // Panel / Background - {WWT_CAPTION, 0, 1, 190, 1, 14, STR_STRINGID, STR_WINDOW_TITLE_TIP}, // Title - {WWT_CLOSEBOX, 0, 179, 189, 2, 13, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP}, // Close x button - {WWT_RESIZE, 1, 0, 191, 43, 156, 0xFFFFFFFF, STR_NONE}, // Resize - {WWT_TAB, 1, 3, 33, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_VIEW_TIP}, // Tab 1 - {WWT_TAB, 1, 73, 64, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_NEEDS_TIP}, // Tab 2 - {WWT_TAB, 1, 65, 95, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_VISITED_RIDES_TIP}, // Tab 3 - {WWT_TAB, 1, 96, 126, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_FINANCE_TIP}, // Tab 4 - {WWT_TAB, 1, 127, 157, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_THOUGHTS_TIP}, // Tab 5 - {WWT_TAB, 1, 158, 188, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_ITEMS_TIP}, // Tab 6 - {WWT_12, 1, 3, 166, 45, 56, 0xFFFFFFFF, STR_NONE}, // Label Thought marquee - {WWT_VIEWPORT, 1, 3, 166, 57, 143, 0xFFFFFFFF, STR_NONE}, // Viewport - {WWT_12, 1, 3, 166, 144, 154, 0xFFFFFFFF, STR_NONE}, // Label Action + {WWT_FRAME, 0, 0, 191, 0, 156, 0xFFFFFFFF, STR_NONE}, // Panel / Background + {WWT_CAPTION, 0, 1, 190, 1, 14, STR_STRINGID, STR_WINDOW_TITLE_TIP}, // Title + {WWT_CLOSEBOX, 0, 179, 189, 2, 13, STR_CLOSE_X, STR_CLOSE_WINDOW_TIP}, // Close x button + {WWT_RESIZE, 1, 0, 191, 43, 156, 0xFFFFFFFF, STR_NONE}, // Resize + {WWT_TAB, 1, 3, 33, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_VIEW_TIP}, // Tab 1 + {WWT_TAB, 1, 73, 64, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_NEEDS_TIP}, // Tab 2 + {WWT_TAB, 1, 65, 95, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_VISITED_RIDES_TIP}, // Tab 3 + {WWT_TAB, 1, 96, 126, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_FINANCE_TIP}, // Tab 4 + {WWT_TAB, 1, 127, 157, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_THOUGHTS_TIP}, // Tab 5 + {WWT_TAB, 1, 158, 188, 17, 43, 0x20000000 | SPR_TAB, STR_SHOW_GUEST_ITEMS_TIP}, // Tab 6 + {WWT_12, 1, 3, 166, 45, 56, 0xFFFFFFFF, STR_NONE}, // Label Thought marquee + {WWT_VIEWPORT, 1, 3, 166, 57, 143, 0xFFFFFFFF, STR_NONE}, // Viewport + {WWT_12, 1, 3, 166, 144, 154, 0xFFFFFFFF, STR_NONE}, // Label Action {WWT_FLATBTN, 1, 167, 190, 45, 68, SPR_PICKUP_BTN, STR_PICKUP_TIP}, // Pickup Button {WWT_FLATBTN, 1, 167, 190, 69, 92, SPR_RENAME, STR_NAME_GUEST_TIP}, // Rename Button {WWT_FLATBTN, 1, 167, 190, 93, 116, SPR_LOCATE, STR_LOCATE_SUBJECT_TIP}, // Locate Button - {WWT_FLATBTN, 1, 167, 190, 117, 140, SPR_TRACK_PEEP, STR_TOGGLE_GUEST_TRACKING_TIP}, // Track Button + {WWT_FLATBTN, 1, 167, 190, 117, 140, SPR_TRACK_PEEP, STR_TOGGLE_GUEST_TRACKING_TIP}, // Track Button { WIDGETS_END }, }; @@ -163,7 +163,7 @@ rct_widget window_guest_inventory_widgets[] = { {WIDGETS_END}, }; -//0x981D0C +// 0x981D0C rct_widget *window_guest_page_widgets[] = { window_guest_overview_widgets, window_guest_stats_widgets, @@ -408,7 +408,7 @@ static rct_window_event_list window_guest_inventory_events = { NULL }; -//0x981D24 +// 0x981D24 static rct_window_event_list *window_guest_page_events[] = { &window_guest_overview_events, &window_guest_stats_events, @@ -420,7 +420,7 @@ static rct_window_event_list *window_guest_page_events[] = { void window_guest_set_colours(); -//0x981D3C +// 0x981D3C uint32 window_guest_page_enabled_widgets[] = { (1 << WIDX_CLOSE) | (1 << WIDX_TAB_1) | @@ -546,7 +546,7 @@ void window_guest_disable_widgets(rct_window* w){ window_invalidate(w); } if (gParkFlags & PARK_FLAGS_NO_MONEY){ - disabled_widgets |= (1 << WIDX_TAB_4); //Disable finance tab if no money + disabled_widgets |= (1 << WIDX_TAB_4); // Disable finance tab if no money } w->disabled_widgets = disabled_widgets; } @@ -713,7 +713,7 @@ void window_guest_viewport_init(rct_window* w){ union{ sprite_focus sprite; coordinate_focus coordinate; - } focus = { 0 }; //The focus will be either a sprite or a coordinate. + } focus = { 0 }; // The focus will be either a sprite or a coordinate. focus.sprite.sprite_id = w->number; @@ -762,7 +762,7 @@ void window_guest_viewport_init(rct_window* w){ uint16 viewport_flags; if (w->viewport){ - //Check all combos, for now skipping y and rot + // Check all combos, for now skipping y and rot if (focus.coordinate.x == w->viewport_focus_coordinates.x && focus.coordinate.y == w->viewport_focus_coordinates.y && focus.coordinate.z == w->viewport_focus_coordinates.z && @@ -1804,9 +1804,9 @@ void window_guest_finance_paint(rct_window *w, rct_drawpixelinfo *dpi) rct_peep* peep = GET_PEEP(w->number); - //cx + // cx sint32 x = w->x + window_guest_finance_widgets[WIDX_PAGE_BACKGROUND].left + 4; - //dx + // dx sint32 y = w->y + window_guest_finance_widgets[WIDX_PAGE_BACKGROUND].top + 4; // Cash in pocket diff --git a/src/openrct2/windows/guest_list.c b/src/openrct2/windows/guest_list.c index d35bb7f97f..238fecfcab 100644 --- a/src/openrct2/windows/guest_list.c +++ b/src/openrct2/windows/guest_list.c @@ -141,7 +141,7 @@ static sint32 _window_guest_list_highlighted_index; // 0x00F1EE10 static sint32 _window_guest_list_selected_tab; // 0x00F1EE12 static sint32 _window_guest_list_selected_filter; // 0x00F1EE06 static sint32 _window_guest_list_selected_page; // 0x00F1EE07 -static uint32 _window_guest_list_selected_view; // 0x00F1EE13 +static uint32 _window_guest_list_selected_view; // 0x00F1EE13 static sint32 _window_guest_list_num_pages; // 0x00F1EE08 static sint32 _window_guest_list_num_groups; // 0x00F1AF22 static bool _window_guest_list_tracking_only; diff --git a/src/openrct2/world/Duck.cpp b/src/openrct2/world/Duck.cpp index 30545a2d7f..9e7798d045 100644 --- a/src/openrct2/world/Duck.cpp +++ b/src/openrct2/world/Duck.cpp @@ -305,7 +305,7 @@ uint32 rct_duck::GetFrameImage(sint32 direction) const uint32 imageId = 0; if (state < DUCK_MAX_STATES) { - // TODO check frame is in range + // TODO: Check frame is in range uint8 imageOffset = DuckAnimations[state][frame]; imageId = SPR_DUCK + (imageOffset * 4) + (direction / 8); } diff --git a/src/openrct2/world/banner.h b/src/openrct2/world/banner.h index 24f19f8dab..ae2e74a34c 100644 --- a/src/openrct2/world/banner.h +++ b/src/openrct2/world/banner.h @@ -26,12 +26,12 @@ #pragma pack(push, 1) typedef struct rct_banner { uint8 type; - uint8 flags; //0x01 bit 0 is no entry - rct_string_id string_idx; //0x02 - uint8 colour; //0x04 - uint8 text_colour; //0x05 - uint8 x; //0x06 - uint8 y; //0x07 + uint8 flags; // 0x01 bit 0 is no entry + rct_string_id string_idx; // 0x02 + uint8 colour; // 0x04 + uint8 text_colour; // 0x05 + uint8 x; // 0x06 + uint8 y; // 0x07 } rct_banner; assert_struct_size(rct_banner, 8); #pragma pack(pop) diff --git a/src/openrct2/world/entrance.cpp b/src/openrct2/world/entrance.cpp index 443a4afe0c..4360fb2c7a 100644 --- a/src/openrct2/world/entrance.cpp +++ b/src/openrct2/world/entrance.cpp @@ -236,7 +236,7 @@ static money32 RideEntranceExitPlace(sint16 x, uint8 stationNum, bool isExit) { - // Remember when in Unknown station num mode rideIndex is unknown and z is set + // Remember when in unknown station num mode rideIndex is unknown and z is set // When in known station num mode rideIndex is known and z is unknown money32 cost = 0; diff --git a/src/openrct2/world/footpath.h b/src/openrct2/world/footpath.h index 7c0f10faca..c366ed08b0 100644 --- a/src/openrct2/world/footpath.h +++ b/src/openrct2/world/footpath.h @@ -47,7 +47,7 @@ enum { enum { FOOTPATH_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE = (1 << 0), - FOOTPATH_ENTRY_FLAG_HAS_PATH_BASE_SPRITE = (1 << 1), //When elevated + FOOTPATH_ENTRY_FLAG_HAS_PATH_BASE_SPRITE = (1 << 1), // When elevated FOOTPATH_ENTRY_FLAG_SHOW_ONLY_IN_SCENARIO_EDITOR = (1 << 2), }; From 471f0c3230abaaa9d8c20959bd520285c826e40e Mon Sep 17 00:00:00 2001 From: wolfreak99 Date: Mon, 15 May 2017 10:02:15 -0400 Subject: [PATCH 090/670] Allow loading bmp files as heightmap using the native file browser Upon playing with the heightmap tool, i realized that the feature actually supports bmp files as well, and they are even listed in the in-game load/save dialog, but they are not shown when using a native file browser. This fixes that. --- src/openrct2/windows/loadsave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/windows/loadsave.c b/src/openrct2/windows/loadsave.c index e664fa1fca..a96152b727 100644 --- a/src/openrct2/windows/loadsave.c +++ b/src/openrct2/windows/loadsave.c @@ -284,7 +284,7 @@ static bool browse(bool isSave, char *path, size_t pathSize) case LOADSAVETYPE_IMAGE: title = STR_FILE_DIALOG_TITLE_LOAD_HEIGHTMAP; desc.filters[0].name = language_get_string(STR_OPENRCT2_HEIGHTMAP_FILE); - desc.filters[0].pattern = "*.jpg;*.png"; + desc.filters[0].pattern = "*.jpg;*.png;*.bmp"; break; } From b7ca273d0d53f8fbf8a8d6f39629da7e93cdb065 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Mon, 15 May 2017 16:03:06 +0200 Subject: [PATCH 091/670] Set 'Show all files' on by default in VS --- openrct2.common.props | 1 + 1 file changed, 1 insertion(+) diff --git a/openrct2.common.props b/openrct2.common.props index 383a22cd73..f66464cbb9 100644 --- a/openrct2.common.props +++ b/openrct2.common.props @@ -16,6 +16,7 @@ $(SolutionDir)bin\ $(SolutionDir)obj\$(ProjectName)\$(Configuration)_$(Platform)\ $(ProjectName) + true true From d5f1e22a5687af3c8179c21c9ce35cb67884486c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 16 May 2017 16:09:50 +0200 Subject: [PATCH 092/670] Name RIDE_TYPE_FLAG4 flags --- src/openrct2/peep/peep.c | 4 +- src/openrct2/ride/ride.c | 10 +- src/openrct2/ride/ride_data.c | 140 +++++++++--------- src/openrct2/ride/ride_data.h | 12 +- .../windows/editor_object_selection.c | 2 +- src/openrct2/windows/ride_construction.c | 2 +- 6 files changed, 85 insertions(+), 85 deletions(-) diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index e3deb7b2a2..0d828c6273 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -11328,11 +11328,11 @@ static bool sub_69101A(rct_map_element *esi) { return false; } - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_13) { + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT) { if ((scenario_rand() & 0xFFFF) > 0x3333) { return true; } - } else if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_14) { + } else if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT) { if ((scenario_rand() & 0xFFFF) > 0x1000) { return true; } diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index df740f4bb6..78e8aaa5c1 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -1457,7 +1457,7 @@ static void ride_construction_reset_current_piece() _currentTrackBankEnd = 0; _currentTrackLiftHill = 0; _currentTrackCovered = 0; - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_FLYING_RC) { + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED) { _currentTrackCovered |= 2; } _previousTrackSlopeEnd = 0; @@ -1914,7 +1914,7 @@ sint32 sub_6CC3FB(sint32 rideIndex) _currentTrackLiftHill = 0; _currentTrackCovered = 0; - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_FLYING_RC) + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED) _currentTrackCovered |= 2; _previousTrackBankEnd = 0; @@ -5272,7 +5272,7 @@ static sint32 ride_is_valid_for_test(sint32 rideIndex, sint32 goingToBeOpen, sin } if ( - (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_10) && + (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_ALLOW_CABLE_LIFT_HILL) && (ride->lifecycle_flags & RIDE_LIFECYCLE_CABLE_LIFT_HILL_COMPONENT_USED) && !(ride->lifecycle_flags & RIDE_LIFECYCLE_CABLE_LIFT) ) { @@ -5403,7 +5403,7 @@ static sint32 ride_is_valid_for_open(sint32 rideIndex, sint32 goingToBeOpen, sin } if ( - (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_10) && + (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_ALLOW_CABLE_LIFT_HILL) && (ride->lifecycle_flags & RIDE_LIFECYCLE_CABLE_LIFT_HILL_COMPONENT_USED) && !(ride->lifecycle_flags & RIDE_LIFECYCLE_CABLE_LIFT) ) { @@ -7582,7 +7582,7 @@ void ride_update_max_vehicles(sint32 rideIndex) if ( (ride->mode != RIDE_MODE_STATION_TO_STATION && ride->mode != RIDE_MODE_CONTINUOUS_CIRCUIT) || - !(RideData4[ride->type].flags & RIDE_TYPE_FLAG4_6) + !(RideData4[ride->type].flags & RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS) ) { maxNumTrains = min(maxNumTrains, 31); } else { diff --git a/src/openrct2/ride/ride_data.c b/src/openrct2/ride/ride_data.c index 5b036d2aae..0d8884df17 100644 --- a/src/openrct2/ride/ride_data.c +++ b/src/openrct2/ride/ride_data.c @@ -1119,97 +1119,97 @@ const rct_ride_entrance_definition RideEntranceDefinitions[RIDE_ENTRANCE_STYLE_C // rct2: 0x0097D4F0, 0x0097D4F1, 0x0097D4F2, 0x0097D4F4, 0x0097D4F5 const rct_ride_data_4 RideData4[RIDE_TYPE_COUNT] = { - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK_STYLE_3, 0 }, // RIDE_TYPE_SPIRAL_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_STAND_UP_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_SUSPENDED_SWINGING_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_INVERTED_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_JUNIOR_ROLLER_COASTER - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINIATURE_RAILWAY - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MONORAIL - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_MINI_SUSPENDED_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_3, 0 }, // RIDE_TYPE_SPIRAL_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_STAND_UP_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_SUSPENDED_SWINGING_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_INVERTED_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_JUNIOR_ROLLER_COASTER + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINIATURE_RAILWAY + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MONORAIL + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_MINI_SUSPENDED_COASTER { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_BOAT_RIDE - { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_WOODEN_WILD_MOUSE - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_STEEPLECHASE - { 15, 0, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_CAR_RIDE - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_LAUNCHED_FREEFALL - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_BOBSLEIGH_COASTER - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_OBSERVATION_TOWER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_LOOPING_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_DINGHY_SLIDE - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_MINE_TRAIN_COASTER - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_TRANSPORT_RIDE | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_CHAIRLIFT - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_CORKSCREW_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_WOODEN_WILD_MOUSE + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_STEEPLECHASE + { 15, 0, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_CAR_RIDE + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_LAUNCHED_FREEFALL + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_BOBSLEIGH_COASTER + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_OBSERVATION_TOWER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_LOOPING_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_DINGHY_SLIDE + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_MINE_TRAIN_COASTER + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_CHAIRLIFT + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_CORKSCREW_ROLLER_COASTER { 10, 0, RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MAZE - { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_SPIRAL_SLIDE - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_GO_KARTS - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_LOG_FLUME - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_RIVER_RAPIDS - { 15, 0, RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_DODGEMS_BEAT, 0 }, // RIDE_TYPE_DODGEMS - { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_PIRATES, 0 }, // RIDE_TYPE_PIRATE_SHIP - { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_SWINGING_INVERTER_SHIP + { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_SPIRAL_SLIDE + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_GO_KARTS + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_LOG_FLUME + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_RIVER_RAPIDS + { 15, 0, RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_DODGEMS_BEAT, 0 }, // RIDE_TYPE_DODGEMS + { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_PIRATES, 0 }, // RIDE_TYPE_PIRATE_SHIP + { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_SWINGING_INVERTER_SHIP { 9, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_FOOD_STALL { 15, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_1D { 12, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_DRINK_STALL { 8, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_1F { 15, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_SHOP - { 10, 0, RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_FAIRGROUND_ORGAN, 0 }, // RIDE_TYPE_MERRY_GO_ROUND + { 10, 0, RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_FAIRGROUND_ORGAN, 0 }, // RIDE_TYPE_MERRY_GO_ROUND { 9, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_22 { 6, 25, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_INFORMATION_KIOSK { 0, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_TOILETS - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_FERRIS_WHEEL - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_MOTION_SIMULATOR + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_FERRIS_WHEEL + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_MOTION_SIMULATOR { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_3D_CINEMA - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_TOP_SPIN - { 5, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_SPACE_RINGS - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_REVERSE_FREEFALL_COASTER + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_TOP_SPIN + { 5, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_SPACE_RINGS + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_REVERSE_FREEFALL_COASTER { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_LIFT - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER { 0, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_CASH_MACHINE - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_TWIST + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_TWIST { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION, MUSIC_STYLE_HORROR, 0 }, // RIDE_TYPE_HAUNTED_HOUSE { 0, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_FIRST_AID { 15, 0, RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION, MUSIC_STYLE_CIRCUS_SHOW, 0 }, // RIDE_TYPE_CIRCUS_SHOW - { 15, 0, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_HORROR, 0 }, // RIDE_TYPE_GHOST_TRAIN - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_TWISTER_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_WOODEN_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_SIDE_FRICTION_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_WILD_MOUSE - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK_STYLE_3, RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT }, // RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13 | RIDE_TYPE_FLAG4_FLYING_RC, MUSIC_STYLE_ROCK, RIDE_TYPE_FLYING_ROLLER_COASTER_ALT }, // RIDE_TYPE_FLYING_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_13 | RIDE_TYPE_FLAG4_FLYING_RC, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_FLYING_ROLLER_COASTER_ALT - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_VIRGINIA_REEL - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_SPLASH_BOATS - { 15, 0, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINI_HELICOPTERS - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT }, // RIDE_TYPE_LAY_DOWN_ROLLER_COASTER - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_SUSPENDED_MONORAIL - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_REVERSER_ROLLER_COASTER - { 15, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_HEARTLINE_TWISTER_COASTER - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINI_GOLF - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_10 | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK_STYLE_3, 0 }, // RIDE_TYPE_GIGA_COASTER - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_ROTO_DROP - { 15, 0, RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_FLYING_SAUCERS + { 15, 0, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_HORROR, 0 }, // RIDE_TYPE_GHOST_TRAIN + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_TWISTER_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_WOODEN_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_SIDE_FRICTION_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_WILD_MOUSE + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_3, RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT }, // RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED, MUSIC_STYLE_ROCK, RIDE_TYPE_FLYING_ROLLER_COASTER_ALT }, // RIDE_TYPE_FLYING_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_FLYING_ROLLER_COASTER_ALT + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_VIRGINIA_REEL + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_SPLASH_BOATS + { 15, 0, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINI_HELICOPTERS + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT }, // RIDE_TYPE_LAY_DOWN_ROLLER_COASTER + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_SUSPENDED_MONORAIL + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_REVERSER_ROLLER_COASTER + { 15, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_HEARTLINE_TWISTER_COASTER + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINI_GOLF + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_ALLOW_CABLE_LIFT_HILL | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_3, 0 }, // RIDE_TYPE_GIGA_COASTER + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_ROTO_DROP + { 15, 0, RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_FLYING_SAUCERS { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_CROOKED_HOUSE - { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MONORAIL_CYCLES - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_COMPACT_INVERTED_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_WATER_COASTER - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_INVERTED_HAIRPIN_COASTER - { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_EGYPTIAN, 0 }, // RIDE_TYPE_MAGIC_CARPET - { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_SUBMARINE_RIDE - { 10, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_6 | RIDE_TYPE_FLAG4_14, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_RIVER_RAFTS + { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MONORAIL_CYCLES + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_COMPACT_INVERTED_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_WATER_COASTER + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_INVERTED_HAIRPIN_COASTER + { 15, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_EGYPTIAN, 0 }, // RIDE_TYPE_MAGIC_CARPET + { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_SUBMARINE_RIDE + { 10, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_RIVER_RAFTS { 7, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_50 - { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_ENTERPRISE + { 20, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_SINGLE_SESSION | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_ENTERPRISE { 12, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_52 { 15, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_53 { 12, 0, 0, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_54 - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_55 - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_INVERTED_IMPULSE_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINI_ROLLER_COASTER - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_MINE_RIDE - { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_59 - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_11 | RIDE_TYPE_FLAG4_13, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_55 + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_INVERTED_IMPULSE_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINI_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_MINE_RIDE + { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_2, 0 }, // RIDE_TYPE_59 + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER }; // rct2: 0x0097DD78 diff --git a/src/openrct2/ride/ride_data.h b/src/openrct2/ride/ride_data.h index 0ab7fedd61..a464461f86 100644 --- a/src/openrct2/ride/ride_data.h +++ b/src/openrct2/ride/ride_data.h @@ -114,16 +114,16 @@ enum { RIDE_TYPE_FLAG4_3 = (1 << 3), RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES = (1 << 4), RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT = (1 << 5), - RIDE_TYPE_FLAG4_6 = (1 << 6), + RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS = (1 << 6), RIDE_TYPE_FLAG4_HAS_AIR_TIME = (1 << 7), RIDE_TYPE_FLAG4_SINGLE_SESSION = (1 << 8), RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS = (1 << 9), - RIDE_TYPE_FLAG4_10 = (1 << 10), - RIDE_TYPE_FLAG4_11 = (1 << 11), + RIDE_TYPE_FLAG4_ALLOW_CABLE_LIFT_HILL = (1 << 10), + RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER = (1 << 11), RIDE_TYPE_FLAG4_TRANSPORT_RIDE = (1 << 12), - RIDE_TYPE_FLAG4_13 = (1 << 13), - RIDE_TYPE_FLAG4_14 = (1 << 14), - RIDE_TYPE_FLAG4_FLYING_RC = (1 << 15), // This is only set on the Flying RC and its alternative type. It seems to be used in determining the track variety or something like that. + RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT = (1 << 13), + RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT = (1 << 14), + RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED = (1 << 15), // This is only set on the Flying RC and its alternative type. }; typedef struct rct_shop_item_stats { diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index d737afe684..0fd51f03ad 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -532,7 +532,7 @@ static void setup_track_designer_objects() for (uint8 j = 0; j < 3; j++) { uint8 rideType = item->RideType[j]; if (rideType != 0xFF) { - if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_11) { + if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER) { *selectionFlags &= ~OBJECT_SELECTION_FLAG_6; break; } diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index f2d67acc4f..0dcb2c8168 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -620,7 +620,7 @@ rct_window *window_ride_construction_open() _currentTrackLiftHill = 0; _currentTrackCovered = 0; - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_FLYING_RC) + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED) _currentTrackCovered |= 2; _previousTrackBankEnd = 0; From e725672d236dc26f0cdc0426e4b133b3b11713bc Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Tue, 16 May 2017 19:11:51 +0200 Subject: [PATCH 093/670] Clean up alternative track pieces and types, remove remnants of researched track pieces --- distribution/changelog.txt | 1 + src/openrct2/management/research.c | 19 +----- src/openrct2/management/research.h | 2 +- src/openrct2/rct2/S6Exporter.cpp | 13 +++- src/openrct2/rct2/S6Importer.cpp | 4 +- src/openrct2/ride/ride.c | 36 +++++----- src/openrct2/ride/ride.h | 2 +- src/openrct2/ride/ride_data.c | 6 +- src/openrct2/ride/ride_data.h | 8 ++- src/openrct2/ride/track.c | 7 +- src/openrct2/ride/track.h | 3 +- src/openrct2/ride/track_design.h | 12 ++++ src/openrct2/ride/track_design_save.c | 66 ++----------------- src/openrct2/ride/vehicle.c | 8 +-- src/openrct2/windows/editor_bottom_toolbar.c | 10 --- .../windows/editor_object_selection.c | 11 ---- src/openrct2/windows/ride.c | 5 +- src/openrct2/windows/ride_construction.c | 35 +++++----- 18 files changed, 91 insertions(+), 157 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 6bf8e1d283..de9b6b7c50 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.0.8 (in development) ------------------------------------------------------------------------ +- Fix: Track components added by OpenRCT2 are now usable in older scenarios. 0.0.7 (2017-05-03) ------------------------------------------------------------------------ diff --git a/src/openrct2/management/research.c b/src/openrct2/management/research.c index 5b362833ac..fdc6701753 100644 --- a/src/openrct2/management/research.c +++ b/src/openrct2/management/research.c @@ -188,14 +188,6 @@ void research_finish_item(sint32 entryIndex) { ride_type_set_invented(base_ride_type); openrct2_assert(base_ride_type < countof(RideTypePossibleTrackConfigurations), "Invalid base_ride_type = %d", base_ride_type); - gResearchedTrackTypesA[base_ride_type] = (RideTypePossibleTrackConfigurations[base_ride_type]) & 0xFFFFFFFFULL; - gResearchedTrackTypesB[base_ride_type] = (RideTypePossibleTrackConfigurations[base_ride_type] >> 32ULL) & 0xFFFFFFFFULL; - - if (RideData4[base_ride_type].flags & RIDE_TYPE_FLAG4_3) { - sint32 ebx = RideData4[base_ride_type].alternate_type; - gResearchedTrackTypesA[ebx] = (RideTypePossibleTrackConfigurations[ebx]) & 0xFFFFFFFFULL; - gResearchedTrackTypesB[ebx] = (RideTypePossibleTrackConfigurations[ebx] >> 32ULL) & 0xFFFFFFFFULL; - } ride_entry_set_invented(rideEntryIndex); @@ -618,16 +610,9 @@ bool ride_entry_is_invented(sint32 rideEntryIndex) return invented; } -bool track_type_is_invented(uint8 rideType, sint32 trackType) +bool track_piece_is_available_for_ride_type(uint8 rideType, sint32 trackType) { - if (trackType < 32) { - bool invented = (gResearchedTrackTypesA[rideType] & (1UL << trackType)); - return invented; - } else { - trackType -= 32; - bool invented = (gResearchedTrackTypesB[rideType] & (1UL << trackType)); - return invented; - } + return RideTypePossibleTrackConfigurations[rideType] & (1ULL << trackType); } static void ride_type_set_invented(sint32 rideType) diff --git a/src/openrct2/management/research.h b/src/openrct2/management/research.h index a40e5f690e..47a7e0b77e 100644 --- a/src/openrct2/management/research.h +++ b/src/openrct2/management/research.h @@ -104,7 +104,7 @@ void research_insert_scenery_group_entry(uint8 entryIndex, bool researched); bool ride_type_is_invented(sint32 rideType); bool ride_entry_is_invented(sint32 rideEntryIndex); -bool track_type_is_invented(uint8 rideType, sint32 trackType); +bool track_piece_is_available_for_ride_type(uint8 rideType, sint32 trackType); bool scenery_is_invented(uint16 sceneryItem); #endif diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index e68df1fd71..23fe74ebc7 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -18,6 +18,7 @@ #include "../core/FileStream.hpp" #include "../core/IStream.hpp" #include "../core/String.hpp" +#include "../core/Util.hpp" #include "../management/award.h" #include "../object/Object.h" #include "../object/ObjectManager.h" @@ -44,6 +45,7 @@ extern "C" #include "../rct2.h" #include "../ride/ride.h" #include "../ride/ride_ratings.h" + #include "../ride/track_data.h" #include "../scenario/scenario.h" #include "../util/sawyercoding.h" #include "../util/util.h" @@ -150,6 +152,8 @@ void S6Exporter::Save(IStream * stream, bool isScenario) void S6Exporter::Export() { _s6.info = gS6Info; + uint32 researchedTrackPiecesA[128]; + uint32 researchedTrackPiecesB[128]; for (sint32 i = 0; i < OBJECT_ENTRY_COUNT; i++) { @@ -201,8 +205,13 @@ void S6Exporter::Export() // pad_01357400 memcpy(_s6.researched_ride_types, gResearchedRideTypes, sizeof(_s6.researched_ride_types)); memcpy(_s6.researched_ride_entries, gResearchedRideEntries, sizeof(_s6.researched_ride_entries)); - memcpy(_s6.researched_track_types_a, gResearchedTrackTypesA, sizeof(_s6.researched_track_types_a)); - memcpy(_s6.researched_track_types_b, gResearchedTrackTypesB, sizeof(_s6.researched_track_types_b)); + // Not used by OpenRCT2 any more, but left in to keep RCT2 export working. + for (uint8 i = 0; i < Util::CountOf(RideTypePossibleTrackConfigurations); i++) { + researchedTrackPiecesA[i] = (RideTypePossibleTrackConfigurations[i] ) & 0xFFFFFFFFULL; + researchedTrackPiecesB[i] = (RideTypePossibleTrackConfigurations[i] >> 32ULL) & 0xFFFFFFFFULL; + } + memcpy(_s6.researched_track_types_a, researchedTrackPiecesA, sizeof(_s6.researched_track_types_a)); + memcpy(_s6.researched_track_types_b, researchedTrackPiecesB, sizeof(_s6.researched_track_types_b)); _s6.guests_in_park = gNumGuestsInPark; _s6.guests_heading_for_park = gNumGuestsHeadingForPark; diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index d3b5148b37..6ae961b6db 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -212,8 +212,8 @@ public: // pad_01357400 memcpy(gResearchedRideTypes, _s6.researched_ride_types, sizeof(_s6.researched_ride_types)); memcpy(gResearchedRideEntries, _s6.researched_ride_entries, sizeof(_s6.researched_ride_entries)); - memcpy(gResearchedTrackTypesA, _s6.researched_track_types_a, sizeof(_s6.researched_track_types_a)); - memcpy(gResearchedTrackTypesB, _s6.researched_track_types_b, sizeof(_s6.researched_track_types_b)); + // _s6.researched_track_types_a + // _s6.researched_track_types_b gNumGuestsInPark = _s6.guests_in_park; gNumGuestsHeadingForPark = _s6.guests_heading_for_park; diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 78e8aaa5c1..6ced0ccdfb 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -169,7 +169,7 @@ sint8 _rideConstructionArrowPulseTime; uint8 _currentTrackSlopeEnd; uint8 _currentTrackBankEnd; uint8 _currentTrackLiftHill; -uint8 _currentTrackCovered; +uint8 _currentTrackAlternative; uint8 _selectedTrackType; uint8 _previousTrackBankEnd; @@ -1456,9 +1456,9 @@ static void ride_construction_reset_current_piece() _currentTrackSlopeEnd = 0; _currentTrackBankEnd = 0; _currentTrackLiftHill = 0; - _currentTrackCovered = 0; + _currentTrackAlternative = RIDE_TYPE_NO_ALTERNATIVES; if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED) { - _currentTrackCovered |= 2; + _currentTrackAlternative |= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; } _previousTrackSlopeEnd = 0; _previousTrackBankEnd = 0; @@ -1503,10 +1503,10 @@ void ride_construction_set_default_next_piece() } // Set whether track is covered - _currentTrackCovered &= ~2; - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_3) { - if (mapElement->properties.track.colour & 4) { - _currentTrackCovered |= 2; + _currentTrackAlternative &= ~RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { + if (mapElement->properties.track.colour & TRACK_ELEMENT_COLOUR_FLAG_INVERTED) { + _currentTrackAlternative |= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; } } @@ -1528,10 +1528,10 @@ void ride_construction_set_default_next_piece() _currentTrackCurve = curve; // Set track banking - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_3) { + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { if (bank == TRACK_BANK_UPSIDE_DOWN) { bank = TRACK_BANK_NONE; - _currentTrackCovered ^= 2; + _currentTrackAlternative ^= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; } } _currentTrackBankEnd = bank; @@ -1558,10 +1558,10 @@ void ride_construction_set_default_next_piece() trackType = mapElement->properties.track.type; // Set whether track is covered - _currentTrackCovered &= ~2; - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_3) { - if (mapElement->properties.track.colour & 4) { - _currentTrackCovered |= 2; + _currentTrackAlternative &= ~RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { + if (mapElement->properties.track.colour & TRACK_ELEMENT_COLOUR_FLAG_INVERTED) { + _currentTrackAlternative |= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; } } @@ -1583,10 +1583,10 @@ void ride_construction_set_default_next_piece() _currentTrackCurve = curve; // Set track banking - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_3) { + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { if (bank == TRACK_BANK_UPSIDE_DOWN) { bank = TRACK_BANK_NONE; - _currentTrackCovered ^= 2; + _currentTrackAlternative ^= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; } } _currentTrackBankEnd = bank; @@ -1912,10 +1912,10 @@ sint32 sub_6CC3FB(sint32 rideIndex) _currentTrackSlopeEnd = 0; _currentTrackBankEnd = 0; _currentTrackLiftHill = 0; - _currentTrackCovered = 0; + _currentTrackAlternative = RIDE_TYPE_NO_ALTERNATIVES; if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED) - _currentTrackCovered |= 2; + _currentTrackAlternative |= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; _previousTrackBankEnd = 0; _previousTrackSlopeEnd = 0; @@ -4599,7 +4599,7 @@ static rct_vehicle *vehicle_create_car( } vehicle->update_flags = VEHICLE_UPDATE_FLAG_1; if (vehicleEntry->flags_a & VEHICLE_ENTRY_FLAG_A_6) { - if (mapElement->properties.track.colour & 4) { + if (mapElement->properties.track.colour & TRACK_ELEMENT_COLOUR_FLAG_INVERTED) { vehicle->update_flags |= VEHICLE_UPDATE_FLAG_11; } } diff --git a/src/openrct2/ride/ride.h b/src/openrct2/ride/ride.h index b72e860dbd..8909ac1c2c 100644 --- a/src/openrct2/ride/ride.h +++ b/src/openrct2/ride/ride.h @@ -965,7 +965,7 @@ extern sint8 _rideConstructionArrowPulseTime; extern uint8 _currentTrackSlopeEnd; extern uint8 _currentTrackBankEnd; extern uint8 _currentTrackLiftHill; -extern uint8 _currentTrackCovered; +extern uint8 _currentTrackAlternative; extern uint8 _selectedTrackType; extern uint8 _previousTrackBankEnd; diff --git a/src/openrct2/ride/ride_data.c b/src/openrct2/ride/ride_data.c index 0d8884df17..77a63e3251 100644 --- a/src/openrct2/ride/ride_data.c +++ b/src/openrct2/ride/ride_data.c @@ -1174,14 +1174,14 @@ const rct_ride_data_4 RideData4[RIDE_TYPE_COUNT] = { { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WILD_WEST, 0 }, // RIDE_TYPE_WOODEN_ROLLER_COASTER { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_SIDE_FRICTION_ROLLER_COASTER { 20, 20, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_WILD_MOUSE - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_3, RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT }, // RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK_STYLE_3, RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT }, // RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED, MUSIC_STYLE_ROCK, RIDE_TYPE_FLYING_ROLLER_COASTER_ALT }, // RIDE_TYPE_FLYING_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED, MUSIC_STYLE_ROCK, RIDE_TYPE_FLYING_ROLLER_COASTER_ALT }, // RIDE_TYPE_FLYING_ROLLER_COASTER { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT | RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_FLYING_ROLLER_COASTER_ALT { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, 0 }, // RIDE_TYPE_VIRGINIA_REEL { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_WATER, 0 }, // RIDE_TYPE_SPLASH_BOATS { 15, 0, RIDE_TYPE_FLAG4_0 | RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_MINI_HELICOPTERS - { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_3 | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT }, // RIDE_TYPE_LAY_DOWN_ROLLER_COASTER + { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_ROCK, RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT }, // RIDE_TYPE_LAY_DOWN_ROLLER_COASTER { 10, 0, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS | RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG4_TRANSPORT_RIDE, MUSIC_STYLE_SUMMER, 0 }, // RIDE_TYPE_SUSPENDED_MONORAIL { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_GENTLE, 0 }, // RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT { 20, 20, RIDE_TYPE_FLAG4_ALLOW_MUSIC | RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG4_HAS_AIR_TIME | RIDE_TYPE_FLAG4_SHOW_IN_TRACK_DESIGNER | RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT, MUSIC_STYLE_TECHNO, 0 }, // RIDE_TYPE_REVERSER_ROLLER_COASTER diff --git a/src/openrct2/ride/ride_data.h b/src/openrct2/ride/ride_data.h index a464461f86..1ce378887f 100644 --- a/src/openrct2/ride/ride_data.h +++ b/src/openrct2/ride/ride_data.h @@ -111,7 +111,7 @@ enum { RIDE_TYPE_FLAG4_0 = (1 << 0), RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT = (1 << 1), RIDE_TYPE_FLAG4_ALLOW_MUSIC = (1 << 2), - RIDE_TYPE_FLAG4_3 = (1 << 3), + RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE = (1 << 3), // Used by the Flying RC, Lay-down RC, Multi-dimension RC RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES = (1 << 4), RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT = (1 << 5), RIDE_TYPE_FLAG4_ALLOW_MORE_VEHICLES_THAN_STATION_FITS = (1 << 6), @@ -126,6 +126,12 @@ enum { RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED = (1 << 15), // This is only set on the Flying RC and its alternative type. }; +enum { + RIDE_TYPE_NO_ALTERNATIVES = 0, + RIDE_TYPE_ALTERNATIVE_TRACK_PIECES = 1, // Dinghy slide and Water Coaster + RIDE_TYPE_ALTERNATIVE_TRACK_TYPE = 2, // Flying RC, Lay-down RC, Multi-dimension RC +}; + typedef struct rct_shop_item_stats { uint16 cost; uint16 base_value; diff --git a/src/openrct2/ride/track.c b/src/openrct2/ride/track.c index 6a03382678..896f556bea 100644 --- a/src/openrct2/ride/track.c +++ b/src/openrct2/ride/track.c @@ -941,10 +941,7 @@ static money32 track_place(sint32 rideIndex, sint32 type, sint32 originX, sint32 direction &= 3; gTrackGroundFlags = 0; - uint64 enabledTrackPieces = 0; - enabledTrackPieces |= rideEntry->enabledTrackPiecesB & gResearchedTrackTypesB[ride->type]; - enabledTrackPieces <<= 32; - enabledTrackPieces |= rideEntry->enabledTrackPiecesA & gResearchedTrackTypesA[ride->type]; + uint64 enabledTrackPieces = rideEntry->enabledTrackPieces & RideTypePossibleTrackConfigurations[ride->type]; uint32 rideTypeFlags = RideProperties[ride->type].flags; if ((ride->lifecycle_flags & RIDE_LIFECYCLE_INDESTRUCTIBLE_TRACK) && type == 1) { @@ -2188,7 +2185,7 @@ sint32 track_get_actual_bank(rct_map_element *mapElement, sint32 bank) sint32 track_get_actual_bank_2(sint32 rideType, sint32 trackColour, sint32 bank) { - if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_3) { + if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { if (trackColour & 4) { if (bank == TRACK_BANK_NONE) { bank = TRACK_BANK_UPSIDE_DOWN; diff --git a/src/openrct2/ride/track.h b/src/openrct2/ride/track.h index fc2509e116..f532f7ae60 100644 --- a/src/openrct2/ride/track.h +++ b/src/openrct2/ride/track.h @@ -311,8 +311,9 @@ enum { TRACK_ELEM_BRAKES, TRACK_ELEM_ROTATION_CONTROL_TOGGLE = 100, TRACK_ELEM_BOOSTER = 100, - TRACK_ELEM_INVERTED_90_DEG_UP_TO_FLAT_QUARTER_LOOP, + TRACK_ELEM_INVERTED_90_DEG_UP_TO_FLAT_QUARTER_LOOP = 101, TRACK_ELEM_MAZE = 101, + TRACK_ELEM_255_ALIAS = 101, // Used by the multi-dimension coaster, as TD6 cannot handle index 255. TRACK_ELEM_LEFT_QUARTER_BANKED_HELIX_LARGE_UP, TRACK_ELEM_RIGHT_QUARTER_BANKED_HELIX_LARGE_UP, TRACK_ELEM_LEFT_QUARTER_BANKED_HELIX_LARGE_DOWN, diff --git a/src/openrct2/ride/track_design.h b/src/openrct2/ride/track_design.h index 8910c74e92..e81389fea0 100644 --- a/src/openrct2/ride/track_design.h +++ b/src/openrct2/ride/track_design.h @@ -152,6 +152,18 @@ assert_struct_size(rct_track_td6, 0xbf); #endif #pragma pack(pop) +// Only written to in RCT2, not used in OpenRCT2. All of these are elements that had to be invented in RCT1. +enum { + TRACK_FLAGS_CONTAINS_VERTICAL_LOOP = (1 << 7), + TRACK_FLAGS_CONTAINS_INLINE_TWIST = (1 << 17), + TRACK_FLAGS_CONTAINS_HALF_LOOP = (1 << 18), + TRACK_FLAGS_CONTAINS_CORKSCREW = (1 << 19), + TRACK_FLAGS_CONTAINS_WATER_SPLASH = (1 << 27), + TRACK_FLAGS_CONTAINS_BARREL_ROLL = (1 << 29), + TRACK_FLAGS_CONTAINS_POWERED_LIFT = (1 << 30), + TRACK_FLAGS_CONTAINS_LARGE_HALF_LOOP = (1u << 31), +}; + enum { TRACK_FLAGS2_CONTAINS_LOG_FLUME_REVERSER = (1 << 1), TRACK_FLAGS2_SIX_FLAGS_RIDE_DEPRECATED = (1u << 31) // Not used anymore. diff --git a/src/openrct2/ride/track_design_save.c b/src/openrct2/ride/track_design_save.c index 880917df2a..6f90ad78a4 100644 --- a/src/openrct2/ride/track_design_save.c +++ b/src/openrct2/ride/track_design_save.c @@ -994,64 +994,8 @@ static bool track_design_save_to_td6_for_tracked_ride(uint8 rideIndex, rct_track rct_td6_track_element *track = td6->track_elements; do { track->type = trackElement.element->properties.track.type; - if (track->type == 0xFF) { - track->type = 101; - } - - if (track->type == TRACK_ELEM_LEFT_VERTICAL_LOOP || - track->type == TRACK_ELEM_RIGHT_VERTICAL_LOOP - ) { - td6->flags |= (1 << 7); - } - - if (track->type == TRACK_ELEM_LEFT_TWIST_DOWN_TO_UP || - track->type == TRACK_ELEM_RIGHT_TWIST_DOWN_TO_UP || - track->type == TRACK_ELEM_LEFT_TWIST_UP_TO_DOWN || - track->type == TRACK_ELEM_RIGHT_TWIST_UP_TO_DOWN - ) { - td6->flags |= (1 << 17); - } - - if (track->type == TRACK_ELEM_LEFT_BARREL_ROLL_UP_TO_DOWN || - track->type == TRACK_ELEM_RIGHT_BARREL_ROLL_UP_TO_DOWN || - track->type == TRACK_ELEM_LEFT_BARREL_ROLL_DOWN_TO_UP || - track->type == TRACK_ELEM_RIGHT_BARREL_ROLL_DOWN_TO_UP - ) { - td6->flags |= (1 << 29); - } - - if (track->type == TRACK_ELEM_HALF_LOOP_UP || - track->type == TRACK_ELEM_HALF_LOOP_DOWN - ) { - td6->flags |= (1 << 18); - } - - if (track->type == TRACK_ELEM_LEFT_CORKSCREW_UP || - track->type == TRACK_ELEM_RIGHT_CORKSCREW_UP || - track->type == TRACK_ELEM_LEFT_CORKSCREW_DOWN || - track->type == TRACK_ELEM_RIGHT_CORKSCREW_DOWN - ) { - td6->flags |= (1 << 19); - } - - if (track->type == TRACK_ELEM_WATER_SPLASH) { - td6->flags |= (1 << 27); - } - - if (track->type == TRACK_ELEM_POWERED_LIFT) { - td6->flags |= (1 << 30); - } - - if (track->type == TRACK_ELEM_LEFT_LARGE_HALF_LOOP_UP || - track->type == TRACK_ELEM_RIGHT_LARGE_HALF_LOOP_UP || - track->type == TRACK_ELEM_RIGHT_LARGE_HALF_LOOP_DOWN || - track->type == TRACK_ELEM_LEFT_LARGE_HALF_LOOP_DOWN - ) { - td6->flags |= (1u << 31); - } - - if (track->type == TRACK_ELEM_LOG_FLUME_REVERSER) { - td6->flags2 |= TRACK_FLAGS2_CONTAINS_LOG_FLUME_REVERSER; + if (track->type == TRACK_ELEM_255) { + track->type = TRACK_ELEM_255_ALIAS; } uint8 bh; @@ -1064,10 +1008,10 @@ static bool track_design_save_to_td6_for_tracked_ride(uint8 rideIndex, rct_track uint8 flags = (trackElement.element->type & (1 << 7)) | bh; flags |= (trackElement.element->properties.track.colour & 3) << 4; if ( - RideData4[ride->type].flags & RIDE_TYPE_FLAG4_3 && - trackElement.element->properties.track.colour & (1 << 2) + RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE && + trackElement.element->properties.track.colour & TRACK_ELEMENT_COLOUR_FLAG_INVERTED ) { - flags |= (1 << 6); + flags |= TRACK_ELEMENT_FLAG_INVERTED; } track->flags = flags; diff --git a/src/openrct2/ride/vehicle.c b/src/openrct2/ride/vehicle.c index b6fdfc8742..aa074353a5 100644 --- a/src/openrct2/ride/vehicle.c +++ b/src/openrct2/ride/vehicle.c @@ -7407,7 +7407,7 @@ loc_6DB358: // Update VEHICLE_UPDATE_FLAG_11 flag vehicle->update_flags &= ~VEHICLE_UPDATE_FLAG_11; sint32 rideType = get_ride(mapElement->properties.track.ride_index)->type; - if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_3) { + if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { if (mapElement->properties.track.colour & 4) { vehicle->update_flags |= VEHICLE_UPDATE_FLAG_11; } @@ -7759,7 +7759,7 @@ static bool vehicle_update_track_motion_backwards_get_new_track(rct_vehicle *veh // Update VEHICLE_UPDATE_FLAG_11 vehicle->update_flags &= ~VEHICLE_UPDATE_FLAG_11; - if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_3) { + if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { if (mapElement->properties.track.colour & 4) { vehicle->update_flags |= VEHICLE_UPDATE_FLAG_11; } @@ -8134,7 +8134,7 @@ loc_6DC476: sint32 rideType = get_ride(mapElement->properties.track.ride_index)->type; vehicle->update_flags &= ~VEHICLE_UPDATE_FLAG_11; - if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_3) { + if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { if (mapElement->properties.track.colour & (1 << 2)) { vehicle->update_flags |= VEHICLE_UPDATE_FLAG_11; } @@ -8351,7 +8351,7 @@ loc_6DCA9A: rideType = get_ride(mapElement->properties.track.ride_index)->type; vehicle->update_flags &= ~VEHICLE_UPDATE_FLAG_11; - if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_3) { + if (RideData4[rideType].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) { if (mapElement->properties.track.colour & (1 << 2)) { vehicle->update_flags |= VEHICLE_UPDATE_FLAG_11; } diff --git a/src/openrct2/windows/editor_bottom_toolbar.c b/src/openrct2/windows/editor_bottom_toolbar.c index 0895da0644..51f8b79efb 100644 --- a/src/openrct2/windows/editor_bottom_toolbar.c +++ b/src/openrct2/windows/editor_bottom_toolbar.c @@ -253,16 +253,6 @@ static void sub_66F6E3() gResearchedRideTypes[i] = 0xFFFFFFFF; } - for (sint32 i = 0; i < countof(RideTypePossibleTrackConfigurations); i++) { - gResearchedTrackTypesA[i] = (RideTypePossibleTrackConfigurations[i] ) & 0xFFFFFFFFULL; - gResearchedTrackTypesB[i] = (RideTypePossibleTrackConfigurations[i] >> 32ULL) & 0xFFFFFFFFULL; - } - - for (sint32 i = countof(RideTypePossibleTrackConfigurations); i < 128; i++) { - gResearchedTrackTypesA[i] = (uint32)-1; - gResearchedTrackTypesB[i] = (uint32)-1; - } - for (sint32 i = 0; i < 8; i++) { gResearchedRideEntries[i] = 0xFFFFFFFF; } diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 0fd51f03ad..0eabe3f04e 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -1688,17 +1688,6 @@ static void window_editor_object_selection_manage_tracks() gResearchedRideTypes[i] = 0xFFFFFFFF; } - for (sint32 i = 0; i < countof(RideTypePossibleTrackConfigurations); i++) { - gResearchedTrackTypesA[i] = (RideTypePossibleTrackConfigurations[i] ) & 0xFFFFFFFFULL; - gResearchedTrackTypesB[i] = (RideTypePossibleTrackConfigurations[i] >> 32ULL) & 0xFFFFFFFFULL; - } - - - for (sint32 i = countof(RideTypePossibleTrackConfigurations); i < 128; i++) { - gResearchedTrackTypesA[i] = (uint32)-1; - gResearchedTrackTypesB[i] = (uint32)-1; - } - for (sint32 i = 0; i < 8; i++) { gResearchedRideEntries[i] = 0xFFFFFFFF; } diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index 3c723c0a83..7444f39670 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -2487,7 +2487,7 @@ static rct_string_id window_ride_get_status_vehicle(rct_window *w, void *argumen trackType == TRACK_ELEM_60_DEG_UP_TO_FLAT || trackType == TRACK_ELEM_DIAG_25_DEG_UP_TO_FLAT || trackType == TRACK_ELEM_DIAG_60_DEG_UP_TO_FLAT) { - if (track_type_is_invented(ride->type, TRACK_BLOCK_BRAKES) && vehicle->velocity == 0) { + if (track_piece_is_available_for_ride_type(ride->type, TRACK_BLOCK_BRAKES) && vehicle->velocity == 0) { *(rct_string_id*)(uintptr_t)arguments = STR_STOPPED_BY_BLOCK_BRAKES; return STR_BLACK_STRING; } @@ -3407,7 +3407,8 @@ static void window_ride_operating_invalidate(rct_window *w) ); // Lift hill speed - if ((rideEntry->enabledTrackPiecesA & (1UL << TRACK_LIFT_HILL)) && track_type_is_invented(ride->type, TRACK_LIFT_HILL)) { + if ((rideEntry->enabledTrackPiecesA & (1UL << TRACK_LIFT_HILL)) && + track_piece_is_available_for_ride_type(ride->type, TRACK_LIFT_HILL)) { window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_LABEL].type = WWT_24; window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED].type = WWT_SPINNER; window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_INCREASE].type = WWT_DROPDOWN_BUTTON; diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index 0dcb2c8168..d8ad384bba 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -534,7 +534,7 @@ static bool is_track_enabled(sint32 trackFlagIndex) static sint32 ride_get_alternative_type(rct_ride *ride) { - return (_currentTrackCovered & 2) ? + return (_currentTrackAlternative & RIDE_TYPE_ALTERNATIVE_TRACK_TYPE) ? RideData4[ride->type].alternate_type : ride->type; } @@ -618,10 +618,10 @@ rct_window *window_ride_construction_open() _currentTrackSlopeEnd = 0; _currentTrackBankEnd = 0; _currentTrackLiftHill = 0; - _currentTrackCovered = 0; + _currentTrackAlternative = RIDE_TYPE_NO_ALTERNATIVES; if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_START_CONSTRUCTION_INVERTED) - _currentTrackCovered |= 2; + _currentTrackAlternative |= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; _previousTrackBankEnd = 0; _previousTrackSlopeEnd = 0; @@ -1525,7 +1525,7 @@ static void window_ride_construction_mousedown(rct_widgetindex widgetIndex, rct_ sub_6C9627(); _currentTrackLiftHill ^= 1; if (_currentTrackLiftHill & 1) { - _currentTrackCovered &= ~1; + _currentTrackAlternative &= ~RIDE_TYPE_ALTERNATIVE_TRACK_PIECES; } _currentTrackPrice = MONEY32_UNDEFINED; sub_6C84CE(); @@ -1589,13 +1589,13 @@ static void window_ride_construction_mousedown(rct_widgetindex widgetIndex, rct_ break; case WIDX_U_TRACK: sub_6C9627(); - _currentTrackCovered &= ~1; + _currentTrackAlternative &= ~RIDE_TYPE_ALTERNATIVE_TRACK_PIECES; _currentTrackPrice = MONEY32_UNDEFINED; sub_6C84CE(); break; case WIDX_O_TRACK: sub_6C9627(); - _currentTrackCovered |= 1; + _currentTrackAlternative |= RIDE_TYPE_ALTERNATIVE_TRACK_PIECES; _currentTrackLiftHill &= ~1; _currentTrackPrice = MONEY32_UNDEFINED; sub_6C84CE(); @@ -1888,7 +1888,7 @@ void window_ride_construction_mouseup_demolish_next_piece(sint32 x, sint32 y, si sint32 b2 = _currentTrackSlopeEnd; sint32 bankEnd = _previousTrackBankEnd; sint32 bankStart = _currentTrackBankEnd; - sint32 b5 = _currentTrackCovered; + sint32 b5 = _currentTrackAlternative; sint32 b4 = _currentTrackLiftHill; ride_construction_set_default_next_piece(); sub_6C84CE(); @@ -1901,7 +1901,7 @@ void window_ride_construction_mouseup_demolish_next_piece(sint32 x, sint32 y, si _currentTrackSlopeEnd = b2; _previousTrackBankEnd = bankEnd; _currentTrackBankEnd = bankStart; - _currentTrackCovered = b5; + _currentTrackAlternative = b5; _currentTrackLiftHill = b4; sub_6C84CE(); } @@ -2608,8 +2608,8 @@ bool sub_6CA2DF(sint32 *_trackType, sint32 *_trackDirection, sint32 *_rideIndex, edxRS16 |= 0x1; } - if (_currentTrackCovered & (1 << 1)) { - edxRS16 |= 0x2; + if (_currentTrackAlternative & RIDE_TYPE_ALTERNATIVE_TRACK_TYPE) { + edxRS16 |= RIDE_TYPE_ALTERNATIVE_TRACK_TYPE; } rct_ride *ride = get_ride(rideIndex); @@ -2640,7 +2640,7 @@ bool sub_6CA2DF(sint32 *_trackType, sint32 *_trackDirection, sint32 *_rideIndex, } } - if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES) && _currentTrackCovered & 1) { + if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES) && _currentTrackAlternative & RIDE_TYPE_ALTERNATIVE_TRACK_PIECES) { if (ride->type != RIDE_TYPE_WATER_COASTER || trackType == TRACK_ELEM_FLAT || trackType == TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES || trackType == TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES) { sint16 alternativeType = AlternativeTrackTypes[trackType]; if (alternativeType > -1) { @@ -2745,9 +2745,8 @@ static void window_ride_construction_update_enabled_track_pieces() if (rideEntry == NULL) return; - sint32 rideType = (_currentTrackCovered & 2) ? RideData4[ride->type].alternate_type : ride->type; - _enabledRidePieces.a = rideEntry->enabledTrackPiecesA & gResearchedTrackTypesA[rideType]; - _enabledRidePieces.b = rideEntry->enabledTrackPiecesB & gResearchedTrackTypesB[rideType]; + sint32 rideType = (_currentTrackAlternative & RIDE_TYPE_ALTERNATIVE_TRACK_TYPE) ? RideData4[ride->type].alternate_type : ride->type; + _enabledRidePieces.ab = rideEntry->enabledTrackPieces & RideTypePossibleTrackConfigurations[rideType]; } /** @@ -2951,7 +2950,7 @@ static void window_ride_construction_update_possible_ride_configurations() ride = get_ride(_currentRideIndex); _currentlyShowingBrakeSpeed = 0; - if (_currentTrackCovered & 2) + if (_currentTrackAlternative & RIDE_TYPE_ALTERNATIVE_TRACK_TYPE) edi = RideData4[ride->type].alternate_type; else edi = ride->type; @@ -3472,7 +3471,7 @@ static void window_ride_construction_update_widgets(rct_window *w) if (_currentlyShowingBrakeSpeed == 0) { if (ride_type_has_flag(rideType, RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES)) { - if (_currentTrackCovered & 1) { + if (_currentTrackAlternative & RIDE_TYPE_ALTERNATIVE_TRACK_PIECES) { w->pressed_widgets |= (1ULL << WIDX_O_TRACK); } else { w->pressed_widgets |= (1ULL << WIDX_U_TRACK); @@ -3984,7 +3983,7 @@ void ride_construction_tooldown_construct(sint32 screenX, sint32 screenY) sint32 saveCurrentTrackSlopeEnd = _currentTrackSlopeEnd; sint32 savePreviousTrackBankEnd = _previousTrackBankEnd; sint32 saveCurrentTrackBankEnd = _currentTrackBankEnd; - sint32 saveCurrentTrackCovered = _currentTrackCovered; + sint32 saveCurrentTrackAlternative = _currentTrackAlternative; sint32 saveCurrentTrackLiftHill = _currentTrackLiftHill; sub_6CC3FB(_currentRideIndex); @@ -3995,7 +3994,7 @@ void ride_construction_tooldown_construct(sint32 screenX, sint32 screenY) _currentTrackSlopeEnd = saveCurrentTrackSlopeEnd; _previousTrackBankEnd = savePreviousTrackBankEnd; _currentTrackBankEnd = saveCurrentTrackBankEnd; - _currentTrackCovered = saveCurrentTrackCovered; + _currentTrackAlternative = saveCurrentTrackAlternative; _currentTrackLiftHill = saveCurrentTrackLiftHill; audio_play_sound_panned(SOUND_ERROR, gCursorState.x, x, y, z); From 69d87942601d4c6d824ef85af0d02eb169aa7340 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 16 May 2017 20:12:18 +0100 Subject: [PATCH 094/670] Use snake case for peep fields --- src/openrct2/peep/peep.c | 26 +++++++++++++------------- src/openrct2/peep/peep.h | 2 +- src/openrct2/rct1.h | 2 +- src/openrct2/rct1/S4Importer.cpp | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index 0d828c6273..a1f5eebf24 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -3980,7 +3980,7 @@ static void peep_update_ride_sub_state_18(rct_peep* peep){ } } - peep->interactionRideIndex = 0xFF; + peep->interaction_ride_index = 0xFF; peep_decrement_num_riders(peep); peep->state = PEEP_STATE_FALLING; peep_window_state_update(peep); @@ -7130,7 +7130,7 @@ rct_peep *peep_generate(sint32 x, sint32 y, sint32 z) peep->var_41 = (scenario_rand() & 0x1F) + 45; peep->var_C4 = 0; - peep->interactionRideIndex = 0xFF; + peep->interaction_ride_index = 0xFF; peep->type = PEEP_TYPE_GUEST; peep->previous_ride = 0xFF; peep->thoughts->type = PEEP_THOUGHT_TYPE_NONE; @@ -7948,7 +7948,7 @@ static sint32 peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rc if (entranceType == ENTRANCE_TYPE_RIDE_EXIT){ // Default guest/staff behaviour attempting to enter a // ride exit is to turn around. - peep->interactionRideIndex = 0xFF; + peep->interaction_ride_index = 0xFF; return peep_return_to_center_of_tile(peep); } @@ -7956,7 +7956,7 @@ static sint32 peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rc if (peep->type == PEEP_TYPE_STAFF){ // Default staff behaviour attempting to enter a // ride entrance is to turn around. - peep->interactionRideIndex = 0xFF; + peep->interaction_ride_index = 0xFF; return peep_return_to_center_of_tile(peep); } @@ -7968,7 +7968,7 @@ static sint32 peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rc } // Guest is on a normal path, i.e. ride has no queue. - if (peep->interactionRideIndex == rideIndex) + if (peep->interaction_ride_index == rideIndex) // Peep is retrying the ride entrance without leaving // the path tile and without trying any other ride // attached to this path tile. i.e. stick with the @@ -7983,13 +7983,13 @@ static sint32 peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rc if (!peep_should_go_on_ride(peep, rideIndex, stationNum, 0)){ // Peep remembers that this is the last ride they // considered while on this path tile. - peep->interactionRideIndex = rideIndex; + peep->interaction_ride_index = rideIndex; return peep_return_to_center_of_tile(peep); } // Guest has decided to go on the ride. peep->action_sprite_image_offset = _unk_F1AEF0; - peep->interactionRideIndex = rideIndex; + peep->interaction_ride_index = rideIndex; rct_ride* ride = get_ride(rideIndex); uint16 previous_last = ride->last_peep_in_queue[stationNum]; @@ -8344,7 +8344,7 @@ static sint32 peep_interact_with_path(rct_peep* peep, sint16 x, sint16 y, rct_ma // Check if this queue path tile is connected to a ride. if (rideIndex == 0xFF){ // Queue is not connected to a ride. - peep->interactionRideIndex = 0xFF; + peep->interaction_ride_index = 0xFF; return peep_footpath_move_forward(peep, x, y, map_element, vandalism_present); } @@ -8370,7 +8370,7 @@ static sint32 peep_interact_with_path(rct_peep* peep, sint16 x, sint16 y, rct_ma // 2. Peep is walking up to the queue entrance from // a normal path tile. - if (peep->interactionRideIndex == rideIndex){ + if (peep->interaction_ride_index == rideIndex){ // Case 1 above applies, so walk the queue. return peep_footpath_move_forward(peep, x, y, map_element, vandalism_present); } @@ -8387,7 +8387,7 @@ static sint32 peep_interact_with_path(rct_peep* peep, sint16 x, sint16 y, rct_ma // Set the following so the peep will correctly walk up // and back down the queue if the ride is closed // while they are queuing. - peep->interactionRideIndex = rideIndex; + peep->interaction_ride_index = rideIndex; rct_ride* ride = get_ride(rideIndex); // Add the peep to the ride queue. @@ -8419,7 +8419,7 @@ static sint32 peep_interact_with_path(rct_peep* peep, sint16 x, sint16 y, rct_ma return peep_footpath_move_forward(peep, x, y, map_element, vandalism_present); } else{ - peep->interactionRideIndex = 0xFF; + peep->interaction_ride_index = 0xFF; if (peep->state == PEEP_STATE_QUEUING){ remove_peep_from_queue(peep); peep_decrement_num_riders(peep); @@ -8449,7 +8449,7 @@ static sint32 peep_interact_with_shop(rct_peep* peep, sint16 x, sint16 y, rct_ma if (ride->status != RIDE_STATUS_OPEN) return peep_return_to_center_of_tile(peep); - if (peep->interactionRideIndex == rideIndex) + if (peep->interaction_ride_index == rideIndex) return peep_return_to_center_of_tile(peep); if (peep->peep_flags & PEEP_FLAGS_LEAVING_PARK) @@ -10500,7 +10500,7 @@ static sint32 sub_693C9E(rct_peep *peep) sint16 z = abs(map_element_height(x, y) - peep->z); if (z <= 3 || (peep->type == PEEP_TYPE_STAFF && z <= 32)){ - peep->interactionRideIndex = 0xFF; + peep->interaction_ride_index = 0xFF; if (peep->state == PEEP_STATE_QUEUING){ remove_peep_from_queue(peep); peep_decrement_num_riders(peep); diff --git a/src/openrct2/peep/peep.h b/src/openrct2/peep/peep.h index d094872fce..44eb172549 100644 --- a/src/openrct2/peep/peep.h +++ b/src/openrct2/peep/peep.h @@ -555,7 +555,7 @@ typedef struct rct_peep { uint8 maze_last_edge; // 0x78 uint8 direction; //Direction ? }; - uint8 interactionRideIndex; + uint8 interaction_ride_index; uint16 time_in_queue; // 0x7A uint8 rides_been_on[32]; // 0x7C // 255 bit bitmap of every ride the peep has been on see diff --git a/src/openrct2/rct1.h b/src/openrct2/rct1.h index 5b565dee68..20e5826d77 100644 --- a/src/openrct2/rct1.h +++ b/src/openrct2/rct1.h @@ -449,7 +449,7 @@ typedef struct rct1_peep { uint8 maze_last_edge; // 0x78 uint8 direction; //Direction ? }; - uint8 interactionRideIndex; + uint8 interaction_ride_index; uint16 time_in_queue; // 0x7A uint8 rides_been_on[32]; // 0x7C // 255 bit bitmap of every ride the peep has been on see diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 569acbd75d..c96c3d0b63 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1355,7 +1355,7 @@ private: dst->time_on_ride = src->time_on_ride; dst->days_in_queue = src->days_in_queue; - dst->interactionRideIndex = src->interactionRideIndex; + dst->interaction_ride_index = src->interaction_ride_index; dst->id = src->id; dst->cash_in_pocket = src->cash_in_pocket; From b9dc588da4e8ec5867ad3c6f32f5d8843d999195 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 16 May 2017 20:16:10 +0100 Subject: [PATCH 095/670] Fix return exit code for RCT2 builds --- src/openrct2/platform/windows.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 4fe901d10a..6e8e6f4f52 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -135,7 +135,6 @@ __declspec(dllexport) sint32 StartOpenRCT(HINSTANCE hInstance, HINSTANCE hPrevIn exit(exitCode); - return exitCode; } #endif // NO_RCT2 From 6d32c38fb3c65455eb2029a43c1344658bb1776a Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Tue, 16 May 2017 20:56:20 +0100 Subject: [PATCH 096/670] Fix #5471: Ride name issues at ride construction time --- src/openrct2/network/network.h | 2 +- src/openrct2/ride/ride.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index bf760fe980..233040e3db 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -56,7 +56,7 @@ extern "C" { // This define specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "5" +#define NETWORK_STREAM_VERSION "6" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 6ced0ccdfb..ee591ad052 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -5773,14 +5773,12 @@ static bool ride_name_exists(char *name) char buffer[256]; rct_ride *ride; sint32 i; - FOR_ALL_RIDES(i, ride) { format_string(buffer, 256, ride->name, &ride->name_arguments); - if (strcmp(buffer, name) == 0) { + if ((strcmp(buffer, name) == 0) && ride_has_any_track_elements(i)) { return true; } } - return false; } @@ -6000,7 +5998,7 @@ foundRideEntry: ride->name = 1; ride->name_arguments_type_name = rideEntry->name; rct_string_id rideNameStringId = 0; - name_args.type_name = 2 + ride->type; + name_args.type_name = rideEntry->name; name_args.number = 0; do { From 6bd34c1e55d8db5bde13be6e6e40adcf53fd9623 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Tue, 16 May 2017 22:36:48 +0200 Subject: [PATCH 097/670] Clean up sub_69101A, use constants for undefined excitement ratings, fixes #5481 --- src/openrct2/management/award.c | 2 +- src/openrct2/peep/peep.c | 33 +++++++++++++++++---------------- src/openrct2/ride/ride.c | 2 +- src/openrct2/windows/ride.c | 8 ++++---- src/openrct2/world/park.c | 2 +- 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/src/openrct2/management/award.c b/src/openrct2/management/award.c index f434d6e6d7..0cc0c6f159 100644 --- a/src/openrct2/management/award.c +++ b/src/openrct2/management/award.c @@ -441,7 +441,7 @@ static sint32 award_is_deserved_most_disappointing(sint32 awardType, sint32 acti disappointingRides = 0; FOR_ALL_RIDES(i, ride) { - if (ride->excitement == (ride_rating)(uint16)0xFFFF || ride->popularity == 0xFF) + if (ride->excitement == RIDE_RATING_UNDEFINED || ride->popularity == 0xFF) continue; countedRides++; diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index a1f5eebf24..1110a81a55 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -11310,37 +11310,38 @@ static void peep_easter_egg_peep_interactions(rct_peep *peep) * * @return (CF) */ -static bool sub_69101A(rct_map_element *esi) { - rct_ride *ride = get_ride(esi->properties.track.ride_index); +static bool peep_should_watch_ride(rct_map_element *mapElement) { + rct_ride *ride = get_ride(mapElement->properties.track.ride_index); if (gRideClassifications[ride->type] != RIDE_CLASS_RIDE) { + return false; + } + + // This is most likely to have peeps watch new rides + if (ride->excitement == RIDE_RATING_UNDEFINED) { return true; } - if ((uint16) ride->excitement == 0xFFFF) { - return false; - } - if (ride->excitement >= RIDE_RATING(4, 70)) { - return false; + return true; } if (ride->intensity >= RIDE_RATING(4, 50)) { - return false; + return true; } if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_INTERESTING_TO_LOOK_AT) { if ((scenario_rand() & 0xFFFF) > 0x3333) { - return true; + return false; } } else if (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_SLIGHTLY_INTERESTING_TO_LOOK_AT) { if ((scenario_rand() & 0xFFFF) > 0x1000) { - return true; + return false; } } else { - return true; + return false; } - return false; + return true; } /** @@ -11400,7 +11401,7 @@ static bool peep_find_ride_to_look_at(rct_peep *peep, uint8 edge, uint8 *rideToV if (peep->next_z + 6 < mapElement->base_height) continue; if (map_element_get_type(mapElement) == MAP_ELEMENT_TYPE_TRACK) { - if (!sub_69101A(mapElement)) { + if (peep_should_watch_ride(mapElement)) { return loc_690FD0(peep, rideToView, rideSeatToView, mapElement); } } @@ -11469,7 +11470,7 @@ static bool peep_find_ride_to_look_at(rct_peep *peep, uint8 edge, uint8 *rideToV if (peep->next_z + 8 < mapElement->base_height) continue; if (map_element_get_type(mapElement) == MAP_ELEMENT_TYPE_TRACK) { - if (!sub_69101A(mapElement)) { + if (peep_should_watch_ride(mapElement)) { return loc_690FD0(peep, rideToView, rideSeatToView, mapElement); } } @@ -11537,7 +11538,7 @@ static bool peep_find_ride_to_look_at(rct_peep *peep, uint8 edge, uint8 *rideToV if (peep->next_z + 10 < mapElement->base_height) continue; if (map_element_get_type(mapElement) == MAP_ELEMENT_TYPE_TRACK) { - if (!sub_69101A(mapElement)) { + if (peep_should_watch_ride(mapElement)) { return loc_690FD0(peep, rideToView, rideSeatToView, mapElement); } } @@ -11565,7 +11566,7 @@ bool loc_690FD0(rct_peep *peep, uint8 *rideToView, uint8 *rideSeatToView, rct_ma rct_ride *ride = get_ride(esi->properties.track.ride_index); *rideToView = esi->properties.track.ride_index; - if ((uint16) ride->excitement == 0xFFFF) { + if (ride->excitement == RIDE_RATING_UNDEFINED) { *rideSeatToView = 1; if (ride->status != RIDE_STATUS_OPEN) { if (esi->clearance_height > peep->next_z + 8) { diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index ee591ad052..8d5b12707b 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -7280,7 +7280,7 @@ void invalidate_test_results(sint32 rideIndex) rct_ride *ride = get_ride(rideIndex); ride_measurement_clear(ride); - ride->excitement = 0xFFFF; + ride->excitement = RIDE_RATING_UNDEFINED; ride->lifecycle_flags &= ~RIDE_LIFECYCLE_TESTED; ride->lifecycle_flags &= ~RIDE_LIFECYCLE_TEST_IN_PROGRESS; if (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK) { diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index 7444f39670..e56cc425d5 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -5202,7 +5202,7 @@ static void window_ride_measurements_invalidate(rct_window *w) window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].type = WWT_FLATBTN; w->disabled_widgets |= (1 << WIDX_SAVE_TRACK_DESIGN); if (ride->lifecycle_flags & RIDE_LIFECYCLE_TESTED) { - if (ride->excitement != -1) { + if (ride->excitement != RIDE_RATING_UNDEFINED) { w->disabled_widgets &= ~(1 << WIDX_SAVE_TRACK_DESIGN); window_ride_measurements_widgets[WIDX_SAVE_TRACK_DESIGN].tooltip = STR_SAVE_TRACK_DESIGN; } @@ -5245,7 +5245,7 @@ static void window_ride_measurements_paint(rct_window *w, rct_drawpixelinfo *dpi // Excitement set_format_arg(0, uint32, ride->excitement); set_format_arg(4, rct_string_id, RatingNames[min(ride->excitement >> 8, 5)]); - rct_string_id stringId = ride->excitement == -1 ? STR_EXCITEMENT_RATING_NOT_YET_AVAILABLE : STR_EXCITEMENT_RATING; + rct_string_id stringId = ride->excitement == RIDE_RATING_UNDEFINED ? STR_EXCITEMENT_RATING_NOT_YET_AVAILABLE : STR_EXCITEMENT_RATING; gfx_draw_string_left(dpi, stringId, gCommonFormatArgs, COLOUR_BLACK, x, y); y += 10; @@ -5254,7 +5254,7 @@ static void window_ride_measurements_paint(rct_window *w, rct_drawpixelinfo *dpi set_format_arg(4, rct_string_id, RatingNames[min(ride->intensity >> 8, 5)]); stringId = STR_INTENSITY_RATING; - if (ride->excitement == -1) + if (ride->excitement == RIDE_RATING_UNDEFINED) stringId = STR_INTENSITY_RATING_NOT_YET_AVAILABLE; else if (ride->intensity >= RIDE_RATING(10,00)) stringId = STR_INTENSITY_RATING_RED; @@ -5265,7 +5265,7 @@ static void window_ride_measurements_paint(rct_window *w, rct_drawpixelinfo *dpi // Nausea set_format_arg(0, uint32, ride->nausea); set_format_arg(4, rct_string_id, RatingNames[min(ride->nausea >> 8, 5)]); - stringId = ride->excitement == -1 ? STR_NAUSEA_RATING_NOT_YET_AVAILABLE : STR_NAUSEA_RATING; + stringId = ride->excitement == RIDE_RATING_UNDEFINED ? STR_NAUSEA_RATING_NOT_YET_AVAILABLE : STR_NAUSEA_RATING; gfx_draw_string_left(dpi, stringId, gCommonFormatArgs, COLOUR_BLACK, x, y); y += 20; diff --git a/src/openrct2/world/park.c b/src/openrct2/world/park.c index 39a9bfdbb1..c0f1933ea8 100644 --- a/src/openrct2/world/park.c +++ b/src/openrct2/world/park.c @@ -240,7 +240,7 @@ sint32 calculate_park_rating() FOR_ALL_RIDES(i, ride) { total_ride_uptime += 100 - ride->downtime; - if (ride->excitement != -1){ + if (ride->excitement != RIDE_RATING_UNDEFINED){ total_ride_excitement += ride->excitement / 8; total_ride_intensity += ride->intensity / 8; num_exciting_rides++; From e3c43b495b8fd44ec8d8d49eef9bb0b2d39aa7ff Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 16 May 2017 23:09:27 +0200 Subject: [PATCH 098/670] Fix incorrect ride data array sizes and LIM lookup --- src/openrct2/rct1.c | 2 +- src/openrct2/rct1.h | 2 +- src/openrct2/ride/ride_data.c | 47 ++++++++++++++++++-------------- src/openrct2/ride/ride_data.h | 16 +++++------ src/openrct2/ride/ride_ratings.c | 6 ++-- 5 files changed, 40 insertions(+), 33 deletions(-) diff --git a/src/openrct2/rct1.c b/src/openrct2/rct1.c index 8fc3ec223f..7ffeef30a7 100644 --- a/src/openrct2/rct1.c +++ b/src/openrct2/rct1.c @@ -132,6 +132,6 @@ const uint8 gRideCategories[] = { 2, // Inverted Impulse Coaster 2, // Mini Roller Coaster 2, // Mine Ride - 255, //59 Unknown Ride + 255, // 59 Unknown Ride 2 // LIM Launched Roller Coaster }; diff --git a/src/openrct2/rct1.h b/src/openrct2/rct1.h index 20e5826d77..34b20bd5d5 100644 --- a/src/openrct2/rct1.h +++ b/src/openrct2/rct1.h @@ -1204,7 +1204,7 @@ enum { RCT1_WATER_ORANGE }; -extern const uint8 gRideCategories[0x60]; +extern const uint8 gRideCategories[RIDE_TYPE_COUNT]; sint32 vehicle_preference_compare(uint8 rideType, const char * a, const char * b); bool rideTypeShouldLoseSeparateFlag(const rct_ride_entry *rideEntry); diff --git a/src/openrct2/ride/ride_data.c b/src/openrct2/ride/ride_data.c index 77a63e3251..5eee9eee4d 100644 --- a/src/openrct2/ride/ride_data.c +++ b/src/openrct2/ride/ride_data.c @@ -32,7 +32,7 @@ #include "../sprites.h" #include "../interface/colour.h" -const bool hasRunningTrack[0x60] = { +const bool hasRunningTrack[RIDE_TYPE_COUNT] = { true, // 0 Spiral Roller coaster true, // 1 Stand Up Coaster true, // 2 Suspended Swinging @@ -122,7 +122,8 @@ const bool hasRunningTrack[0x60] = { true, // 56 Inverted Impulse Coaster true, // 57 Mini Roller Coaster true, // 58 Mine Ride - true, // 59 LIM Launched Roller Coaster + true, // 59 (none) + true, // 5a LIM Launched Roller Coaster }; /** @@ -132,7 +133,7 @@ const bool hasRunningTrack[0x60] = { * * data generation script: https://gist.github.com/kevinburke/6bcf4a8fcc95faad7bac */ -const uint8 initialUpkeepCosts[0x60] = { +const uint8 initialUpkeepCosts[RIDE_TYPE_COUNT] = { 41, // 00 Spiral Roller coaster 40, // 01 Stand Up Coaster 40, // 02 Suspended Swinging @@ -219,13 +220,14 @@ const uint8 initialUpkeepCosts[0x60] = { 50, // 53 (none) 50, // 54 (none) 40, // 55 (none) - 180, // 56 Inverted Impulse Coaster + 180,// 56 Inverted Impulse Coaster 35, // 57 Mini Roller Coaster 50, // 58 Mine Ride - 42, // 59 LIM Launched Roller Coaster + 42, // 59 (none) + 42, // 5a LIM Launched Roller Coaster }; -const uint8 costPerTrackPiece[0x60] = { +const uint8 costPerTrackPiece[RIDE_TYPE_COUNT] = { 80, // 00 Spiral Roller coaster 80, // 01 Stand Up Coaster 80, // 02 Suspended Swinging @@ -315,13 +317,14 @@ const uint8 costPerTrackPiece[0x60] = { 80, // 56 Inverted Impulse Coaster 80, // 57 Mini Roller Coaster 80, // 58 Mine Ride - 80, // 59 LIM Launched Roller Coaster + 80, // 59 (none) + 80, // 5a LIM Launched Roller Coaster }; /** * Data initially at 0x0097E3B4 */ -const uint8 rideUnknownData1[0x60] = { +const uint8 costPerVehicle[RIDE_TYPE_COUNT] = { 10, // 00 Spiral Roller coaster 10, // 01 Stand Up Coaster 20, // 02 Suspended Swinging @@ -411,14 +414,15 @@ const uint8 rideUnknownData1[0x60] = { 11, // 56 Inverted Impulse Coaster 8, // 57 Mini Roller Coaster 10, // 58 Mine Ride - 9, // 59 LIM Launched Roller Coaster + 9, // 59 (none) + 9, // 5a LIM Launched Roller Coaster }; /** * Data at 0x0097E3B6, originally set to either be 3 or 0 and replaced here by * a boolean table. This may be exactly the same as hasRunningTrack above. */ -const bool rideUnknownData2[0x60] = { +const bool chargeUpkeepForTrainLength[RIDE_TYPE_COUNT] = { true, // 00 Spiral Roller coaster true, // 01 Stand Up Coaster true, // 02 Suspended Swinging @@ -508,11 +512,12 @@ const bool rideUnknownData2[0x60] = { true, // 56 Inverted Impulse Coaster true, // 57 Mini Roller Coaster true, // 58 Mine Ride - true, // 59 LIM Launched Roller Coaster + true, // 59 (none) + true, // 5a LIM Launched Roller Coaster }; /* Data at 0x0097E3B8 */ -const uint8 rideUnknownData3[0x60] = { +const uint8 costPerStation[RIDE_TYPE_COUNT] = { 10, // 00 Spiral Roller coaster 10, // 01 Stand Up Coaster 10, // 02 Suspended Swinging @@ -602,11 +607,12 @@ const uint8 rideUnknownData3[0x60] = { 10, // 56 Inverted Impulse Coaster 10, // 57 Mini Roller Coaster 10, // 58 Mine Ride - 10, // 59 LIM Launched Roller Coaster + 10, // 59 (none) + 10, // 5a LIM Launched Roller Coaster }; // Data at 0x0097D21E -const uint8 rideBonusValue[0x60] = { +const uint8 rideBonusValue[RIDE_TYPE_COUNT] = { 85, // 00 Spiral Roller coaster 90, // 01 Stand Up Coaster 90, // 02 Suspended Swinging @@ -696,7 +702,8 @@ const uint8 rideBonusValue[0x60] = { 75, // 56 Inverted Impulse Coaster 60, // 57 Mini Roller Coaster 70, // 58 Mine Ride - 55, // 59 LIM Launched Roller Coaster + 55, // 59 (none) + 55, // 5a LIM Launched Roller Coaster }; const ride_component_name RideComponentNames[] = { @@ -716,7 +723,7 @@ const ride_component_name RideComponentNames[] = { { STR_RIDE_COMPONENT_COURSE, STR_RIDE_COMPONENT_COURSE_PLURAL, STR_RIDE_COMPONENT_COURSE_CAPITALISED, STR_RIDE_COMPONENT_COURSE_CAPITALISED_PLURAL, STR_RIDE_COMPONENT_COURSE_COUNT, STR_RIDE_COMPONENT_COURSE_COUNT_PLURAL, STR_RIDE_COMPONENT_COURSE_NO }, }; -const rct_ride_name_convention RideNameConvention[96] = { +const rct_ride_name_convention RideNameConvention[RIDE_TYPE_COUNT] = { { RIDE_COMPONENT_TYPE_TRAIN, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 00 Spiral Roller coaster { RIDE_COMPONENT_TYPE_TRAIN, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 01 Stand Up Coaster { RIDE_COMPONENT_TYPE_TRAIN, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 02 Suspended Swinging @@ -806,8 +813,8 @@ const rct_ride_name_convention RideNameConvention[96] = { { RIDE_COMPONENT_TYPE_TRAIN, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 56 Inverted Impulse Coaster { RIDE_COMPONENT_TYPE_CAR, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 57 Mini Roller Coaster { RIDE_COMPONENT_TYPE_TRAIN, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 58 Mine Ride - { RIDE_COMPONENT_TYPE_CAR, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 59 LIM Launched Roller Coaster - { RIDE_COMPONENT_TYPE_TRAIN, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION } + { RIDE_COMPONENT_TYPE_CAR, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 59 (none) + { RIDE_COMPONENT_TYPE_TRAIN, RIDE_COMPONENT_TYPE_TRACK, RIDE_COMPONENT_TYPE_STATION }, // 5a LIM Launched Roller Coaster }; const rct_ride_name RideNaming[] = { @@ -999,7 +1006,7 @@ const uint8 RideAvailableModes[] = { RIDE_MODE_CONTINUOUS_CIRCUIT, RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED, 0xFF, // 57 Mini Roller Coaster RIDE_MODE_CONTINUOUS_CIRCUIT, 0xFF, // 58 Mine Ride RIDE_MODE_CONTINUOUS_CIRCUIT, RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED, 0xFF, // 59 Unknown - RIDE_MODE_POWERED_LAUNCH_PASSTROUGH, RIDE_MODE_POWERED_LAUNCH, RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED, 0xFF // 60 LIM Launched Roller Coaster + RIDE_MODE_POWERED_LAUNCH_PASSTROUGH, RIDE_MODE_POWERED_LAUNCH, RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED, 0xFF // 5a LIM Launched Roller Coaster }; const uint8 AllRideModesAvailable[] = { @@ -1097,7 +1104,7 @@ const uint8 RideAvailableBreakdowns[] = { (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE), // 57 Mini Roller Coaster (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION), // 58 Mine Ride (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE), // 59 Unknown - (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE) // 60 LIM Launched Roller Coaster + (1 << BREAKDOWN_SAFETY_CUT_OUT) | (1 << BREAKDOWN_RESTRAINTS_STUCK_CLOSED) | (1 << BREAKDOWN_RESTRAINTS_STUCK_OPEN) | (1 << BREAKDOWN_VEHICLE_MALFUNCTION) | (1 << BREAKDOWN_BRAKES_FAILURE) // 5a LIM Launched Roller Coaster }; // rct2: 0x00993E7C and 0x00993E1C diff --git a/src/openrct2/ride/ride_data.h b/src/openrct2/ride/ride_data.h index 1ce378887f..d7bbc001a9 100644 --- a/src/openrct2/ride/ride_data.h +++ b/src/openrct2/ride/ride_data.h @@ -139,17 +139,17 @@ typedef struct rct_shop_item_stats { uint16 cold_value; } rct_shop_item_stats; -extern const bool hasRunningTrack[0x60]; -extern const uint8 initialUpkeepCosts[0x60]; -extern const uint8 costPerTrackPiece[0x60]; +extern const bool hasRunningTrack[RIDE_TYPE_COUNT]; +extern const uint8 initialUpkeepCosts[RIDE_TYPE_COUNT]; +extern const uint8 costPerTrackPiece[RIDE_TYPE_COUNT]; -extern const uint8 rideUnknownData1[0x60]; -extern const bool rideUnknownData2[0x60]; -extern const uint8 rideUnknownData3[0x60]; -extern const uint8 rideBonusValue[0x60]; +extern const uint8 costPerVehicle[RIDE_TYPE_COUNT]; +extern const bool chargeUpkeepForTrainLength[RIDE_TYPE_COUNT]; +extern const uint8 costPerStation[RIDE_TYPE_COUNT]; +extern const uint8 rideBonusValue[RIDE_TYPE_COUNT]; extern const ride_component_name RideComponentNames[RIDE_COMPONENT_TYPE_COUNT]; -extern const rct_ride_name_convention RideNameConvention[96]; +extern const rct_ride_name_convention RideNameConvention[RIDE_TYPE_COUNT]; extern const rct_ride_name RideNaming[RIDE_TYPE_COUNT]; extern const uint8 RideAvailableModes[]; extern const uint8 AllRideModesAvailable[]; diff --git a/src/openrct2/ride/ride_ratings.c b/src/openrct2/ride/ride_ratings.c index 194158aa64..51e6d351b9 100644 --- a/src/openrct2/ride/ride_ratings.c +++ b/src/openrct2/ride/ride_ratings.c @@ -746,16 +746,16 @@ static uint16 ride_compute_upkeep(rct_ride *ride) // various variables set on the ride itself. // https://gist.github.com/kevinburke/e19b803cd2769d96c540 - upkeep += rideUnknownData1[ride->type] * ride->num_vehicles; + upkeep += costPerVehicle[ride->type] * ride->num_vehicles; // either set to 3 or 0, extra boosts for some rides including mini golf - if (rideUnknownData2[ride->type]) { + if (chargeUpkeepForTrainLength[ride->type]) { upkeep += 3 * ride->num_cars_per_train; } // slight upkeep boosts for some rides - 5 for mini railroad, 10 for log // flume/rapids, 10 for roller coaster, 28 for giga coaster - upkeep += rideUnknownData3[ride->type] * ride->num_stations; + upkeep += costPerStation[ride->type] * ride->num_stations; if (ride->mode == RIDE_MODE_REVERSE_INCLINE_LAUNCHED_SHUTTLE) { upkeep += 30; From 57b5220a4f92ffd3160ef426bbef357364597fc1 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 16 May 2017 23:11:06 +0200 Subject: [PATCH 099/670] Fix formatting --- src/openrct2/ride/ride_data.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openrct2/ride/ride_data.c b/src/openrct2/ride/ride_data.c index 5eee9eee4d..ba3084d0ec 100644 --- a/src/openrct2/ride/ride_data.c +++ b/src/openrct2/ride/ride_data.c @@ -123,7 +123,7 @@ const bool hasRunningTrack[RIDE_TYPE_COUNT] = { true, // 57 Mini Roller Coaster true, // 58 Mine Ride true, // 59 (none) - true, // 5a LIM Launched Roller Coaster + true, // 5a LIM Launched Roller Coaster }; /** @@ -224,7 +224,7 @@ const uint8 initialUpkeepCosts[RIDE_TYPE_COUNT] = { 35, // 57 Mini Roller Coaster 50, // 58 Mine Ride 42, // 59 (none) - 42, // 5a LIM Launched Roller Coaster + 42, // 5a LIM Launched Roller Coaster }; const uint8 costPerTrackPiece[RIDE_TYPE_COUNT] = { @@ -318,7 +318,7 @@ const uint8 costPerTrackPiece[RIDE_TYPE_COUNT] = { 80, // 57 Mini Roller Coaster 80, // 58 Mine Ride 80, // 59 (none) - 80, // 5a LIM Launched Roller Coaster + 80, // 5a LIM Launched Roller Coaster }; /** @@ -415,7 +415,7 @@ const uint8 costPerVehicle[RIDE_TYPE_COUNT] = { 8, // 57 Mini Roller Coaster 10, // 58 Mine Ride 9, // 59 (none) - 9, // 5a LIM Launched Roller Coaster + 9, // 5a LIM Launched Roller Coaster }; /** @@ -513,7 +513,7 @@ const bool chargeUpkeepForTrainLength[RIDE_TYPE_COUNT] = { true, // 57 Mini Roller Coaster true, // 58 Mine Ride true, // 59 (none) - true, // 5a LIM Launched Roller Coaster + true, // 5a LIM Launched Roller Coaster }; /* Data at 0x0097E3B8 */ @@ -608,7 +608,7 @@ const uint8 costPerStation[RIDE_TYPE_COUNT] = { 10, // 57 Mini Roller Coaster 10, // 58 Mine Ride 10, // 59 (none) - 10, // 5a LIM Launched Roller Coaster + 10, // 5a LIM Launched Roller Coaster }; // Data at 0x0097D21E @@ -703,7 +703,7 @@ const uint8 rideBonusValue[RIDE_TYPE_COUNT] = { 60, // 57 Mini Roller Coaster 70, // 58 Mine Ride 55, // 59 (none) - 55, // 5a LIM Launched Roller Coaster + 55, // 5a LIM Launched Roller Coaster }; const ride_component_name RideComponentNames[] = { From b539bc6191fa4bd9d801ffb52fc46bb525668e88 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Wed, 17 May 2017 04:00:18 +0000 Subject: [PATCH 100/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/zh-TW.txt | 54 ++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/data/language/zh-TW.txt b/data/language/zh-TW.txt index 808a3c4b77..04d5dd562c 100644 --- a/data/language/zh-TW.txt +++ b/data/language/zh-TW.txt @@ -4382,7 +4382,7 @@ STR_DTLS :在隱藏於森林深處的清空範圍中, 建造一個很受歡 STR_SCNR :Dynamite Dunes STR_PARK :Dynamite Dunes -STR_DTLS :這個座立於沙漠中的樂園只有一座雲霄飛車, 但不缺乏可供擴充的位置 +STR_DTLS :這個座立於沙漠中的樂園只有一座雲霄飛車, 但不缺乏可供擴充的區域 STR_SCNR :Leafy Lake @@ -4510,9 +4510,9 @@ STR_SCNR :Funtopia STR_PARK :Funtopia STR_DTLS :這個被一條高速公路所分開的樂園已擁有幾個已在運行的遊樂設施 - -STR_SCNR :Haunted Harbor -STR_PARK :Haunted Harbor + +STR_SCNR :Haunted Harbour +STR_PARK :Haunted Harbour STR_DTLS :當地政府已同意將鄰近的土地以低廉的價格販賣給這個小型海邊樂園, 但條件是要保留某些遊樂設施 @@ -4583,52 +4583,52 @@ STR_DTLS :以添加遊樂設施及雲霄飛車發展這個羅馬主題的樂 STR_SCNR :Swamp Cove STR_PARK :Swamp Cove -STR_DTLS :Built partly on a series of small islands, this park already has a pair of large roller coasters as its centerpiece +STR_DTLS :此樂園已經有一對建造在數個小島嶼上的巨型雲霄飛車作為它的靈魂 STR_SCNR :Adrenaline Heights STR_PARK :Adrenaline Heights -STR_DTLS :Build a park to appeal to the high-intensity thrill-seeking local people +STR_DTLS :建造一個能吸引喜好高刺激度遊樂設施的當地遊客前往的樂園 STR_SCNR :Utopia Park STR_PARK :Utopia Park -STR_DTLS :An oasis in the middle of the desert provides an unusual opportunity to build an amusement park +STR_DTLS :一個沙漠中的綠洲帶來了一個非比尋常的機會去建造一個主題樂園 STR_SCNR :Rotting Heights STR_PARK :Rotting Heights -STR_DTLS :Overgrown and dilapidated, can you resurrect this once-great amusement park? +STR_DTLS :你能拯救這個曾經輝煌過, 但現殘破又雜草叢生的主題樂園嗎? STR_SCNR :Fiasco Forest STR_PARK :Fiasco Forest -STR_DTLS :Full of badly designed and dangerous rides, you have a very limited budget and time to fix the problems and turn the park around +STR_DTLS :你只有非常有限的資金及時間去修復這一個充滿不同劣質設計及非常危險的遊樂設施的樂園 STR_SCNR :Pickle Park STR_PARK :Pickle Park -STR_DTLS :The local authority will not allow any kind of advertising or promotion, so this park must succeed by reputation only +STR_DTLS :當地政府並不准許任何營銷活動, 所以這個樂園必須要以名譽來達至成功 STR_SCNR :Giggle Downs STR_PARK :Giggle Downs -STR_DTLS :A four lane steeplechase ride is the centerpiece of this expanding park +STR_DTLS :四座馬術障礙賽式雲霄飛車是這個需要擴張的樂園的靈魂 STR_SCNR :Mineral Park STR_PARK :Mineral Park -STR_DTLS :Turn this abandoned stone quarry into a place to attract thrill-seeking tourists +STR_DTLS :將這個已廢棄的石礦轉型成一個能夠吸引喜好剌激的遊客前往的地方 STR_SCNR :Coaster Crazy STR_PARK :Coaster Crazy -STR_DTLS :You have limited funds but unlimited time to turn this mountainside area into a vast roller coaster park +STR_DTLS :你擁有有限的金錢但無限的時間來將這個山區轉變成一個巨大的雲霄飛車樂園 STR_SCNR :Urban Park STR_PARK :Urban Park -STR_DTLS :A tiny park has done a deal with the nearby town to allow expansion through the town itself +STR_DTLS :這個微小的樂園已與鄰近城鎮商討好使用後者來擴充前者的交易 STR_SCNR :Geoffrey Gardens @@ -4655,47 +4655,47 @@ STR_DTLS :沒有任何財政上的限制, 你的挑戰是要發展這個沙 STR_SCNR :Razor Rocks STR_PARK :Razor Rocks -STR_DTLS :Your task is to build a massive coaster-filled park in amongst Razor Rocks +STR_DTLS :你的任務是於Razor Rocks之中建造一個擁有不同雲霄飛車的樂園 STR_SCNR :Crater Lake STR_PARK :Crater Lake -STR_DTLS :A large lake in an ancient crater is the setting for this park +STR_DTLS :此樂園設定於一個沉睡火山口的湖之上 STR_SCNR :Vertigo Views STR_PARK :Vertigo Views -STR_DTLS :This large park already has an excellent hyper-coaster, but your task is to massively increase its profit +STR_DTLS :這個大型的樂園已經擁有一座很棒的Hyper式雲霄飛車, 但你的任務是要將他的利潤大幅增加 STR_SCNR :Paradise Pier 2 STR_PARK :Paradise Pier 2 -STR_DTLS :Paradise Pier has expanded its network of walkways over the sea, and your task is to expand the park to use the extra space +STR_DTLS :Paradise Pier 已向海中心擴張它的道路網絡, 你的任務是讓樂園使用那些新擴張的區域 STR_SCNR :Dragon's Cove STR_PARK :Dragon's Cove -STR_DTLS :This sea-side cove is the setting for this coaster-building challenge +STR_DTLS :此建造雲霄飛車挑戰設定於一個處於海邊的洞穴之中 STR_SCNR :Good Knight Park STR_PARK :Good Knight Park -STR_DTLS :A castle with a pair of roller coasters needs developing into a larger theme park +STR_DTLS :一個擁有一對雲霄飛車的城堡需要發展成一個更大型的主題樂園 STR_SCNR :Wacky Warren STR_PARK :Wacky Warren -STR_DTLS :A park which has much of its footpaths and coasters underground +STR_DTLS :一個擁有很多道路及雲霄飛車於地下的樂園 STR_SCNR :Grand Glacier STR_PARK :Grand Glacier -STR_DTLS :A glacier-filled valley is yours to develop into a theme park +STR_DTLS :一個由冰川所填滿的峽谷現可由你任意發展成一個樂園 STR_SCNR :Crazy Craters STR_PARK :Crazy Craters -STR_DTLS :In a far-off world where money is not needed, you must build an entertainment centre to keep the people happy +STR_DTLS :在一個不用錢的遙遠的世界中, 你需要建造一個娛樂中心來讓遊客開心 STR_SCNR :Dusty Desert @@ -4705,7 +4705,7 @@ STR_DTLS :你需要在此沙漠中的樂園完成未建好的5座雲霄飛車 STR_SCNR :Woodworm Park STR_PARK :Woodworm Park -STR_DTLS :This historical park is only allowed to build older-styled rides +STR_DTLS :這個很有歷史的樂園只能讓你建造一些古舊風格的遊樂設施 STR_SCNR :Icarus Park @@ -4715,7 +4715,7 @@ STR_DTLS :發展此外星樂園並將其利潤最大化 STR_SCNR :Sunny Swamps STR_PARK :Sunny Swamps -STR_DTLS :This well-themed amusement park already has several rides, but has plenty of space for expansion +STR_DTLS :這個佈置得很好的主題樂園已經有數項遊樂設施, 但有很多擴張的空間 STR_SCNR :Frightmare Hills @@ -4725,7 +4725,7 @@ STR_DTLS :一個在中心擁有一座巨大的雲霄飛車的恐怖樂園 STR_SCNR :Thunder Rocks STR_PARK :Thunder Rocks -STR_DTLS :Two large hunks of rock stick out of the sand, upon which the beginnings of a theme park are constructed +STR_DTLS :兩座屹立在沙地之上的巨型石將會作為建造一個主題樂園的初始環境 STR_SCNR :Octagon Park @@ -4735,7 +4735,7 @@ STR_DTLS :你需要在此大型樂園內建造十座雲霄飛車 STR_SCNR :Pleasure Island STR_PARK :Pleasure Island -STR_DTLS :A long thin island makes a challenging setting to build a selection of coasters +STR_DTLS :一個又長又窄的島嶼令到建造挑選好的雲霄飛車十分有挑戰性 STR_SCNR :Icicle Worlds From bfa03583fabe4968bc37e8477649da24af1fd95f Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Wed, 17 May 2017 13:19:42 +0200 Subject: [PATCH 101/670] Apply window themes only when created or when the selected theme is changed --- src/openrct2/input.c | 4 +- src/openrct2/interface/Theme.cpp | 129 ++++++++++-------- src/openrct2/interface/window.c | 4 +- src/openrct2/interface/window.h | 2 + src/openrct2/windows/about.c | 1 - src/openrct2/windows/banner.c | 3 - src/openrct2/windows/changelog.c | 3 - src/openrct2/windows/cheats.c | 3 - src/openrct2/windows/clear_scenery.c | 3 - src/openrct2/windows/debug_paint.c | 1 - src/openrct2/windows/demolish_ride_prompt.c | 9 +- src/openrct2/windows/editor_inventions_list.c | 3 - .../windows/editor_object_selection.c | 3 - .../windows/editor_objective_options.c | 5 - .../windows/editor_scenario_options.c | 7 - src/openrct2/windows/finances.c | 13 -- src/openrct2/windows/footpath.c | 3 - src/openrct2/windows/game_bottom_toolbar.c | 3 - src/openrct2/windows/guest.c | 13 -- src/openrct2/windows/guest_list.c | 3 - src/openrct2/windows/install_track.c | 3 - src/openrct2/windows/land.c | 3 - src/openrct2/windows/land_rights.c | 3 - src/openrct2/windows/loadsave.c | 17 +-- src/openrct2/windows/map.c | 3 - src/openrct2/windows/mapgen.c | 9 -- src/openrct2/windows/maze_construction.c | 2 - src/openrct2/windows/multiplayer.c | 6 - src/openrct2/windows/network_status.c | 3 - src/openrct2/windows/new_campaign.c | 3 - src/openrct2/windows/new_ride.c | 3 - src/openrct2/windows/news.c | 9 +- src/openrct2/windows/news_options.c | 2 - src/openrct2/windows/options.c | 5 - src/openrct2/windows/park.c | 14 -- src/openrct2/windows/player.c | 5 - src/openrct2/windows/research.c | 5 - src/openrct2/windows/ride.c | 20 --- src/openrct2/windows/ride_construction.c | 2 - src/openrct2/windows/ride_list.c | 3 - src/openrct2/windows/save_prompt.c | 9 +- src/openrct2/windows/scenery.c | 3 - src/openrct2/windows/server_list.cpp | 22 ++- src/openrct2/windows/shortcut_key_change.c | 9 +- src/openrct2/windows/shortcut_keys.c | 3 - src/openrct2/windows/sign.c | 5 - src/openrct2/windows/staff_fire_prompt.c | 11 +- src/openrct2/windows/staff_list.c | 3 - src/openrct2/windows/themes.c | 2 - src/openrct2/windows/tile_inspector.c | 3 - src/openrct2/windows/title_editor.c | 3 - src/openrct2/windows/title_exit.c | 9 +- src/openrct2/windows/title_menu.c | 9 +- src/openrct2/windows/title_options.c | 9 +- src/openrct2/windows/title_scenarioselect.c | 2 - src/openrct2/windows/top_toolbar.c | 3 - src/openrct2/windows/track_list.c | 3 - src/openrct2/windows/track_manage.c | 17 +-- src/openrct2/windows/track_place.c | 2 - src/openrct2/windows/view_clipping.c | 5 - src/openrct2/windows/viewport.c | 3 - src/openrct2/windows/water.c | 3 - 62 files changed, 98 insertions(+), 375 deletions(-) diff --git a/src/openrct2/input.c b/src/openrct2/input.c index 72a267c783..ab3579e7e3 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -867,7 +867,7 @@ static void input_scroll_part_update_vbottom(rct_window *w, rct_widgetindex widg */ static void input_widget_over(sint32 x, sint32 y, rct_window *w, rct_widgetindex widgetIndex) { - rct_windowclass windowClass = 255; + rct_windowclass windowClass = WC_NULL; rct_windownumber windowNumber = 0; rct_widget *widget = NULL; @@ -953,7 +953,7 @@ static void input_widget_over_flatbutton_invalidate() */ static void input_widget_left(sint32 x, sint32 y, rct_window *w, rct_widgetindex widgetIndex) { - rct_windowclass windowClass = 255; + rct_windowclass windowClass = WC_NULL; rct_windownumber windowNumber = 0; rct_widget *widget; diff --git a/src/openrct2/interface/Theme.cpp b/src/openrct2/interface/Theme.cpp index ff0cb0fc86..1e48c4b13f 100644 --- a/src/openrct2/interface/Theme.cpp +++ b/src/openrct2/interface/Theme.cpp @@ -115,66 +115,66 @@ struct WindowThemeDesc WindowThemeDesc WindowThemeDescriptors[] = { - // WindowClass, WindowClassSZ WindowName NumColours, DefaultTheme - { THEME_WC(WC_TOP_TOOLBAR), STR_THEMES_WINDOW_TOP_TOOLBAR, COLOURS_4(COLOUR_LIGHT_BLUE, COLOUR_DARK_GREEN, COLOUR_DARK_BROWN, COLOUR_GREY ) }, - { THEME_WC(WC_BOTTOM_TOOLBAR), STR_THEMES_WINDOW_BOTTOM_TOOLBAR, COLOURS_4(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), COLOUR_BLACK, COLOUR_BRIGHT_GREEN ) }, - { THEME_WC(WC_RIDE), STR_THEMES_WINDOW_RIDE, COLOURS_3(COLOUR_GREY, COLOUR_BORDEAUX_RED, COLOUR_GREY ) }, - { THEME_WC(WC_RIDE_CONSTRUCTION), STR_THEMES_WINDOW_RIDE_CONSTRUCTION, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_RIDE_LIST), STR_THEMES_WINDOW_RIDE_LIST, COLOURS_3(COLOUR_GREY, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, - { THEME_WC(WC_SAVE_PROMPT), STR_THEMES_WINDOW_SAVE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, - { THEME_WC(WC_CONSTRUCT_RIDE), STR_THEMES_WINDOW_CONSTRUCT_RIDE, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, - { THEME_WC(WC_DEMOLISH_RIDE_PROMPT), STR_THEMES_WINDOW_DEMOLISH_RIDE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, - { THEME_WC(WC_SCENERY), STR_THEMES_WINDOW_SCENERY, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_GREEN, COLOUR_DARK_GREEN ) }, - { THEME_WC(WC_OPTIONS), STR_THEMES_WINDOW_OPTIONS, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_FOOTPATH), STR_THEMES_WINDOW_FOOTPATH, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_LAND), STR_THEMES_WINDOW_LAND, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_WATER), STR_THEMES_WINDOW_WATER, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_PEEP), STR_THEMES_WINDOW_PEEP, COLOURS_3(COLOUR_GREY, COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN ) }, - { THEME_WC(WC_GUEST_LIST), STR_THEMES_WINDOW_GUEST_LIST, COLOURS_3(COLOUR_GREY, COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN ) }, - { THEME_WC(WC_STAFF_LIST), STR_THEMES_WINDOW_STAFF_LIST, COLOURS_3(COLOUR_GREY, COLOUR_LIGHT_PURPLE, COLOUR_LIGHT_PURPLE ) }, - { THEME_WC(WC_FIRE_PROMPT), STR_THEMES_WINDOW_FIRE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, - { THEME_WC(WC_PARK_INFORMATION), STR_THEMES_WINDOW_PARK_INFORMATION, COLOURS_3(COLOUR_GREY, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, - { THEME_WC(WC_FINANCES), STR_THEMES_WINDOW_FINANCES, COLOURS_3(COLOUR_GREY, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, - { THEME_WC(WC_TITLE_MENU), STR_THEMES_WINDOW_TITLE_MENU_BUTTONS, COLOURS_3(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN) ) }, - { THEME_WC(WC_TITLE_EXIT), STR_THEMES_WINDOW_TITLE_MENU_EXIT, COLOURS_3(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN) ) }, - { THEME_WC(WC_RECENT_NEWS), STR_THEMES_WINDOW_RECENT_NEWS, COLOURS_3(COLOUR_GREY, COLOUR_GREY, COLOUR_BLACK ) }, - { THEME_WC(WC_SCENARIO_SELECT), STR_THEMES_WINDOW_TITLE_MENU_SCENARIO_SELECTION, COLOURS_3(COLOUR_GREY, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, - { THEME_WC(WC_TRACK_DESIGN_LIST), STR_THEMES_WINDOW_TRACK_DESIGN_LIST, COLOURS_3(COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, - { THEME_WC(WC_TRACK_DESIGN_PLACE), STR_THEMES_WINDOW_TRACK_DESIGN_PLACE, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_NEW_CAMPAIGN), STR_THEMES_WINDOW_NEW_CAMPAIGN, COLOURS_3(COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, - { THEME_WC(WC_KEYBOARD_SHORTCUT_LIST), STR_THEMES_WINDOW_KEYBOARD_SHORTCUT_LIST, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + // WindowClass, WindowClassSZ WindowName NumColours, DefaultTheme + { THEME_WC(WC_TOP_TOOLBAR), STR_THEMES_WINDOW_TOP_TOOLBAR, COLOURS_4(COLOUR_LIGHT_BLUE, COLOUR_DARK_GREEN, COLOUR_DARK_BROWN, COLOUR_GREY ) }, + { THEME_WC(WC_BOTTOM_TOOLBAR), STR_THEMES_WINDOW_BOTTOM_TOOLBAR, COLOURS_4(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), COLOUR_BLACK, COLOUR_BRIGHT_GREEN ) }, + { THEME_WC(WC_RIDE), STR_THEMES_WINDOW_RIDE, COLOURS_3(COLOUR_GREY, COLOUR_BORDEAUX_RED, COLOUR_GREY ) }, + { THEME_WC(WC_RIDE_CONSTRUCTION), STR_THEMES_WINDOW_RIDE_CONSTRUCTION, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_RIDE_LIST), STR_THEMES_WINDOW_RIDE_LIST, COLOURS_3(COLOUR_GREY, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, + { THEME_WC(WC_SAVE_PROMPT), STR_THEMES_WINDOW_SAVE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, + { THEME_WC(WC_CONSTRUCT_RIDE), STR_THEMES_WINDOW_CONSTRUCT_RIDE, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, + { THEME_WC(WC_DEMOLISH_RIDE_PROMPT), STR_THEMES_WINDOW_DEMOLISH_RIDE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, + { THEME_WC(WC_SCENERY), STR_THEMES_WINDOW_SCENERY, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_GREEN, COLOUR_DARK_GREEN ) }, + { THEME_WC(WC_OPTIONS), STR_THEMES_WINDOW_OPTIONS, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_FOOTPATH), STR_THEMES_WINDOW_FOOTPATH, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_LAND), STR_THEMES_WINDOW_LAND, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_WATER), STR_THEMES_WINDOW_WATER, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_PEEP), STR_THEMES_WINDOW_PEEP, COLOURS_3(COLOUR_GREY, COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN ) }, + { THEME_WC(WC_GUEST_LIST), STR_THEMES_WINDOW_GUEST_LIST, COLOURS_3(COLOUR_GREY, COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN ) }, + { THEME_WC(WC_STAFF_LIST), STR_THEMES_WINDOW_STAFF_LIST, COLOURS_3(COLOUR_GREY, COLOUR_LIGHT_PURPLE, COLOUR_LIGHT_PURPLE ) }, + { THEME_WC(WC_FIRE_PROMPT), STR_THEMES_WINDOW_FIRE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, + { THEME_WC(WC_PARK_INFORMATION), STR_THEMES_WINDOW_PARK_INFORMATION, COLOURS_3(COLOUR_GREY, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, + { THEME_WC(WC_FINANCES), STR_THEMES_WINDOW_FINANCES, COLOURS_3(COLOUR_GREY, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, + { THEME_WC(WC_TITLE_MENU), STR_THEMES_WINDOW_TITLE_MENU_BUTTONS, COLOURS_3(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN) ) }, + { THEME_WC(WC_TITLE_EXIT), STR_THEMES_WINDOW_TITLE_MENU_EXIT, COLOURS_3(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN) ) }, + { THEME_WC(WC_RECENT_NEWS), STR_THEMES_WINDOW_RECENT_NEWS, COLOURS_3(COLOUR_GREY, COLOUR_GREY, COLOUR_BLACK ) }, + { THEME_WC(WC_SCENARIO_SELECT), STR_THEMES_WINDOW_TITLE_MENU_SCENARIO_SELECTION, COLOURS_3(COLOUR_GREY, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, + { THEME_WC(WC_TRACK_DESIGN_LIST), STR_THEMES_WINDOW_TRACK_DESIGN_LIST, COLOURS_3(COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, + { THEME_WC(WC_TRACK_DESIGN_PLACE), STR_THEMES_WINDOW_TRACK_DESIGN_PLACE, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_NEW_CAMPAIGN), STR_THEMES_WINDOW_NEW_CAMPAIGN, COLOURS_3(COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, + { THEME_WC(WC_KEYBOARD_SHORTCUT_LIST), STR_THEMES_WINDOW_KEYBOARD_SHORTCUT_LIST, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, { THEME_WC(WC_CHANGE_KEYBOARD_SHORTCUT), STR_THEMES_WINDOW_CHANGE_KEYBOARD_SHORTCUT, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_MAP), STR_THEMES_WINDOW_MAP, COLOURS_2(COLOUR_DARK_GREEN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_BANNER), STR_THEMES_WINDOW_BANNER, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_EDITOR_OBJECT_SELECTION), STR_THEMES_WINDOW_EDITOR_OBJECT_SELECTION, COLOURS_3(COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_GREY ) }, - { THEME_WC(WC_EDITOR_INVENTION_LIST), STR_THEMES_WINDOW_EDITOR_INVENTION_LIST, COLOURS_3(COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_GREY ) }, - { THEME_WC(WC_EDITOR_SCENARIO_OPTIONS), STR_THEMES_WINDOW_EDITOR_SCENARIO_OPTIONS, COLOURS_3(COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_GREY ) }, + { THEME_WC(WC_MAP), STR_THEMES_WINDOW_MAP, COLOURS_2(COLOUR_DARK_GREEN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_BANNER), STR_THEMES_WINDOW_BANNER, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_EDITOR_OBJECT_SELECTION), STR_THEMES_WINDOW_EDITOR_OBJECT_SELECTION, COLOURS_3(COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_GREY ) }, + { THEME_WC(WC_EDITOR_INVENTION_LIST), STR_THEMES_WINDOW_EDITOR_INVENTION_LIST, COLOURS_3(COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_GREY ) }, + { THEME_WC(WC_EDITOR_SCENARIO_OPTIONS), STR_THEMES_WINDOW_EDITOR_SCENARIO_OPTIONS, COLOURS_3(COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_GREY ) }, { THEME_WC(WC_EDTIOR_OBJECTIVE_OPTIONS), STR_THEMES_WINDOW_EDTIOR_OBJECTIVE_OPTIONS, COLOURS_3(COLOUR_LIGHT_PURPLE, COLOUR_GREY, COLOUR_GREY ) }, - { THEME_WC(WC_MANAGE_TRACK_DESIGN), STR_THEMES_WINDOW_MANAGE_TRACK_DESIGN, COLOURS_3(COLOUR_GREY, COLOUR_GREY, COLOUR_GREY ) }, - { THEME_WC(WC_TRACK_DELETE_PROMPT), STR_THEMES_WINDOW_TRACK_DELETE_PROMPT, COLOURS_3(COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, - { THEME_WC(WC_INSTALL_TRACK), STR_THEMES_WINDOW_INSTALL_TRACK, COLOURS_3(COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, - { THEME_WC(WC_CLEAR_SCENERY), STR_THEMES_WINDOW_CLEAR_SCENERY, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_CHEATS), STR_CHEAT_TITLE, COLOURS_2(COLOUR_GREY, COLOUR_DARK_YELLOW ) }, - { THEME_WC(WC_RESEARCH), STR_THEMES_WINDOW_RESEARCH, COLOURS_3(COLOUR_GREY, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, - { THEME_WC(WC_VIEWPORT), STR_THEMES_WINDOW_VIEWPORT, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_MAPGEN), STR_THEMES_WINDOW_MAPGEN, COLOURS_3(COLOUR_DARK_GREEN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, - { THEME_WC(WC_LOADSAVE), STR_THEMES_WINDOW_LOADSAVE, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_LOADSAVE_OVERWRITE_PROMPT), STR_THEMES_WINDOW_LOADSAVE_OVERWRITE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, - { THEME_WC(WC_TITLE_OPTIONS), STR_THEMES_WINDOW_TITLE_MENU_OPTIONS, COLOURS_3(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN) ) }, - { THEME_WC(WC_LAND_RIGHTS), STR_THEMES_WINDOW_LAND_RIGHTS, COLOURS_3(COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, - { THEME_WC(WC_THEMES), STR_THEMES_WINDOW_THEMES, COLOURS_3(COLOUR_GREY, COLOUR_DARK_GREEN, COLOUR_DARK_GREEN ) }, - { THEME_WC(WC_STAFF), STR_THEMES_WINDOW_STAFF, COLOURS_3(COLOUR_GREY, COLOUR_LIGHT_PURPLE, COLOUR_LIGHT_PURPLE ) }, - { THEME_WC(WC_EDITOR_TRACK_BOTTOM_TOOLBAR), STR_THEMES_WINDOW_BOTTOM_TOOLBAR_TRACK_EDITOR, COLOURS_3(TRANSLUCENT(COLOUR_LIGHT_BLUE), TRANSLUCENT(COLOUR_LIGHT_BLUE), TRANSLUCENT(COLOUR_LIGHT_BLUE) ) }, - { THEME_WC(WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR), STR_THEMES_WINDOW_BOTTOM_TOOLBAR_SCENARIO_EDITOR, COLOURS_3(TRANSLUCENT(COLOUR_LIGHT_BROWN), TRANSLUCENT(COLOUR_LIGHT_BROWN), TRANSLUCENT(COLOUR_MOSS_GREEN) ) }, - { THEME_WC(WC_TITLE_EDITOR), STR_TITLE_EDITOR_TITLE, COLOURS_3(COLOUR_GREY, COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN ) }, - { THEME_WC(WC_TILE_INSPECTOR), STR_TILE_INSPECTOR_TITLE, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_VIEW_CLIPPING), STR_VIEW_CLIPPING_TITLE, COLOURS_1(COLOUR_DARK_GREEN ) }, - { THEME_WC(WC_CHANGELOG), STR_CHANGELOG_TITLE, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_MULTIPLAYER), STR_MULTIPLAYER, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_PLAYER), STR_THEMES_WINDOW_PLAYER, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_NETWORK_STATUS), STR_THEMES_WINDOW_NETWORK_STATUS, COLOURS_1(COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_SERVER_LIST), STR_SERVER_LIST, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, - { THEME_WC(WC_CHAT), STR_CHAT, COLOURS_1(TRANSLUCENT(COLOUR_GREY) ) }, + { THEME_WC(WC_MANAGE_TRACK_DESIGN), STR_THEMES_WINDOW_MANAGE_TRACK_DESIGN, COLOURS_3(COLOUR_GREY, COLOUR_GREY, COLOUR_GREY ) }, + { THEME_WC(WC_TRACK_DELETE_PROMPT), STR_THEMES_WINDOW_TRACK_DELETE_PROMPT, COLOURS_3(COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, + { THEME_WC(WC_INSTALL_TRACK), STR_THEMES_WINDOW_INSTALL_TRACK, COLOURS_3(COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED, COLOUR_BORDEAUX_RED ) }, + { THEME_WC(WC_CLEAR_SCENERY), STR_THEMES_WINDOW_CLEAR_SCENERY, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_CHEATS), STR_CHEAT_TITLE, COLOURS_2(COLOUR_GREY, COLOUR_DARK_YELLOW ) }, + { THEME_WC(WC_RESEARCH), STR_THEMES_WINDOW_RESEARCH, COLOURS_3(COLOUR_GREY, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, + { THEME_WC(WC_VIEWPORT), STR_THEMES_WINDOW_VIEWPORT, COLOURS_3(COLOUR_DARK_BROWN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_MAPGEN), STR_THEMES_WINDOW_MAPGEN, COLOURS_3(COLOUR_DARK_GREEN, COLOUR_DARK_BROWN, COLOUR_DARK_BROWN ) }, + { THEME_WC(WC_LOADSAVE), STR_THEMES_WINDOW_LOADSAVE, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_LOADSAVE_OVERWRITE_PROMPT), STR_THEMES_WINDOW_LOADSAVE_OVERWRITE_PROMPT, COLOURS_1(TRANSLUCENT(COLOUR_BORDEAUX_RED) ) }, + { THEME_WC(WC_TITLE_OPTIONS), STR_THEMES_WINDOW_TITLE_MENU_OPTIONS, COLOURS_3(TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN), TRANSLUCENT(COLOUR_DARK_GREEN) ) }, + { THEME_WC(WC_LAND_RIGHTS), STR_THEMES_WINDOW_LAND_RIGHTS, COLOURS_3(COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW, COLOUR_DARK_YELLOW ) }, + { THEME_WC(WC_THEMES), STR_THEMES_WINDOW_THEMES, COLOURS_3(COLOUR_GREY, COLOUR_DARK_GREEN, COLOUR_DARK_GREEN ) }, + { THEME_WC(WC_STAFF), STR_THEMES_WINDOW_STAFF, COLOURS_3(COLOUR_GREY, COLOUR_LIGHT_PURPLE, COLOUR_LIGHT_PURPLE ) }, + { THEME_WC(WC_EDITOR_TRACK_BOTTOM_TOOLBAR), STR_THEMES_WINDOW_BOTTOM_TOOLBAR_TRACK_EDITOR, COLOURS_3(TRANSLUCENT(COLOUR_LIGHT_BLUE), TRANSLUCENT(COLOUR_LIGHT_BLUE), TRANSLUCENT(COLOUR_LIGHT_BLUE) ) }, + { THEME_WC(WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR), STR_THEMES_WINDOW_BOTTOM_TOOLBAR_SCENARIO_EDITOR, COLOURS_3(TRANSLUCENT(COLOUR_LIGHT_BROWN), TRANSLUCENT(COLOUR_LIGHT_BROWN), TRANSLUCENT(COLOUR_MOSS_GREEN) ) }, + { THEME_WC(WC_TITLE_EDITOR), STR_TITLE_EDITOR_TITLE, COLOURS_3(COLOUR_GREY, COLOUR_OLIVE_GREEN, COLOUR_OLIVE_GREEN ) }, + { THEME_WC(WC_TILE_INSPECTOR), STR_TILE_INSPECTOR_TITLE, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_VIEW_CLIPPING), STR_VIEW_CLIPPING_TITLE, COLOURS_1(COLOUR_DARK_GREEN ) }, + { THEME_WC(WC_CHANGELOG), STR_CHANGELOG_TITLE, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_MULTIPLAYER), STR_MULTIPLAYER, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_PLAYER), STR_THEMES_WINDOW_PLAYER, COLOURS_3(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_NETWORK_STATUS), STR_THEMES_WINDOW_NETWORK_STATUS, COLOURS_1(COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_SERVER_LIST), STR_SERVER_LIST, COLOURS_2(COLOUR_LIGHT_BLUE, COLOUR_LIGHT_BLUE ) }, + { THEME_WC(WC_CHAT), STR_CHAT, COLOURS_1(TRANSLUCENT(COLOUR_GREY) ) }, }; #pragma endregion @@ -706,6 +706,12 @@ extern "C" } ThemeManager::ActiveAvailableThemeIndex = index; String::DiscardDuplicate(&gConfigInterface.current_theme_preset, theme_manager_get_available_theme_name(index)); + + // Apply the selected theme to all open windows + for (rct_window *w = g_window_list; w < gWindowNextSlot; w++) + { + colour_scheme_update(w); + } } uint8 theme_get_colour(rct_windowclass wc, uint8 index) @@ -871,6 +877,13 @@ extern "C" else { const WindowThemeDesc * desc = GetWindowThemeDescriptor(classification); + + // Some windows don't have a theme set (e.g. main window, title screen) + if (desc == nullptr) + { + return; + } + windowTheme = &desc->DefaultTheme; } diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index b3823d4cd1..2b349e541b 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -20,6 +20,7 @@ #include "../editor.h" #include "../game.h" #include "../input.h" +#include "../interface/themes.h" #include "../interface/Cursors.h" #include "../localisation/localisation.h" #include "../localisation/string_ids.h" @@ -478,6 +479,7 @@ rct_window *window_create(sint32 x, sint32 y, sint32 width, sint32 height, rct_w w->var_4AE = 0; RCT2_NEW_WINDOW++; + colour_scheme_update(w); window_invalidate(w); return w; } @@ -2511,7 +2513,7 @@ void window_cancel_textbox() gCurrentTextBox.window.number ); window_event_textinput_call(w, gCurrentTextBox.widget_index, NULL); - gCurrentTextBox.window.classification = 255; + gCurrentTextBox.window.classification = WC_NULL; gCurrentTextBox.window.number = 0; platform_stop_text_input(); gUsingWidgetTextBox = false; diff --git a/src/openrct2/interface/window.h b/src/openrct2/interface/window.h index 5d52efc37c..78e30f0965 100644 --- a/src/openrct2/interface/window.h +++ b/src/openrct2/interface/window.h @@ -480,6 +480,8 @@ enum { WC_EDITOR_TRACK_BOTTOM_TOOLBAR = 221, WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR = 222, WC_CHAT = 223, + + WC_NULL = 255, }; #define validate_global_widx(wc, widx) \ diff --git a/src/openrct2/windows/about.c b/src/openrct2/windows/about.c index 371932608e..6dc44a88f9 100644 --- a/src/openrct2/windows/about.c +++ b/src/openrct2/windows/about.c @@ -16,7 +16,6 @@ #include "../localisation/localisation.h" #include "../sprites.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" diff --git a/src/openrct2/windows/banner.c b/src/openrct2/windows/banner.c index 865bdf06a6..ae3b521d12 100644 --- a/src/openrct2/windows/banner.c +++ b/src/openrct2/windows/banner.c @@ -26,7 +26,6 @@ #include "error.h" #include "dropdown.h" #include "../drawing/drawing.h" -#include "../interface/themes.h" #include "../sprites.h" #define WW 113 @@ -300,8 +299,6 @@ static void window_banner_textinput(rct_window *w, rct_widgetindex widgetIndex, */ static void window_banner_invalidate(rct_window *w) { - colour_scheme_update(w); - rct_banner* banner = &gBanners[w->number]; rct_widget* colour_btn = &window_banner_widgets[WIDX_MAIN_COLOUR]; colour_btn->type = WWT_EMPTY; diff --git a/src/openrct2/windows/changelog.c b/src/openrct2/windows/changelog.c index 8d1880a5e5..a5a0468180 100644 --- a/src/openrct2/windows/changelog.c +++ b/src/openrct2/windows/changelog.c @@ -14,7 +14,6 @@ *****************************************************************************/ #pragma endregion -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -171,8 +170,6 @@ static void window_changelog_scrollgetsize(rct_window *w, sint32 scrollIndex, si static void window_changelog_invalidate(rct_window *w) { - colour_scheme_update(w); - window_changelog_widgets[WIDX_BACKGROUND].right = w->width - 1; window_changelog_widgets[WIDX_BACKGROUND].bottom = w->height - 1; window_changelog_widgets[WIDX_TITLE].right = w->width - 2; diff --git a/src/openrct2/windows/cheats.c b/src/openrct2/windows/cheats.c index d41424a478..227dbb0cf7 100644 --- a/src/openrct2/windows/cheats.c +++ b/src/openrct2/windows/cheats.c @@ -27,7 +27,6 @@ #include "../world/Climate.h" #include "../world/park.h" #include "../world/sprite.h" -#include "../interface/themes.h" #include "../cheats.h" #include "../network/network.h" #include "../management/marketing.h" @@ -852,8 +851,6 @@ static void window_cheats_invalidate(rct_window *w) { sint32 i; - colour_scheme_update(w); - rct_widget *widgets = window_cheats_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; diff --git a/src/openrct2/windows/clear_scenery.c b/src/openrct2/windows/clear_scenery.c index e7bcf0fc42..65db08efd8 100644 --- a/src/openrct2/windows/clear_scenery.c +++ b/src/openrct2/windows/clear_scenery.c @@ -15,7 +15,6 @@ #pragma endregion #include "../input.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -213,8 +212,6 @@ static void window_clear_scenery_update(rct_window *w) */ static void window_clear_scenery_invalidate(rct_window *w) { - colour_scheme_update(w); - // Set the preview image button to be pressed down w->pressed_widgets = (1 << WIDX_PREVIEW) | (gClearSmallScenery ? (1 << WIDX_SMALL_SCENERY) : 0) | diff --git a/src/openrct2/windows/debug_paint.c b/src/openrct2/windows/debug_paint.c index 8dfe31cc9c..ebaf5e867e 100644 --- a/src/openrct2/windows/debug_paint.c +++ b/src/openrct2/windows/debug_paint.c @@ -15,7 +15,6 @@ #pragma endregion #include "../input.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" diff --git a/src/openrct2/windows/demolish_ride_prompt.c b/src/openrct2/windows/demolish_ride_prompt.c index 8f0382e465..8740eb973a 100644 --- a/src/openrct2/windows/demolish_ride_prompt.c +++ b/src/openrct2/windows/demolish_ride_prompt.c @@ -22,7 +22,6 @@ #include "../peep/staff.h" #include "../sprites.h" #include "../world/sprite.h" -#include "../interface/themes.h" #define WW 200 #define WH 100 @@ -46,7 +45,6 @@ static rct_widget window_ride_demolish_widgets[] = { }; static void window_ride_demolish_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_ride_demolish_invalidate(rct_window *w); static void window_ride_demolish_paint(rct_window *w, rct_drawpixelinfo *dpi); //0x0098E2E4 @@ -76,7 +74,7 @@ static rct_window_event_list window_ride_demolish_events = { NULL, NULL, NULL, - window_ride_demolish_invalidate, + NULL, window_ride_demolish_paint, NULL }; @@ -116,11 +114,6 @@ static void window_ride_demolish_mouseup(rct_window *w, rct_widgetindex widgetIn } } -static void window_ride_demolish_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - /** * * rct2: 0x006B48E5 diff --git a/src/openrct2/windows/editor_inventions_list.c b/src/openrct2/windows/editor_inventions_list.c index f6bb003416..854642ea37 100644 --- a/src/openrct2/windows/editor_inventions_list.c +++ b/src/openrct2/windows/editor_inventions_list.c @@ -17,7 +17,6 @@ #include "../editor.h" #include "../input.h" #include "../interface/Cursors.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -722,8 +721,6 @@ static void window_editor_inventions_list_cursor(rct_window *w, rct_widgetindex */ static void window_editor_inventions_list_invalidate(rct_window *w) { - colour_scheme_update(w); - w->pressed_widgets |= 1 << WIDX_PREVIEW; w->pressed_widgets |= 1 << WIDX_TAB_1; diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 0eabe3f04e..8af147ba87 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -20,7 +20,6 @@ #include "../config/Config.h" #include "../game.h" #include "../editor.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -1109,8 +1108,6 @@ static void window_editor_object_selection_tooltip(rct_window* w, rct_widgetinde */ static void window_editor_object_selection_invalidate(rct_window *w) { - colour_scheme_update(w); - // Resize widgets w->widgets[WIDX_BACKGROUND].right = w->width - 1; w->widgets[WIDX_BACKGROUND].bottom = w->height - 1; diff --git a/src/openrct2/windows/editor_objective_options.c b/src/openrct2/windows/editor_objective_options.c index a1c3c8c9c3..1424044f13 100644 --- a/src/openrct2/windows/editor_objective_options.c +++ b/src/openrct2/windows/editor_objective_options.c @@ -15,7 +15,6 @@ #pragma endregion #include "../game.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/date.h" @@ -828,8 +827,6 @@ static void window_editor_objective_options_main_invalidate(rct_window *w) rct_widget *widgets; rct_stex_entry *stex; - colour_scheme_update(w); - stex = g_stexEntries[0]; if (stex == (rct_stex_entry*)-1) stex = NULL; @@ -1161,8 +1158,6 @@ static void window_editor_objective_options_rides_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_editor_objective_options_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; diff --git a/src/openrct2/windows/editor_scenario_options.c b/src/openrct2/windows/editor_scenario_options.c index 08d7a28077..a9a27a0f84 100644 --- a/src/openrct2/windows/editor_scenario_options.c +++ b/src/openrct2/windows/editor_scenario_options.c @@ -16,7 +16,6 @@ #include "../editor.h" #include "../game.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -719,8 +718,6 @@ static void window_editor_scenario_options_financial_update(rct_window *w) */ static void window_editor_scenario_options_financial_invalidate(rct_window *w) { - colour_scheme_update(w); - rct_widget *widgets = window_editor_scenario_options_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -1027,8 +1024,6 @@ static void window_editor_scenario_options_guests_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_editor_scenario_options_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -1382,8 +1377,6 @@ static void window_editor_scenario_options_park_invalidate(rct_window *w) { uint64 pressedWidgets; - colour_scheme_update(w); - rct_widget *widgets = window_editor_scenario_options_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; diff --git a/src/openrct2/windows/finances.c b/src/openrct2/windows/finances.c index 34ac3b5d0c..5cbacf4e7f 100644 --- a/src/openrct2/windows/finances.c +++ b/src/openrct2/windows/finances.c @@ -29,7 +29,6 @@ #include "../scenario/scenario.h" #include "../sprites.h" #include "dropdown.h" -#include "../interface/themes.h" enum { WINDOW_FINANCES_PAGE_SUMMARY, @@ -644,8 +643,6 @@ static void window_finances_summary_update(rct_window *w) */ static void window_finances_summary_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_finances_page_widgets[WINDOW_FINANCES_PAGE_SUMMARY]) { w->widgets = window_finances_page_widgets[WINDOW_FINANCES_PAGE_SUMMARY]; window_init_scroll_widgets(w); @@ -800,8 +797,6 @@ static void window_finances_financial_graph_update(rct_window *w) */ static void window_finances_financial_graph_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_finances_page_widgets[WINDOW_FINANCES_PAGE_FINANCIAL_GRAPH]) { w->widgets = window_finances_page_widgets[WINDOW_FINANCES_PAGE_FINANCIAL_GRAPH]; window_init_scroll_widgets(w); @@ -910,8 +905,6 @@ static void window_finances_park_value_graph_update(rct_window *w) */ static void window_finances_park_value_graph_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_finances_page_widgets[WINDOW_FINANCES_PAGE_VALUE_GRAPH]) { w->widgets = window_finances_page_widgets[WINDOW_FINANCES_PAGE_VALUE_GRAPH]; window_init_scroll_widgets(w); @@ -1016,8 +1009,6 @@ static void window_finances_profit_graph_update(rct_window *w) */ static void window_finances_profit_graph_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_finances_page_widgets[WINDOW_FINANCES_PAGE_PROFIT_GRAPH]) { w->widgets = window_finances_page_widgets[WINDOW_FINANCES_PAGE_PROFIT_GRAPH]; window_init_scroll_widgets(w); @@ -1127,8 +1118,6 @@ static void window_finances_marketing_invalidate(rct_window *w) { sint32 i; - colour_scheme_update(w); - if (w->widgets != window_finances_page_widgets[WINDOW_FINANCES_PAGE_MARKETING]) { w->widgets = window_finances_page_widgets[WINDOW_FINANCES_PAGE_MARKETING]; window_init_scroll_widgets(w); @@ -1338,8 +1327,6 @@ static void window_finances_research_update(rct_window *w) */ static void window_finances_research_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_finances_page_widgets[WINDOW_FINANCES_PAGE_RESEARCH]) { w->widgets = window_finances_page_widgets[WINDOW_FINANCES_PAGE_RESEARCH]; window_init_scroll_widgets(w); diff --git a/src/openrct2/windows/footpath.c b/src/openrct2/windows/footpath.c index 4f2a74c541..3cb67dc750 100644 --- a/src/openrct2/windows/footpath.c +++ b/src/openrct2/windows/footpath.c @@ -18,7 +18,6 @@ #include "../cheats.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../localisation/localisation.h" @@ -545,8 +544,6 @@ static void window_footpath_invalidate(rct_window *w) sint32 selectedPath; rct_footpath_entry *pathType; - colour_scheme_update(w); - // Press / unpress footpath and queue type buttons w->pressed_widgets &= ~(1 << WIDX_FOOTPATH_TYPE); w->pressed_widgets &= ~(1 << WIDX_QUEUELINE_TYPE); diff --git a/src/openrct2/windows/game_bottom_toolbar.c b/src/openrct2/windows/game_bottom_toolbar.c index 93c1cc4167..734fb837fd 100644 --- a/src/openrct2/windows/game_bottom_toolbar.c +++ b/src/openrct2/windows/game_bottom_toolbar.c @@ -17,7 +17,6 @@ #include "../config/Config.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/date.h" @@ -242,8 +241,6 @@ static void window_game_bottom_toolbar_invalidate(rct_window *w) sint32 x; NewsItem *newsItem; - colour_scheme_update(w); - // Anchor the middle and right panel to the right x = gScreenWidth; w->width = x; diff --git a/src/openrct2/windows/guest.c b/src/openrct2/windows/guest.c index 922cde0462..4b687f8cc8 100644 --- a/src/openrct2/windows/guest.c +++ b/src/openrct2/windows/guest.c @@ -26,7 +26,6 @@ #include "../scenario/scenario.h" #include "../localisation/localisation.h" #include "../sprites.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -1053,8 +1052,6 @@ void window_guest_overview_paint(rct_window *w, rct_drawpixelinfo *dpi) */ void window_guest_overview_invalidate(rct_window *w) { - colour_scheme_update(w); - if (window_guest_page_widgets[w->page] != w->widgets){ w->widgets = window_guest_page_widgets[w->page]; window_init_scroll_widgets(w); @@ -1303,8 +1300,6 @@ void window_guest_stats_update(rct_window *w) */ void window_guest_stats_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_guest_page_widgets[w->page]) { w->widgets = window_guest_page_widgets[w->page]; window_init_scroll_widgets(w); @@ -1634,8 +1629,6 @@ void window_guest_rides_scroll_mouse_over(rct_window *w, sint32 scrollIndex, sin */ void window_guest_rides_invalidate(rct_window *w) { - colour_scheme_update(w); - if (window_guest_page_widgets[w->page] != w->widgets){ w->widgets = window_guest_page_widgets[w->page]; window_init_scroll_widgets(w); @@ -1760,8 +1753,6 @@ void window_guest_finance_update(rct_window *w) */ void window_guest_finance_invalidate(rct_window *w) { - colour_scheme_update(w); - if (window_guest_page_widgets[w->page] != w->widgets){ w->widgets = window_guest_page_widgets[w->page]; window_init_scroll_widgets(w); @@ -1903,8 +1894,6 @@ void window_guest_thoughts_update(rct_window *w) */ void window_guest_thoughts_invalidate(rct_window *w) { - colour_scheme_update(w); - if (window_guest_page_widgets[w->page] != w->widgets){ w->widgets = window_guest_page_widgets[w->page]; window_init_scroll_widgets(w); @@ -2005,8 +1994,6 @@ void window_guest_inventory_update(rct_window *w) */ void window_guest_inventory_invalidate(rct_window *w) { - colour_scheme_update(w); - if (window_guest_page_widgets[w->page] != w->widgets){ w->widgets = window_guest_page_widgets[w->page]; window_init_scroll_widgets(w); diff --git a/src/openrct2/windows/guest_list.c b/src/openrct2/windows/guest_list.c index 238fecfcab..ba10e5d44a 100644 --- a/src/openrct2/windows/guest_list.c +++ b/src/openrct2/windows/guest_list.c @@ -16,7 +16,6 @@ #include "../config/Config.h" #include "../game.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -596,8 +595,6 @@ static void window_guest_list_tooltip(rct_window* w, rct_widgetindex widgetIndex */ static void window_guest_list_invalidate(rct_window *w) { - colour_scheme_update(w); - w->pressed_widgets &= ~(1 << WIDX_TAB_1); w->pressed_widgets &= ~(1 << WIDX_TAB_2); w->pressed_widgets |= (1LL << (_window_guest_list_selected_tab + WIDX_TAB_1)); diff --git a/src/openrct2/windows/install_track.c b/src/openrct2/windows/install_track.c index b015cb45e2..bdd2e2710b 100644 --- a/src/openrct2/windows/install_track.c +++ b/src/openrct2/windows/install_track.c @@ -16,7 +16,6 @@ #include "../audio/audio.h" #include "../editor.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -191,8 +190,6 @@ static void window_install_track_mouseup(rct_window *w, rct_widgetindex widgetIn */ static void window_install_track_invalidate(rct_window *w) { - colour_scheme_update(w); - w->pressed_widgets |= 1 << WIDX_TRACK_PREVIEW; if (!gTrackDesignSceneryToggle) { w->pressed_widgets |= (1 << WIDX_TOGGLE_SCENERY); diff --git a/src/openrct2/windows/land.c b/src/openrct2/windows/land.c index 5b11f4c903..68acfbf88f 100644 --- a/src/openrct2/windows/land.c +++ b/src/openrct2/windows/land.c @@ -15,7 +15,6 @@ #pragma endregion #include "../input.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -338,8 +337,6 @@ static void window_land_update(rct_window *w) */ static void window_land_invalidate(rct_window *w) { - colour_scheme_update(w); - w->pressed_widgets = (1 << WIDX_PREVIEW); if (gLandToolTerrainSurface != 255) w->pressed_widgets |= (1 << WIDX_FLOOR); diff --git a/src/openrct2/windows/land_rights.c b/src/openrct2/windows/land_rights.c index 47a392339a..b888f1522d 100644 --- a/src/openrct2/windows/land_rights.c +++ b/src/openrct2/windows/land_rights.c @@ -16,7 +16,6 @@ #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -206,8 +205,6 @@ static void window_land_rights_update(rct_window *w) static void window_land_rights_invalidate(rct_window *w) { - colour_scheme_update(w); - // Set the preview image button to be pressed down w->pressed_widgets |= (1 << WIDX_PREVIEW) | (1 << (LandRightsMode ? WIDX_BUY_LAND_RIGHTS : WIDX_BUY_CONSTRUCTION_RIGHTS)); w->pressed_widgets &= ~(1 << (!LandRightsMode ? WIDX_BUY_LAND_RIGHTS : WIDX_BUY_CONSTRUCTION_RIGHTS)); diff --git a/src/openrct2/windows/loadsave.c b/src/openrct2/windows/loadsave.c index a96152b727..755e485276 100644 --- a/src/openrct2/windows/loadsave.c +++ b/src/openrct2/windows/loadsave.c @@ -19,7 +19,6 @@ #include "../core/Guard.hpp" #include "../editor.h" #include "../game.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -75,7 +74,6 @@ static void window_loadsave_scrollmousedown(rct_window *w, sint32 scrollIndex, s static void window_loadsave_scrollmouseover(rct_window *w, sint32 scrollIndex, sint32 x, sint32 y); static void window_loadsave_textinput(rct_window *w, rct_widgetindex widgetIndex, char *text); static void window_loadsave_tooltip(rct_window* w, rct_widgetindex widgetIndex, rct_string_id *stringId); -static void window_loadsave_invalidate(rct_window *w); static void window_loadsave_paint(rct_window *w, rct_drawpixelinfo *dpi); static void window_loadsave_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32 scrollIndex); @@ -105,7 +103,7 @@ static rct_window_event_list window_loadsave_events = { window_loadsave_tooltip, NULL, NULL, - window_loadsave_invalidate, + NULL, window_loadsave_paint, window_loadsave_scrollpaint }; @@ -469,11 +467,6 @@ static void window_loadsave_tooltip(rct_window* w, rct_widgetindex widgetIndex, set_format_arg(0, rct_string_id, STR_LIST); } -static void window_loadsave_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - static void window_loadsave_paint(rct_window *w, rct_drawpixelinfo *dpi) { window_draw_widgets(w, dpi); @@ -858,7 +851,6 @@ static rct_widget window_overwrite_prompt_widgets[] = { }; static void window_overwrite_prompt_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_overwrite_prompt_invalidate(rct_window *w); static void window_overwrite_prompt_paint(rct_window *w, rct_drawpixelinfo *dpi); static rct_window_event_list window_overwrite_prompt_events = { @@ -887,7 +879,7 @@ static rct_window_event_list window_overwrite_prompt_events = { NULL, NULL, NULL, - window_overwrite_prompt_invalidate, + NULL, window_overwrite_prompt_paint, NULL }; @@ -934,11 +926,6 @@ static void window_overwrite_prompt_mouseup(rct_window *w, rct_widgetindex widge } } -static void window_overwrite_prompt_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - static void window_overwrite_prompt_paint(rct_window *w, rct_drawpixelinfo *dpi) { window_draw_widgets(w, dpi); diff --git a/src/openrct2/windows/map.c b/src/openrct2/windows/map.c index e7a4a26c41..50c2bfa422 100644 --- a/src/openrct2/windows/map.c +++ b/src/openrct2/windows/map.c @@ -18,7 +18,6 @@ #include "../cheats.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -690,8 +689,6 @@ static void window_map_invalidate(rct_window *w) uint64 pressedWidgets; sint32 i, height; - colour_scheme_update(w); - // Set the pressed widgets pressedWidgets = w->pressed_widgets; pressedWidgets &= (1ULL << WIDX_PEOPLE_TAB); diff --git a/src/openrct2/windows/mapgen.c b/src/openrct2/windows/mapgen.c index dec7e26b04..2eb9680ed8 100644 --- a/src/openrct2/windows/mapgen.c +++ b/src/openrct2/windows/mapgen.c @@ -24,7 +24,6 @@ #include "../world/mapgen.h" #include "../world/scenery.h" #include "dropdown.h" -#include "../interface/themes.h" #include "../localisation/string_ids.h" enum { @@ -821,8 +820,6 @@ static void window_mapgen_textinput(rct_window *w, rct_widgetindex widgetIndex, static void window_mapgen_base_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != PageWidgets[WINDOW_MAPGEN_PAGE_BASE]) { w->widgets = PageWidgets[WINDOW_MAPGEN_PAGE_BASE]; window_init_scroll_widgets(w); @@ -910,8 +907,6 @@ static void window_mapgen_random_update(rct_window *w) static void window_mapgen_random_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != PageWidgets[WINDOW_MAPGEN_PAGE_RANDOM]) { w->widgets = PageWidgets[WINDOW_MAPGEN_PAGE_RANDOM]; window_init_scroll_widgets(w); @@ -1113,8 +1108,6 @@ static void window_mapgen_simplex_update(rct_window *w) static void window_mapgen_simplex_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != PageWidgets[WINDOW_MAPGEN_PAGE_SIMPLEX]) { w->widgets = PageWidgets[WINDOW_MAPGEN_PAGE_SIMPLEX]; window_init_scroll_widgets(w); @@ -1276,8 +1269,6 @@ static void window_mapgen_heightmap_mouseup(rct_window *w, rct_widgetindex widge static void window_mapgen_heightmap_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != PageWidgets[WINDOW_MAPGEN_PAGE_HEIGHTMAP]) { w->widgets = PageWidgets[WINDOW_MAPGEN_PAGE_HEIGHTMAP]; diff --git a/src/openrct2/windows/maze_construction.c b/src/openrct2/windows/maze_construction.c index ef33bb01eb..fa26e1fb50 100644 --- a/src/openrct2/windows/maze_construction.c +++ b/src/openrct2/windows/maze_construction.c @@ -18,7 +18,6 @@ #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -153,7 +152,6 @@ rct_window *window_maze_construction_open() (1ULL << WIDX_MAZE_EXIT); window_init_scroll_widgets(w); - colour_scheme_update(w); w->number = _currentRideIndex; diff --git a/src/openrct2/windows/multiplayer.c b/src/openrct2/windows/multiplayer.c index 88c6205efc..a63299bb9e 100644 --- a/src/openrct2/windows/multiplayer.c +++ b/src/openrct2/windows/multiplayer.c @@ -15,7 +15,6 @@ #pragma endregion #include "../config/Config.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -426,7 +425,6 @@ static void window_multiplayer_information_update(rct_window *w) static void window_multiplayer_information_invalidate(rct_window *w) { - colour_scheme_update(w); window_multiplayer_set_pressed_tab(w); window_multiplayer_anchor_border_widgets(w); window_align_tabs(w, WIDX_TAB1, WIDX_TAB4); @@ -563,8 +561,6 @@ static void window_multiplayer_players_scrollmouseover(rct_window *w, sint32 scr static void window_multiplayer_players_invalidate(rct_window *w) { - colour_scheme_update(w); - window_multiplayer_set_pressed_tab(w); window_multiplayer_anchor_border_widgets(w); window_multiplayer_players_widgets[WIDX_LIST].right = w->width - 4; @@ -799,7 +795,6 @@ static void window_multiplayer_groups_text_input(rct_window *w, rct_widgetindex static void window_multiplayer_groups_invalidate(rct_window *w) { - colour_scheme_update(w); window_multiplayer_set_pressed_tab(w); window_multiplayer_anchor_border_widgets(w); window_multiplayer_groups_widgets[WIDX_PERMISSIONS_LIST].right = w->width - 4; @@ -943,7 +938,6 @@ static void window_multiplayer_options_update(rct_window *w) static void window_multiplayer_options_invalidate(rct_window *w) { - colour_scheme_update(w); window_multiplayer_set_pressed_tab(w); window_multiplayer_anchor_border_widgets(w); window_align_tabs(w, WIDX_TAB1, WIDX_TAB4); diff --git a/src/openrct2/windows/network_status.c b/src/openrct2/windows/network_status.c index f12ea666ce..5f5342e2f4 100644 --- a/src/openrct2/windows/network_status.c +++ b/src/openrct2/windows/network_status.c @@ -14,7 +14,6 @@ *****************************************************************************/ #pragma endregion -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -161,8 +160,6 @@ static void window_network_status_textinput(rct_window *w, rct_widgetindex widge static void window_network_status_invalidate(rct_window *w) { - colour_scheme_update(w); - window_network_status_widgets[WIDX_BACKGROUND].right = w->width - 1; window_network_status_widgets[WIDX_BACKGROUND].bottom = w->height - 1; window_network_status_widgets[WIDX_TITLE].right = w->width - 2; diff --git a/src/openrct2/windows/new_campaign.c b/src/openrct2/windows/new_campaign.c index 45333fbbf4..09e8a7bbcb 100644 --- a/src/openrct2/windows/new_campaign.c +++ b/src/openrct2/windows/new_campaign.c @@ -23,7 +23,6 @@ #include "../ride/ride.h" #include "../ride/ride_data.h" #include "dropdown.h" -#include "../interface/themes.h" #define SELECTED_RIDE_UNDEFINED ((uint16)0xFFFF) @@ -329,8 +328,6 @@ static void window_new_campaign_dropdown(rct_window *w, rct_widgetindex widgetIn */ static void window_new_campaign_invalidate(rct_window *w) { - colour_scheme_update(w); - window_new_campaign_widgets[WIDX_RIDE_LABEL].type = WWT_EMPTY; window_new_campaign_widgets[WIDX_RIDE_DROPDOWN].type = WWT_EMPTY; window_new_campaign_widgets[WIDX_RIDE_DROPDOWN_BUTTON].type = WWT_EMPTY; diff --git a/src/openrct2/windows/new_ride.c b/src/openrct2/windows/new_ride.c index 932ffcbb50..2fdffcd9f6 100644 --- a/src/openrct2/windows/new_ride.c +++ b/src/openrct2/windows/new_ride.c @@ -19,7 +19,6 @@ #include "../game.h" #include "../interface/widget.h" #include "../interface/window.h" -#include "../interface/themes.h" #include "../localisation/localisation.h" #include "../management/news_item.h" #include "../management/research.h" @@ -737,8 +736,6 @@ static void window_new_ride_tooltip(rct_window* w, rct_widgetindex widgetIndex, */ static void window_new_ride_invalidate(rct_window *w) { - colour_scheme_update(w); - window_new_ride_set_pressed_tab(w); window_new_ride_widgets[WIDX_TITLE].text = window_new_ride_titles[_windowNewRideCurrentTab]; diff --git a/src/openrct2/windows/news.c b/src/openrct2/windows/news.c index 831f3f382a..ac2cd2ad3d 100644 --- a/src/openrct2/windows/news.c +++ b/src/openrct2/windows/news.c @@ -22,7 +22,6 @@ #include "../sprites.h" #include "../interface/widget.h" #include "../interface/window.h" -#include "../interface/themes.h" enum WINDOW_NEWS_WIDGET_IDX { WIDX_BACKGROUND, @@ -46,7 +45,6 @@ static void window_news_update(rct_window *w); static void window_news_scrollgetsize(rct_window *w, sint32 scrollIndex, sint32 *width, sint32 *height); static void window_news_scrollmousedown(rct_window *w, sint32 scrollIndex, sint32 x, sint32 y); static void window_news_tooltip(rct_window* w, rct_widgetindex widgetIndex, rct_string_id *stringId); -static void window_news_invalidate(rct_window *w); static void window_news_paint(rct_window *w, rct_drawpixelinfo *dpi); static void window_news_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32 scrollIndex); @@ -76,7 +74,7 @@ static rct_window_event_list window_news_events = { window_news_tooltip, NULL, NULL, - window_news_invalidate, + NULL, window_news_paint, window_news_scrollpaint }; @@ -261,11 +259,6 @@ static void window_news_paint(rct_window *w, rct_drawpixelinfo *dpi) window_draw_widgets(w, dpi); } -static void window_news_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - /** * * rct2: 0x0066E4EE diff --git a/src/openrct2/windows/news_options.c b/src/openrct2/windows/news_options.c index 4ebe48805a..eb0071e13f 100644 --- a/src/openrct2/windows/news_options.c +++ b/src/openrct2/windows/news_options.c @@ -198,8 +198,6 @@ static void window_news_options_update(rct_window *w) static void window_news_options_invalidate(rct_window *w) { - // colour_scheme_update(w); - // Set pressed tab w->pressed_widgets &= ~(1ULL << WIDX_TAB_PARK); w->pressed_widgets &= ~(1ULL << WIDX_TAB_RIDE); diff --git a/src/openrct2/windows/options.c b/src/openrct2/windows/options.c index 07194f02f8..c52aeb1499 100644 --- a/src/openrct2/windows/options.c +++ b/src/openrct2/windows/options.c @@ -584,9 +584,6 @@ void window_options_open() w->page = WINDOW_OPTIONS_PAGE_DISPLAY; w->frame_no = 0; window_init_scroll_widgets(w); - //window_invalidate(w); - - colour_scheme_update(w); } @@ -1485,8 +1482,6 @@ static void window_options_invalidate(rct_window *w) { rct_widget* widget; - colour_scheme_update(w); - if (window_options_page_widgets[w->page] != w->widgets) { w->widgets = window_options_page_widgets[w->page]; window_init_scroll_widgets(w); diff --git a/src/openrct2/windows/park.c b/src/openrct2/windows/park.c index 936390e82e..d2a5b50ef9 100644 --- a/src/openrct2/windows/park.c +++ b/src/openrct2/windows/park.c @@ -964,8 +964,6 @@ static void window_park_entrance_invalidate(rct_window *w) { sint32 i, height; - colour_scheme_update(w); - w->widgets = window_park_page_widgets[w->page]; window_init_scroll_widgets(w); @@ -1232,8 +1230,6 @@ static void window_park_rating_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_park_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -1349,8 +1345,6 @@ static void window_park_guests_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_park_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -1468,8 +1462,6 @@ static void window_park_price_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_park_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -1586,8 +1578,6 @@ static void window_park_stats_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_park_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -1752,8 +1742,6 @@ static void window_park_objective_textinput(rct_window *w, rct_widgetindex widge */ static void window_park_objective_invalidate(rct_window *w) { - colour_scheme_update(w); - window_park_set_pressed_tab(w); window_park_prepare_window_title_text(); @@ -1883,8 +1871,6 @@ static void window_park_awards_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_park_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; diff --git a/src/openrct2/windows/player.c b/src/openrct2/windows/player.c index 1be41a50b4..5d44a35424 100644 --- a/src/openrct2/windows/player.c +++ b/src/openrct2/windows/player.c @@ -26,7 +26,6 @@ #include "../scenario/scenario.h" #include "../localisation/localisation.h" #include "../sprites.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -412,8 +411,6 @@ void window_player_overview_invalidate(rct_window *w) window_init_scroll_widgets(w); } - colour_scheme_update(w); - w->pressed_widgets &= ~(WIDX_TAB_1); w->pressed_widgets &= ~(WIDX_TAB_2); w->pressed_widgets |= 1ULL << (w->page + WIDX_TAB_1); @@ -498,8 +495,6 @@ void window_player_statistics_invalidate(rct_window *w) window_init_scroll_widgets(w); } - colour_scheme_update(w); - w->pressed_widgets &= ~(WIDX_TAB_1); w->pressed_widgets &= ~(WIDX_TAB_2); w->pressed_widgets |= 1ULL << (w->page + WIDX_TAB_1); diff --git a/src/openrct2/windows/research.c b/src/openrct2/windows/research.c index 10f9652b08..c988bf2ba5 100644 --- a/src/openrct2/windows/research.c +++ b/src/openrct2/windows/research.c @@ -25,7 +25,6 @@ #include "../sprites.h" #include "../world/scenery.h" #include "dropdown.h" -#include "../interface/themes.h" #include "../rct1.h" enum { @@ -305,8 +304,6 @@ static void window_research_development_update(rct_window *w) */ static void window_research_development_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_research_page_widgets[WINDOW_RESEARCH_PAGE_DEVELOPMENT]) { w->widgets = window_research_page_widgets[WINDOW_RESEARCH_PAGE_DEVELOPMENT]; window_init_scroll_widgets(w); @@ -520,8 +517,6 @@ static void window_research_funding_update(rct_window *w) */ static void window_research_funding_invalidate(rct_window *w) { - colour_scheme_update(w); - if (w->widgets != window_research_page_widgets[WINDOW_RESEARCH_PAGE_FUNDING]) { w->widgets = window_research_page_widgets[WINDOW_RESEARCH_PAGE_FUNDING]; window_init_scroll_widgets(w); diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index e56cc425d5..6d869ef720 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -2330,8 +2330,6 @@ static void window_ride_main_invalidate(rct_window *w) rct_widget *widgets; sint32 i, height; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -2803,8 +2801,6 @@ static void window_ride_vehicle_invalidate(rct_window *w) rct_string_id stringId; sint32 carsPerTrain; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -3381,8 +3377,6 @@ static void window_ride_operating_invalidate(rct_window *w) rct_ride_entry *rideEntry; rct_string_id format, caption, tooltip; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -3916,8 +3910,6 @@ static void window_ride_maintenance_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -4411,8 +4403,6 @@ static void window_ride_colour_invalidate(rct_window *w) track_colour trackColour; vehicle_colour vehicleColour; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -4891,8 +4881,6 @@ static void window_ride_music_invalidate(rct_window *w) rct_widget *widgets; sint32 isMusicActivated; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -5171,8 +5159,6 @@ static void window_ride_measurements_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -5569,8 +5555,6 @@ static void window_ride_graphs_invalidate(rct_window *w) rct_ride *ride; sint32 x, y; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -6001,8 +5985,6 @@ static void window_ride_income_invalidate(rct_window *w) rct_ride_entry *rideEntry; sint32 primaryItem, secondaryItem; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; @@ -6249,8 +6231,6 @@ static void window_ride_customer_invalidate(rct_window *w) { rct_widget *widgets; - colour_scheme_update(w); - widgets = window_ride_page_widgets[w->page]; if (w->widgets != widgets) { w->widgets = widgets; diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index d8ad384bba..b9b7f4a9b2 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -20,7 +20,6 @@ #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -633,7 +632,6 @@ rct_window *window_ride_construction_open() _autoOpeningShop = false; _trackPlaceCtrlState = false; _trackPlaceShiftState = false; - colour_scheme_update(w); return w; } diff --git a/src/openrct2/windows/ride_list.c b/src/openrct2/windows/ride_list.c index 9df7ea35d9..509cbab759 100644 --- a/src/openrct2/windows/ride_list.c +++ b/src/openrct2/windows/ride_list.c @@ -471,9 +471,6 @@ static void window_ride_list_tooltip(rct_window* w, rct_widgetindex widgetIndex, */ static void window_ride_list_invalidate(rct_window *w) { - - colour_scheme_update(w); - window_ride_list_widgets[WIDX_CURRENT_INFORMATION_TYPE].text = ride_info_type_string_mapping[_window_ride_list_information_type]; // Set correct active tab diff --git a/src/openrct2/windows/save_prompt.c b/src/openrct2/windows/save_prompt.c index c67171ee54..63c8a14605 100644 --- a/src/openrct2/windows/save_prompt.c +++ b/src/openrct2/windows/save_prompt.c @@ -18,7 +18,6 @@ #include "../config/Config.h" #include "../game.h" #include "../localisation/localisation.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../OpenRCT2.h" @@ -72,7 +71,6 @@ static const rct_string_id window_save_prompt_labels[][2] = { static void window_save_prompt_close(rct_window *w); static void window_save_prompt_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_save_prompt_invalidate(rct_window *w); static void window_save_prompt_paint(rct_window *w, rct_drawpixelinfo *dpi); static void window_save_prompt_callback(sint32 result, const utf8 * path); @@ -102,7 +100,7 @@ static rct_window_event_list window_save_prompt_events = { NULL, NULL, NULL, - window_save_prompt_invalidate, + NULL, window_save_prompt_paint, NULL }; @@ -249,11 +247,6 @@ static void window_save_prompt_mouseup(rct_window *w, rct_widgetindex widgetInde } } -static void window_save_prompt_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - static void window_save_prompt_paint(rct_window *w, rct_drawpixelinfo *dpi) { window_draw_widgets(w, dpi); diff --git a/src/openrct2/windows/scenery.c b/src/openrct2/windows/scenery.c index 933bbd0d8d..0a5d486a2d 100644 --- a/src/openrct2/windows/scenery.c +++ b/src/openrct2/windows/scenery.c @@ -28,7 +28,6 @@ #include "../world/scenery.h" #include "../world/sprite.h" #include "dropdown.h" -#include "../interface/themes.h" #include "../network/network.h" #include "error.h" #include "../sprites.h" @@ -904,8 +903,6 @@ void window_scenery_tooltip(rct_window* w, rct_widgetindex widgetIndex, rct_stri */ void window_scenery_invalidate(rct_window *w) { - colour_scheme_update(w); - uint16 tabIndex = gWindowSceneryActiveTabIndex; uint32 titleStringId = STR_MISCELLANEOUS; if (tabIndex < 19) diff --git a/src/openrct2/windows/server_list.cpp b/src/openrct2/windows/server_list.cpp index 284dbecd61..fe2cfa7514 100644 --- a/src/openrct2/windows/server_list.cpp +++ b/src/openrct2/windows/server_list.cpp @@ -22,7 +22,6 @@ extern "C" { #include "../interface/colour.h" - #include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -145,14 +144,14 @@ extern "C" void window_server_list_open() { rct_window* window; - + // Check if window is already open window = window_bring_to_front_by_class(WC_SERVER_LIST); if (window != NULL) return; - + window = window_create_centred(WWIDTH_MIN, WHEIGHT_MIN, &window_server_list_events, WC_SERVER_LIST, WF_10 | WF_RESIZABLE); - + window_server_list_widgets[WIDX_PLAYER_NAME_INPUT].string = _playerName; window->widgets = window_server_list_widgets; window->enabled_widgets = ( @@ -170,20 +169,17 @@ extern "C" window->min_height = 90; window->max_width = window->min_width; window->max_height = window->min_height; - + window->page = 0; window->list_information_type = 0; - window->colours[0] = COLOUR_GREY; - window->colours[1] = COLOUR_BORDEAUX_RED; - window->colours[2] = COLOUR_BORDEAUX_RED; - + window_set_resize(window, WWIDTH_MIN, WHEIGHT_MIN, WWIDTH_MAX, WHEIGHT_MAX); - + safe_strcpy(_playerName, gConfigNetwork.player_name, sizeof(_playerName)); - + server_list_load_server_entries(); window->no_list_items = _numServerEntries; - + fetch_servers(); } } @@ -370,8 +366,6 @@ static void window_server_list_textinput(rct_window *w, rct_widgetindex widgetIn static void window_server_list_invalidate(rct_window *w) { - colour_scheme_update(w); - set_format_arg(0, char *, _version); window_server_list_widgets[WIDX_BACKGROUND].right = w->width - 1; window_server_list_widgets[WIDX_BACKGROUND].bottom = w->height - 1; diff --git a/src/openrct2/windows/shortcut_key_change.c b/src/openrct2/windows/shortcut_key_change.c index 84abe19c70..6f90f2b28d 100644 --- a/src/openrct2/windows/shortcut_key_change.c +++ b/src/openrct2/windows/shortcut_key_change.c @@ -16,7 +16,6 @@ #include "../config/Config.h" #include "../interface/keyboard_shortcut.h" -#include "../interface/themes.h" #include "../interface/window.h" #include "../interface/widget.h" #include "../localisation/localisation.h" @@ -41,7 +40,6 @@ static rct_widget window_shortcut_change_widgets[] = { }; static void window_shortcut_change_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_shortcut_change_invalidate(rct_window *w); static void window_shortcut_change_paint(rct_window *w, rct_drawpixelinfo *dpi); // 0x9A3F7C @@ -71,7 +69,7 @@ static rct_window_event_list window_shortcut_change_events = { NULL, NULL, NULL, - window_shortcut_change_invalidate, + NULL, window_shortcut_change_paint, NULL }; @@ -101,11 +99,6 @@ static void window_shortcut_change_mouseup(rct_window *w, rct_widgetindex widget } } -static void window_shortcut_change_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - /** * * rct2: 0x006E3A9F diff --git a/src/openrct2/windows/shortcut_keys.c b/src/openrct2/windows/shortcut_keys.c index b78beaa8ad..f5c20a7501 100644 --- a/src/openrct2/windows/shortcut_keys.c +++ b/src/openrct2/windows/shortcut_keys.c @@ -20,7 +20,6 @@ #include "../localisation/localisation.h" #include "../platform/platform.h" #include "../interface/keyboard_shortcut.h" -#include "../interface/themes.h" #define WW 420 #define WH 280 @@ -203,8 +202,6 @@ static void window_shortcut_resize(rct_window *w) static void window_shortcut_invalidate(rct_window *w) { - colour_scheme_update(w); - window_shortcut_widgets[WIDX_BACKGROUND].right = w->width - 1; window_shortcut_widgets[WIDX_BACKGROUND].bottom = w->height - 1; window_shortcut_widgets[WIDX_TITLE].right = w->width - 2; diff --git a/src/openrct2/windows/sign.c b/src/openrct2/windows/sign.c index f0aece9e41..3c61f216f2 100644 --- a/src/openrct2/windows/sign.c +++ b/src/openrct2/windows/sign.c @@ -27,7 +27,6 @@ #include "error.h" #include "dropdown.h" #include "../drawing/drawing.h" -#include "../interface/themes.h" #include "../sprites.h" #define WW 113 @@ -325,8 +324,6 @@ static void window_sign_textinput(rct_window *w, rct_widgetindex widgetIndex, ch */ static void window_sign_invalidate(rct_window *w) { - colour_scheme_update(w); - rct_widget* main_colour_btn = &window_sign_widgets[WIDX_MAIN_COLOUR]; rct_widget* text_colour_btn = &window_sign_widgets[WIDX_TEXT_COLOUR]; @@ -559,8 +556,6 @@ static void window_sign_small_dropdown(rct_window *w, rct_widgetindex widgetInde */ static void window_sign_small_invalidate(rct_window *w) { - colour_scheme_update(w); - rct_widget* main_colour_btn = &window_sign_widgets[WIDX_MAIN_COLOUR]; rct_widget* text_colour_btn = &window_sign_widgets[WIDX_TEXT_COLOUR]; diff --git a/src/openrct2/windows/staff_fire_prompt.c b/src/openrct2/windows/staff_fire_prompt.c index 142e0b0242..66578e62d5 100644 --- a/src/openrct2/windows/staff_fire_prompt.c +++ b/src/openrct2/windows/staff_fire_prompt.c @@ -22,7 +22,6 @@ #include "../peep/staff.h" #include "../sprites.h" #include "../world/sprite.h" -#include "../interface/themes.h" #define WW 200 #define WH 100 @@ -46,7 +45,6 @@ static rct_widget window_staff_fire_widgets[] = { }; static void window_staff_fire_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_staff_fire_invalidate(rct_window *w); static void window_staff_fire_paint(rct_window *w, rct_drawpixelinfo *dpi); //0x9A3F7C @@ -76,7 +74,7 @@ static rct_window_event_list window_staff_fire_events = { NULL, NULL, NULL, - window_staff_fire_invalidate, + NULL, window_staff_fire_paint, NULL }; @@ -94,8 +92,6 @@ void window_staff_fire_prompt_open(rct_peep* peep) window_init_scroll_widgets(w); - colour_scheme_update(w); - w->number = peep->sprite_index; } @@ -118,11 +114,6 @@ static void window_staff_fire_mouseup(rct_window *w, rct_widgetindex widgetIndex } } -static void window_staff_fire_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - /** * * rct2: 0x006C0AF2 diff --git a/src/openrct2/windows/staff_list.c b/src/openrct2/windows/staff_list.c index d9db13ca47..636253753a 100644 --- a/src/openrct2/windows/staff_list.c +++ b/src/openrct2/windows/staff_list.c @@ -18,7 +18,6 @@ #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -495,8 +494,6 @@ void window_staff_list_tooltip(rct_window* w, rct_widgetindex widgetIndex, rct_s */ void window_staff_list_invalidate(rct_window *w) { - colour_scheme_update(w); - sint32 pressed_widgets = w->pressed_widgets & ~( (1LL << WIDX_STAFF_LIST_HANDYMEN_TAB) | (1LL << WIDX_STAFF_LIST_MECHANICS_TAB) | diff --git a/src/openrct2/windows/themes.c b/src/openrct2/windows/themes.c index 3d2695ef74..b1136e83d5 100644 --- a/src/openrct2/windows/themes.c +++ b/src/openrct2/windows/themes.c @@ -684,8 +684,6 @@ void window_themes_tooltip(rct_window* w, rct_widgetindex widgetIndex, rct_strin void window_themes_invalidate(rct_window *w) { - colour_scheme_update(w); - sint32 pressed_widgets = w->pressed_widgets & ~( (1LL << WIDX_THEMES_SETTINGS_TAB) | (1LL << WIDX_THEMES_MAIN_UI_TAB) | diff --git a/src/openrct2/windows/tile_inspector.c b/src/openrct2/windows/tile_inspector.c index 2be4cf30d7..f83c9e9d3c 100644 --- a/src/openrct2/windows/tile_inspector.c +++ b/src/openrct2/windows/tile_inspector.c @@ -18,7 +18,6 @@ #include "../core/Guard.hpp" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -1377,8 +1376,6 @@ static void window_tile_inspector_scrollmouseover(rct_window *w, sint32 scrollIn static void window_tile_inspector_invalidate(rct_window *w) { - colour_scheme_update(w); - w->widgets[WIDX_BACKGROUND].bottom = w->height - 1; if (w->page == TILE_INSPECTOR_PAGE_DEFAULT) { diff --git a/src/openrct2/windows/title_editor.c b/src/openrct2/windows/title_editor.c index c85d5880a8..29f3d702c2 100644 --- a/src/openrct2/windows/title_editor.c +++ b/src/openrct2/windows/title_editor.c @@ -18,7 +18,6 @@ #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -656,8 +655,6 @@ static void window_title_editor_tooltip(rct_window* w, rct_widgetindex widgetInd static void window_title_editor_invalidate(rct_window *w) { - colour_scheme_update(w); - sint32 pressed_widgets = w->pressed_widgets & ~( (1LL << WIDX_TITLE_EDITOR_PRESETS_TAB) | (1LL << WIDX_TITLE_EDITOR_SAVES_TAB) | diff --git a/src/openrct2/windows/title_exit.c b/src/openrct2/windows/title_exit.c index 022e19d937..96b4133482 100644 --- a/src/openrct2/windows/title_exit.c +++ b/src/openrct2/windows/title_exit.c @@ -20,7 +20,6 @@ #include "../localisation/localisation.h" #include "../interface/widget.h" #include "../interface/window.h" -#include "../interface/themes.h" #include "../intro.h" #include "../rct2.h" @@ -35,7 +34,6 @@ static rct_widget window_title_exit_widgets[] = { static void window_title_exit_paint(rct_window *w, rct_drawpixelinfo *dpi); static void window_title_exit_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_title_exit_invalidate(rct_window *w); static rct_window_event_list window_title_exit_events = { NULL, @@ -63,7 +61,7 @@ static rct_window_event_list window_title_exit_events = { NULL, NULL, NULL, - window_title_exit_invalidate, + NULL, window_title_exit_paint, NULL }; @@ -113,8 +111,3 @@ static void window_title_exit_paint(rct_window *w, rct_drawpixelinfo *dpi) { window_draw_widgets(w, dpi); } - -static void window_title_exit_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} diff --git a/src/openrct2/windows/title_menu.c b/src/openrct2/windows/title_menu.c index 48a146187f..ea28d1c791 100644 --- a/src/openrct2/windows/title_menu.c +++ b/src/openrct2/windows/title_menu.c @@ -18,7 +18,6 @@ #include "../editor.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -48,7 +47,6 @@ static void window_title_menu_mousedown(rct_widgetindex widgetIndex, rct_window* static void window_title_menu_dropdown(rct_window *w, rct_widgetindex widgetIndex, sint32 dropdownIndex); static void window_title_menu_cursor(rct_window *w, rct_widgetindex widgetIndex, sint32 x, sint32 y, sint32 *cursorId); static void window_title_menu_paint(rct_window *w, rct_drawpixelinfo *dpi); -static void window_title_menu_invalidate(rct_window *w); static rct_window_event_list window_title_menu_events = { NULL, @@ -76,7 +74,7 @@ static rct_window_event_list window_title_menu_events = { NULL, window_title_menu_cursor, NULL, - window_title_menu_invalidate, + NULL, window_title_menu_paint, NULL }; @@ -223,8 +221,3 @@ static void window_title_menu_paint(rct_window *w, rct_drawpixelinfo *dpi) gfx_filter_rect(dpi, w->x, w->y, w->x + w->width - 1, w->y + 82 - 1, PALETTE_51); window_draw_widgets(w, dpi); } - -static void window_title_menu_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} diff --git a/src/openrct2/windows/title_options.c b/src/openrct2/windows/title_options.c index 606a5214d2..583ec59379 100644 --- a/src/openrct2/windows/title_options.c +++ b/src/openrct2/windows/title_options.c @@ -20,7 +20,6 @@ #include "../localisation/localisation.h" #include "../interface/widget.h" #include "../interface/window.h" -#include "../interface/themes.h" #include "../rct2.h" enum WINDOW_TITLE_OPTIONS_WIDGET_IDX { @@ -33,7 +32,6 @@ static rct_widget window_title_options_widgets[] = { }; static void window_title_options_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_title_options_invalidate(rct_window *w); static void window_title_options_paint(rct_window *w, rct_drawpixelinfo *dpi); static rct_window_event_list window_title_options_events = { @@ -62,7 +60,7 @@ static rct_window_event_list window_title_options_events = { NULL, NULL, NULL, - window_title_options_invalidate, + NULL, window_title_options_paint, NULL }; @@ -102,8 +100,3 @@ static void window_title_options_paint(rct_window *w, rct_drawpixelinfo *dpi) { window_draw_widgets(w, dpi); } - -static void window_title_options_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} diff --git a/src/openrct2/windows/title_scenarioselect.c b/src/openrct2/windows/title_scenarioselect.c index 1ae5dbf9fe..f9eb5c3b48 100644 --- a/src/openrct2/windows/title_scenarioselect.c +++ b/src/openrct2/windows/title_scenarioselect.c @@ -337,8 +337,6 @@ static void window_scenarioselect_scrollmouseover(rct_window *w, sint32 scrollIn static void window_scenarioselect_invalidate(rct_window *w) { - colour_scheme_update(w); - w->pressed_widgets &= ~( (1 << WIDX_CLOSE) | (1 << WIDX_TAB1) | (1 << WIDX_TAB2) | (1 << WIDX_TAB3) | (1 << WIDX_TAB4) | (1 << WIDX_TAB5) | (1 << WIDX_TAB6) | (1 << WIDX_TAB7) | (1 << WIDX_TAB8) ); diff --git a/src/openrct2/windows/top_toolbar.c b/src/openrct2/windows/top_toolbar.c index 230947c96a..bbb0b8a133 100644 --- a/src/openrct2/windows/top_toolbar.c +++ b/src/openrct2/windows/top_toolbar.c @@ -22,7 +22,6 @@ #include "../input.h" #include "../interface/console.h" #include "../interface/screenshot.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -649,8 +648,6 @@ static void window_top_toolbar_invalidate(rct_window *w) sint32 x, enabledWidgets, widgetIndex, widgetWidth, firstAlignment; rct_widget *widget; - colour_scheme_update(w); - // Enable / disable buttons window_top_toolbar_widgets[WIDX_PAUSE].type = WWT_TRNBTN; window_top_toolbar_widgets[WIDX_FILE_MENU].type = WWT_TRNBTN; diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 48c47a330a..4b4b481c35 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -18,7 +18,6 @@ #include "../config/Config.h" #include "../drawing/IDrawingEngine.h" #include "../editor.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -339,8 +338,6 @@ static void window_track_list_update(rct_window *w) */ static void window_track_list_invalidate(rct_window *w) { - colour_scheme_update(w); - rct_string_id stringId = STR_NONE; rct_ride_entry *entry = get_ride_entry(_window_track_list_item.entry_index); if (entry != NULL && entry != (rct_ride_entry*)-1) { diff --git a/src/openrct2/windows/track_manage.c b/src/openrct2/windows/track_manage.c index c5d9ed862f..b248a74dc5 100644 --- a/src/openrct2/windows/track_manage.c +++ b/src/openrct2/windows/track_manage.c @@ -15,7 +15,6 @@ #pragma endregion #include "../game.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -64,11 +63,9 @@ static rct_widget window_track_delete_prompt_widgets[] = { static void window_track_manage_close(rct_window *w); static void window_track_manage_mouseup(rct_window *w, rct_widgetindex widgetIndex); static void window_track_manage_textinput(rct_window *w, rct_widgetindex widgetIndex, char *text); -static void window_track_manage_invalidate(rct_window *w); static void window_track_manage_paint(rct_window *w, rct_drawpixelinfo *dpi); static void window_track_delete_prompt_mouseup(rct_window *w, rct_widgetindex widgetIndex); -static void window_track_delete_prompt_invalidate(rct_window *w); static void window_track_delete_prompt_paint(rct_window *w, rct_drawpixelinfo *dpi); // 0x009940EC @@ -98,7 +95,7 @@ static rct_window_event_list window_track_manage_events = { NULL, NULL, NULL, - window_track_manage_invalidate, + NULL, window_track_manage_paint, NULL }; @@ -130,7 +127,7 @@ static rct_window_event_list window_track_delete_prompt_events = { NULL, NULL, NULL, - window_track_delete_prompt_invalidate, + NULL, window_track_delete_prompt_paint, NULL }; @@ -239,11 +236,6 @@ static void window_track_manage_textinput(rct_window *w, rct_widgetindex widgetI } } -static void window_track_manage_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - /** * * rct2: 0x006D3523 @@ -305,11 +297,6 @@ static void window_track_delete_prompt_mouseup(rct_window *w, rct_widgetindex wi } } -static void window_track_delete_prompt_invalidate(rct_window *w) -{ - colour_scheme_update(w); -} - /** * * rct2: 0x006D37EE diff --git a/src/openrct2/windows/track_place.c b/src/openrct2/windows/track_place.c index fe8006507a..7854e9b4f3 100644 --- a/src/openrct2/windows/track_place.c +++ b/src/openrct2/windows/track_place.c @@ -18,7 +18,6 @@ #include "../cheats.h" #include "../game.h" #include "../input.h" -#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -375,7 +374,6 @@ static void window_track_place_unknown14(rct_window *w) static void window_track_place_invalidate(rct_window *w) { - colour_scheme_update(w); window_track_place_draw_mini_preview(_trackDesign); } diff --git a/src/openrct2/windows/view_clipping.c b/src/openrct2/windows/view_clipping.c index f19eb5f06e..b0d434a19f 100644 --- a/src/openrct2/windows/view_clipping.c +++ b/src/openrct2/windows/view_clipping.c @@ -15,7 +15,6 @@ #pragma endregion #include "../config/Config.h" -#include "../interface/themes.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../interface/viewport.h" @@ -145,8 +144,6 @@ void window_view_clipping_open() window_push_others_below(window); - colour_scheme_update(window); - // Turn on view clipping when the window is opened. if (mainWindow != NULL) { mainWindow->viewport->flags |= VIEWPORT_FLAG_PAINT_CLIP_TO_HEIGHT; @@ -232,8 +229,6 @@ static void window_view_clipping_update(rct_window *w) static void window_view_clipping_invalidate(rct_window *w) { - colour_scheme_update(w); - widget_scroll_update_thumbs(w, WIDX_CLIP_HEIGHT_SLIDER); rct_window *mainWindow = window_get_main(); diff --git a/src/openrct2/windows/viewport.c b/src/openrct2/windows/viewport.c index 356fc4e114..43f2c4ca33 100644 --- a/src/openrct2/windows/viewport.c +++ b/src/openrct2/windows/viewport.c @@ -23,7 +23,6 @@ #include "../interface/widget.h" #include "../interface/window.h" #include "dropdown.h" -#include "../interface/themes.h" #define INITIAL_WIDTH 500 #define INITIAL_HEIGHT 350 @@ -195,8 +194,6 @@ static void window_viewport_invalidate(rct_window *w) rct_viewport *viewport; sint32 i; - colour_scheme_update(w); - viewportWidget = &window_viewport_widgets[WIDX_VIEWPORT]; viewport = w->viewport; diff --git a/src/openrct2/windows/water.c b/src/openrct2/windows/water.c index d0ea37916d..a4246ae32b 100644 --- a/src/openrct2/windows/water.c +++ b/src/openrct2/windows/water.c @@ -21,7 +21,6 @@ #include "../rct2.h" #include "../sprites.h" #include "../world/map.h" -#include "../interface/themes.h" #define MINIMUM_TOOL_SIZE 1 #define MAXIMUM_TOOL_SIZE 64 @@ -199,8 +198,6 @@ static void window_water_update(rct_window *w) */ static void window_water_invalidate(rct_window *w) { - colour_scheme_update(w); - // Set the preview image button to be pressed down w->pressed_widgets |= (1 << WIDX_PREVIEW); From 09f0425c2f929f30935cfb7e9991bfb81e910646 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 17 May 2017 19:37:28 +0200 Subject: [PATCH 102/670] Unify River Rafts and Splash Boats drawing code --- OpenRCT2.xcodeproj/project.pbxproj | 6 - src/openrct2/ride/track_data.c | 2 +- src/openrct2/ride/track_paint.h | 1 - src/openrct2/ride/water/river_rafts.c | 609 ------------------------ src/openrct2/ride/water/splash_boats.c | 578 +++++++++++++++++++++- src/openrct2/ride/water/water_coaster.c | 6 +- test/testpaint/testpaint.vcxproj | 1 - 7 files changed, 577 insertions(+), 626 deletions(-) delete mode 100644 src/openrct2/ride/water/river_rafts.c diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index 82fb2485eb..bc60589784 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -118,7 +118,6 @@ C64FDAA71D6D9A2100F259B9 /* boat_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9031CDBC3B7009F9BFC /* boat_ride.c */; }; C64FDAA81D6D9A2100F259B9 /* dingy_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9041CDBC3B7009F9BFC /* dingy_slide.c */; }; C64FDAA91D6D9A2100F259B9 /* log_flume.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9051CDBC3B7009F9BFC /* log_flume.c */; }; - C64FDAAA1D6D9A2100F259B9 /* river_rafts.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9061CDBC3B7009F9BFC /* river_rafts.c */; }; C64FDAAB1D6D9A2100F259B9 /* river_rapids.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9071CDBC3B7009F9BFC /* river_rapids.c */; }; C64FDAAC1D6D9A2100F259B9 /* splash_boats.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9081CDBC3B7009F9BFC /* splash_boats.c */; }; C64FDAAD1D6D9A2100F259B9 /* submarine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9091CDBC3B7009F9BFC /* submarine_ride.c */; }; @@ -221,7 +220,6 @@ C686F94E1CDBC3B7009F9BFC /* boat_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9031CDBC3B7009F9BFC /* boat_ride.c */; }; C686F94F1CDBC3B7009F9BFC /* dingy_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9041CDBC3B7009F9BFC /* dingy_slide.c */; }; C686F9501CDBC3B7009F9BFC /* log_flume.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9051CDBC3B7009F9BFC /* log_flume.c */; }; - C686F9511CDBC3B7009F9BFC /* river_rafts.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9061CDBC3B7009F9BFC /* river_rafts.c */; }; C686F9521CDBC3B7009F9BFC /* river_rapids.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9071CDBC3B7009F9BFC /* river_rapids.c */; }; C686F9531CDBC3B7009F9BFC /* splash_boats.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9081CDBC3B7009F9BFC /* splash_boats.c */; }; C686F9541CDBC3B7009F9BFC /* submarine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9091CDBC3B7009F9BFC /* submarine_ride.c */; }; @@ -687,7 +685,6 @@ C686F9031CDBC3B7009F9BFC /* boat_ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = boat_ride.c; sourceTree = ""; }; C686F9041CDBC3B7009F9BFC /* dingy_slide.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = dingy_slide.c; sourceTree = ""; }; C686F9051CDBC3B7009F9BFC /* log_flume.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = log_flume.c; sourceTree = ""; }; - C686F9061CDBC3B7009F9BFC /* river_rafts.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = river_rafts.c; sourceTree = ""; }; C686F9071CDBC3B7009F9BFC /* river_rapids.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = river_rapids.c; sourceTree = ""; }; C686F9081CDBC3B7009F9BFC /* splash_boats.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = splash_boats.c; sourceTree = ""; }; C686F9091CDBC3B7009F9BFC /* submarine_ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = submarine_ride.c; sourceTree = ""; }; @@ -1492,7 +1489,6 @@ C686F9031CDBC3B7009F9BFC /* boat_ride.c */, C686F9041CDBC3B7009F9BFC /* dingy_slide.c */, C686F9051CDBC3B7009F9BFC /* log_flume.c */, - C686F9061CDBC3B7009F9BFC /* river_rafts.c */, C686F9071CDBC3B7009F9BFC /* river_rapids.c */, C686F9081CDBC3B7009F9BFC /* splash_boats.c */, C686F9091CDBC3B7009F9BFC /* submarine_ride.c */, @@ -2680,7 +2676,6 @@ C64FDAA71D6D9A2100F259B9 /* boat_ride.c in Sources */, C64FDAA81D6D9A2100F259B9 /* dingy_slide.c in Sources */, C64FDAA91D6D9A2100F259B9 /* log_flume.c in Sources */, - C64FDAAA1D6D9A2100F259B9 /* river_rafts.c in Sources */, C606CCC91DB4054000FE4015 /* Utils.cpp in Sources */, C64FDAAB1D6D9A2100F259B9 /* river_rapids.c in Sources */, C64FDAAC1D6D9A2100F259B9 /* splash_boats.c in Sources */, @@ -3037,7 +3032,6 @@ C686F9281CDBC3B7009F9BFC /* wild_mouse.c in Sources */, D44272701CC81B3200D84D28 /* music_credits.c in Sources */, D433A5021E4A861F00D9A6DF /* SawyerChunkWriter.cpp in Sources */, - C686F9511CDBC3B7009F9BFC /* river_rafts.c in Sources */, C686F90E1CDBC3B7009F9BFC /* corkscrew_roller_coaster.c in Sources */, D44272A61CC81B3200D84D28 /* scenery.c in Sources */, C686F9111CDBC3B7009F9BFC /* heartline_twister_coaster.c in Sources */, diff --git a/src/openrct2/ride/track_data.c b/src/openrct2/ride/track_data.c index 768b9f4a3f..11d7fe5544 100644 --- a/src/openrct2/ride/track_data.c +++ b/src/openrct2/ride/track_data.c @@ -6325,7 +6325,7 @@ const TRACK_PAINT_FUNCTION_GETTER RideTypeTrackPaintFunctions[RIDE_TYPE_COUNT] = get_track_paint_function_inverted_hairpin_rc, // RIDE_TYPE_INVERTED_HAIRPIN_COASTER get_track_paint_function_magic_carpet, // RIDE_TYPE_MAGIC_CARPET get_track_paint_function_submarine_ride, // RIDE_TYPE_SUBMARINE_RIDE - get_track_paint_function_river_rafts, // RIDE_TYPE_RIVER_RAFTS + get_track_paint_function_splash_boats, // RIDE_TYPE_RIVER_RAFTS get_track_paint_function_shop, // RIDE_TYPE_50 get_track_paint_function_enterprise, // RIDE_TYPE_ENTERPRISE get_track_paint_function_shop, // RIDE_TYPE_52 diff --git a/src/openrct2/ride/track_paint.h b/src/openrct2/ride/track_paint.h index bfa13de34f..4f3d0cf71c 100644 --- a/src/openrct2/ride/track_paint.h +++ b/src/openrct2/ride/track_paint.h @@ -384,7 +384,6 @@ TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(sint32 tra TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(sint32 trackType, sint32 direction); TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(sint32 trackType, sint32 direction); TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(sint32 trackType, sint32 direction); -TRACK_PAINT_FUNCTION get_track_paint_function_river_rafts(sint32 trackType, sint32 direction); TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(sint32 trackType, sint32 direction); TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(sint32 trackType, sint32 direction); TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(sint32 trackType, sint32 direction); diff --git a/src/openrct2/ride/water/river_rafts.c b/src/openrct2/ride/water/river_rafts.c deleted file mode 100644 index 0ba2f36128..0000000000 --- a/src/openrct2/ride/water/river_rafts.c +++ /dev/null @@ -1,609 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#include "../../common.h" -#include "../../interface/viewport.h" -#include "../../paint/supports.h" -#include "../../paint/paint.h" -#include "../track.h" -#include "../track_paint.h" - -enum { - SPR_RIVER_RAFTS_FLAT_TOP_SW_NE = 20820, - SPR_RIVER_RAFTS_FLAT_TOP_NW_SE = 20821, - SPR_RIVER_RAFTS_FLAT_TOP_NE_SW = 20822, - SPR_RIVER_RAFTS_FLAT_TOP_SE_NW = 20823, - - SPR_RIVER_RAFTS_FLAT_SIDE_SW_NE = 20824, - SPR_RIVER_RAFTS_FLAT_SIDE_NW_SE = 20825, - SPR_RIVER_RAFTS_FLAT_SIDE_NE_SW = 20826, - SPR_RIVER_RAFTS_FLAT_SIDE_SE_NW = 20827, - - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_0 = 20888, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_2 = 20889, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_3 = 20890, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_5 = 20891, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_6 = 20892, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_0 = 20893, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_2 = 20894, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_3 = 20895, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_5 = 20896, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_6 = 20897, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_0 = 20898, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_2 = 20899, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_3 = 20900, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_5 = 20901, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_6 = 20902, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_0 = 20903, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_2 = 20904, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_3 = 20905, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_5 = 20906, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_6 = 20907, - - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_0 = 20908, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_2 = 20909, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_3 = 20910, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_5 = 20911, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_6 = 20912, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_0 = 20913, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_2 = 20914, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_3 = 20915, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_5 = 20916, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_6 = 20917, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_0 = 20918, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_2 = 20919, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_3 = 20920, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_5 = 20921, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_6 = 20922, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_0 = 20923, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_2 = 20924, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_3 = 20925, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_5 = 20926, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_6 = 20927, - - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_6 = 20908, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_5 = 20909, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_3 = 20910, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_2 = 20911, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_0 = 20912, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_6 = 20913, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_5 = 20914, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_3 = 20915, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_2 = 20916, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_0 = 20917, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_6 = 20918, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_5 = 20919, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_3 = 20920, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_2 = 20921, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_0 = 20922, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_6 = 20923, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_5 = 20924, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_3 = 20925, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_2 = 20926, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_0 = 20927, - - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_6 = 20928, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_5 = 20929, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_3 = 20930, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_2 = 20931, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_0 = 20932, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_6 = 20933, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_5 = 20934, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_3 = 20935, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_2 = 20936, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_0 = 20937, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_6 = 20938, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_5 = 20939, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_3 = 20940, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_2 = 20941, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_0 = 20942, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_6 = 20943, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_5 = 20944, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_3 = 20945, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_2 = 20946, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_0 = 20947, - - SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_0 = 20948, - SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_1 = 20949, - SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_2 = 20950, - SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_3 = 20951, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_0 = 20952, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_1 = 20953, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_2 = 20954, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_3 = 20955, - SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_0 = 20956, - SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_1 = 20957, - SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_2 = 20958, - SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_3 = 20959, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_0 = 20960, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_1 = 20961, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_2 = 20962, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_3 = 20963, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_0 = 20964, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_1 = 20965, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_2 = 20966, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_3 = 20967, - SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_0 = 20968, - SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_1 = 20969, - SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_2 = 20970, - SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_3 = 20971, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_0 = 20972, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_1 = 20973, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_2 = 20974, - SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_3 = 20975, - SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_0 = 20976, - SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_1 = 20977, - SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_2 = 20978, - SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_3 = 20979, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_3 = 20980, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_2 = 20981, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_1 = 20982, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_0 = 20983, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_3 = 20984, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_2 = 20985, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_1 = 20986, - SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_0 = 20987, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_3 = 20988, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_2 = 20989, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_1 = 20990, - SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_0 = 20991, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_3 = 20992, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_2 = 20993, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_1 = 20994, - SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_0 = 20995, -}; - -static const sprite_bb RiverRaftsLeftQuarterTurn5_Top[4][5] = { - { - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_3, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_5, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 34, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SW_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, - }, - { - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_3, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NW_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, - }, - { - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_3, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_NE_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, - }, - { - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 32, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_3, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_5, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_TOP_SE_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, - } -}; - -static const sprite_bb RiverRaftsLeftQuarterTurn5_Side[4][5] = { - { - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_3, { 0, 0, 0 }, { 0, 16, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_5, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 34, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SW_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, - }, - { - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_3, { 0, 0, 0 }, { 16, 16, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NW_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, - }, - { - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_3, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_NE_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, - }, - { - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 32, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_3, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_5, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_LEFT_5_SIDE_SE_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, - } -}; - -static const sprite_bb RiverRaftsRightQuarterTurn5_Top[4][5] = { - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_3, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_5, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 32, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SW_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, - }, - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 34, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_3, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NW_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, - }, - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_3, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_NE_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, - }, - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_3, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_5, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_TOP_SE_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, - } -}; - -static const sprite_bb RiverRaftsRightQuarterTurn5_Side[4][5] = { - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_3, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_5, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 32, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, - }, - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 34, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_3, { 0, 0, 0 }, { 0, 16, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, - }, - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_3, { 0, 0, 0 }, { 16, 16, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, - }, - { - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_3, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_5, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, - SPR_RIVER_RAFTS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, - } -}; - -/** rct2: 0x0089B170 */ -static void paint_river_rafts_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) -{ - uint32 imageId; - - if (direction & 1) { - imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_TOP_NW_SE : SPR_RIVER_RAFTS_FLAT_TOP_SE_NW) | gTrackColours[SCHEME_TRACK]; - sub_98197C(imageId, 0, 0, 20, 32, 2, height, 6, 0, height, get_current_rotation()); - - imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_SIDE_NW_SE : SPR_RIVER_RAFTS_FLAT_SIDE_SE_NW) | gTrackColours[SCHEME_TRACK]; - sub_98197C(imageId, 0, 0, 1, 32, 26, height, 27, 0, height, get_current_rotation()); - } else { - imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_TOP_SW_NE : SPR_RIVER_RAFTS_FLAT_TOP_NE_SW) | gTrackColours[SCHEME_TRACK]; - sub_98197C(imageId, 0, 0, 32, 20, 2, height, 0, 6, height, get_current_rotation()); - - imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_SIDE_SW_NE : SPR_RIVER_RAFTS_FLAT_SIDE_NE_SW) | gTrackColours[SCHEME_TRACK]; - sub_98197C(imageId, 0, 0, 32, 1, 26, height, 0, 27, height, get_current_rotation()); - } - - wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - - if (direction & 1) { - paint_util_push_tunnel_right(height, TUNNEL_6); - } else { - paint_util_push_tunnel_left(height, TUNNEL_6); - } - - paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); - paint_util_set_general_support_height(height + 32, 0x20); -} - -/** rct2: 0x0089B1A0 */ -static void paint_river_rafts_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) -{ - rct_ride *ride = get_ride(rideIndex); - - if (direction & 1) { - uint32 imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_TOP_NW_SE : SPR_RIVER_RAFTS_FLAT_TOP_SE_NW) | gTrackColours[SCHEME_TRACK]; - sub_98197C(imageId, 0, 0, 20, 32, 1, height, 6, 0, height + 3, get_current_rotation()); - - imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC]; - sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation()); - } else { - uint32 imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_TOP_SW_NE : SPR_RIVER_RAFTS_FLAT_TOP_NE_SW) | gTrackColours[SCHEME_TRACK]; - sub_98197C(imageId, 0, 0, 32, 20, 1, height, 0, 6, height + 3, get_current_rotation()); - - imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC]; - sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation()); - } - - wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - - track_paint_util_draw_station_platform(ride, direction, height, 7, mapElement); - - paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); - - paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); - paint_util_set_general_support_height(height + 32, 0x20); -} - -/** rct2: 0x0089B1D0 */ -static void paint_river_rafts_track_left_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) -{ - track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Top); - track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Side); - - if (trackSequence != 1 && trackSequence != 4) { - static const uint8 supportTypes[][7] = { - { 0, 0xFF, 5, 3, 0xFF, 5, 1 }, - { 1, 0xFF, 2, 4, 0xFF, 2, 0 }, - { 0, 0xFF, 3, 5, 0xFF, 3, 1 }, - { 1, 0xFF, 4, 2, 0xFF, 4, 0 }, - }; - uint8 supportType = supportTypes[direction][trackSequence]; - wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - } - - switch (trackSequence) { - case 0: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; - case 1: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); break; - case 2: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_B4 | SEGMENT_B8 | SEGMENT_D0, direction), 0xFFFF, 0); break; - case 3: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_CC | SEGMENT_D4 | SEGMENT_BC | SEGMENT_C4 | SEGMENT_B4 | SEGMENT_C0 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); break; - case 4: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); break; - case 5: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D4 | SEGMENT_D0 | SEGMENT_C0 | SEGMENT_B8, direction), 0xFFFF, 0); break; - case 6: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; - } - - switch (trackSequence) { - case 0: - if (direction == 0 || direction == 3) { - paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); - } - break; - case 6: - if (direction == 2 || direction == 3) { - paint_util_push_tunnel_rotated(direction ^ 1, height, TUNNEL_6); - } - break; - } - - paint_util_set_general_support_height(height + 32, 0x20); -} - -/** rct2: 0x0089B1D0 */ -static void paint_river_rafts_track_right_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) -{ - track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Top); - track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Side); - - if (trackSequence != 1 && trackSequence != 4) { - static const uint8 supportTypes[][7] = { - { 0, 0xFF, 4, 2, 0xFF, 4, 1 }, - { 1, 0xFF, 5, 3, 0xFF, 5, 0 }, - { 0, 0xFF, 2, 4, 0xFF, 2, 1 }, - { 1, 0xFF, 3, 5, 0xFF, 3, 0 }, - }; - uint8 supportType = supportTypes[direction][trackSequence]; - wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - } - - switch (trackSequence) { - case 0: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; - case 1: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); break; - case 2: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_D4 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_CC, direction), 0xFFFF, 0); break; - case 3: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_C4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); break; - case 4: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); break; - case 5: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D4 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C8, direction), 0xFFFF, 0); break; - case 6: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; - } - - switch (trackSequence) { - case 0: - if (direction == 0 || direction == 3) { - paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); - } - break; - case 6: - if (direction == 0 || direction == 1) { - paint_util_push_tunnel_rotated(direction ^ 1, height, TUNNEL_6); - } - break; - } - - paint_util_set_general_support_height(height + 32, 0x20); -} - -/** rct2: 0x0089B180 */ -static void paint_river_rafts_track_s_bend_left(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) -{ - static const uint32 imageIds[4][4][2] = - { - { { SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_0 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NE_NW_NE_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_3 } }, - { { SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_0 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NW_SW_NW_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_3 } }, - { { SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_3 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SW_SE_SW_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_NW_NE_SEQ_0 } }, - { { SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_3 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SE_NE_SE_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_NW_SW_NW_SEQ_0 } }, - }; - - uint32 imageId = imageIds[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK]; - uint32 frontImageId = imageIds[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK]; - sint16 bboy; - - switch (trackSequence) { - case 0: - sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); - wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); - break; - case 1: - bboy = (direction == 0 || direction == 1) ? 0 : 6; - sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); - - static const sint32 supportTypes1[] = { 5, 2, 3, 4 }; - wooden_a_supports_paint_setup(supportTypes1[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - - paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - break; - case 2: - bboy = (direction == 2 || direction == 3) ? 0 : 6; - sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); - - static const sint32 supportTypes2[] = { 3, 4, 5, 2 }; - wooden_a_supports_paint_setup(supportTypes2[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - - paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 3: - sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); - wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); - break; - } - - if (trackSequence == 0) { - if (direction == 0 || direction == 3) { - paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); - } - } else if (trackSequence == 3) { - if (direction == 1 || direction == 2) { - paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); - } - } - - paint_util_set_general_support_height(height + 32, 0x20); -} - -/** rct2: 0x0089B190 */ -static void paint_river_rafts_track_s_bend_right(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) -{ - static const uint32 imageIds[4][4][2] = - { - { { SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_0 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NE_SE_NE_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_3 } }, - { { SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_0 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SE_SW_SE_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_3 } }, - { { SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_3 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_SW_NW_SW_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_NE_SE_NE_SEQ_0 } }, - { { SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_0, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_3 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_1, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_2 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_2, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_1 }, - { SPR_RIVER_RAFTS_S_BEND_TOP_NW_NE_NW_SEQ_3, SPR_RIVER_RAFTS_S_BEND_SIDE_SE_SW_SE_SEQ_0 } }, - }; - - uint32 imageId = imageIds[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK]; - uint32 frontImageId = imageIds[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK]; - sint16 bboy; - - switch (trackSequence) { - case 0: - sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); - wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); - break; - case 1: - bboy = (direction == 2 || direction == 3) ? 0 : 6; - sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); - - static const sint32 supportTypes1[] = { 4, 5, 2, 3 }; - wooden_a_supports_paint_setup(supportTypes1[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - - paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - break; - case 2: - bboy = (direction == 0 || direction == 1) ? 0 : 6; - sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); - - static const sint32 supportTypes2[] = { 2, 3, 4, 5 }; - wooden_a_supports_paint_setup(supportTypes2[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - - paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - break; - case 3: - sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); - sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); - wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); - paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); - break; - } - - if (trackSequence == 0) { - if (direction == 0 || direction == 3) { - paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); - } - } else if (trackSequence == 3) { - if (direction == 1 || direction == 2) { - paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); - } - } - - paint_util_set_general_support_height(height + 32, 0x20); -} - -/** - * rct2: 0x0089B0C0 - */ -TRACK_PAINT_FUNCTION get_track_paint_function_river_rafts(sint32 trackType, sint32 direction) -{ - switch (trackType) { - case TRACK_ELEM_FLAT: return paint_river_rafts_track_flat; - - case TRACK_ELEM_END_STATION: - case TRACK_ELEM_BEGIN_STATION: - case TRACK_ELEM_MIDDLE_STATION: - return paint_river_rafts_station; - - case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES: return paint_river_rafts_track_left_quarter_turn_5_tiles; - case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES: return paint_river_rafts_track_right_quarter_turn_5_tiles; - - case TRACK_ELEM_S_BEND_LEFT: return paint_river_rafts_track_s_bend_left; - case TRACK_ELEM_S_BEND_RIGHT: return paint_river_rafts_track_s_bend_right; - } - return NULL; -} diff --git a/src/openrct2/ride/water/splash_boats.c b/src/openrct2/ride/water/splash_boats.c index 06942a85c2..5f0bbb74b8 100644 --- a/src/openrct2/ride/water/splash_boats.c +++ b/src/openrct2/ride/water/splash_boats.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * @@ -24,6 +24,16 @@ #include "../vehicle_paint.h" enum { + SPR_SPLASH_BOATS_FLAT_TOP_SW_NE = 20820, + SPR_SPLASH_BOATS_FLAT_TOP_NW_SE = 20821, + SPR_SPLASH_BOATS_FLAT_TOP_NE_SW = 20822, + SPR_SPLASH_BOATS_FLAT_TOP_SE_NW = 20823, + + SPR_SPLASH_BOATS_FLAT_SIDE_SW_NE = 20824, + SPR_SPLASH_BOATS_FLAT_SIDE_NW_SE = 20825, + SPR_SPLASH_BOATS_FLAT_SIDE_NE_SW = 20826, + SPR_SPLASH_BOATS_FLAT_SIDE_SE_NW = 20827, + SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_SW_NE = 20828, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_NW_SE = 20829, SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_NE_SW = 20830, @@ -84,6 +94,139 @@ enum { SPR_SPLASH_BOATS_60_DEG_UP_FRONT_NW_SE = 20885, SPR_SPLASH_BOATS_60_DEG_UP_FRONT_NE_SW = 20886, SPR_SPLASH_BOATS_60_DEG_UP_FRONT_SE_NW = 20887, + + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_0 = 20888, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_2 = 20889, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_3 = 20890, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_5 = 20891, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_6 = 20892, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_0 = 20893, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_2 = 20894, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_3 = 20895, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_5 = 20896, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_6 = 20897, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_0 = 20898, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_2 = 20899, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_3 = 20900, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_5 = 20901, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_6 = 20902, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_0 = 20903, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_2 = 20904, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_3 = 20905, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_5 = 20906, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_6 = 20907, + + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_0 = 20908, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_2 = 20909, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_3 = 20910, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_5 = 20911, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_6 = 20912, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_0 = 20913, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_2 = 20914, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_3 = 20915, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_5 = 20916, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_6 = 20917, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_0 = 20918, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_2 = 20919, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_3 = 20920, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_5 = 20921, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_6 = 20922, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_0 = 20923, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_2 = 20924, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_3 = 20925, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_5 = 20926, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_6 = 20927, + + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_6 = 20908, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_5 = 20909, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_3 = 20910, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_2 = 20911, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_0 = 20912, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_6 = 20913, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_5 = 20914, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_3 = 20915, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_2 = 20916, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_0 = 20917, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_6 = 20918, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_5 = 20919, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_3 = 20920, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_2 = 20921, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_0 = 20922, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_6 = 20923, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_5 = 20924, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_3 = 20925, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_2 = 20926, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_0 = 20927, + + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_6 = 20928, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_5 = 20929, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_3 = 20930, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_2 = 20931, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_0 = 20932, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_6 = 20933, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_5 = 20934, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_3 = 20935, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_2 = 20936, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_0 = 20937, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_6 = 20938, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_5 = 20939, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_3 = 20940, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_2 = 20941, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_0 = 20942, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_6 = 20943, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_5 = 20944, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_3 = 20945, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_2 = 20946, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_0 = 20947, + + SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_0 = 20948, + SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_1 = 20949, + SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_2 = 20950, + SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_3 = 20951, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_0 = 20952, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_1 = 20953, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_2 = 20954, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_3 = 20955, + SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_0 = 20956, + SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_1 = 20957, + SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_2 = 20958, + SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_3 = 20959, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_0 = 20960, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_1 = 20961, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_2 = 20962, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_3 = 20963, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_0 = 20964, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_1 = 20965, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_2 = 20966, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_3 = 20967, + SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_0 = 20968, + SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_1 = 20969, + SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_2 = 20970, + SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_3 = 20971, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_0 = 20972, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_1 = 20973, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_2 = 20974, + SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_3 = 20975, + SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_0 = 20976, + SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_1 = 20977, + SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_2 = 20978, + SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_3 = 20979, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_3 = 20980, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_2 = 20981, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_1 = 20982, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_0 = 20983, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_3 = 20984, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_2 = 20985, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_1 = 20986, + SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_0 = 20987, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_3 = 20988, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_2 = 20989, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_1 = 20990, + SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_0 = 20991, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_3 = 20992, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_2 = 20993, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_1 = 20994, + SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_0 = 20995, }; uint32 SplashBoats25DegUpImageId[4] = @@ -230,6 +373,131 @@ uint32 SplashBoats25DegDownToFlatFrontImageId[4] = SPR_SPLASH_BOATS_FLAT_TO_25_DEG_UP_FRONT_NW_SE, }; +static const sprite_bb RiverRaftsLeftQuarterTurn5_Top[4][5] = { + { + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_3, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_5, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 34, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SW_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, + }, + { + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_3, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NW_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, + }, + { + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_3, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_NE_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, + }, + { + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 32, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_3, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_5, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_TOP_SE_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, + } +}; + +static const sprite_bb RiverRaftsLeftQuarterTurn5_Side[4][5] = { + { + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_3, { 0, 0, 0 }, { 0, 16, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_5, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 34, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SW_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, + }, + { + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_3, { 0, 0, 0 }, { 16, 16, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NW_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, + }, + { + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_3, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_NE_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, + }, + { + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 32, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_3, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_5, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_LEFT_5_SIDE_SE_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, + } +}; + +static const sprite_bb RiverRaftsRightQuarterTurn5_Top[4][5] = { + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_3, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_5, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 32, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SW_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, + }, + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 32, 32, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 34, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_3, { 0, 0, 0 }, { 0, 16, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NW_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, + }, + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 27, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_3, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_5, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_NE_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, + }, + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 0 }, { 27, 32, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 0 }, { 16, 32, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_3, { 0, 0, 0 }, { 16, 0, 0 }, { 16, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_5, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 2 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_TOP_SE_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 0 }, { 32, 32, 2 }, + } +}; + +static const sprite_bb RiverRaftsRightQuarterTurn5_Side[4][5] = { + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_2, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_3, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_5, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 32, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SW_SE_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, + }, + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 32, 32, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_2, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 34, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_3, { 0, 0, 0 }, { 0, 16, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NW_SW_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, + }, + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_0, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 27, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_3, { 0, 0, 0 }, { 16, 16, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_5, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_NE_NW_SEQ_6, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, + }, + { + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_0, { 0, 0, 0 }, { 2, 0, 27 }, { 27, 32, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_2, { 0, 0, 0 }, { 0, 0, 27 }, { 16, 32, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_3, { 0, 0, 0 }, { 16, 0, 27 }, { 16, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_5, { 0, 0, 0 }, { 0, 16, 27 }, { 32, 16, 0 }, + SPR_SPLASH_BOATS_TURN_RIGHT_5_SIDE_SE_NE_SEQ_6, { 0, 0, 0 }, { 0, 2, 27 }, { 32, 32, 0 }, + } +}; + + static void paint_splash_boats_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element *mapElement) { uint32 imageId = SplashBoats25DegUpImageId[direction] | gTrackColours[SCHEME_TRACK]; @@ -419,6 +687,303 @@ static void paint_splash_boats_track_25_deg_down_to_flat(uint8 rideIndex, uint8 paint_util_set_general_support_height(height + 48, 0x20); } +/** Start of elements originally from River Rafts */ +/** rct2: 0x0089B170 */ +static void paint_splash_boats_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) +{ + uint32 imageId; + + if (direction & 1) { + imageId = (direction == 1 ? SPR_SPLASH_BOATS_FLAT_TOP_NW_SE : SPR_SPLASH_BOATS_FLAT_TOP_SE_NW) | gTrackColours[SCHEME_TRACK]; + sub_98197C(imageId, 0, 0, 20, 32, 2, height, 6, 0, height, get_current_rotation()); + + imageId = (direction == 1 ? SPR_SPLASH_BOATS_FLAT_SIDE_NW_SE : SPR_SPLASH_BOATS_FLAT_SIDE_SE_NW) | gTrackColours[SCHEME_TRACK]; + sub_98197C(imageId, 0, 0, 1, 32, 26, height, 27, 0, height, get_current_rotation()); + } else { + imageId = (direction == 0 ? SPR_SPLASH_BOATS_FLAT_TOP_SW_NE : SPR_SPLASH_BOATS_FLAT_TOP_NE_SW) | gTrackColours[SCHEME_TRACK]; + sub_98197C(imageId, 0, 0, 32, 20, 2, height, 0, 6, height, get_current_rotation()); + + imageId = (direction == 0 ? SPR_SPLASH_BOATS_FLAT_SIDE_SW_NE : SPR_SPLASH_BOATS_FLAT_SIDE_NE_SW) | gTrackColours[SCHEME_TRACK]; + sub_98197C(imageId, 0, 0, 32, 1, 26, height, 0, 27, height, get_current_rotation()); + } + + wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + + if (direction & 1) { + paint_util_push_tunnel_right(height, TUNNEL_6); + } else { + paint_util_push_tunnel_left(height, TUNNEL_6); + } + + paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); + paint_util_set_general_support_height(height + 32, 0x20); +} + +/** rct2: 0x0089B1A0 */ +static void paint_splash_boats_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) +{ + rct_ride *ride = get_ride(rideIndex); + + if (direction & 1) { + uint32 imageId = (direction == 1 ? SPR_SPLASH_BOATS_FLAT_TOP_NW_SE : SPR_SPLASH_BOATS_FLAT_TOP_SE_NW) | gTrackColours[SCHEME_TRACK]; + sub_98197C(imageId, 0, 0, 20, 32, 1, height, 6, 0, height + 3, get_current_rotation()); + + imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC]; + sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation()); + } else { + uint32 imageId = (direction == 0 ? SPR_SPLASH_BOATS_FLAT_TOP_SW_NE : SPR_SPLASH_BOATS_FLAT_TOP_NE_SW) | gTrackColours[SCHEME_TRACK]; + sub_98197C(imageId, 0, 0, 32, 20, 1, height, 0, 6, height + 3, get_current_rotation()); + + imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC]; + sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation()); + } + + wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + + track_paint_util_draw_station_platform(ride, direction, height, 7, mapElement); + + paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); + + paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); + paint_util_set_general_support_height(height + 32, 0x20); +} + +/** rct2: 0x0089B1D0 */ +static void paint_splash_boats_track_left_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) +{ + track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Top); + track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Side); + + if (trackSequence != 1 && trackSequence != 4) { + static const uint8 supportTypes[][7] = { + { 0, 0xFF, 5, 3, 0xFF, 5, 1 }, + { 1, 0xFF, 2, 4, 0xFF, 2, 0 }, + { 0, 0xFF, 3, 5, 0xFF, 3, 1 }, + { 1, 0xFF, 4, 2, 0xFF, 4, 0 }, + }; + uint8 supportType = supportTypes[direction][trackSequence]; + wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + } + + switch (trackSequence) { + case 0: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; + case 1: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); break; + case 2: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_B4 | SEGMENT_B8 | SEGMENT_D0, direction), 0xFFFF, 0); break; + case 3: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_CC | SEGMENT_D4 | SEGMENT_BC | SEGMENT_C4 | SEGMENT_B4 | SEGMENT_C0 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); break; + case 4: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0); break; + case 5: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D4 | SEGMENT_D0 | SEGMENT_C0 | SEGMENT_B8, direction), 0xFFFF, 0); break; + case 6: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; + } + + switch (trackSequence) { + case 0: + if (direction == 0 || direction == 3) { + paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); + } + break; + case 6: + if (direction == 2 || direction == 3) { + paint_util_push_tunnel_rotated(direction ^ 1, height, TUNNEL_6); + } + break; + } + + paint_util_set_general_support_height(height + 32, 0x20); +} + +/** rct2: 0x0089B1D0 */ +static void paint_splash_boats_track_right_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) +{ + track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Top); + track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Side); + + if (trackSequence != 1 && trackSequence != 4) { + static const uint8 supportTypes[][7] = { + { 0, 0xFF, 4, 2, 0xFF, 4, 1 }, + { 1, 0xFF, 5, 3, 0xFF, 5, 0 }, + { 0, 0xFF, 2, 4, 0xFF, 2, 1 }, + { 1, 0xFF, 3, 5, 0xFF, 3, 0 }, + }; + uint8 supportType = supportTypes[direction][trackSequence]; + wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + } + + switch (trackSequence) { + case 0: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; + case 1: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); break; + case 2: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_D4 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_CC, direction), 0xFFFF, 0); break; + case 3: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_C4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); break; + case 4: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0); break; + case 5: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D4 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C8, direction), 0xFFFF, 0); break; + case 6: paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); break; + } + + switch (trackSequence) { + case 0: + if (direction == 0 || direction == 3) { + paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); + } + break; + case 6: + if (direction == 0 || direction == 1) { + paint_util_push_tunnel_rotated(direction ^ 1, height, TUNNEL_6); + } + break; + } + + paint_util_set_general_support_height(height + 32, 0x20); +} + +/** rct2: 0x0089B180 */ +static void paint_splash_boats_track_s_bend_left(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) +{ + static const uint32 imageIds[4][4][2] = + { + { { SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_0 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NE_NW_NE_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_3 } }, + { { SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_0 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NW_SW_NW_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_3 } }, + { { SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_3 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SW_SE_SW_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_NW_NE_SEQ_0 } }, + { { SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_3 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SE_NE_SE_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_NW_SW_NW_SEQ_0 } }, + }; + + uint32 imageId = imageIds[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK]; + uint32 frontImageId = imageIds[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK]; + sint16 bboy; + + switch (trackSequence) { + case 0: + sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); + wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); + break; + case 1: + bboy = (direction == 0 || direction == 1) ? 0 : 6; + sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); + + static const sint32 supportTypes1[] = { 5, 2, 3, 4 }; + wooden_a_supports_paint_setup(supportTypes1[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + + paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); + break; + case 2: + bboy = (direction == 2 || direction == 3) ? 0 : 6; + sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); + + static const sint32 supportTypes2[] = { 3, 4, 5, 2 }; + wooden_a_supports_paint_setup(supportTypes2[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + + paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); + break; + case 3: + sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); + wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); + break; + } + + if (trackSequence == 0) { + if (direction == 0 || direction == 3) { + paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); + } + } else if (trackSequence == 3) { + if (direction == 1 || direction == 2) { + paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); + } + } + + paint_util_set_general_support_height(height + 32, 0x20); +} + +/** rct2: 0x0089B190 */ +static void paint_splash_boats_track_s_bend_right(uint8 rideIndex, uint8 trackSequence, uint8 direction, sint32 height, rct_map_element * mapElement) +{ + static const uint32 imageIds[4][4][2] = + { + { { SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_0 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NE_SE_NE_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_3 } }, + { { SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_0 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SE_SW_SE_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_3 } }, + { { SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_3 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_SW_NW_SW_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_NE_SE_NE_SEQ_0 } }, + { { SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_0, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_3 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_1, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_2 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_2, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_1 }, + { SPR_SPLASH_BOATS_S_BEND_TOP_NW_NE_NW_SEQ_3, SPR_SPLASH_BOATS_S_BEND_SIDE_SE_SW_SE_SEQ_0 } }, + }; + + uint32 imageId = imageIds[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK]; + uint32 frontImageId = imageIds[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK]; + sint16 bboy; + + switch (trackSequence) { + case 0: + sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); + wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); + break; + case 1: + bboy = (direction == 2 || direction == 3) ? 0 : 6; + sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); + + static const sint32 supportTypes1[] = { 4, 5, 2, 3 }; + wooden_a_supports_paint_setup(supportTypes1[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + + paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); + break; + case 2: + bboy = (direction == 0 || direction == 1) ? 0 : 6; + sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27); + + static const sint32 supportTypes2[] = { 2, 3, 4, 5 }; + wooden_a_supports_paint_setup(supportTypes2[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + + paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); + break; + case 3: + sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height); + sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27); + wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL); + paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0); + break; + } + + if (trackSequence == 0) { + if (direction == 0 || direction == 3) { + paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); + } + } else if (trackSequence == 3) { + if (direction == 1 || direction == 2) { + paint_util_push_tunnel_rotated(direction, height, TUNNEL_6); + } + } + + paint_util_set_general_support_height(height + 32, 0x20); +} + TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(sint32 trackType, sint32 direction) { switch (trackType) { @@ -447,18 +1012,21 @@ TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(sint32 trackType, sin case TRACK_ELEM_25_DEG_DOWN_TO_FLAT: return paint_splash_boats_track_25_deg_down_to_flat; - ////////////////////////////////////////////////////// - // Use River Rafts - ////////////////////////////////////////////////////// + // Originally taken from River Rafts case TRACK_ELEM_FLAT: + return paint_splash_boats_track_flat; case TRACK_ELEM_END_STATION: case TRACK_ELEM_BEGIN_STATION: case TRACK_ELEM_MIDDLE_STATION: + return paint_splash_boats_station; case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES: + return paint_splash_boats_track_left_quarter_turn_5_tiles; case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES: + return paint_splash_boats_track_right_quarter_turn_5_tiles; case TRACK_ELEM_S_BEND_LEFT: + return paint_splash_boats_track_s_bend_left; case TRACK_ELEM_S_BEND_RIGHT: - return get_track_paint_function_river_rafts(trackType, direction); + return paint_splash_boats_track_s_bend_right; } return NULL; diff --git a/src/openrct2/ride/water/water_coaster.c b/src/openrct2/ride/water/water_coaster.c index cbb49b50fc..cdee864791 100644 --- a/src/openrct2/ride/water/water_coaster.c +++ b/src/openrct2/ride/water/water_coaster.c @@ -362,11 +362,11 @@ TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(sint32 trackType, sint32 // Use River Rafts ////////////////////////////////////////////////////// case TRACK_ELEM_FLAT_COVERED: - return get_track_paint_function_river_rafts(TRACK_ELEM_FLAT, direction); + return get_track_paint_function_splash_boats(TRACK_ELEM_FLAT, direction); case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES_COVERED: - return get_track_paint_function_river_rafts(TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES, direction); + return get_track_paint_function_splash_boats(TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES, direction); case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES_COVERED: - return get_track_paint_function_river_rafts(TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES, direction); + return get_track_paint_function_splash_boats(TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES, direction); } return NULL; } diff --git a/test/testpaint/testpaint.vcxproj b/test/testpaint/testpaint.vcxproj index 91b1d91fd7..52b98206e9 100644 --- a/test/testpaint/testpaint.vcxproj +++ b/test/testpaint/testpaint.vcxproj @@ -170,7 +170,6 @@ - From d4bb9c38c90d1ba36b7dd343c2ff9d03ca671bba Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 17 May 2017 22:06:38 +0200 Subject: [PATCH 103/670] Delete unused file --- OpenRCT2.xcodeproj/project.pbxproj | 5 ----- src/openrct2/ride/shops/misc.c | 22 ---------------------- test/testpaint/testpaint.vcxproj | 1 - 3 files changed, 28 deletions(-) delete mode 100644 src/openrct2/ride/shops/misc.c diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index bc60589784..d4cc2594a7 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -97,7 +97,6 @@ C64FDA921D6D9A2100F259B9 /* space_rings.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EA1CDBC3B7009F9BFC /* space_rings.c */; }; C64FDA931D6D9A2100F259B9 /* spiral_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EB1CDBC3B7009F9BFC /* spiral_slide.c */; }; C64FDA941D6D9A2100F259B9 /* facility.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8ED1CDBC3B7009F9BFC /* facility.c */; }; - C64FDA951D6D9A2100F259B9 /* misc.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EE1CDBC3B7009F9BFC /* misc.c */; }; C64FDA961D6D9A2100F259B9 /* shop.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EF1CDBC3B7009F9BFC /* shop.c */; }; C64FDA971D6D9A2100F259B9 /* 3d_cinema.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F11CDBC3B7009F9BFC /* 3d_cinema.c */; }; C64FDA981D6D9A2100F259B9 /* enterprise.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F21CDBC3B7009F9BFC /* enterprise.c */; }; @@ -199,7 +198,6 @@ C686F9391CDBC3B7009F9BFC /* space_rings.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EA1CDBC3B7009F9BFC /* space_rings.c */; }; C686F93A1CDBC3B7009F9BFC /* spiral_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EB1CDBC3B7009F9BFC /* spiral_slide.c */; }; C686F93B1CDBC3B7009F9BFC /* facility.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8ED1CDBC3B7009F9BFC /* facility.c */; }; - C686F93C1CDBC3B7009F9BFC /* misc.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EE1CDBC3B7009F9BFC /* misc.c */; }; C686F93D1CDBC3B7009F9BFC /* shop.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EF1CDBC3B7009F9BFC /* shop.c */; }; C686F93E1CDBC3B7009F9BFC /* 3d_cinema.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F11CDBC3B7009F9BFC /* 3d_cinema.c */; }; C686F93F1CDBC3B7009F9BFC /* enterprise.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F21CDBC3B7009F9BFC /* enterprise.c */; }; @@ -664,7 +662,6 @@ C686F8EA1CDBC3B7009F9BFC /* space_rings.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = space_rings.c; sourceTree = ""; }; C686F8EB1CDBC3B7009F9BFC /* spiral_slide.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = spiral_slide.c; sourceTree = ""; }; C686F8ED1CDBC3B7009F9BFC /* facility.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = facility.c; sourceTree = ""; }; - C686F8EE1CDBC3B7009F9BFC /* misc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = misc.c; sourceTree = ""; }; C686F8EF1CDBC3B7009F9BFC /* shop.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = shop.c; sourceTree = ""; }; C686F8F11CDBC3B7009F9BFC /* 3d_cinema.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = 3d_cinema.c; sourceTree = ""; }; C686F8F21CDBC3B7009F9BFC /* enterprise.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = enterprise.c; sourceTree = ""; }; @@ -1447,7 +1444,6 @@ isa = PBXGroup; children = ( C686F8ED1CDBC3B7009F9BFC /* facility.c */, - C686F8EE1CDBC3B7009F9BFC /* misc.c */, C686F8EF1CDBC3B7009F9BFC /* shop.c */, ); path = shops; @@ -2651,7 +2647,6 @@ C64FDA921D6D9A2100F259B9 /* space_rings.c in Sources */, C64FDA931D6D9A2100F259B9 /* spiral_slide.c in Sources */, C64FDA941D6D9A2100F259B9 /* facility.c in Sources */, - C64FDA951D6D9A2100F259B9 /* misc.c in Sources */, C64FDA961D6D9A2100F259B9 /* shop.c in Sources */, C64FDA971D6D9A2100F259B9 /* 3d_cinema.c in Sources */, C64FDA981D6D9A2100F259B9 /* enterprise.c in Sources */, diff --git a/src/openrct2/ride/shops/misc.c b/src/openrct2/ride/shops/misc.c deleted file mode 100644 index c66ff859d7..0000000000 --- a/src/openrct2/ride/shops/misc.c +++ /dev/null @@ -1,22 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#include "../../paint/supports.h" -#include "../../interface/viewport.h" -#include "../../paint/paint.h" -#include "../../sprites.h" -#include "../../world/map.h" -#include "../track_paint.h" diff --git a/test/testpaint/testpaint.vcxproj b/test/testpaint/testpaint.vcxproj index 52b98206e9..ae99fd9725 100644 --- a/test/testpaint/testpaint.vcxproj +++ b/test/testpaint/testpaint.vcxproj @@ -146,7 +146,6 @@ - From d699c8038ef6e2e6893e7abd378b46341079514a Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Thu, 18 May 2017 04:00:21 +0000 Subject: [PATCH 104/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/de-DE.txt | 2 +- data/language/es-ES.txt | 2 +- data/language/fr-FR.txt | 2 +- data/language/sv-SE.txt | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/language/de-DE.txt b/data/language/de-DE.txt index 87f5fc8fbc..4e5c7d19a0 100644 --- a/data/language/de-DE.txt +++ b/data/language/de-DE.txt @@ -2747,7 +2747,7 @@ STR_2739 :Keine STR_2740 :RollerCoaster Tycoon 1 STR_2741 :RollerCoaster Tycoon 2 STR_2742 :css50.dat nicht gefunden -STR_2743 :Kopieren Sie data\css17.dat aus Ihrem RCT1-Verzeichnis nach data\css50.dat in Ihrem RCT2-Verzeichnis oder versichern Sie sich, dass der Pfad zur RCT1-Installation in den Optionen korrekt angegeben ist. +STR_2743 :Kopieren Sie 'data/css17.dat' aus Ihrem RCT1-Verzeichnis nach 'data/css50.dat' in Ihrem RCT2-Verzeichnis oder versichern Sie sich, dass der Pfad zur RCT1-Installation in den Optionen korrekt angegeben ist. STR_2744 :[ STR_2745 :\ STR_2746 :] diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index 06161cb3ea..a3eef8c342 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -2721,7 +2721,7 @@ STR_2739 :Ninguna STR_2740 :RollerCoaster Tycoon 1 STR_2741 :RollerCoaster Tycoon 2 STR_2742 :css50.dat no encontrado -STR_2743 :Copia data\css17.dat de tu instalación de RCT1 en data\css50.dat de tu instalación de RCT2, o asegúrate de que la carpeta de RCT1 en la sección "Otras Opciones" esté establecido correctamente. +STR_2743 :Copia 'data/css17.dat' de tu instalación de RCT1 en 'data/css50.dat' de tu instalación de RCT2, o asegúrate de que la carpeta de RCT1 en la sección "Otras Opciones" esté establecido correctamente. STR_2744 :[ STR_2745 :\ STR_2746 :] diff --git a/data/language/fr-FR.txt b/data/language/fr-FR.txt index df77227c8b..430937106e 100644 --- a/data/language/fr-FR.txt +++ b/data/language/fr-FR.txt @@ -2749,7 +2749,7 @@ STR_2739 :Aucun STR_2740 :RollerCoaster Tycoon 1 STR_2741 :RollerCoaster Tycoon 2 STR_2742 :css50.dat introuvable -STR_2743 :Copiez data\css17.dat depuis votre installation de RCT1 en data\css50.dat dans celui de RCT2, ou vérifiez que le chemin vers l'installation de RCT1 dans les options diverses est défini correctement. +STR_2743 :Copiez 'data/css17.dat' depuis votre installation de RCT1 en 'data/css50.dat' dans celui de RCT2, ou vérifiez que le chemin vers l'installation de RCT1 dans les options diverses est défini correctement. STR_2744 :[ STR_2745 :\ STR_2746 :] diff --git a/data/language/sv-SE.txt b/data/language/sv-SE.txt index 35d82008cc..e3bef125c5 100644 --- a/data/language/sv-SE.txt +++ b/data/language/sv-SE.txt @@ -4338,6 +4338,7 @@ STR_6030 :{SMALLFONT}{BLACK}Dekorations-väljaren. Klicka på en dekoration p STR_6031 :Server Beskrivning: STR_6032 :Server Hälsning: STR_6033 :Sökvägen till RCT1-mappen: +STR_6034 :{SMALLFONT}{BLACK}{STRING} STR_6035 :Vänligen välj installationsmappen för RCT1 STR_6036 :{SMALLFONT}{BLACK}Rensa STR_6037 :Vänligen välj en giltig sökväg till RCT1-mappen From eca9ef09b5f7e375dfa7251eba22cae2735c88c9 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Fri, 19 May 2017 04:00:25 +0000 Subject: [PATCH 105/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/nb-NO.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/language/nb-NO.txt b/data/language/nb-NO.txt index d03fcae765..58bbcb5926 100644 --- a/data/language/nb-NO.txt +++ b/data/language/nb-NO.txt @@ -4362,6 +4362,11 @@ STR_6051 :Bredden og høyden må være like STR_6052 :Høydekartet er for stort og vil bli kuttet av STR_6053 :Høydekartet kunne ikke normaliseres STR_6054 :Kun 24-bit bitmaps er støttet +STR_6055 :OpenRCT2 høydekartfil +STR_6056 :{SMALLFONT}{BLACK}Demp lyd +STR_6057 :{SMALLFONT}{BLACK}Show a separate button for the Mute Option in the toolbar +STR_6057 :{SMALLFONT}{BLACK}Vis en separat knapp for lyddemping i verktøylinjen +STR_6058 :Demp lyd ############# # Scenarios # From bd7bf49c8de6a3e07f215cb8aa6c734788d89d13 Mon Sep 17 00:00:00 2001 From: wolfreak99 Date: Fri, 19 May 2017 07:59:31 -0400 Subject: [PATCH 106/670] Fix - trim invalid land size when setting land ownership --- src/openrct2/world/map.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index e5dc9bed40..c102c98bbb 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -1800,10 +1800,10 @@ static money32 map_set_land_ownership(uint8 flags, sint16 x1, sint16 y1, sint16 return 0; // Clamp to maximum addressable element to prevent long loop spamming the log - x1 = clamp(0, x1, gMapSizeUnits); - y1 = clamp(0, y1, gMapSizeUnits); - x2 = min(x2, gMapSizeUnits); - y2 = min(y2, gMapSizeUnits); + x1 = clamp(32, x1, gMapSizeUnits - 32); + y1 = clamp(32, y1, gMapSizeUnits - 32); + x2 = clamp(32, x2, gMapSizeUnits - 32); + y2 = clamp(32, y2, gMapSizeUnits - 32); gUnk9E2E28 = 0; map_buy_land_rights(x1, y1, x2, y2, 6, flags | (newOwnership << 8)); @@ -1811,8 +1811,8 @@ static money32 map_set_land_ownership(uint8 flags, sint16 x1, sint16 y1, sint16 return 0; } - sint16 x = clamp(0, x1, gMapSizeUnits); - sint16 y = clamp(0, y1, gMapSizeUnits); + sint16 x = clamp(32, x1, gMapSizeUnits - 32); + sint16 y = clamp(32, y1, gMapSizeUnits - 32); x += 16; y += 16; From 53b023612d0f1540288f00330c78bd1415095b8c Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sun, 21 May 2017 00:01:45 +0200 Subject: [PATCH 107/670] Show uses of raw palette indices --- src/openrct2/interface/chat.c | 2 +- src/openrct2/interface/colour.h | 42 ++++++++++ src/openrct2/interface/console.c | 10 +-- src/openrct2/interface/graph.c | 24 +++--- src/openrct2/intro.c | 6 +- src/openrct2/sprites.h | 3 + src/openrct2/windows/finances.c | 2 +- src/openrct2/windows/install_track.c | 2 +- src/openrct2/windows/map.c | 116 ++++++++++++++------------- src/openrct2/windows/ride.c | 10 +-- src/openrct2/windows/text_input.c | 5 +- src/openrct2/windows/track_list.c | 2 +- src/openrct2/windows/track_place.c | 2 +- 13 files changed, 138 insertions(+), 88 deletions(-) diff --git a/src/openrct2/interface/chat.c b/src/openrct2/interface/chat.c index 16876d553e..5c5c755011 100644 --- a/src/openrct2/interface/chat.c +++ b/src/openrct2/interface/chat.c @@ -165,7 +165,7 @@ void chat_draw(rct_drawpixelinfo * dpi) sint32 caretX = x + gfx_get_string_width(lineBuffer); sint32 caretY = y + 14; - gfx_fill_rect(dpi, caretX, caretY, caretX + 6, caretY + 1, 0x38); + gfx_fill_rect(dpi, caretX, caretY, caretX + 6, caretY + 1, PALETTE_INDEX_56); } } } diff --git a/src/openrct2/interface/colour.h b/src/openrct2/interface/colour.h index 6574244e47..74efd9f51c 100644 --- a/src/openrct2/interface/colour.h +++ b/src/openrct2/interface/colour.h @@ -67,6 +67,48 @@ enum { COLOUR_LIGHT_WATER = 10 }; +enum { + PALETTE_INDEX_0 = 0, // + PALETTE_INDEX_10 = 10, // Black (0-dark), Dark gray (0) + PALETTE_INDEX_11 = 11, // Black (middark) + PALETTE_INDEX_12 = 12, // Black (midlight), Dark gray (1-darkest) + PALETTE_INDEX_14 = 14, // Black (lighter), Dark gray (dark) + PALETTE_INDEX_13 = 13, // + PALETTE_INDEX_16 = 16, // + PALETTE_INDEX_17 = 17, // Black (11), Dark gray (light), White (dark) + PALETTE_INDEX_20 = 20, // Dark gray (10), White (light) + PALETTE_INDEX_21 = 21, // Dark gray (11), White (lighter-11) + PALETTE_INDEX_40 = 40, // + PALETTE_INDEX_42 = 42, // Light Brown (lighter), Saturated brown (11) + PALETTE_INDEX_54 = 54, // + PALETTE_INDEX_55 = 55, // Bright Yellow (light), Yellow (lightest) + PALETTE_INDEX_56 = 56, // Bright Yellow (lighter, lightest), Yellow (10) + PALETTE_INDEX_61 = 61, // Bordeaux Red (darker) + PALETTE_INDEX_62 = 62, // + PALETTE_INDEX_68 = 68, // + PALETTE_INDEX_73 = 73, // + PALETTE_INDEX_99 = 99, // + PALETTE_INDEX_102 = 102, // Bright green (lighter) + PALETTE_INDEX_108 = 108, // + PALETTE_INDEX_111 = 111, // + PALETTE_INDEX_129 = 129, // Light Purple (11) + PALETTE_INDEX_135 = 135, // + PALETTE_INDEX_136 = 136, // Dark Blue (10-11), Light Blue (midlight), Icy Blue (darker) + PALETTE_INDEX_138 = 138, // Light Blue (lighter), Icy Blue (middark) + PALETTE_INDEX_141 = 141, // + PALETTE_INDEX_144 = 144, // Dark Green (1-darkest, + PALETTE_INDEX_161 = 161, // Bright Purple (light) + PALETTE_INDEX_162 = 162, // + PALETTE_INDEX_171 = 171, // Saturated Red (lightest) Bright Red (middark) + PALETTE_INDEX_172 = 172, // Saturated Red (10-11), Bright Red (midlight) + PALETTE_INDEX_186 = 186, // + PALETTE_INDEX_194 = 194, // + PALETTE_INDEX_195 = 195, // + PALETTE_INDEX_209 = 209, // Bright Pink (light) + PALETTE_INDEX_222 = 222, // + PALETTE_INDEX_245 = 245, // +}; + #define TEXT_COLOUR_254 (254) #define TEXT_COLOUR_255 (255) diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 3f88984921..6e7f8e42e2 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -240,13 +240,13 @@ void console_draw(rct_drawpixelinfo *dpi) sint32 caretX = x + gfx_get_string_width(lineBuffer); sint32 caretY = y + lineHeight; - gfx_fill_rect(dpi, caretX, caretY, caretX + 6, caretY + 1, FORMAT_WHITE); + gfx_fill_rect(dpi, caretX, caretY, caretX + 6, caretY + 1, PALETTE_INDEX_144); } - gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 21, _consoleRight, _consoleBottom - 21, 14); - gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 20, _consoleRight, _consoleBottom - 20, 11); + gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 21, _consoleRight, _consoleBottom - 21, PALETTE_INDEX_14); + gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 20, _consoleRight, _consoleBottom - 20, PALETTE_INDEX_11); - gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 1, _consoleRight, _consoleBottom - 1, 14); - gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 0, _consoleRight, _consoleBottom - 0, 12); + gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 1, _consoleRight, _consoleBottom - 1, PALETTE_INDEX_14); + gfx_fill_rect(dpi, _consoleLeft, _consoleBottom - 0, _consoleRight, _consoleBottom - 0, PALETTE_INDEX_12); } void console_input(sint32 c) diff --git a/src/openrct2/interface/graph.c b/src/openrct2/interface/graph.c index d15540ae74..b060eb4e5f 100644 --- a/src/openrct2/interface/graph.c +++ b/src/openrct2/interface/graph.c @@ -34,7 +34,7 @@ static void graph_draw_months_uint8(rct_drawpixelinfo *dpi, uint8 *history, sint gfx_draw_string_centred(dpi, STR_GRAPH_LABEL, x, y - 10, COLOUR_BLACK, gCommonFormatArgs); // Draw month mark - gfx_fill_rect(dpi, x, y, x, y + 3, 10); + gfx_fill_rect(dpi, x, y, x, y + 3, PALETTE_INDEX_10); } yearOver32 = (yearOver32 + 1) % 32; @@ -53,11 +53,11 @@ static void graph_draw_line_a_uint8(rct_drawpixelinfo *dpi, uint8 *history, sint y = baseY + ((255 - history[i]) * 100) / 256; if (lastX != -1) { - gfx_draw_line(dpi, lastX + 1, lastY + 1, x + 1, y + 1, 10); - gfx_draw_line(dpi, lastX, lastY + 1, x, y + 1, 10); + gfx_draw_line(dpi, lastX + 1, lastY + 1, x + 1, y + 1, PALETTE_INDEX_10); + gfx_draw_line(dpi, lastX, lastY + 1, x, y + 1, PALETTE_INDEX_10); } if (i == 0) - gfx_fill_rect(dpi, x, y, x + 2, y + 2, 10); + gfx_fill_rect(dpi, x, y, x + 2, y + 2, PALETTE_INDEX_10); lastX = x; lastY = y; @@ -78,9 +78,9 @@ static void graph_draw_line_b_uint8(rct_drawpixelinfo *dpi, uint8 *history, sint y = baseY + ((255 - history[i]) * 100) / 256; if (lastX != -1) - gfx_draw_line(dpi, lastX, lastY, x, y, 21); + gfx_draw_line(dpi, lastX, lastY, x, y, PALETTE_INDEX_21); if (i == 0) - gfx_fill_rect(dpi, x - 1, y - 1, x + 1, y + 1, 21); + gfx_fill_rect(dpi, x - 1, y - 1, x + 1, y + 1, PALETTE_INDEX_21); lastX = x; lastY = y; @@ -112,7 +112,7 @@ static void graph_draw_months_money32(rct_drawpixelinfo *dpi, money32 *history, gfx_draw_string_centred(dpi, STR_GRAPH_LABEL, x, y - 10, COLOUR_BLACK, &monthFormat); // Draw month mark - gfx_fill_rect(dpi, x, y, x, y + 3, 10); + gfx_fill_rect(dpi, x, y, x, y + 3, PALETTE_INDEX_10); } yearOver32 = (yearOver32 + 1) % 32; @@ -131,11 +131,11 @@ static void graph_draw_line_a_money32(rct_drawpixelinfo *dpi, money32 *history, y = baseY + 170 - 6 - ((((history[i] >> modifier) + offset) * 170) / 256); if (lastX != -1) { - gfx_draw_line(dpi, lastX + 1, lastY + 1, x + 1, y + 1, 10); - gfx_draw_line(dpi, lastX, lastY + 1, x, y + 1, 10); + gfx_draw_line(dpi, lastX + 1, lastY + 1, x + 1, y + 1, PALETTE_INDEX_10); + gfx_draw_line(dpi, lastX, lastY + 1, x, y + 1, PALETTE_INDEX_10); } if (i == 0) - gfx_fill_rect(dpi, x, y, x + 2, y + 2, 10); + gfx_fill_rect(dpi, x, y, x + 2, y + 2, PALETTE_INDEX_10); lastX = x; lastY = y; @@ -156,9 +156,9 @@ static void graph_draw_line_b_money32(rct_drawpixelinfo *dpi, money32 *history, y = baseY + 170 - 6 - ((((history[i] >> modifier) + offset) * 170) / 256); if (lastX != -1) - gfx_draw_line(dpi, lastX, lastY, x, y, 21); + gfx_draw_line(dpi, lastX, lastY, x, y, PALETTE_INDEX_21); if (i == 0) - gfx_fill_rect(dpi, x - 1, y - 1, x + 1, y + 1, 21); + gfx_fill_rect(dpi, x - 1, y - 1, x + 1, y + 1, PALETTE_INDEX_21); lastX = x; lastY = y; diff --git a/src/openrct2/intro.c b/src/openrct2/intro.c index 2059ad003e..c2740dc8a9 100644 --- a/src/openrct2/intro.c +++ b/src/openrct2/intro.c @@ -21,9 +21,9 @@ #include "rct2.h" #include "sprites.h" -#define BACKROUND_COLOUR_DARK 10 -#define BACKROUND_COLOUR_LOGO 245 -#define BORDER_COLOUR_PUBLISHER 129 +#define BACKROUND_COLOUR_DARK PALETTE_INDEX_10 +#define BACKROUND_COLOUR_LOGO PALETTE_INDEX_245 +#define BORDER_COLOUR_PUBLISHER PALETTE_INDEX_129 #define PALETTE_G1_IDX_DEVELOPER 23217 #define PALETTE_G1_IDX_LOGO 23224 diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 53dfe4c8b4..0033568932 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -19,6 +19,7 @@ enum { SPR_NONE = -1, + SPR_TEMP = 0, SPR_SCROLLING_TEXT_START = 1542, SPR_SCROLLING_TEXT_DEFAULT = 1574, @@ -530,6 +531,8 @@ enum { SPR_CONSTRUCTION_FOOTPATH_LAND = 5639, SPR_CONSTRUCTION_FOOTPATH_BRIDGE = 5640, + SPR_6410 = 6410, + SPR_RIDE_DESIGN_PREVIEW_SPIRAL_ROLLER_COASTER_TRACK = 14222, SPR_RIDE_DESIGN_PREVIEW_SPIRAL_ROLLER_COASTER_SUPPORTS = 14223, SPR_RIDE_DESIGN_PREVIEW_STAND_UP_ROLLER_COASTER_TRACK = 14224, diff --git a/src/openrct2/windows/finances.c b/src/openrct2/windows/finances.c index 5cbacf4e7f..d066303cdb 100644 --- a/src/openrct2/windows/finances.c +++ b/src/openrct2/windows/finances.c @@ -732,7 +732,7 @@ static void window_finances_summary_paint(rct_window *w, rct_drawpixelinfo *dpi) x + 80, y - 1 ); - gfx_fill_rect(dpi, x + 10, y - 2, x + 10 + 70, y - 2, 10); + gfx_fill_rect(dpi, x + 10, y - 2, x + 10 + 70, y - 2, PALETTE_INDEX_10); x += 80; } diff --git a/src/openrct2/windows/install_track.c b/src/openrct2/windows/install_track.c index bdd2e2710b..7636d4233a 100644 --- a/src/openrct2/windows/install_track.c +++ b/src/openrct2/windows/install_track.c @@ -219,7 +219,7 @@ static void window_install_track_paint(rct_window *w, rct_drawpixelinfo *dpi) sint32 colour = ColourMapA[w->colours[0]].darkest; gfx_fill_rect(dpi, x, y, x + 369, y + 216, colour); - rct_g1_element *substituteElement = &g1Elements[0]; + rct_g1_element *substituteElement = &g1Elements[SPR_TEMP]; rct_g1_element tmpElement = *substituteElement; substituteElement->offset = _trackDesignPreviewPixels + (_currentTrackPieceDirection * TRACK_PREVIEW_IMAGE_SIZE); substituteElement->width = 370; diff --git a/src/openrct2/windows/map.c b/src/openrct2/windows/map.c index 50c2bfa422..2dbd3f019f 100644 --- a/src/openrct2/windows/map.c +++ b/src/openrct2/windows/map.c @@ -37,6 +37,10 @@ #define MINIMUM_MAP_SIZE_PRACTICAL MINIMUM_MAP_SIZE_TECHNICAL-2 #define MAXIMUM_MAP_SIZE_PRACTICAL MAXIMUM_MAP_SIZE_TECHNICAL-2 +#define MAP_COLOUR_2(colourA, colourB) ((colourA << 8) | colourB) +#define MAP_COLOUR(colour) MAP_COLOUR_2(colour, colour) +#define FALLBACK_COLOUR(colour) ((colour << 24) || colour << 16) + enum { PAGE_PEEPS, PAGE_RIDES @@ -107,14 +111,14 @@ const rct_xy16 MiniMapOffsets[] = { /** rct2: 0x00981BCC */ static const uint16 RideKeyColours[] = { - 0x3D3D, // COLOUR_KEY_RIDE - 0x2A2A, // COLOUR_KEY_FOOD - 0x1414, // COLOUR_KEY_DRINK - 0xD1D1, // COLOUR_KEY_SOUVENIR - 0x8888, // COLOUR_KEY_KIOSK - 0x6666, // COLOUR_KEY_FIRST_AID - 0x3737, // COLOUR_KEY_CASH_MACHINE - 0xA1A1, // COLOUR_KEY_TOILETS + MAP_COLOUR(PALETTE_INDEX_61), // COLOUR_KEY_RIDE + MAP_COLOUR(PALETTE_INDEX_42), // COLOUR_KEY_FOOD + MAP_COLOUR(PALETTE_INDEX_20), // COLOUR_KEY_DRINK + MAP_COLOUR(PALETTE_INDEX_209), // COLOUR_KEY_SOUVENIR + MAP_COLOUR(PALETTE_INDEX_136), // COLOUR_KEY_KIOSK + MAP_COLOUR(PALETTE_INDEX_102), // COLOUR_KEY_FIRST_AID + MAP_COLOUR(PALETTE_INDEX_55), // COLOUR_KEY_CASH_MACHINE + MAP_COLOUR(PALETTE_INDEX_161), // COLOUR_KEY_TOILETS }; static void window_map_close(rct_window *w); @@ -835,7 +839,7 @@ static void window_map_paint(rct_window *w, rct_drawpixelinfo *dpi) if (w->widgets[WIDX_PEOPLE_STARTING_POSITION].type != WWT_EMPTY) { x = w->x + w->widgets[WIDX_PEOPLE_STARTING_POSITION].left + 12; y = w->y + w->widgets[WIDX_PEOPLE_STARTING_POSITION].top + 18; - gfx_draw_sprite(dpi, 0x0B6E0190A, x, y, 0); + gfx_draw_sprite(dpi, 0xA0000000 | (COLOUR_LIGHT_BROWN << 24) | (COLOUR_BRIGHT_RED << 19) | SPR_6410, x, y, 0); } if (!(gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) && !gCheatsSandboxMode) { @@ -878,9 +882,9 @@ static void window_map_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32 { rct_g1_element *g1_element, pushed_g1_element; - gfx_clear(dpi, 10); + gfx_clear(dpi, PALETTE_INDEX_10); - g1_element = &g1Elements[0]; + g1_element = &g1Elements[SPR_TEMP]; pushed_g1_element = *g1_element; g1_element->offset = (uint8 *) _mapImageData; @@ -890,7 +894,7 @@ static void window_map_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32 g1_element->y_offset = -8; g1_element->flags = 0; - gfx_draw_sprite(dpi, 0, 0, 0, 0); + gfx_draw_sprite(dpi, SPR_TEMP, 0, 0, 0); *g1_element = pushed_g1_element; @@ -908,7 +912,7 @@ static void window_map_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32 */ static void window_map_init_map() { - memset(_mapImageData, 0x0A, sizeof(*_mapImageData)); + memset(_mapImageData, PALETTE_INDEX_10, sizeof(*_mapImageData)); _currentLine = 0; } @@ -1076,22 +1080,22 @@ static void window_map_paint_peep_overlay(rct_drawpixelinfo *dpi) right = left; bottom = top; - colour = 0x14; + colour = PALETTE_INDEX_20; if ((peep->flags & SPRITE_FLAGS_PEEP_FLASHING) != 0) { if (peep->type == PEEP_TYPE_STAFF) { if ((gWindowMapFlashingFlags & (1 << 3)) != 0) { - colour = 0x8A; + colour = PALETTE_INDEX_138; left--; if ((gWindowMapFlashingFlags & (1 << 15)) == 0) - colour = 0xA; + colour = PALETTE_INDEX_10; } } else { if ((gWindowMapFlashingFlags & (1 << 1)) != 0) { - colour = 0xAC; + colour = PALETTE_INDEX_172; left--; if ((gWindowMapFlashingFlags & (1 << 15)) == 0) - colour = 0x15; + colour = PALETTE_INDEX_21; } } } @@ -1126,7 +1130,7 @@ static void window_map_paint_train_overlay(rct_drawpixelinfo *dpi) right = left; bottom = top; - gfx_fill_rect(dpi, left, top, right, bottom, 0xAB); + gfx_fill_rect(dpi, left, top, right, bottom, PALETTE_INDEX_171); } } } @@ -1154,20 +1158,20 @@ static void window_map_paint_hud_rectangle(rct_drawpixelinfo *dpi) sint16 bottom = ((viewport->view_y + viewport->view_height) >> 4) + offset.y; // top horizontal lines - gfx_fill_rect(dpi, left, top, left + 3, top, 0x38); - gfx_fill_rect(dpi, right - 3, top, right, top, 0x38); + gfx_fill_rect(dpi, left, top, left + 3, top, PALETTE_INDEX_56); + gfx_fill_rect(dpi, right - 3, top, right, top, PALETTE_INDEX_56); // left vertical lines - gfx_fill_rect(dpi, left, top, left, top + 3, 0x38); - gfx_fill_rect(dpi, left, bottom - 3, left, bottom, 0x38); + gfx_fill_rect(dpi, left, top, left, top + 3, PALETTE_INDEX_56); + gfx_fill_rect(dpi, left, bottom - 3, left, bottom, PALETTE_INDEX_56); // bottom horizontal lines - gfx_fill_rect(dpi, left, bottom, left + 3, bottom, 0x38); - gfx_fill_rect(dpi, right - 3, bottom, right, bottom, 0x38); + gfx_fill_rect(dpi, left, bottom, left + 3, bottom, PALETTE_INDEX_56); + gfx_fill_rect(dpi, right - 3, bottom, right, bottom, PALETTE_INDEX_56); // right vertical lines - gfx_fill_rect(dpi, right, top, right, top + 3, 0x38); - gfx_fill_rect(dpi, right, bottom - 3, right, bottom, 0x38); + gfx_fill_rect(dpi, right, top, right, top + 3, PALETTE_INDEX_56); + gfx_fill_rect(dpi, right, bottom - 3, right, bottom, PALETTE_INDEX_56); } /** @@ -1429,22 +1433,22 @@ static void map_window_decrease_map_size() gfx_invalidate_screen(); } -static const uint16 WaterColour = 0xC3C3; +static const uint16 WaterColour = MAP_COLOUR(PALETTE_INDEX_195); static const uint16 TerrainColour[] = { - 0x4949, // TERRAIN_GRASS - 0x2828, // TERRAIN_SAND - 0x6C6C, // TERRAIN_DIRT - 0x0C0C, // TERRAIN_ROCK - 0x3E3E, // TERRAIN_MARTIAN - 0x0A10, // TERRAIN_CHECKERBOARD - 0x496C, // TERRAIN_GRASS_CLUMPS - 0x8D8D, // TERRAIN_ICE - 0xAC0A, // TERRAIN_GRID_RED - 0x360A, // TERRAIN_GRID_YELLOW - 0xA20A, // TERRAIN_GRID_BLUE - 0x660A, // TERRAIN_GRID_GREEN - 0x6F6F, // TERRAIN_SAND_DARK - 0xDEDE, // TERRAIN_SAND_LIGHT + MAP_COLOUR(PALETTE_INDEX_73), // TERRAIN_GRASS + MAP_COLOUR(PALETTE_INDEX_40), // TERRAIN_SAND + MAP_COLOUR(PALETTE_INDEX_108), // TERRAIN_DIRT + MAP_COLOUR(PALETTE_INDEX_12), // TERRAIN_ROCK + MAP_COLOUR(PALETTE_INDEX_62), // TERRAIN_MARTIAN + MAP_COLOUR_2(PALETTE_INDEX_10, PALETTE_INDEX_16), // TERRAIN_CHECKERBOARD + MAP_COLOUR_2(PALETTE_INDEX_73, PALETTE_INDEX_108), // TERRAIN_GRASS_CLUMPS + MAP_COLOUR(PALETTE_INDEX_141), // TERRAIN_ICE + MAP_COLOUR_2(PALETTE_INDEX_172, PALETTE_INDEX_10), // TERRAIN_GRID_RED + MAP_COLOUR_2(PALETTE_INDEX_54, PALETTE_INDEX_10), // TERRAIN_GRID_YELLOW + MAP_COLOUR_2(PALETTE_INDEX_162, PALETTE_INDEX_10), // TERRAIN_GRID_BLUE + MAP_COLOUR_2(PALETTE_INDEX_102, PALETTE_INDEX_10), // TERRAIN_GRID_GREEN + MAP_COLOUR(PALETTE_INDEX_111), // TERRAIN_SAND_DARK + MAP_COLOUR(PALETTE_INDEX_222), // TERRAIN_SAND_LIGHT }; static const uint16 ElementTypeMaskColour[] = { @@ -1460,15 +1464,15 @@ static const uint16 ElementTypeMaskColour[] = { }; static const uint16 ElementTypeAddColour[] = { - 0x0000, // MAP_ELEMENT_TYPE_SURFACE - 0x1111, // MAP_ELEMENT_TYPE_PATH - 0xB700, // MAP_ELEMENT_TYPE_TRACK - 0x0063, // MAP_ELEMENT_TYPE_SCENERY - 0xBABA, // MAP_ELEMENT_TYPE_ENTRANCE - 0x0000, // MAP_ELEMENT_TYPE_WALL - 0x6363, // MAP_ELEMENT_TYPE_SCENERY_MULTIPLE - 0x0000, // MAP_ELEMENT_TYPE_BANNER - 0x4444, // MAP_ELEMENT_TYPE_CORRUPT + MAP_COLOUR(PALETTE_INDEX_0), // MAP_ELEMENT_TYPE_SURFACE + MAP_COLOUR(PALETTE_INDEX_17), // MAP_ELEMENT_TYPE_PATH + MAP_COLOUR_2(PALETTE_INDEX_135, PALETTE_INDEX_0), // MAP_ELEMENT_TYPE_TRACK + MAP_COLOUR_2(PALETTE_INDEX_0, PALETTE_INDEX_99), // MAP_ELEMENT_TYPE_SCENERY + MAP_COLOUR(PALETTE_INDEX_186), // MAP_ELEMENT_TYPE_ENTRANCE + MAP_COLOUR(PALETTE_INDEX_0), // MAP_ELEMENT_TYPE_WALL + MAP_COLOUR(PALETTE_INDEX_99), // MAP_ELEMENT_TYPE_SCENERY_MULTIPLE + MAP_COLOUR(PALETTE_INDEX_0), // MAP_ELEMENT_TYPE_BANNER + MAP_COLOUR(PALETTE_INDEX_68), // MAP_ELEMENT_TYPE_CORRUPT }; enum { @@ -1590,7 +1594,7 @@ static uint16 map_window_get_pixel_colour_peep(sint32 x, sint32 y) colour = WaterColour; if (!(mapElement->properties.surface.ownership & OWNERSHIP_OWNED)) - colour = 10 | (colour & 0xFF00); + colour = PALETTE_INDEX_10 | (colour & 0xFF00); const sint32 maxSupportedMapElementType = (sint32)countof(ElementTypeAddColour); while (!map_element_is_last_for_tile(mapElement++)) { @@ -1611,22 +1615,22 @@ static uint16 map_window_get_pixel_colour_ride(sint32 x, sint32 y) rct_ride *ride; uint32 colour; - colour = 0x0D0D0000; + colour = FALLBACK_COLOUR(PALETTE_INDEX_13); mapElement = map_get_surface_element_at(x >> 5, y >> 5); do { switch (map_element_get_type(mapElement)) { case MAP_ELEMENT_TYPE_SURFACE: if (mapElement->properties.surface.terrain & 0x1F) { colour &= 0xFFFF; - colour |= 0xC2C20000; + colour |= FALLBACK_COLOUR(PALETTE_INDEX_194); } if (!(mapElement->properties.surface.ownership & OWNERSHIP_OWNED)) { colour &= 0xFF00FFFF; - colour |= 0x000A0000; + colour |= PALETTE_INDEX_10 << 16; } break; case MAP_ELEMENT_TYPE_PATH: - colour = 0x0E0E; + colour = MAP_COLOUR(PALETTE_INDEX_14); break; case MAP_ELEMENT_TYPE_ENTRANCE: if (mapElement->properties.entrance.type == ENTRANCE_TYPE_PARK_ENTRANCE) diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index 6d869ef720..35a2b2d813 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -2968,7 +2968,7 @@ static void window_ride_vehicle_scrollpaint(rct_window *w, rct_drawpixelinfo *dp rct_ride_entry *rideEntry = get_ride_entry_by_ride(ride); // Background - gfx_fill_rect(dpi, dpi->x, dpi->y, dpi->x + dpi->width, dpi->y + dpi->height, 12); + gfx_fill_rect(dpi, dpi->x, dpi->y, dpi->x + dpi->width, dpi->y + dpi->height, PALETTE_INDEX_12); rct_widget *widget = &window_ride_vehicle_widgets[WIDX_VEHICLE_TRAINS_PREVIEW]; sint32 startX = max(2, ((widget->right - widget->left) - ((ride->num_vehicles - 1) * 36)) / 2 - 25); @@ -4581,7 +4581,7 @@ static void window_ride_colour_paint(rct_window *w, rct_drawpixelinfo *dpi) // Track / shop item preview widget = &window_ride_colour_widgets[WIDX_TRACK_PREVIEW]; if (widget->type != WWT_EMPTY) - gfx_fill_rect(dpi, w->x + widget->left + 1, w->y + widget->top + 1, w->x + widget->right - 1, w->y + widget->bottom - 1, 12); + gfx_fill_rect(dpi, w->x + widget->left + 1, w->y + widget->top + 1, w->x + widget->right - 1, w->y + widget->bottom - 1, PALETTE_INDEX_12); track_colour trackColour = ride_get_track_colour(ride, w->ride_colour); @@ -4634,7 +4634,7 @@ static void window_ride_colour_paint(rct_window *w, rct_drawpixelinfo *dpi) widget->right - widget->left, widget->bottom - widget->top )) { - gfx_clear(&clippedDpi, 12); + gfx_clear(&clippedDpi, PALETTE_INDEX_12); if (ride->entrance_style != RIDE_ENTRANCE_STYLE_NONE) { const rct_ride_entrance_definition *entranceStyle = &RideEntranceDefinitions[ride->entrance_style]; @@ -4680,7 +4680,7 @@ static void window_ride_colour_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi vehicleColour = ride_get_vehicle_colour(ride, w->var_48C); // Background colour - gfx_fill_rect(dpi, dpi->x, dpi->y, dpi->x + dpi->width - 1, dpi->y + dpi->height - 1, 12); + gfx_fill_rect(dpi, dpi->x, dpi->y, dpi->x + dpi->width - 1, dpi->y + dpi->height - 1, PALETTE_INDEX_12); // ? x = (vehiclePreviewWidget->right - vehiclePreviewWidget->left) / 2; @@ -5720,7 +5720,7 @@ static void window_ride_graphs_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi top = bottom; bottom = tmp; } - gfx_fill_rect(dpi, x, top, x, bottom, x > measurement->current_item ? 17 : 21); + gfx_fill_rect(dpi, x, top, x, bottom, x > measurement->current_item ? PALETTE_INDEX_17 : PALETTE_INDEX_21); } } diff --git a/src/openrct2/windows/text_input.c b/src/openrct2/windows/text_input.c index e1e76d74f6..118c179ddd 100644 --- a/src/openrct2/windows/text_input.c +++ b/src/openrct2/windows/text_input.c @@ -304,6 +304,7 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) if (w->frame_no > 15){ uint8 colour = ColourMapA[w->colours[1]].mid_light; + // TODO: palette index addition gfx_fill_rect(dpi, cursorX, y + 9, cursorX + width, y + 9, colour + 5); } @@ -406,7 +407,7 @@ static void draw_ime_composition(rct_drawpixelinfo * dpi, int cursorX, int curso int width = compositionWidth; int height = 10; - gfx_fill_rect(dpi, x - 1, y - 1, x + width + 1, y + height + 1, 12); - gfx_fill_rect(dpi, x, y, x + width, y + height, 0); + gfx_fill_rect(dpi, x - 1, y - 1, x + width + 1, y + height + 1, PALETTE_INDEX_12); + gfx_fill_rect(dpi, x, y, x + width, y + height, PALETTE_INDEX_0); gfx_draw_string(dpi, gTextInputComposition, COLOUR_DARK_GREEN, x, y); } diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 4b4b481c35..574fd0bf0f 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -413,7 +413,7 @@ static void window_track_list_paint(rct_window *w, rct_drawpixelinfo *dpi) return; } - rct_g1_element *substituteElement = &g1Elements[0]; + rct_g1_element *substituteElement = &g1Elements[SPR_TEMP]; rct_g1_element tmpElement = *substituteElement; substituteElement->offset = _trackDesignPreviewPixels + (_currentTrackPieceDirection * TRACK_PREVIEW_IMAGE_SIZE); substituteElement->width = 370; diff --git a/src/openrct2/windows/track_place.c b/src/openrct2/windows/track_place.c index 7854e9b4f3..628ba4fc82 100644 --- a/src/openrct2/windows/track_place.c +++ b/src/openrct2/windows/track_place.c @@ -455,7 +455,7 @@ static void window_track_place_paint(rct_window *w, rct_drawpixelinfo *dpi) // Draw mini tile preview rct_drawpixelinfo clippedDpi; if (clip_drawpixelinfo(&clippedDpi, dpi, w->x + 4, w->y + 18, 168, 78)) { - rct_g1_element *substituteElement = &g1Elements[0]; + rct_g1_element *substituteElement = &g1Elements[SPR_TEMP]; rct_g1_element tmpElement = *substituteElement; substituteElement->offset = _window_track_place_mini_preview; substituteElement->width = TRACK_MINI_PREVIEW_WIDTH; From ab75b8db8496636cfc486cd46ec34cc92bb1a6f6 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 20 May 2017 23:59:51 +0200 Subject: [PATCH 108/670] Properly check separate flags when scanning objects and building track list, fixes #3681 --- distribution/changelog.txt | 1 + src/openrct2/object/RideObject.cpp | 3 +- src/openrct2/ride/TrackDesignRepository.cpp | 50 +++++++++++++++++++-- 3 files changed, 48 insertions(+), 6 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index de9b6b7c50..4909f67104 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.0.8 (in development) ------------------------------------------------------------------------ +- Fix: [#3681] Steel Twister rollercoaster always shows all track designs - Fix: Track components added by OpenRCT2 are now usable in older scenarios. 0.0.7 (2017-05-03) diff --git a/src/openrct2/object/RideObject.cpp b/src/openrct2/object/RideObject.cpp index c07a20fff6..e11373a323 100644 --- a/src/openrct2/object/RideObject.cpp +++ b/src/openrct2/object/RideObject.cpp @@ -405,8 +405,7 @@ void RideObject::SetRepositoryItem(ObjectRepositoryItem * item) const } uint8 flags = 0; - if ((_legacyType.flags & RIDE_ENTRY_FLAG_SEPARATE_RIDE_NAME) && - !rideTypeShouldLoseSeparateFlag(&_legacyType)) + if (_legacyType.flags & RIDE_ENTRY_FLAG_SEPARATE_RIDE) { flags |= ORI_RIDE_FLAG_SEPARATE; } diff --git a/src/openrct2/ride/TrackDesignRepository.cpp b/src/openrct2/ride/TrackDesignRepository.cpp index 922713daa3..82c2a24bf1 100644 --- a/src/openrct2/ride/TrackDesignRepository.cpp +++ b/src/openrct2/ride/TrackDesignRepository.cpp @@ -17,6 +17,7 @@ #include #include #include +#include "../config/Config.h" #include "../core/Collections.hpp" #include "../core/Console.hpp" #include "../core/File.h" @@ -24,6 +25,8 @@ #include "../core/FileStream.hpp" #include "../core/Path.hpp" #include "../core/String.hpp" +#include "../object/ObjectRepository.h" +#include "../object/RideObject.h" #include "../PlatformEnvironment.h" #include "TrackDesignRepository.h" @@ -90,13 +93,32 @@ public: return _items.size(); } + /** + * + * @param rideType + * @param entry The entry name to count the track list of. Leave empty to count track list for the non-separated types (e.g. Hyper-Twister, Car Ride) + * @return + */ size_t GetCountForObjectEntry(uint8 rideType, const std::string &entry) const override { size_t count = 0; + IObjectRepository * repo = GetObjectRepository(); + for (const auto item : _items) { - if (item.RideType == rideType && - (entry.empty() || String::Equals(item.ObjectEntry, entry, true))) + if (item.RideType != rideType) + continue; + + bool entryIsNotSeparate = false; + if (entry.empty()) + { + const ObjectRepositoryItem * ori = repo->FindObject(item.ObjectEntry.c_str()); + + if (gConfigInterface.select_by_track_type || !(ori->RideFlags & ORI_RIDE_FLAG_SEPARATE)) + entryIsNotSeparate = true; + } + + if (entryIsNotSeparate || String::Equals(item.ObjectEntry, entry, true)) { count++; } @@ -104,13 +126,33 @@ public: return count; } + /** + * + * @param outRefs + * @param rideType + * @param entry The entry name to build a track list for. Leave empty to build track list for the non-separated types (e.g. Hyper-Twister, Car Ride) + * @return + */ size_t GetItemsForObjectEntry(track_design_file_ref * * outRefs, uint8 rideType, const std::string &entry) const override { std::vector refs; + IObjectRepository * repo = GetObjectRepository(); + for (const auto item : _items) { - if (item.RideType == rideType && - (entry.empty() || String::Equals(item.ObjectEntry, entry, true))) + if (item.RideType != rideType) + continue; + + bool entryIsNotSeparate = false; + if (entry.empty()) + { + const ObjectRepositoryItem * ori = repo->FindObject(item.ObjectEntry.c_str()); + + if (gConfigInterface.select_by_track_type || !(ori->RideFlags & ORI_RIDE_FLAG_SEPARATE)) + entryIsNotSeparate = true; + } + + if (entryIsNotSeparate || String::Equals(item.ObjectEntry, entry, true)) { track_design_file_ref ref; ref.name = String::Duplicate(GetNameFromTrackPath(item.Path)); From 493bb6245742fe98c6feb1bbe0bb27abe037ec0b Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Mon, 22 May 2017 13:14:00 +0100 Subject: [PATCH 109/670] Guard against null pointer in macos_str_decomp_to_precomp() --- src/openrct2/platform/macos.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/platform/macos.m b/src/openrct2/platform/macos.m index 07a5049d06..97c1e74a7e 100644 --- a/src/openrct2/platform/macos.m +++ b/src/openrct2/platform/macos.m @@ -137,6 +137,10 @@ utf8* macos_str_decomp_to_precomp(utf8 *input) { @autoreleasepool { + if (input == NULL) { + return NULL; + } + NSString *inputDecomp = [NSString stringWithUTF8String:input]; return strdup([inputDecomp.precomposedStringWithCanonicalMapping cStringUsingEncoding:NSUTF8StringEncoding]); } From 0728e6869bc40acb72b161996af8ee80eae7d952 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Tue, 23 May 2017 04:00:22 +0000 Subject: [PATCH 110/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/ko-KR.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/language/ko-KR.txt b/data/language/ko-KR.txt index 623608ec46..4e7a312eb7 100644 --- a/data/language/ko-KR.txt +++ b/data/language/ko-KR.txt @@ -2389,7 +2389,7 @@ STR_2380 :{SMALLFONT}{BLACK}물 편집 크기 줄이기 STR_2381 :{SMALLFONT}{BLACK}물 편집 크기 늘이기 STR_2382 :땅 STR_2383 :물 -STR_2384 :{WINDOW_COLOUR_2}대상: +STR_2384 :{WINDOW_COLOUR_2}목표: STR_2385 :{BLACK}없음 STR_2386 :{BLACK}공원에 최소 {COMMA16}명 이상의 손님을 {MONTHYEAR}까지 유치하고, 공원 등급을 600 이상으로 유지하세요 STR_2387 :{BLACK}최소 {POP16}{POP16}{CURRENCY} 이상의 공원 가치를 {PUSH16}{PUSH16}{PUSH16}{MONTHYEAR}까지 달성하세요 From 2f9f6132015550a9b974a8d9c5598ccb6bb97245 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Tue, 23 May 2017 08:30:13 +0100 Subject: [PATCH 111/670] Fix #3178: Precompose file name strings on macOS to prevent mojibake when displayed * Precompose file name strings on macOS to prevent mojibake when displayed * Ensure decomp-to-precomp string replacement is handled safely * Add macOS non-ASCII handling to changelog; add comments to relevant block * Fix #ifdef alignment * Fix comment alignment --- distribution/changelog.txt | 1 + src/openrct2/platform/posix.c | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 4909f67104..491bed7d59 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.0.8 (in development) ------------------------------------------------------------------------ +- Fix: [#3178, #5456] Paths with non-ASCII characters not handled properly on macOS. - Fix: [#3681] Steel Twister rollercoaster always shows all track designs - Fix: Track components added by OpenRCT2 are now usable in older scenarios. diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index b0678be14f..7f41b447fd 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -391,6 +391,17 @@ sint32 platform_enumerate_files_begin(const utf8 *pattern) safe_strcpy(paths[idx], dir_name, path_len); safe_strcat_path(paths[idx], d->d_name, path_len); log_verbose("paths[%d] = %s", idx, paths[idx]); + +// macOS uses decomposed Unicode strings (e.g. an 'e' and a combining accent) in filenames +// This causes problems with the sprite font, as the font only contains precomposed characters +// The block below converts all filename strings to their precomposed form, preventing mojibake +#ifdef __MACOSX__ + utf8* precomp_path = macos_str_decomp_to_precomp(paths[idx]); + size_t precomp_len = sizeof(utf8) * min(MAX_PATH, strnlen(precomp_path, MAX_PATH) + 2); + paths[idx] = malloc(precomp_len); + safe_strcpy(paths[idx], precomp_path, precomp_len); + log_verbose("macOS decomp-to-precomp fix - paths[%d] = %s", idx, paths[idx]); +#endif } enumFileInfo->handle = 0; enumFileInfo->active = 1; @@ -798,12 +809,12 @@ time_t platform_file_get_modified_time(const utf8* path){ } uint8 platform_get_locale_temperature_format(){ - // LC_MEASUREMENT is GNU specific. - #ifdef LC_MEASUREMENT +// LC_MEASUREMENT is GNU specific. +#ifdef LC_MEASUREMENT const char *langstring = setlocale(LC_MEASUREMENT, ""); - #else +#else const char *langstring = setlocale(LC_ALL, ""); - #endif +#endif if(langstring != NULL){ if (!fnmatch("*_US*", langstring, 0) || From dabaddd4cf5084fff0f31006743aec2c0544425f Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Fri, 26 May 2017 04:00:23 +0000 Subject: [PATCH 112/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/nl-NL.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index feaa1c3238..3f0dd44291 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -1800,7 +1800,7 @@ STR_1796 :Is defect en moet worden gerepareerd STR_1797 :Deze optie kan niet worden aangepast bij deze attractie STR_1798 :Draaikolk STR_1799 :{POP16}{POP16}{POP16}{POP16}{POP16}{CURRENCY2DP} -STR_1800 :Veiligheidsvergrendeling +STR_1800 :Noodstop STR_1801 :Veiligheidsbeugel gaat niet open STR_1802 :Veiligheidsbeugel gaat niet dicht STR_1803 :Deuren gaan niet open @@ -5910,7 +5910,7 @@ STR_DESC :Omgekeerde achtbaantrein bestaande uit karretjes in de vorm van een STR_CPTY :4 passagiers per karretje [VEKVAMP] -STR_NAME :Karretjes zonder bodem +STR_NAME :Karretjes zonder vloer STR_DESC :Omgekeerde achtbaantrein bestaande uit stoeltjesliftachtige karretjes die vrijuit kunnen schommelen als de trein door een bocht gaat. STR_CPTY :2 passagiers per karretje @@ -6179,8 +6179,8 @@ STR_DESC :Passagiers staan in de brede achtbaantrein met speciaal ontworpen b STR_CPTY :4 passagiers per karretje [BMFL] -STR_NAME :Achtbaan zonder bodem -STR_DESC :Brede achtbaantreinen zonder bodem, die de passagiers het gevoel geeft in de open lucht te zijn terwijl ze langs de kronkelende baan en door meerdere omkeringen glijden. +STR_NAME :Achtbaan zonder vloer +STR_DESC :Brede achtbaantreinen zonder vloer, die de passagiers het gevoel geeft in de open lucht te zijn terwijl ze langs de kronkelende baan en door meerdere omkeringen glijden. STR_CPTY :4 passagiers per karretje [GOLTR] From a64e08f997eb86350bf7c1196635b99dd28932c7 Mon Sep 17 00:00:00 2001 From: Daniel Kamil Kozar Date: Fri, 26 May 2017 15:58:54 +0200 Subject: [PATCH 113/670] Don't flash the white frame around network status windows This commit turns off the white border for all network status windows. This is mostly evident when downloading a map from the server before starting a multiplayer game, as the window is repeatedly brought to the front with a white border. This results in needlessly flashing the border, since window_network_status_open is called for every chunk of data received from the network socket. --- src/openrct2/interface/window.c | 9 +++++++-- src/openrct2/interface/window.h | 1 + src/openrct2/windows/network_status.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 2b349e541b..a675cc5398 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -1168,13 +1168,13 @@ rct_window *window_bring_to_front(rct_window *w) return w; } -rct_window *window_bring_to_front_by_class(rct_windowclass cls) +rct_window *window_bring_to_front_by_class_with_flags(rct_windowclass cls, uint16 flags) { rct_window* w; w = window_find_by_class(cls); if (w != NULL) { - w->flags |= WF_WHITE_BORDER_MASK; + w->flags |= flags; window_invalidate(w); w = window_bring_to_front(w); } @@ -1182,6 +1182,11 @@ rct_window *window_bring_to_front_by_class(rct_windowclass cls) return w; } +rct_window *window_bring_to_front_by_class(rct_windowclass cls) +{ + return window_bring_to_front_by_class_with_flags(cls, WF_WHITE_BORDER_MASK); +} + /** * * rct2: 0x006ED78A diff --git a/src/openrct2/interface/window.h b/src/openrct2/interface/window.h index 78e30f0965..5b15a8a3da 100644 --- a/src/openrct2/interface/window.h +++ b/src/openrct2/interface/window.h @@ -633,6 +633,7 @@ sint32 window_get_scroll_data_index(rct_window *w, rct_widgetindex widget_index) rct_window *window_bring_to_front(rct_window *w); rct_window *window_bring_to_front_by_class(rct_windowclass cls); +rct_window *window_bring_to_front_by_class_with_flags(rct_windowclass cls, uint16 flags); rct_window *window_bring_to_front_by_number(rct_windowclass cls, rct_windownumber number); void window_push_others_right(rct_window *w); diff --git a/src/openrct2/windows/network_status.c b/src/openrct2/windows/network_status.c index 5f5342e2f4..9408dd2e88 100644 --- a/src/openrct2/windows/network_status.c +++ b/src/openrct2/windows/network_status.c @@ -84,7 +84,7 @@ void window_network_status_open(const char* text, close_callback onClose) safe_strcpy(window_network_status_text, text, sizeof(window_network_status_text)); // Check if window is already open - rct_window *window = window_bring_to_front_by_class(WC_NETWORK_STATUS); + rct_window *window = window_bring_to_front_by_class_with_flags(WC_NETWORK_STATUS, 0); if (window != NULL) return; From bed408ef3f9511ae96abeb0d7411c62995f2f6e3 Mon Sep 17 00:00:00 2001 From: ceeac Date: Fri, 26 May 2017 09:39:08 +0200 Subject: [PATCH 114/670] Fix memory leak when loading title sequence. The buffer for loading the title sequence script was allocated but not free'd --- src/openrct2/title/TitleSequence.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/openrct2/title/TitleSequence.cpp b/src/openrct2/title/TitleSequence.cpp index 786235e98b..887b0dff8c 100644 --- a/src/openrct2/title/TitleSequence.cpp +++ b/src/openrct2/title/TitleSequence.cpp @@ -54,7 +54,7 @@ extern "C" TitleSequence * LoadTitleSequence(const utf8 * path) { size_t scriptLength; - char * script; + utf8 * script; std::vector saves; bool isZip; @@ -70,7 +70,7 @@ extern "C" return nullptr; } - script = (char *)zip->GetFileData("script.txt", &scriptLength); + script = (utf8 *)zip->GetFileData("script.txt", &scriptLength); if (script == nullptr) { Console::Error::WriteLine("Unable to open script.txt in '%s'", path); @@ -88,7 +88,7 @@ extern "C" utf8 scriptPath[MAX_PATH]; String::Set(scriptPath, sizeof(scriptPath), path); Path::Append(scriptPath, sizeof(scriptPath), "script.txt"); - script = (char *)ReadScriptFile(scriptPath, &scriptLength); + script = (utf8 *)ReadScriptFile(scriptPath, &scriptLength); if (script == nullptr) { Console::Error::WriteLine("Unable to open '%s'", scriptPath); @@ -100,6 +100,7 @@ extern "C" } std::vector commands = LegacyScriptRead(script, scriptLength, saves); + Memory::Free(script); TitleSequence * seq = CreateTitleSequence(); seq->Name = Path::GetFileNameWithoutExtension(path); From daeeb5f827fc6deb2bbcbeaa34aadc81e9871610 Mon Sep 17 00:00:00 2001 From: ceeac Date: Fri, 26 May 2017 09:49:22 +0200 Subject: [PATCH 115/670] Fix memory leak when adding title sequence. The constructor of std::string already duplicates the string. --- src/openrct2/title/TitleSequenceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/title/TitleSequenceManager.cpp b/src/openrct2/title/TitleSequenceManager.cpp index d5efdadb8f..7d32825cb3 100644 --- a/src/openrct2/title/TitleSequenceManager.cpp +++ b/src/openrct2/title/TitleSequenceManager.cpp @@ -267,7 +267,7 @@ namespace TitleSequenceManager if (item.PredefinedIndex != PREDEFINED_INDEX_CUSTOM) { rct_string_id stringId = PredefinedSequences[item.PredefinedIndex].StringId; - item.Name = String::Duplicate(language_get_string(stringId)); + item.Name = language_get_string(stringId); } item.IsZip = isZip; _items.push_back(item); From f58d7119818a939437bdf22b66af43a48af2ebb4 Mon Sep 17 00:00:00 2001 From: ceeac Date: Fri, 26 May 2017 10:04:13 +0200 Subject: [PATCH 116/670] Fix memory leak in Path::getDirectory. --- src/openrct2/core/Path.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 0b3f9f5c96..849b78a50d 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -44,7 +44,10 @@ namespace Path std::string GetDirectory(const std::string &path) { - return GetDirectory(path.c_str()); + const utf8* directory = GetDirectory(path.c_str()); + std::string result(directory); + Memory::Free(directory); + return result; } utf8 * GetDirectory(const utf8 * path) From eeac5818573f8350e812044cd5103d0ca4c4e64e Mon Sep 17 00:00:00 2001 From: ceeac Date: Fri, 26 May 2017 10:24:22 +0200 Subject: [PATCH 117/670] Fix memory leak when closing Title Sequence handle. The handle is now invalid after calling TitleSequenceCloseParkHandle(). --- src/openrct2/title/TitleSequence.cpp | 1 + src/openrct2/title/TitleSequence.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/openrct2/title/TitleSequence.cpp b/src/openrct2/title/TitleSequence.cpp index 887b0dff8c..0c82dae072 100644 --- a/src/openrct2/title/TitleSequence.cpp +++ b/src/openrct2/title/TitleSequence.cpp @@ -166,6 +166,7 @@ extern "C" { Memory::Free(handle->HintPath); delete ((IStream *)handle->Stream); + Memory::Free(handle); } } diff --git a/src/openrct2/title/TitleSequence.h b/src/openrct2/title/TitleSequence.h index 259d2354fd..6c1ed64858 100644 --- a/src/openrct2/title/TitleSequence.h +++ b/src/openrct2/title/TitleSequence.h @@ -88,6 +88,11 @@ extern "C" void FreeTitleSequence(TitleSequence * seq); TitleSequenceParkHandle * TitleSequenceGetParkHandle(TitleSequence * seq, size_t index); + + /** + * Close a title sequence park handle. + * The pointer to the handle is invalid after calling this function. + */ void TitleSequenceCloseParkHandle(TitleSequenceParkHandle * handle); bool TileSequenceSave(TitleSequence * seq); bool TileSequenceAddPark(TitleSequence * seq, const utf8 * path, const utf8 * name); From e3fc430bfce46d5795e8e8d446164bf2d236fb29 Mon Sep 17 00:00:00 2001 From: ceeac Date: Fri, 26 May 2017 10:51:35 +0200 Subject: [PATCH 118/670] Add myself to contributors --- contributors.md | 1 + 1 file changed, 1 insertion(+) diff --git a/contributors.md b/contributors.md index db7f1bd1a6..ef6ceb7565 100644 --- a/contributors.md +++ b/contributors.md @@ -77,6 +77,7 @@ Includes all git commit authors. Aliases are GitHub user names. * Jake Breen (Haekb) * Marco Benzi Tobar (Lisergishnu) * Richard Jenkins (rwjuk) +* (ceeac) ## Toolchain * (Balletie) - macOS From 26196c62c3467c8542fc193f953613bbb4ab6ef6 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Sun, 28 May 2017 04:00:23 +0000 Subject: [PATCH 119/670] Merge Localisation/master into OpenRCT2/develop. --- data/language/it-IT.txt | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/data/language/it-IT.txt b/data/language/it-IT.txt index c9c908c65a..6945a00499 100644 --- a/data/language/it-IT.txt +++ b/data/language/it-IT.txt @@ -75,7 +75,7 @@ STR_0070 :Giga Coaster STR_0071 :Roto-Drop STR_0072 :Flying Saucers STR_0073 :Casa distorta -STR_0074 :Monorail Cycles +STR_0074 :Biciclette su monorotaia STR_0075 :Ottovolante invertito compatto STR_0076 :Attrazione acquatica STR_0077 :Ottovolante verticale ad aria @@ -526,16 +526,16 @@ STR_0521 :Un ottovolante veloce e snodato con curve strette e discese ripide. STR_0522 :Un piccolo ottovolante dove i passeggeri siedono sopra al percorso senza un vagone attorno STR_0523 :I passeggeri viaggiano lentamente su veicoli elettrici lungo un percorso basato su un circuito STR_0524 :I carrelli sono lanciati pneumaticamente su un'alta torre di acciaio e poi sono lasciati cadere liberamente -STR_0525 :Riders career down a twisting track guided only by the curvature and banking of the semi-circular track +STR_0525 :I passeggeri viaggiano lungo un percorso tortuoso, guidati soltanto dalle curvature e dalle inclinazioni del tracciato semi-circolare STR_0526 :I passeggeri viaggiano in una cabina di osservazione rotante mentre salgono su un'alta torre STR_0527 :Un rapido ottovolante d'acciaio caratterizzato da cadute verticali -STR_0528 :Riders travel in inflatable dinghies down a twisting semi-circular or completely enclosed tube track +STR_0528 :I passeggeri viaggiano su canotti gonfiabili lungo un tortuoso percorso a forma di tubo, dalla sezione completamente chiusa o semi-circolare STR_0529 :Il treno della miniera è una montagna russa a tema fatta in acciaio realizzata per ricordare una vecchia ferrovia STR_0530 :Le carrozze pendono da un cavo d'acciaio che fa avanti e indietro per tutto il tracciato -STR_0531 :A compact steel-tracked roller coaster where the train travels through corkscrews and loops +STR_0531 :Un ottovolante compatto su un tracciato d'acciaio nel quale i treni viaggiano lungo avvitamenti e inversioni STR_0532 : STR_0533 : -STR_0534 :Go-kart guidati con motore a benzina +STR_0534 :Go-kart a motore a benzina guidati dai visitatori STR_0535 :Delle barche a forma di tronchi viaggiano lungo un canale d'acqua, schizzando i passeggeri mentre volano giù per ripide discese STR_0536 :Delle barche rotonde scorrono lungo un largo canale d'acqua, schizzando attraverso cascate e spaventando i passeggeri con delle rapide schiumose STR_0537 : @@ -557,14 +557,14 @@ STR_0552 : STR_0553 : STR_0554 :La carrozza acquista velocità a partire dalla stazione attraverso un lungo tratto pianeggiante grazie a dei motori a induzione lineare, quindi percorre una salita ripida per poi scendere in caduta libera e tornare alla stazione STR_0555 :Gli ospiti della attrazione usano l'ascensore su una torre verticale per andare da un livello all'altro -STR_0556 :Extra-wide cars descend completely vertical sloped track for the ultimate freefall roller coaster experience +STR_0556 :Carrelli molto larghi discendono lungo un percorso completamente verticale, per far vivere un'incredibile esperienza di caduta libera STR_0557 : STR_0558 : STR_0559 : STR_0560 : STR_0561 : -STR_0562 :Powered cars travel along a multi-level track past spooky scenery and special effects -STR_0563 :Seduti comodamente - il solo limite è che si può effettuare un solo giro alla volta - i passeggeri sperimentano dolci discese e numerose curve, sperimentando una piacevole sensazione di assenza di peso +STR_0562 :Carrelli a motore viaggiano lungo un tracciato su più livelli attraversando scenari spaventosi ed effetti speciali +STR_0563 :Seduti comodamente - il solo limite è che si può effettuare un solo giro alla volta - i passeggeri sperimentano dolci discese e numerose curve, provando una piacevole sensazione di assenza di peso STR_0564 :Quest'attrazione, in cui si viaggia lungo un tracciato di legno, è veloce, ricca di imprevisti, rumorosa e dà al passeggero la sensazione di essere senza controllo, oltre che quella di una grande libertà STR_0565 :Un semplice ottovolante di legno, adatto solo a curve e declivi lenti, in cui le carrozze sono tenute in pista solo dalla frizione delle ruote sui i bordi della pista e dalla gravità STR_0566 :Carrozze individuali sfrecciano per uno stretto percorso a zig-zag con curve molto strette e corte e ripide discese @@ -572,21 +572,21 @@ STR_0567 :Seduti su sedili sospesi a entrambi i lati del tracciato, i passegg STR_0568 : STR_0569 :I passeggeri, cinti da speciali imbracature al di sotto il tracciato, sperimentano la sensazione del volo quando vengono fatti oscillare nell'aria STR_0570 : -STR_0571 :Circular cars spin around as they travel along the zig-zagging wooden track -STR_0572 :Large capacity boats travel along a wide water channel, propelled up slopes by a conveyer belt, accelerating down steep slopes to soak the riders with a gaint splash -STR_0573 :Powered helicoper shaped cars running on a steel track, controlled by the pedalling of the riders -STR_0574 :Riders are held in special harnesses in a lying-down position, travlling through twisted track and inversions either on their backs or facing the ground +STR_0571 :Carrelli circolari ruotano su sé stessi mentre viaggiano lungo il percorso di legno a zig-zag +STR_0572 :Barche molto capienti viaggiano lungo un ampio canale d'acqua, trasportate in salita da una catena e lasciate accelerare lungo rapide discese in modo da bagnare i passeggeri con un grande spruzzo +STR_0573 :Carrelli a motore a forma di elicottero viaggiano lungo un percorso di acciaio, controllati dai pedali dei passeggeri +STR_0574 :I passeggeri, mantenuti orizzontali tramite uno speciale sistema di ritenuta, viaggiano lungo un tracciato tortuoso e numerose inversioni, sia supini che rivolti verso il terreno STR_0575 :Dei treni elettrici sospesi sotto una singola rotaia trasportano i passeggeri per tutto il parco STR_0576 : -STR_0577 :Bogied cars run on wooden tracks, turning around on special reversing sections +STR_0577 :Carrelli corrono lungo tracciati di legno, ruotando su sé stessi in speciali sezioni di inversione STR_0578 :Le carrozze corrono per il tracciato caratterizzato da vari giri, ripide discese e curve ondulanti STR_0579 : -STR_0580 :A giant steel roller coaster capable of smooth drops and hills of over 300ft +STR_0580 :Un gigante ottovolante di acciaio in grado di offrire morbide cadute e risalite a più di 90 metri di altezza STR_0581 :Un anello di sedie è posizionato in cima alla torre mentre ruota piano, quindi precipita fermandosi gentilmente alla base tramite freni magnetici STR_0582 : STR_0583 : -STR_0584 :Special bicycles run on a steel monorail track, propelled by the pedalling of the riders -STR_0585 :Riders sit in pairs of seats suspended beneath the track as they loop and twist through tight inversions +STR_0584 :Speciali biciclette viaggiano lungo un percorso a monorotaia di acciaio, spinte soltanto dalle pedalate dei passeggeri +STR_0585 :I passeggeri viaggiano su coppie di sedili sospesi sotto al percorso, mentre viaggiano attraverso numerose inversioni e inclinazioni STR_0586 :Carrozze a forma di barca viaggiano lungo l'ottovolante, caratterizzato da ripide discese, curve avvitate e tuffi in sezioni acquatiche più tranquille. STR_0587 :After an exhilarating air-powered launch, the train speeds up a vertical track, over the top, and vertically down the other side to return to the station STR_0588 :Individual cars run beneath a zig-zagging track with hairpin turns and sharp drops From eaf93430d524bcbe2b0acf194d462c4d334fa7c2 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sun, 28 May 2017 19:49:32 +0200 Subject: [PATCH 120/670] Remove some string additions --- src/openrct2/interface/console.c | 6 ++-- src/openrct2/peep/staff.c | 14 ++++++++++ src/openrct2/peep/staff.h | 5 +++- src/openrct2/ride/ride_data.c | 40 +++++++++++++++++++++++++++ src/openrct2/ride/ride_data.h | 2 ++ src/openrct2/windows/ride.c | 40 --------------------------- src/openrct2/windows/staff.c | 18 ++---------- src/openrct2/windows/tile_inspector.c | 3 +- 8 files changed, 67 insertions(+), 61 deletions(-) diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 6e7f8e42e2..6a296a9d4d 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -34,6 +34,7 @@ #include "../platform/platform.h" #include "../rct2.h" #include "../ride/ride.h" +#include "../ride/ride_data.h" #include "../util/sawyercoding.h" #include "../util/util.h" #include "../Version.h" @@ -43,7 +44,6 @@ #include "../world/scenery.h" #include "console.h" #include "viewport.h" -#include "window.h" #define CONSOLE_BUFFER_SIZE 8192 #define CONSOLE_BUFFER_2_SIZE 256 @@ -463,7 +463,7 @@ static sint32 cc_rides(const utf8 **argv, sint32 argc) console_printf("Ride modes are specified using integer IDs as given below:"); for (sint32 i = 0; i < RIDE_MODE_COUNT; i++) { char mode_name[128] = { 0 }; - rct_string_id mode_string_id = STR_RIDE_MODE_NORMAL + i; + rct_string_id mode_string_id = RideModeNames[i]; format_string(mode_name, 128, mode_string_id, 0); console_printf("%02d - %s", i, mode_name); } @@ -643,7 +643,7 @@ static sint32 cc_staff(const utf8 **argv, sint32 argc) console_printf("staff set costume "); for (sint32 i = 0; i < ENTERTAINER_COSTUME_COUNT; i++) { char costume_name[128] = { 0 }; - rct_string_id costume = STR_STAFF_OPTION_COSTUME_PANDA + i; + rct_string_id costume = StaffCostumeNames[i]; format_string(costume_name, 128, STR_DROPDOWN_MENU_LABEL, &costume); // That's a terrible hack here. Costume names include inline sprites // that don't work well with the console, so manually skip past them. diff --git a/src/openrct2/peep/staff.c b/src/openrct2/peep/staff.c index 00f8f851fe..1fcc42e2f2 100644 --- a/src/openrct2/peep/staff.c +++ b/src/openrct2/peep/staff.c @@ -31,6 +31,20 @@ #include "peep.h" #include "staff.h" +const rct_string_id StaffCostumeNames[] = { + STR_STAFF_OPTION_COSTUME_PANDA, + STR_STAFF_OPTION_COSTUME_TIGER, + STR_STAFF_OPTION_COSTUME_ELEPHANT, + STR_STAFF_OPTION_COSTUME_ROMAN, + STR_STAFF_OPTION_COSTUME_GORILLA, + STR_STAFF_OPTION_COSTUME_SNOWMAN, + STR_STAFF_OPTION_COSTUME_KNIGHT, + STR_STAFF_OPTION_COSTUME_ASTRONAUT, + STR_STAFF_OPTION_COSTUME_BANDIT, + STR_STAFF_OPTION_COSTUME_SHERIFF, + STR_STAFF_OPTION_COSTUME_PIRATE, +}; + uint32 gStaffPatrolAreas[204 * 128]; uint8 gStaffModes[204]; uint16 gStaffDrawPatrolAreas; diff --git a/src/openrct2/peep/staff.h b/src/openrct2/peep/staff.h index c5d4e198ea..888434852c 100644 --- a/src/openrct2/peep/staff.h +++ b/src/openrct2/peep/staff.h @@ -57,9 +57,12 @@ enum ENTERTAINER_COSTUME { ENTERTAINER_COSTUME_BANDIT, ENTERTAINER_COSTUME_SHERIFF, ENTERTAINER_COSTUME_PIRATE, - ENTERTAINER_COSTUME_COUNT, + + ENTERTAINER_COSTUME_COUNT }; +extern const rct_string_id StaffCostumeNames[ENTERTAINER_COSTUME_COUNT]; + extern uint32 gStaffPatrolAreas[204 * 128]; extern uint8 gStaffModes[204]; extern uint16 gStaffDrawPatrolAreas; diff --git a/src/openrct2/ride/ride_data.c b/src/openrct2/ride/ride_data.c index ba3084d0ec..06f52590fd 100644 --- a/src/openrct2/ride/ride_data.c +++ b/src/openrct2/ride/ride_data.c @@ -3141,3 +3141,43 @@ const track_colour_preset_list RideColourPresets[] = { { COLOUR_YELLOW, COLOUR_YELLOW, COLOUR_SATURATED_GREEN }, ), }; + +const rct_string_id RideModeNames[] = { + STR_RIDE_MODE_NORMAL, + STR_RIDE_MODE_CONTINUOUS_CIRCUIT, + STR_RIDE_MODE_REVERSE_INCLINE_LAUNCHED_SHUTTLE, + STR_RIDE_MODE_POWERED_LAUNCH_PASSTROUGH, + STR_RIDE_MODE_SHUTTLE, + STR_RIDE_MODE_BOAT_HIRE, + STR_RIDE_MODE_UPWARD_LAUNCH, + STR_RIDE_MODE_ROTATING_LIFT, + STR_RIDE_MODE_STATION_TO_STATION, + STR_RIDE_MODE_SINGLE_RIDE_PER_ADMISSION, + STR_RIDE_MODE_UNLIMITED_RIDES_PER_ADMISSION, + STR_RIDE_MODE_MAZE, + STR_RIDE_MODE_RACE, + STR_RIDE_MODE_DODGEMS, + STR_RIDE_MODE_SWING, + STR_RIDE_MODE_SHOP_STALL, + STR_RIDE_MODE_ROTATION, + STR_RIDE_MODE_FORWARD_ROTATION, + STR_RIDE_MODE_BACKWARD_ROTATION, + STR_RIDE_MODE_FILM_AVENGING_AVIATORS, + STR_RIDE_MODE_3D_FILM_MOUSE_TAILS, + STR_RIDE_MODE_SPACE_RINGS, + STR_RIDE_MODE_BEGINNERS, + STR_RIDE_MODE_LIM_POWERED_LAUNCH, + STR_RIDE_MODE_FILM_THRILL_RIDERS, + STR_RIDE_MODE_3D_FILM_STORM_CHASERS, + STR_RIDE_MODE_3D_FILM_SPACE_RAIDERS, + STR_RIDE_MODE_INTENSE, + STR_RIDE_MODE_BERSERK, + STR_RIDE_MODE_HAUNTED_HOUSE, + STR_RIDE_MODE_CIRCUS_SHOW, + STR_RIDE_MODE_DOWNWARD_LAUNCH, + STR_RIDE_MODE_CROOKED_HOUSE, + STR_RIDE_MODE_FREEFALL_DROP, + STR_RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED, + STR_RIDE_MODE_POWERED_LAUNCH, + STR_RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED_MODE, +}; diff --git a/src/openrct2/ride/ride_data.h b/src/openrct2/ride/ride_data.h index d7bbc001a9..6892fae400 100644 --- a/src/openrct2/ride/ride_data.h +++ b/src/openrct2/ride/ride_data.h @@ -180,4 +180,6 @@ extern const uint8 RideConstructionDefaultTrackType[RIDE_TYPE_COUNT]; extern const track_colour_preset_list RideColourPresets[RIDE_TYPE_COUNT]; +extern const rct_string_id RideModeNames[RIDE_MODE_COUNT]; + #endif diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index 35a2b2d813..90c77d8b33 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -1087,46 +1087,6 @@ static const rct_string_id MusicStyleNames[] = { STR_MUSIC_STYLE_CANDY_STYLE, }; -static const rct_string_id RideModeNames[] = { - STR_RIDE_MODE_NORMAL, - STR_RIDE_MODE_CONTINUOUS_CIRCUIT, - STR_RIDE_MODE_REVERSE_INCLINE_LAUNCHED_SHUTTLE, - STR_RIDE_MODE_POWERED_LAUNCH_PASSTROUGH, - STR_RIDE_MODE_SHUTTLE, - STR_RIDE_MODE_BOAT_HIRE, - STR_RIDE_MODE_UPWARD_LAUNCH, - STR_RIDE_MODE_ROTATING_LIFT, - STR_RIDE_MODE_STATION_TO_STATION, - STR_RIDE_MODE_SINGLE_RIDE_PER_ADMISSION, - STR_RIDE_MODE_UNLIMITED_RIDES_PER_ADMISSION, - STR_RIDE_MODE_MAZE, - STR_RIDE_MODE_RACE, - STR_RIDE_MODE_DODGEMS, - STR_RIDE_MODE_SWING, - STR_RIDE_MODE_SHOP_STALL, - STR_RIDE_MODE_ROTATION, - STR_RIDE_MODE_FORWARD_ROTATION, - STR_RIDE_MODE_BACKWARD_ROTATION, - STR_RIDE_MODE_FILM_AVENGING_AVIATORS, - STR_RIDE_MODE_3D_FILM_MOUSE_TAILS, - STR_RIDE_MODE_SPACE_RINGS, - STR_RIDE_MODE_BEGINNERS, - STR_RIDE_MODE_LIM_POWERED_LAUNCH, - STR_RIDE_MODE_FILM_THRILL_RIDERS, - STR_RIDE_MODE_3D_FILM_STORM_CHASERS, - STR_RIDE_MODE_3D_FILM_SPACE_RAIDERS, - STR_RIDE_MODE_INTENSE, - STR_RIDE_MODE_BERSERK, - STR_RIDE_MODE_HAUNTED_HOUSE, - STR_RIDE_MODE_CIRCUS_SHOW, - STR_RIDE_MODE_DOWNWARD_LAUNCH, - STR_RIDE_MODE_CROOKED_HOUSE, - STR_RIDE_MODE_FREEFALL_DROP, - STR_RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED, - STR_RIDE_MODE_POWERED_LAUNCH, - STR_RIDE_MODE_POWERED_LAUNCH_BLOCK_SECTIONED_MODE, -}; - typedef struct window_ride_maze_design_option { rct_string_id text; uint32 sprite; diff --git a/src/openrct2/windows/staff.c b/src/openrct2/windows/staff.c index db408c4af4..e53893f5dd 100644 --- a/src/openrct2/windows/staff.c +++ b/src/openrct2/windows/staff.c @@ -290,20 +290,6 @@ uint32 window_staff_page_enabled_widgets[] = { (1 << WIDX_TAB_3) }; -static const uint32 staffCostumeNames[] = { - STR_STAFF_OPTION_COSTUME_PANDA, - STR_STAFF_OPTION_COSTUME_TIGER, - STR_STAFF_OPTION_COSTUME_ELEPHANT, - STR_STAFF_OPTION_COSTUME_ROMAN, - STR_STAFF_OPTION_COSTUME_GORILLA, - STR_STAFF_OPTION_COSTUME_SNOWMAN, - STR_STAFF_OPTION_COSTUME_KNIGHT, - STR_STAFF_OPTION_COSTUME_ASTRONAUT, - STR_STAFF_OPTION_COSTUME_BANDIT, - STR_STAFF_OPTION_COSTUME_SHERIFF, - STR_STAFF_OPTION_COSTUME_PIRATE, -}; - static uint8 _availableCostumes[ENTERTAINER_COSTUME_COUNT]; /** @@ -805,7 +791,7 @@ void window_staff_options_invalidate(rct_window *w) window_staff_options_widgets[WIDX_CHECKBOX_4].type = WWT_EMPTY; window_staff_options_widgets[WIDX_COSTUME_BOX].type = WWT_DROPDOWN; window_staff_options_widgets[WIDX_COSTUME_BTN].type = WWT_DROPDOWN_BUTTON; - window_staff_options_widgets[WIDX_COSTUME_BOX].text = staffCostumeNames[peep->sprite_type - 4]; + window_staff_options_widgets[WIDX_COSTUME_BOX].text = StaffCostumeNames[peep->sprite_type - 4]; break; case STAFF_TYPE_HANDYMAN: window_staff_options_widgets[WIDX_CHECKBOX_1].type = WWT_CHECKBOX; @@ -1309,7 +1295,7 @@ void window_staff_options_mousedown(rct_widgetindex widgetIndex, rct_window* w, if (costume == peep->sprite_type) { itemsChecked = 1 << i; } - gDropdownItemsArgs[i] = staffCostumeNames[costume]; + gDropdownItemsArgs[i] = StaffCostumeNames[costume]; gDropdownItemsFormat[i] = STR_DROPDOWN_MENU_LABEL; } diff --git a/src/openrct2/windows/tile_inspector.c b/src/openrct2/windows/tile_inspector.c index f83c9e9d3c..9bfa02b84a 100644 --- a/src/openrct2/windows/tile_inspector.c +++ b/src/openrct2/windows/tile_inspector.c @@ -21,6 +21,7 @@ #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" +#include "../ride/ride_data.h" #include "../ride/track.h" #include "../sprites.h" #include "../world/footpath.h" @@ -1712,7 +1713,7 @@ static void window_tile_inspector_paint(rct_window *w, rct_drawpixelinfo *dpi) // Ride sint16 rideId = mapElement->properties.track.ride_index; rct_ride *ride = get_ride(rideId); - rct_string_id rideType = STR_RIDE_NAME_SPIRAL_ROLLER_COASTER + ride->type; + rct_string_id rideType = RideNaming[ride->type].name; gfx_draw_string_left(dpi, STR_TILE_INSPECTOR_TRACK_RIDE_TYPE, &rideType, COLOUR_DARK_GREEN, x, y); gfx_draw_string_left(dpi, STR_TILE_INSPECTOR_TRACK_RIDE_ID, &rideId, COLOUR_DARK_GREEN, x, y + 11); set_format_arg(0, rct_string_id, ride->name); From 3d50ab56c8b827ceba04d8b5e2129eaebfb3e023 Mon Sep 17 00:00:00 2001 From: wolfreak99 Date: Mon, 29 May 2017 16:34:33 -0400 Subject: [PATCH 121/670] Support mouse dragging when selecting ride design scenery Define nearby scenery distance, support mouse dragging when selecting/deselecting ride design scenery --- distribution/changelog.txt | 1 + src/openrct2/ride/track_design.h | 2 +- src/openrct2/ride/track_design_save.c | 23 +++++++++++------- src/openrct2/windows/ride.c | 35 +++++++++++++++++++++++++-- 4 files changed, 49 insertions(+), 12 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 491bed7d59..034e8b4df3 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.0.8 (in development) ------------------------------------------------------------------------ +- Improved: Mouse can now be dragged to select scenery when saving track designs - Fix: [#3178, #5456] Paths with non-ASCII characters not handled properly on macOS. - Fix: [#3681] Steel Twister rollercoaster always shows all track designs - Fix: Track components added by OpenRCT2 are now usable in older scenarios. diff --git a/src/openrct2/ride/track_design.h b/src/openrct2/ride/track_design.h index e81389fea0..acaacdd581 100644 --- a/src/openrct2/ride/track_design.h +++ b/src/openrct2/ride/track_design.h @@ -232,7 +232,7 @@ void track_design_save_init(); void track_design_save_reset_scenery(); bool track_design_save_contains_map_element(rct_map_element *mapElement); void track_design_save_select_nearby_scenery(sint32 rideIndex); -void track_design_save_toggle_map_element(sint32 interactionType, sint32 x, sint32 y, rct_map_element *mapElement); +void track_design_save_select_map_element(sint32 interactionType, sint32 x, sint32 y, rct_map_element *mapElement, bool collect); bool track_design_save(uint8 rideIndex); bool track_design_save_to_file(const utf8 *path); diff --git a/src/openrct2/ride/track_design_save.c b/src/openrct2/ride/track_design_save.c index 6f90ad78a4..0170968fc5 100644 --- a/src/openrct2/ride/track_design_save.c +++ b/src/openrct2/ride/track_design_save.c @@ -31,6 +31,7 @@ #include "TrackDesignRepository.h" #define TRACK_MAX_SAVED_MAP_ELEMENTS 1500 +#define TRACK_NEARBY_SCENERY_DISTANCE 1 bool gTrackDesignSaveMode = false; uint8 gTrackDesignSaveRideIndex = 255; @@ -75,16 +76,20 @@ void track_design_save_init() * * rct2: 0x006D2B07 */ -void track_design_save_toggle_map_element(sint32 interactionType, sint32 x, sint32 y, rct_map_element *mapElement) +void track_design_save_select_map_element(sint32 interactionType, sint32 x, sint32 y, rct_map_element *mapElement, bool collect) { if (track_design_save_contains_map_element(mapElement)) { - track_design_save_remove_map_element(interactionType, x, y, mapElement); + if (!collect) { + track_design_save_remove_map_element(interactionType, x, y, mapElement); + } } else { - if (!track_design_save_add_map_element(interactionType, x, y, mapElement)) { - window_error_open( - STR_SAVE_TRACK_SCENERY_UNABLE_TO_SELECT_ADDITIONAL_ITEM_OF_SCENERY, - STR_SAVE_TRACK_SCENERY_TOO_MANY_ITEMS_SELECTED - ); + if (collect) { + if (!track_design_save_add_map_element(interactionType, x, y, mapElement)) { + window_error_open( + STR_SAVE_TRACK_SCENERY_UNABLE_TO_SELECT_ADDITIONAL_ITEM_OF_SCENERY, + STR_SAVE_TRACK_SCENERY_TOO_MANY_ITEMS_SELECTED + ); + } } } } @@ -593,8 +598,8 @@ static void track_design_save_select_nearby_scenery_for_tile(sint32 rideIndex, s { rct_map_element *mapElement; - for (sint32 y = cy - 1; y <= cy + 1; y++) { - for (sint32 x = cx - 1; x <= cx + 1; x++) { + for (sint32 y = cy - TRACK_NEARBY_SCENERY_DISTANCE; y <= cy + TRACK_NEARBY_SCENERY_DISTANCE; y++) { + for (sint32 x = cx - TRACK_NEARBY_SCENERY_DISTANCE; x <= cx + TRACK_NEARBY_SCENERY_DISTANCE; x++) { mapElement = map_get_first_element_at(x, y); do { sint32 interactionType = VIEWPORT_INTERACTION_ITEM_NONE; diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index 90c77d8b33..fd922195c2 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -584,6 +584,7 @@ static void window_ride_measurements_mousedown(rct_widgetindex widgetIndex, rct_ static void window_ride_measurements_dropdown(rct_window *w, rct_widgetindex widgetIndex, sint32 dropdownIndex); static void window_ride_measurements_update(rct_window *w); static void window_ride_measurements_tooldown(rct_window *w, rct_widgetindex widgetIndex, sint32 x, sint32 y); +static void window_ride_measurements_tooldrag(rct_window *w, rct_widgetindex widgetIndex, sint32 x, sint32 y); static void window_ride_measurements_toolabort(rct_window *w, rct_widgetindex widgetIndex); static void window_ride_measurements_invalidate(rct_window *w); static void window_ride_measurements_paint(rct_window *w, rct_drawpixelinfo *dpi); @@ -820,7 +821,7 @@ static rct_window_event_list window_ride_measurements_events = { NULL, NULL, window_ride_measurements_tooldown, - NULL, + window_ride_measurements_tooldrag, NULL, window_ride_measurements_toolabort, NULL, @@ -951,6 +952,9 @@ static rct_window_event_list *window_ride_page_events[] = { #pragma endregion static uint8 _rideType; +static bool _collectTrackDesignScenery = false; +static sint32 _lastSceneryX = 0; +static sint32 _lastSceneryY = 0; static void set_operating_setting(sint32 rideNumber, uint8 setting, uint8 value); @@ -5091,13 +5095,40 @@ static void window_ride_measurements_tooldown(rct_window *w, rct_widgetindex wid sint16 mapX, mapY; sint32 interactionType; + _lastSceneryX = x; + _lastSceneryY = y; + _collectTrackDesignScenery = true; // Default to true in case user does not select anything valid + get_map_coordinates_from_pos(x, y, 0xFCCF, &mapX, &mapY, &interactionType, &mapElement, NULL); switch (interactionType) { case VIEWPORT_INTERACTION_ITEM_SCENERY: case VIEWPORT_INTERACTION_ITEM_LARGE_SCENERY: case VIEWPORT_INTERACTION_ITEM_WALL: case VIEWPORT_INTERACTION_ITEM_FOOTPATH: - track_design_save_toggle_map_element(interactionType, mapX, mapY, mapElement); + _collectTrackDesignScenery = !track_design_save_contains_map_element(mapElement); + track_design_save_select_map_element(interactionType, mapX, mapY, mapElement, _collectTrackDesignScenery); + break; + } +} + +static void window_ride_measurements_tooldrag(rct_window *w, rct_widgetindex widgetIndex, sint32 x, sint32 y) +{ + if (x == _lastSceneryX && y == _lastSceneryY) + return; + _lastSceneryX = x; + _lastSceneryY = y; + + rct_map_element *mapElement; + sint16 mapX, mapY; + sint32 interactionType; + + get_map_coordinates_from_pos(x, y, 0xFCCF, &mapX, &mapY, &interactionType, &mapElement, NULL); + switch (interactionType) { + case VIEWPORT_INTERACTION_ITEM_SCENERY: + case VIEWPORT_INTERACTION_ITEM_LARGE_SCENERY: + case VIEWPORT_INTERACTION_ITEM_WALL: + case VIEWPORT_INTERACTION_ITEM_FOOTPATH: + track_design_save_select_map_element(interactionType, mapX, mapY, mapElement, _collectTrackDesignScenery); break; } } From 9c904db1c33cddf7a630afd9aaa344e575a350ea Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 01:22:35 +0000 Subject: [PATCH 122/670] Add UI src project --- openrct2.sln | 86 ++++++++++++++++----------- src/openrct2-ui/libopenrct2ui.vcxproj | 57 ++++++++++++++++++ 2 files changed, 108 insertions(+), 35 deletions(-) create mode 100644 src/openrct2-ui/libopenrct2ui.vcxproj diff --git a/openrct2.sln b/openrct2.sln index 875b2e8825..90e2adc669 100644 --- a/openrct2.sln +++ b/openrct2.sln @@ -1,16 +1,18 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.26228.9 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openrct2-dll", "src\openrct2-dll\openrct2-dll.vcxproj", "{7B8DB129-79EF-417E-B372-8A18E009D261}" ProjectSection(ProjectDependencies) = postProject + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} = {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} {D24D94F6-2A74-480C-B512-629C306CE92F} = {D24D94F6-2A74-480C-B512-629C306CE92F} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openrct2-win", "src\openrct2-win\openrct2-win.vcxproj", "{7A9A57D5-7006-4208-A290-5491BA3C8808}" ProjectSection(ProjectDependencies) = postProject {7B8DB129-79EF-417E-B372-8A18E009D261} = {7B8DB129-79EF-417E-B372-8A18E009D261} + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} = {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} {D24D94F6-2A74-480C-B512-629C306CE92F} = {D24D94F6-2A74-480C-B512-629C306CE92F} EndProjectSection EndProject @@ -27,6 +29,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2202A816-377 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{480B577D-4E4A-4757-9A42-28A9AD33E6B0}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libopenrct2ui", "src\openrct2-ui\libopenrct2ui.vcxproj", "{8DD8AB7D-2EA6-44E3-8265-BAF08E832951}" + ProjectSection(ProjectDependencies) = postProject + {D24D94F6-2A74-480C-B512-629C306CE92F} = {D24D94F6-2A74-480C-B512-629C306CE92F} + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -35,35 +42,6 @@ Global Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|Win32.ActiveCfg = Debug|Win32 - {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|Win32.Build.0 = Debug|Win32 - {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|x64.ActiveCfg = Debug|x64 - {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|x64.Build.0 = Debug|x64 - {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|Win32.ActiveCfg = Release|Win32 - {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|Win32.Build.0 = Release|Win32 - {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|x64.ActiveCfg = Release|x64 - {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|x64.Build.0 = Release|x64 - {57E60BA1-FB76-4316-909E-C1449C142327}.Debug|Win32.ActiveCfg = Debug|Win32 - {57E60BA1-FB76-4316-909E-C1449C142327}.Debug|Win32.Build.0 = Debug|Win32 - {57E60BA1-FB76-4316-909E-C1449C142327}.Debug|x64.ActiveCfg = Debug|Win32 - {57E60BA1-FB76-4316-909E-C1449C142327}.Release|Win32.ActiveCfg = Release|Win32 - {57E60BA1-FB76-4316-909E-C1449C142327}.Release|x64.ActiveCfg = Release|Win32 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|Win32.ActiveCfg = Debug|Win32 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|Win32.Build.0 = Debug|Win32 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|x64.ActiveCfg = Debug|x64 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|x64.Build.0 = Debug|x64 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|Win32.ActiveCfg = Release|Win32 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|Win32.Build.0 = Release|Win32 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|x64.ActiveCfg = Release|x64 - {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|x64.Build.0 = Release|x64 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|Win32.ActiveCfg = Debug|Win32 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|Win32.Build.0 = Debug|Win32 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|x64.ActiveCfg = Debug|x64 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|x64.Build.0 = Debug|x64 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|Win32.ActiveCfg = Release|Win32 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|Win32.Build.0 = Release|Win32 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|x64.ActiveCfg = Release|x64 - {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|x64.Build.0 = Release|x64 {7B8DB129-79EF-417E-B372-8A18E009D261}.Debug|Win32.ActiveCfg = Debug|Win32 {7B8DB129-79EF-417E-B372-8A18E009D261}.Debug|Win32.Build.0 = Debug|Win32 {7B8DB129-79EF-417E-B372-8A18E009D261}.Debug|x64.ActiveCfg = Debug|x64 @@ -72,15 +50,53 @@ Global {7B8DB129-79EF-417E-B372-8A18E009D261}.Release|Win32.Build.0 = Release|Win32 {7B8DB129-79EF-417E-B372-8A18E009D261}.Release|x64.ActiveCfg = Release|x64 {7B8DB129-79EF-417E-B372-8A18E009D261}.Release|x64.Build.0 = Release|x64 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|Win32.ActiveCfg = Debug|Win32 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|Win32.Build.0 = Debug|Win32 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|x64.ActiveCfg = Debug|x64 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Debug|x64.Build.0 = Debug|x64 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|Win32.ActiveCfg = Release|Win32 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|Win32.Build.0 = Release|Win32 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|x64.ActiveCfg = Release|x64 + {7A9A57D5-7006-4208-A290-5491BA3C8808}.Release|x64.Build.0 = Release|x64 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|Win32.ActiveCfg = Debug|Win32 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|Win32.Build.0 = Debug|Win32 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|x64.ActiveCfg = Debug|x64 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Debug|x64.Build.0 = Debug|x64 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|Win32.ActiveCfg = Release|Win32 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|Win32.Build.0 = Release|Win32 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|x64.ActiveCfg = Release|x64 + {D24D94F6-2A74-480C-B512-629C306CE92F}.Release|x64.Build.0 = Release|x64 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|Win32.ActiveCfg = Debug|Win32 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|Win32.Build.0 = Debug|Win32 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|x64.ActiveCfg = Debug|x64 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Debug|x64.Build.0 = Debug|x64 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|Win32.ActiveCfg = Release|Win32 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|Win32.Build.0 = Release|Win32 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|x64.ActiveCfg = Release|x64 + {62B020FA-E4FB-4C6E-B32A-DC999470F155}.Release|x64.Build.0 = Release|x64 + {57E60BA1-FB76-4316-909E-C1449C142327}.Debug|Win32.ActiveCfg = Debug|Win32 + {57E60BA1-FB76-4316-909E-C1449C142327}.Debug|Win32.Build.0 = Debug|Win32 + {57E60BA1-FB76-4316-909E-C1449C142327}.Debug|x64.ActiveCfg = Debug|Win32 + {57E60BA1-FB76-4316-909E-C1449C142327}.Release|Win32.ActiveCfg = Release|Win32 + {57E60BA1-FB76-4316-909E-C1449C142327}.Release|x64.ActiveCfg = Release|Win32 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Debug|Win32.ActiveCfg = Debug|Win32 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Debug|Win32.Build.0 = Debug|Win32 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Debug|x64.ActiveCfg = Debug|x64 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Debug|x64.Build.0 = Debug|x64 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Release|Win32.ActiveCfg = Release|Win32 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Release|Win32.Build.0 = Release|Win32 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Release|x64.ActiveCfg = Release|x64 + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {D24D94F6-2A74-480C-B512-629C306CE92F} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} - {57E60BA1-FB76-4316-909E-C1449C142327} = {480B577D-4E4A-4757-9A42-28A9AD33E6B0} - {62B020FA-E4FB-4C6E-B32A-DC999470F155} = {480B577D-4E4A-4757-9A42-28A9AD33E6B0} - {7A9A57D5-7006-4208-A290-5491BA3C8808} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} {7B8DB129-79EF-417E-B372-8A18E009D261} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} + {7A9A57D5-7006-4208-A290-5491BA3C8808} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} + {D24D94F6-2A74-480C-B512-629C306CE92F} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} + {62B020FA-E4FB-4C6E-B32A-DC999470F155} = {480B577D-4E4A-4757-9A42-28A9AD33E6B0} + {57E60BA1-FB76-4316-909E-C1449C142327} = {480B577D-4E4A-4757-9A42-28A9AD33E6B0} + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} EndGlobalSection EndGlobal diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj new file mode 100644 index 0000000000..edb37b08e5 --- /dev/null +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -0,0 +1,57 @@ + + + + ..\..\ + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} + openrct2-ui + libopenrct2ui + + + StaticLibrary + + + + DynamicLibrary + + + + openrct2 + + + + __ENABLE_LIGHTFX__;%(PreprocessorDefinitions) + USE_BREAKPAD;%(PreprocessorDefinitions) + + + + + $(IntDir)\%(RelativeDir) + $(OPENRCT2_CL_ADDITIONALOPTIONS) %(AdditionalOptions) + + + MachineX86 + MachineX64 + + + + \ No newline at end of file From 19aafc4e247ab4472ed29a881f34c21c0061f5d9 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 01:26:40 +0000 Subject: [PATCH 123/670] Move drawing engine implementation code to openrct2-ui --- .../drawing/engines/SoftwareDrawingEngine.cpp | 0 .../engines/opengl/CopyFramebufferShader.cpp | 0 .../engines/opengl/CopyFramebufferShader.h | 0 .../drawing/engines/opengl/DrawCommands.h | 0 .../engines/opengl/DrawImageShader.cpp | 0 .../drawing/engines/opengl/DrawImageShader.h | 0 .../drawing/engines/opengl/DrawLineShader.cpp | 0 .../drawing/engines/opengl/DrawLineShader.h | 0 .../drawing/engines/opengl/FillRectShader.cpp | 0 .../drawing/engines/opengl/FillRectShader.h | 0 .../drawing/engines/opengl/GLSLTypes.h | 0 .../drawing/engines/opengl/OpenGLAPI.cpp | 0 .../drawing/engines/opengl/OpenGLAPI.h | 0 .../engines/opengl/OpenGLDrawingEngine.cpp | 0 .../engines/opengl/OpenGLFramebuffer.cpp | 0 .../engines/opengl/OpenGLFramebuffer.h | 0 .../engines/opengl/OpenGLShaderProgram.cpp | 0 .../engines/opengl/OpenGLShaderProgram.h | 0 .../engines/opengl/SwapFramebuffer.cpp | 0 .../drawing/engines/opengl/SwapFramebuffer.h | 0 .../drawing/engines/opengl/TextureCache.cpp | 0 .../drawing/engines/opengl/TextureCache.h | 0 src/openrct2-ui/libopenrct2ui.vcxproj | 26 +++++++++++++++++++ 23 files changed, 26 insertions(+) rename src/{openrct2 => openrct2-ui}/drawing/engines/SoftwareDrawingEngine.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/CopyFramebufferShader.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/CopyFramebufferShader.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/DrawCommands.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/DrawImageShader.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/DrawImageShader.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/DrawLineShader.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/DrawLineShader.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/FillRectShader.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/FillRectShader.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/GLSLTypes.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/OpenGLAPI.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/OpenGLAPI.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/OpenGLDrawingEngine.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/OpenGLFramebuffer.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/OpenGLFramebuffer.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/OpenGLShaderProgram.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/OpenGLShaderProgram.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/SwapFramebuffer.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/SwapFramebuffer.h (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/TextureCache.cpp (100%) rename src/{openrct2 => openrct2-ui}/drawing/engines/opengl/TextureCache.h (100%) diff --git a/src/openrct2/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp similarity index 100% rename from src/openrct2/drawing/engines/SoftwareDrawingEngine.cpp rename to src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp diff --git a/src/openrct2/drawing/engines/opengl/CopyFramebufferShader.cpp b/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/CopyFramebufferShader.cpp rename to src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.cpp diff --git a/src/openrct2/drawing/engines/opengl/CopyFramebufferShader.h b/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/CopyFramebufferShader.h rename to src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.h diff --git a/src/openrct2/drawing/engines/opengl/DrawCommands.h b/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/DrawCommands.h rename to src/openrct2-ui/drawing/engines/opengl/DrawCommands.h diff --git a/src/openrct2/drawing/engines/opengl/DrawImageShader.cpp b/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/DrawImageShader.cpp rename to src/openrct2-ui/drawing/engines/opengl/DrawImageShader.cpp diff --git a/src/openrct2/drawing/engines/opengl/DrawImageShader.h b/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/DrawImageShader.h rename to src/openrct2-ui/drawing/engines/opengl/DrawImageShader.h diff --git a/src/openrct2/drawing/engines/opengl/DrawLineShader.cpp b/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/DrawLineShader.cpp rename to src/openrct2-ui/drawing/engines/opengl/DrawLineShader.cpp diff --git a/src/openrct2/drawing/engines/opengl/DrawLineShader.h b/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/DrawLineShader.h rename to src/openrct2-ui/drawing/engines/opengl/DrawLineShader.h diff --git a/src/openrct2/drawing/engines/opengl/FillRectShader.cpp b/src/openrct2-ui/drawing/engines/opengl/FillRectShader.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/FillRectShader.cpp rename to src/openrct2-ui/drawing/engines/opengl/FillRectShader.cpp diff --git a/src/openrct2/drawing/engines/opengl/FillRectShader.h b/src/openrct2-ui/drawing/engines/opengl/FillRectShader.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/FillRectShader.h rename to src/openrct2-ui/drawing/engines/opengl/FillRectShader.h diff --git a/src/openrct2/drawing/engines/opengl/GLSLTypes.h b/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/GLSLTypes.h rename to src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h diff --git a/src/openrct2/drawing/engines/opengl/OpenGLAPI.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/OpenGLAPI.cpp rename to src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp diff --git a/src/openrct2/drawing/engines/opengl/OpenGLAPI.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/OpenGLAPI.h rename to src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h diff --git a/src/openrct2/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/OpenGLDrawingEngine.cpp rename to src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp diff --git a/src/openrct2/drawing/engines/opengl/OpenGLFramebuffer.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/OpenGLFramebuffer.cpp rename to src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp diff --git a/src/openrct2/drawing/engines/opengl/OpenGLFramebuffer.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/OpenGLFramebuffer.h rename to src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h diff --git a/src/openrct2/drawing/engines/opengl/OpenGLShaderProgram.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/OpenGLShaderProgram.cpp rename to src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp diff --git a/src/openrct2/drawing/engines/opengl/OpenGLShaderProgram.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/OpenGLShaderProgram.h rename to src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h diff --git a/src/openrct2/drawing/engines/opengl/SwapFramebuffer.cpp b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/SwapFramebuffer.cpp rename to src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.cpp diff --git a/src/openrct2/drawing/engines/opengl/SwapFramebuffer.h b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/SwapFramebuffer.h rename to src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h diff --git a/src/openrct2/drawing/engines/opengl/TextureCache.cpp b/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp similarity index 100% rename from src/openrct2/drawing/engines/opengl/TextureCache.cpp rename to src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp diff --git a/src/openrct2/drawing/engines/opengl/TextureCache.h b/src/openrct2-ui/drawing/engines/opengl/TextureCache.h similarity index 100% rename from src/openrct2/drawing/engines/opengl/TextureCache.h rename to src/openrct2-ui/drawing/engines/opengl/TextureCache.h diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index edb37b08e5..6a6d997ccd 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -21,6 +21,32 @@ x64 + + + + + + + + + + + + + + + + + + + + + + + + + + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} openrct2-ui From c7b66ab193e8215b9d31c57c3686730e866a6801 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 01:36:05 +0000 Subject: [PATCH 124/670] Fix includes for moved files --- src/openrct2-dll/openrct2-dll.vcxproj | 2 +- .../drawing/engines/SoftwareDrawingEngine.cpp | 33 ++++++++++--------- .../drawing/engines/opengl/DrawCommands.h | 2 +- .../drawing/engines/opengl/GLSLTypes.h | 2 +- .../drawing/engines/opengl/OpenGLAPI.cpp | 2 +- .../drawing/engines/opengl/OpenGLAPI.h | 2 +- .../engines/opengl/OpenGLDrawingEngine.cpp | 26 +++++++-------- .../engines/opengl/OpenGLFramebuffer.cpp | 4 +-- .../engines/opengl/OpenGLFramebuffer.h | 2 +- .../engines/opengl/OpenGLShaderProgram.cpp | 14 ++++---- .../engines/opengl/OpenGLShaderProgram.h | 2 +- .../drawing/engines/opengl/SwapFramebuffer.h | 2 +- .../drawing/engines/opengl/TextureCache.cpp | 4 +-- .../drawing/engines/opengl/TextureCache.h | 2 +- 14 files changed, 50 insertions(+), 49 deletions(-) diff --git a/src/openrct2-dll/openrct2-dll.vcxproj b/src/openrct2-dll/openrct2-dll.vcxproj index 79367987c9..9ba350c54f 100644 --- a/src/openrct2-dll/openrct2-dll.vcxproj +++ b/src/openrct2-dll/openrct2-dll.vcxproj @@ -45,7 +45,7 @@ $(OPENRCT2_CL_ADDITIONALOPTIONS) %(AdditionalOptions) - libopenrct2.lib;%(AdditionalDependencies) + libopenrct2.lib;libopenrct2ui.lib;%(AdditionalDependencies) $(OutDir)openrct2-dll.pdb diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index e32ff739b0..f54ad0853d 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -14,25 +14,26 @@ *****************************************************************************/ #pragma endregion -#include "../../core/Guard.hpp" -#include "../../core/Math.hpp" -#include "../../core/Memory.hpp" -#include "../IDrawingContext.h" -#include "../IDrawingEngine.h" -#include "../Rain.h" +#include +#include +#include +#include +#include +#include +#include extern "C" { - #include "../../config/Config.h" - #include "../../game.h" - #include "../../interface/screenshot.h" - #include "../../interface/viewport.h" - #include "../../interface/window.h" - #include "../../intro.h" - #include "../../platform/platform.h" - #include "../../rct2.h" - #include "../drawing.h" - #include "../lightfx.h" + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include } class SoftwareDrawingEngine; diff --git a/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h b/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h index 952d5118d6..46833b9e23 100644 --- a/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h +++ b/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h @@ -16,7 +16,7 @@ #pragma once -#include "../../../common.h" +#include #include "OpenGLAPI.h" #include "GLSLTypes.h" #include "TextureCache.h" diff --git a/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h b/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h index 301bfe5389..ddaa0ddb2d 100644 --- a/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h +++ b/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h @@ -16,7 +16,7 @@ #pragma once -#include "../../../common.h" +#include #pragma pack(push, 1) diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp index 09641de1f4..eb6ebb7b82 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp @@ -23,7 +23,7 @@ #include -#include "../../../core/Console.hpp" +#include template static inline bool SetProc(T * func, const char * name) diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h index 3bf9324a60..9d112f7897 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h @@ -16,7 +16,7 @@ #pragma once -#include "../../../common.h" +#include #if OPENGL_NO_LINK diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index e870cf540b..8e95f504d8 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -40,22 +40,22 @@ IDrawingEngine * DrawingEngineFactory::CreateOpenGL() #include "TextureCache.h" #include "DrawCommands.h" -#include "../../../core/Console.hpp" -#include "../../../core/Exception.hpp" -#include "../../../core/Math.hpp" -#include "../../../core/Memory.hpp" -#include "../../IDrawingContext.h" -#include "../../IDrawingEngine.h" -#include "../../Rain.h" -#include "../../../config/Config.h" +#include +#include +#include +#include +#include +#include +#include +#include extern "C" { - #include "../../../config/Config.h" - #include "../../../interface/screenshot.h" - #include "../../../interface/window.h" - #include "../../../intro.h" - #include "../../drawing.h" + #include + #include + #include + #include + #include } struct OpenGLVersion diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp index d8bc8502cd..0e7e284247 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp @@ -16,9 +16,9 @@ #ifndef DISABLE_OPENGL -#include "../../../common.h" +#include #include -#include "../../../core/Memory.hpp" +#include #include "OpenGLFramebuffer.h" constexpr GLuint BACKBUFFER_ID = 0; diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h index 9e5c5054d3..855cc57de3 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h @@ -16,7 +16,7 @@ #pragma once -#include "../../../common.h" +#include #include "OpenGLAPI.h" struct SDL_Window; diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp index 575804c76e..7aede03d5a 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp @@ -16,17 +16,17 @@ #ifndef DISABLE_OPENGL -#include "../../../core/Console.hpp" -#include "../../../core/Exception.hpp" -#include "../../../core/FileStream.hpp" -#include "../../../core/Memory.hpp" -#include "../../../core/Path.hpp" -#include "../../../core/String.hpp" +#include +#include +#include +#include +#include +#include #include "OpenGLShaderProgram.h" extern "C" { - #include "../../../platform/platform.h" + #include } OpenGLShader::OpenGLShader(const char * name, GLenum type) diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h index 308ef7888d..9c06cab655 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h @@ -16,7 +16,7 @@ #pragma once -#include "../../../common.h" +#include #include "OpenGLAPI.h" class OpenGLShader final diff --git a/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h index 53c24d0890..d520689e2f 100644 --- a/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h +++ b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h @@ -16,7 +16,7 @@ #pragma once -#include "../../../common.h" +#include #include "OpenGLAPI.h" class CopyFramebufferShader; diff --git a/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp b/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp index b970bbebce..8aba570172 100644 --- a/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp @@ -18,12 +18,12 @@ #include #include -#include "../../../core/Memory.hpp" +#include #include "TextureCache.h" extern "C" { - #include "../../drawing.h" + #include } TextureCache::~TextureCache() diff --git a/src/openrct2-ui/drawing/engines/opengl/TextureCache.h b/src/openrct2-ui/drawing/engines/opengl/TextureCache.h index b79719f054..6c39fd4b95 100644 --- a/src/openrct2-ui/drawing/engines/opengl/TextureCache.h +++ b/src/openrct2-ui/drawing/engines/opengl/TextureCache.h @@ -20,7 +20,7 @@ #include #include #include -#include "../../../common.h" +#include #include "OpenGLAPI.h" #include "GLSLTypes.h" From bf3749833d8c5039d47cc963215bb055f51fccad Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 02:47:43 +0000 Subject: [PATCH 125/670] Allow drawing engine registration via context interfaces --- src/openrct2-dll/openrct2-dll.cpp | 11 +++- src/openrct2-ui/UiContext.cpp | 49 ++++++++++++++++++ src/openrct2-ui/UiContext.h | 34 +++++++++++++ .../drawing/engines/DrawingEngines.h | 50 +++++++++++++++++++ .../drawing/engines/SoftwareDrawingEngine.cpp | 25 +++++++++- .../engines/opengl/OpenGLDrawingEngine.cpp | 37 +++++++++----- src/openrct2-ui/libopenrct2ui.vcxproj | 3 ++ src/openrct2/Context.cpp | 42 ++++++++++++++++ src/openrct2/Context.h | 33 ++++++++++++ src/openrct2/drawing/IDrawingEngine.h | 12 +++-- src/openrct2/drawing/NewDrawing.cpp | 40 ++++++++++----- 11 files changed, 304 insertions(+), 32 deletions(-) create mode 100644 src/openrct2-ui/UiContext.cpp create mode 100644 src/openrct2-ui/UiContext.h create mode 100644 src/openrct2-ui/drawing/engines/DrawingEngines.h create mode 100644 src/openrct2/Context.cpp create mode 100644 src/openrct2/Context.h diff --git a/src/openrct2-dll/openrct2-dll.cpp b/src/openrct2-dll/openrct2-dll.cpp index 622160bb42..8e08fd6d39 100644 --- a/src/openrct2-dll/openrct2-dll.cpp +++ b/src/openrct2-dll/openrct2-dll.cpp @@ -20,7 +20,9 @@ #include #include #include +#include #include +#include #define DLLEXPORT extern "C" __declspec(dllexport) @@ -37,7 +39,14 @@ DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t * * argvW) return -1; } - int exitCode = RunOpenRCT2(argc, argv); + OpenRCT2::IContext * context = OpenRCT2::CreateContext(); + OpenRCT2::Ui::IUiContext * uiContext = OpenRCT2::Ui::CreateContext(context); + + int exitCode = context->RunOpenRCT2(argc, argv); + + delete uiContext; + delete context; + FreeCommandLineArgs(argc, argv); return exitCode; } diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp new file mode 100644 index 0000000000..007b10a286 --- /dev/null +++ b/src/openrct2-ui/UiContext.cpp @@ -0,0 +1,49 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include "UiContext.h" +#include "drawing\engines\DrawingEngines.h" + +using namespace OpenRCT2; +using namespace OpenRCT2::Ui; + +class UiContext : public IUiContext +{ +private: + IContext * const _context; + + // Drawing engines + SoftwareDrawingEngineFactory _softwareDrawingFactory; + HardwareDisplayDrawingEngineFactory _hardwareDrawingFactory; +#ifndef DISABLE_OPENGL + OpenGLDrawingEngineFactory _openglDrawingFactory; +#endif + +public: + UiContext(IContext * context) : + _context(context) + { + } + + ~UiContext() override + { + } +}; + +IUiContext * OpenRCT2::Ui::CreateContext(IContext * context) +{ + return new UiContext(context); +} diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h new file mode 100644 index 0000000000..ff3b7727d9 --- /dev/null +++ b/src/openrct2-ui/UiContext.h @@ -0,0 +1,34 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include + +namespace OpenRCT2 +{ + interface IContext; + + namespace Ui + { + interface IUiContext + { + virtual ~IUiContext() { } + }; + + IUiContext * CreateContext(IContext * context); + } +} diff --git a/src/openrct2-ui/drawing/engines/DrawingEngines.h b/src/openrct2-ui/drawing/engines/DrawingEngines.h new file mode 100644 index 0000000000..f824c203d3 --- /dev/null +++ b/src/openrct2-ui/drawing/engines/DrawingEngines.h @@ -0,0 +1,50 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include +#include + +interface IDrawingEngineFactory; + +class SoftwareDrawingEngineFactory : public IDrawingEngineFactory +{ +public: + SoftwareDrawingEngineFactory(); + ~SoftwareDrawingEngineFactory() override; + IDrawingEngine * Create() override; +}; + +class HardwareDisplayDrawingEngineFactory : public IDrawingEngineFactory +{ +public: + HardwareDisplayDrawingEngineFactory(); + ~HardwareDisplayDrawingEngineFactory() override; + IDrawingEngine * Create() override; +}; + +#ifndef DISABLE_OPENGL + +class OpenGLDrawingEngineFactory : public IDrawingEngineFactory +{ +public: + OpenGLDrawingEngineFactory(); + ~OpenGLDrawingEngineFactory() override; + IDrawingEngine * Create() override; +}; + +#endif // DISABLE_OPENGL diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index f54ad0853d..d31ce3c916 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -21,6 +21,7 @@ #include #include #include +#include "DrawingEngines.h" extern "C" { @@ -827,12 +828,32 @@ private: } }; -IDrawingEngine * DrawingEngineFactory::CreateSoftware() +SoftwareDrawingEngineFactory::SoftwareDrawingEngineFactory() +{ + DrawingEngineFactory::Register(DRAWING_ENGINE_SOFTWARE, this); +} + +SoftwareDrawingEngineFactory::~SoftwareDrawingEngineFactory() +{ + DrawingEngineFactory::Unregister(DRAWING_ENGINE_SOFTWARE); +} + +IDrawingEngine * SoftwareDrawingEngineFactory::Create() { return new SoftwareDrawingEngine(false); } -IDrawingEngine * DrawingEngineFactory::CreateSoftwareWithHardwareDisplay() +HardwareDisplayDrawingEngineFactory::HardwareDisplayDrawingEngineFactory() +{ + DrawingEngineFactory::Register(DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY, this); +} + +HardwareDisplayDrawingEngineFactory::~HardwareDisplayDrawingEngineFactory() +{ + DrawingEngineFactory::Unregister(DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY); +} + +IDrawingEngine * HardwareDisplayDrawingEngineFactory::Create() { return new SoftwareDrawingEngine(true); } diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index 8e95f504d8..0d7d431902 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -29,17 +29,7 @@ IDrawingEngine * DrawingEngineFactory::CreateOpenGL() #include #include -#include "GLSLTypes.h" -#include "OpenGLAPI.h" -#include "OpenGLFramebuffer.h" -#include "CopyFramebufferShader.h" -#include "DrawImageShader.h" -#include "DrawLineShader.h" -#include "FillRectShader.h" -#include "SwapFramebuffer.h" -#include "TextureCache.h" -#include "DrawCommands.h" - +#include #include #include #include @@ -51,13 +41,24 @@ IDrawingEngine * DrawingEngineFactory::CreateOpenGL() extern "C" { - #include #include #include #include #include } +#include "../DrawingEngines.h" +#include "GLSLTypes.h" +#include "OpenGLAPI.h" +#include "OpenGLFramebuffer.h" +#include "CopyFramebufferShader.h" +#include "DrawImageShader.h" +#include "DrawLineShader.h" +#include "FillRectShader.h" +#include "SwapFramebuffer.h" +#include "TextureCache.h" +#include "DrawCommands.h" + struct OpenGLVersion { GLint Major; @@ -498,7 +499,17 @@ private: } }; -IDrawingEngine * DrawingEngineFactory::CreateOpenGL() +OpenGLDrawingEngineFactory::OpenGLDrawingEngineFactory() +{ + DrawingEngineFactory::Register(DRAWING_ENGINE_OPENGL, this); +} + +OpenGLDrawingEngineFactory::~OpenGLDrawingEngineFactory() +{ + DrawingEngineFactory::Unregister(DRAWING_ENGINE_OPENGL); +} + +IDrawingEngine * OpenGLDrawingEngineFactory::Create() { return new OpenGLDrawingEngine(); } diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 6a6d997ccd..9e3a847bee 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -33,8 +33,10 @@ + + @@ -46,6 +48,7 @@ + {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp new file mode 100644 index 0000000000..d8b66ec73d --- /dev/null +++ b/src/openrct2/Context.cpp @@ -0,0 +1,42 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include "Context.h" +#include "OpenRCT2.h" + +using namespace OpenRCT2; + +class Context : public IContext +{ +public: + Context() + { + } + + ~Context() override + { + } + + sint32 RunOpenRCT2(int argc, char * * argv) override + { + return ::RunOpenRCT2(argc, argv); + } +}; + +IContext * OpenRCT2::CreateContext() +{ + return new Context(); +} diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h new file mode 100644 index 0000000000..5557f153f8 --- /dev/null +++ b/src/openrct2/Context.h @@ -0,0 +1,33 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include + +namespace OpenRCT2 +{ + /** + * Represents an instance of OpenRCT2 and can be used to get various services. + */ + interface IContext + { + virtual ~IContext() { } + virtual sint32 RunOpenRCT2(int argc, char * * argv) abstract; + }; + + IContext * CreateContext(); +} diff --git a/src/openrct2/drawing/IDrawingEngine.h b/src/openrct2/drawing/IDrawingEngine.h index a9e7287201..1c3a706f4b 100644 --- a/src/openrct2/drawing/IDrawingEngine.h +++ b/src/openrct2/drawing/IDrawingEngine.h @@ -26,6 +26,7 @@ enum DRAWING_ENGINE DRAWING_ENGINE_SOFTWARE, DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY, DRAWING_ENGINE_OPENGL, + DRAWING_ENGINE_COUNT, }; enum DRAWING_ENGINE_FLAGS @@ -66,11 +67,16 @@ interface IDrawingEngine virtual void InvalidateImage(uint32 image) abstract; }; +interface IDrawingEngineFactory +{ + virtual ~IDrawingEngineFactory() { } + virtual IDrawingEngine * Create() abstract; +}; + namespace DrawingEngineFactory { - IDrawingEngine * CreateSoftware(); - IDrawingEngine * CreateSoftwareWithHardwareDisplay(); - IDrawingEngine * CreateOpenGL(); + void Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory); + void Unregister(DRAWING_ENGINE type); } interface IRainDrawer diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 5e2b479ad8..9f5360632c 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -29,8 +29,27 @@ extern "C" #include "../rct2.h" } -static sint32 _drawingEngineType = DRAWING_ENGINE_SOFTWARE; -static IDrawingEngine * _drawingEngine = nullptr; +static sint32 _drawingEngineType = DRAWING_ENGINE_SOFTWARE; +static IDrawingEngine * _drawingEngine = nullptr; +static IDrawingEngineFactory * _drawingEngineFactories[DRAWING_ENGINE_COUNT] = { nullptr }; + +void DrawingEngineFactory::Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory) +{ + if (_drawingEngineFactories[type] != nullptr) + { + throw std::invalid_argument("Engine already registered."); + } + _drawingEngineFactories[type] = factory; +} + +void DrawingEngineFactory::Unregister(DRAWING_ENGINE type) +{ + if (_drawingEngineFactories[type] == nullptr) + { + throw std::invalid_argument("Engine not registered."); + } + _drawingEngineFactories[type] = nullptr; +} extern "C" { @@ -69,20 +88,15 @@ extern "C" { assert(_drawingEngine == nullptr); - IDrawingEngine * drawingEngine = nullptr; _drawingEngineType = gConfigGeneral.drawing_engine; - switch (_drawingEngineType) { - case DRAWING_ENGINE_SOFTWARE: - drawingEngine = DrawingEngineFactory::CreateSoftware(); - break; - case DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY: - drawingEngine = DrawingEngineFactory::CreateSoftwareWithHardwareDisplay(); - break; - case DRAWING_ENGINE_OPENGL: - drawingEngine = DrawingEngineFactory::CreateOpenGL(); - break; + IDrawingEngineFactory * deFactory = _drawingEngineFactories[_drawingEngineType]; + if (deFactory == nullptr) + { + log_fatal("Drawing engine not registered."); + exit(-1); } + IDrawingEngine * drawingEngine = deFactory->Create(); if (drawingEngine == nullptr) { if (_drawingEngineType == DRAWING_ENGINE_SOFTWARE) From 006a76c099f502d10290e22dce3477b87efc4735 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 16:26:43 +0000 Subject: [PATCH 126/670] Refactor registration of drawing engines --- src/openrct2-ui/UiContext.cpp | 8 +++ .../drawing/engines/DrawingEngines.h | 43 ++++++------ .../drawing/engines/SoftwareDrawingEngine.cpp | 24 +------ .../engines/opengl/OpenGLDrawingEngine.cpp | 12 +--- src/openrct2/Context.cpp | 6 ++ src/openrct2/Context.h | 10 ++- src/openrct2/core/Registration.hpp | 67 +++++++++++++++++++ src/openrct2/drawing/IDrawingEngine.h | 31 +++++---- src/openrct2/drawing/NewDrawing.cpp | 20 +++--- 9 files changed, 143 insertions(+), 78 deletions(-) create mode 100644 src/openrct2/core/Registration.hpp diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 007b10a286..6863b0a758 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -14,6 +14,10 @@ *****************************************************************************/ #pragma endregion +#include +#include +#include +#include #include "UiContext.h" #include "drawing\engines\DrawingEngines.h" @@ -24,6 +28,7 @@ class UiContext : public IUiContext { private: IContext * const _context; + std::vector> _registrations; // Drawing engines SoftwareDrawingEngineFactory _softwareDrawingFactory; @@ -36,6 +41,9 @@ public: UiContext(IContext * context) : _context(context) { + _registrations.emplace_back(context->RegisterDrawingEngine(DRAWING_ENGINE_SOFTWARE, &_softwareDrawingFactory)); + _registrations.emplace_back(context->RegisterDrawingEngine(DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY, &_hardwareDrawingFactory)); + _registrations.emplace_back(context->RegisterDrawingEngine(DRAWING_ENGINE_OPENGL, &_openglDrawingFactory)); } ~UiContext() override diff --git a/src/openrct2-ui/drawing/engines/DrawingEngines.h b/src/openrct2-ui/drawing/engines/DrawingEngines.h index f824c203d3..08a364425d 100644 --- a/src/openrct2-ui/drawing/engines/DrawingEngines.h +++ b/src/openrct2-ui/drawing/engines/DrawingEngines.h @@ -19,32 +19,27 @@ #include #include -interface IDrawingEngineFactory; - -class SoftwareDrawingEngineFactory : public IDrawingEngineFactory +namespace OpenRCT2 { namespace Ui { -public: - SoftwareDrawingEngineFactory(); - ~SoftwareDrawingEngineFactory() override; - IDrawingEngine * Create() override; -}; + class SoftwareDrawingEngineFactory : public Drawing::IDrawingEngineFactory + { + public: + IDrawingEngine * Create() override; + }; -class HardwareDisplayDrawingEngineFactory : public IDrawingEngineFactory -{ -public: - HardwareDisplayDrawingEngineFactory(); - ~HardwareDisplayDrawingEngineFactory() override; - IDrawingEngine * Create() override; -}; + class HardwareDisplayDrawingEngineFactory : public Drawing::IDrawingEngineFactory + { + public: + IDrawingEngine * Create() override; + }; -#ifndef DISABLE_OPENGL + #ifndef DISABLE_OPENGL -class OpenGLDrawingEngineFactory : public IDrawingEngineFactory -{ -public: - OpenGLDrawingEngineFactory(); - ~OpenGLDrawingEngineFactory() override; - IDrawingEngine * Create() override; -}; + class OpenGLDrawingEngineFactory : public Drawing::IDrawingEngineFactory + { + public: + IDrawingEngine * Create() override; + }; -#endif // DISABLE_OPENGL + #endif // DISABLE_OPENGL +} } diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index d31ce3c916..e5da799b3a 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -828,32 +828,12 @@ private: } }; -SoftwareDrawingEngineFactory::SoftwareDrawingEngineFactory() -{ - DrawingEngineFactory::Register(DRAWING_ENGINE_SOFTWARE, this); -} - -SoftwareDrawingEngineFactory::~SoftwareDrawingEngineFactory() -{ - DrawingEngineFactory::Unregister(DRAWING_ENGINE_SOFTWARE); -} - -IDrawingEngine * SoftwareDrawingEngineFactory::Create() +IDrawingEngine * OpenRCT2::Ui::SoftwareDrawingEngineFactory::Create() { return new SoftwareDrawingEngine(false); } -HardwareDisplayDrawingEngineFactory::HardwareDisplayDrawingEngineFactory() -{ - DrawingEngineFactory::Register(DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY, this); -} - -HardwareDisplayDrawingEngineFactory::~HardwareDisplayDrawingEngineFactory() -{ - DrawingEngineFactory::Unregister(DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY); -} - -IDrawingEngine * HardwareDisplayDrawingEngineFactory::Create() +IDrawingEngine * OpenRCT2::Ui::HardwareDisplayDrawingEngineFactory::Create() { return new SoftwareDrawingEngine(true); } diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index 0d7d431902..185641bb21 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -499,17 +499,7 @@ private: } }; -OpenGLDrawingEngineFactory::OpenGLDrawingEngineFactory() -{ - DrawingEngineFactory::Register(DRAWING_ENGINE_OPENGL, this); -} - -OpenGLDrawingEngineFactory::~OpenGLDrawingEngineFactory() -{ - DrawingEngineFactory::Unregister(DRAWING_ENGINE_OPENGL); -} - -IDrawingEngine * OpenGLDrawingEngineFactory::Create() +IDrawingEngine * OpenRCT2::Ui::OpenGLDrawingEngineFactory::Create() { return new OpenGLDrawingEngine(); } diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index d8b66ec73d..3a5e02796e 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "drawing/IDrawingEngine.h" #include "Context.h" #include "OpenRCT2.h" @@ -30,6 +31,11 @@ public: { } + IRegistration * RegisterDrawingEngine(sint32 type, Drawing::IDrawingEngineFactory * factory) override + { + return Drawing::DrawingEngineFactory::Register((DRAWING_ENGINE)type, factory); + } + sint32 RunOpenRCT2(int argc, char * * argv) override { return ::RunOpenRCT2(argc, argv); diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 5557f153f8..05bca70078 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -20,12 +20,20 @@ namespace OpenRCT2 { + interface IRegistration; + + namespace Drawing + { + interface IDrawingEngineFactory; + } + /** * Represents an instance of OpenRCT2 and can be used to get various services. */ interface IContext { - virtual ~IContext() { } + virtual ~IContext() = default; + virtual IRegistration * RegisterDrawingEngine(sint32 type, Drawing::IDrawingEngineFactory * factory) abstract; virtual sint32 RunOpenRCT2(int argc, char * * argv) abstract; }; diff --git a/src/openrct2/core/Registration.hpp b/src/openrct2/core/Registration.hpp new file mode 100644 index 0000000000..de8ac29ea1 --- /dev/null +++ b/src/openrct2/core/Registration.hpp @@ -0,0 +1,67 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include "../common.h" + +namespace OpenRCT2 +{ + /** + * Represents a registration of some service which when deleted will be + * unregistered. + */ + interface IRegistration + { + virtual ~IRegistration() = default; + }; + + class Registration + { + private: + /** + * Class which can wrap a function in an IRegistration. + */ + template + struct CallbackRegistration : public IRegistration + { + private: + T _callback; + + public: + CallbackRegistration(T callback) : + _callback(callback) + { + } + + virtual ~CallbackRegistration() override + { + _callback(); + } + }; + + public: + /** + * Creates a new IRegistration which when deleted, calls the given + * function. + */ + template + static IRegistration * Create(T unregisterCallback) + { + return new CallbackRegistration(unregisterCallback); + } + }; +} diff --git a/src/openrct2/drawing/IDrawingEngine.h b/src/openrct2/drawing/IDrawingEngine.h index 1c3a706f4b..574913cde7 100644 --- a/src/openrct2/drawing/IDrawingEngine.h +++ b/src/openrct2/drawing/IDrawingEngine.h @@ -67,18 +67,6 @@ interface IDrawingEngine virtual void InvalidateImage(uint32 image) abstract; }; -interface IDrawingEngineFactory -{ - virtual ~IDrawingEngineFactory() { } - virtual IDrawingEngine * Create() abstract; -}; - -namespace DrawingEngineFactory -{ - void Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory); - void Unregister(DRAWING_ENGINE type); -} - interface IRainDrawer { virtual ~IRainDrawer() { } @@ -90,4 +78,23 @@ interface IRainDrawer sint32 yStart) abstract; }; +namespace OpenRCT2 +{ + interface IRegistration; + + namespace Drawing + { + interface IDrawingEngineFactory + { + virtual ~IDrawingEngineFactory() { } + virtual IDrawingEngine * Create() abstract; + }; + + namespace DrawingEngineFactory + { + IRegistration * Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory); + } + } +} + #endif diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 9f5360632c..0f29b4f016 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -15,6 +15,7 @@ #pragma endregion #include "../core/Exception.hpp" +#include "../core/Registration.hpp" #include "IDrawingContext.h" #include "IDrawingEngine.h" #include "NewDrawing.h" @@ -29,26 +30,29 @@ extern "C" #include "../rct2.h" } +using namespace OpenRCT2; +using namespace OpenRCT2::Drawing; + static sint32 _drawingEngineType = DRAWING_ENGINE_SOFTWARE; static IDrawingEngine * _drawingEngine = nullptr; static IDrawingEngineFactory * _drawingEngineFactories[DRAWING_ENGINE_COUNT] = { nullptr }; -void DrawingEngineFactory::Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory) +IRegistration * DrawingEngineFactory::Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory) { if (_drawingEngineFactories[type] != nullptr) { throw std::invalid_argument("Engine already registered."); } _drawingEngineFactories[type] = factory; -} -void DrawingEngineFactory::Unregister(DRAWING_ENGINE type) -{ - if (_drawingEngineFactories[type] == nullptr) + return Registration::Create([type, factory]() -> void { - throw std::invalid_argument("Engine not registered."); - } - _drawingEngineFactories[type] = nullptr; + if (_drawingEngineFactories[type] != factory) + { + throw std::invalid_argument("Engine not registered."); + } + _drawingEngineFactories[type] = nullptr; + }); } extern "C" From 5c59b743fd624385b9ce92fd3fb1e569c2adef0e Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 17:29:45 +0000 Subject: [PATCH 127/670] Add new CLI and UI builds for non Windows platforms --- src/openrct2-cli/CMakeLists.txt | 26 ++++++++++++++++++ src/openrct2-cli/Cli.cpp | 34 +++++++++++++++++++++++ src/openrct2-ui/Ui.cpp | 39 +++++++++++++++++++++++++++ src/openrct2-ui/libopenrct2ui.vcxproj | 1 + 4 files changed, 100 insertions(+) create mode 100644 src/openrct2-cli/CMakeLists.txt create mode 100644 src/openrct2-cli/Cli.cpp create mode 100644 src/openrct2-ui/Ui.cpp diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt new file mode 100644 index 0000000000..2ae1565543 --- /dev/null +++ b/src/openrct2-cli/CMakeLists.txt @@ -0,0 +1,26 @@ +# CMAKE project for openrct2-cli (CLI-only build of OpenRCT2) + +cmake_minimum_required(VERSION 2.6) + +if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) + message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") +endif() + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") + +INCLUDE_DIRECTORIES(SYSTEM ${OPENRCT2_CORE}) + +set (PROJECT openrct2) +project(${PROJECT}) + +file(GLOB_RECURSE OPENRCT2_CLI_SOURCES + "${CMAKE_CURRENT_SOURCE_DIR}/*.c" + "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/*.h" + "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp") + +# install into ${CMAKE_INSTALL_PREFIX}/bin/ +#install (TARGETS ${PROJECT} DESTINATION bin) diff --git a/src/openrct2-cli/Cli.cpp b/src/openrct2-cli/Cli.cpp new file mode 100644 index 0000000000..02755a1cc7 --- /dev/null +++ b/src/openrct2-cli/Cli.cpp @@ -0,0 +1,34 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#ifndef _MSC_VER + +#include + +using namespace OpenRCT2; + +/** +* Main entry point for non-Windows sytems. Windows instead uses its own DLL proxy. +*/ +int main(int argc, char * * argv) +{ + IContext * context = CreateContext(); + int exitCode = context->RunOpenRCT2(argc, argv); + delete context; + return exitCode; +} + +#endif diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp new file mode 100644 index 0000000000..4475594fb4 --- /dev/null +++ b/src/openrct2-ui/Ui.cpp @@ -0,0 +1,39 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#ifndef _MSC_VER + +#include +#include "UiContext.h" + +using namespace OpenRCT2; +using namespace OpenRCT2::Ui; + +/** + * Main entry point for non-Windows sytems. Windows instead uses its own DLL proxy. + */ +int main(int argc, char * * argv) +{ + // Run OpenRCT2 with a UI context + IContext * context = CreateContext(); + IUiContext * uiContext = CreateContext(context); + int exitCode = context->RunOpenRCT2(argc, argv); + delete uiContext; + delete context; + return exitCode; +} + +#endif diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 9e3a847bee..3e86ba50d6 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -33,6 +33,7 @@ + From fedb8917c72d6b4c275495a1ace232f42923efd1 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 19:02:23 +0000 Subject: [PATCH 128/670] Create new CMake project for libopenrct2 --- src/openrct2-cli/CMakeLists.txt | 26 ++++++------- src/openrct2/CMakeLists.txt | 57 +++++++++++++++++++++++++++++ src/openrct2/Context.cpp | 8 +++- src/openrct2/Context.h | 2 +- src/openrct2/OpenRCT2.h | 4 -- src/openrct2/drawing/NewDrawing.cpp | 1 + src/openrct2/platform/windows.c | 26 ++++--------- 7 files changed, 87 insertions(+), 37 deletions(-) create mode 100644 src/openrct2/CMakeLists.txt diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 2ae1565543..3fc825d478 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -1,26 +1,26 @@ # CMAKE project for openrct2-cli (CLI-only build of OpenRCT2) - cmake_minimum_required(VERSION 2.6) - if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif() -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") -set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") - -INCLUDE_DIRECTORIES(SYSTEM ${OPENRCT2_CORE}) - -set (PROJECT openrct2) -project(${PROJECT}) +# Includes +INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/..") +# Sources file(GLOB_RECURSE OPENRCT2_CLI_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.c" "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp") -# install into ${CMAKE_INSTALL_PREFIX}/bin/ -#install (TARGETS ${PROJECT} DESTINATION bin) +# Compiler flags +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") + +# Outputs +set (PROJECT openrct2) +project(${PROJECT}) +add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt new file mode 100644 index 0000000000..61951b00e7 --- /dev/null +++ b/src/openrct2/CMakeLists.txt @@ -0,0 +1,57 @@ +# CMAKE project for libopenrct2 (core OpenRCT2 component) +cmake_minimum_required(VERSION 2.6) +if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) + message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") +endif() + +# CMake dependencies +INCLUDE(FindPkgConfig) + +# Third party libraries +PKG_CHECK_MODULES(JANSSON REQUIRED jansson>=2.5) +PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl) +PKG_CHECK_MODULES(LIBZIP REQUIRED libzip>=1.0) +PKG_CHECK_MODULES(SSL REQUIRED openssl>=1.0.0) +PKG_CHECK_MODULES(PNG libpng>=1.6) +PKG_CHECK_MODULES(ZLIB REQUIRED zlib) + +# Third party libraries (which we want to eventually remove from libopenrct2) +PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) +PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) +PKG_CHECK_MODULES(SDL2_TTF REQUIRED SDL2_ttf) +PKG_CHECK_MODULES(SPEEX REQUIRED speexdsp) +PKG_CHECK_MODULES(GL REQUIRED gl) + +message(STATUS "SDL: ${SDL2_INCLUDE_DIRS}") +message(STATUS "SSL: ${SSL_INCLUDE_DIRS}") +message(STATUS "TTF: ${SDL2_TTF_INCLUDE_DIRS}") + +# Includes +INCLUDE_DIRECTORIES(SYSTEM ${LIBZIP_INCLUDE_DIRS}) +INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS} + ${LIBCURL_INCLUDE_DIRS} + ${JANSSON_INCLUDE_DIRS} + ${SPEEX_INCLUDE_DIRS} + ${PNG_INCLUDE_DIRS} + ${ZLIB_INCLUDE_DIRS} + ${BREAKPAD_INCLUDE_DIR} + ${SSL_INCLUDE_DIRS} + ${FONTCONFIG_INCLUDE_DIRS}) + +# Sources +file(GLOB_RECURSE OPENRCT2_CORE_SOURCES + "${CMAKE_CURRENT_SOURCE_DIR}/*.c" + "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" + "${CMAKE_CURRENT_SOURCE_DIR}/*.h" + "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp") + +# Compiler flags +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") + +# Outputs +set (PROJECT openrct2) +project(${PROJECT}) +add_library(${PROJECT} SHARED ${OPENRCT2_CORE_SOURCES}) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 3a5e02796e..ba9060a53f 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -38,7 +38,13 @@ public: sint32 RunOpenRCT2(int argc, char * * argv) override { - return ::RunOpenRCT2(argc, argv); + core_init(); + int runGame = cmdline_run((const char * *)argv, argc); + if (runGame == 1) + { + openrct2_launch(); + } + return gExitCode; } }; diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 05bca70078..59b424b037 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -16,7 +16,7 @@ #pragma once -#include +#include "common.h" namespace OpenRCT2 { diff --git a/src/openrct2/OpenRCT2.h b/src/openrct2/OpenRCT2.h index ecfc7fb6e6..ba45e17730 100644 --- a/src/openrct2/OpenRCT2.h +++ b/src/openrct2/OpenRCT2.h @@ -87,10 +87,6 @@ extern "C" sint32 cmdline_run(const char * * argv, sint32 argc); -#ifdef __WINDOWS__ - int RunOpenRCT2(int argc, char * * argv); -#endif - #ifdef __cplusplus } #endif diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 0f29b4f016..67f5668572 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include #include "../core/Exception.hpp" #include "../core/Registration.hpp" #include "IDrawingContext.h" diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 6e8e6f4f52..0d8878860b 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -57,23 +57,12 @@ utf8 **windows_get_command_line_args(sint32 *outNumArgs); static HMODULE _dllModule = NULL; -/** - * Windows entry point to OpenRCT2 with a console window using a traditional C main function. - */ -sint32 RunOpenRCT2(int argc, char * * argv) +static HMODULE plaform_get_dll_module() { - HINSTANCE hInstance = GetModuleHandle(NULL); - _dllModule = hInstance; - - core_init(); - - sint32 exitCode = cmdline_run((const char **)argv, argc); - if (exitCode == 1) { - openrct2_launch(); - exitCode = gExitCode; + if (_dllModule == NULL) { + _dllModule = GetModuleHandle(NULL); } - - return exitCode; + return _dllModule; } #ifdef NO_RCT2 @@ -817,8 +806,9 @@ HWND windows_get_window_handle() void platform_init_window_icon() { - if (_dllModule != NULL) { - HICON icon = LoadIcon(_dllModule, MAKEINTRESOURCE(IDI_ICON)); + HMODULE module = plaform_get_dll_module(); + if (module != NULL) { + HICON icon = LoadIcon(module, MAKEINTRESOURCE(IDI_ICON)); if (icon != NULL) { HWND hwnd = windows_get_window_handle(); SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)icon); @@ -1134,7 +1124,7 @@ static bool windows_setup_file_association( sint32 printResult; GetModuleFileNameW(NULL, exePathW, sizeof(exePathW)); - GetModuleFileNameW(_dllModule, dllPathW, sizeof(dllPathW)); + GetModuleFileNameW(plaform_get_dll_module(), dllPathW, sizeof(dllPathW)); wchar_t *extensionW = utf8_to_widechar(extension); wchar_t *fileTypeTextW = utf8_to_widechar(fileTypeText); From 644634220a02333ef8e842c18781d97470c696c4 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 20:52:07 +0000 Subject: [PATCH 129/670] Update cmakelists for lib and cli --- src/CMakeLists.txt | 8 ++++++ src/openrct2-cli/CMakeLists.txt | 31 +++++++++++++-------- src/openrct2/CMakeLists.txt | 48 +++++++++++++++------------------ 3 files changed, 50 insertions(+), 37 deletions(-) create mode 100644 src/CMakeLists.txt diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000000..db1b669ee5 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,8 @@ +# CMAKE project for openrct2 +cmake_minimum_required(VERSION 2.6) +if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) + message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") +endif() + +include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2/CMakeLists.txt" NO_POLICY_SCOPE) +include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 3fc825d478..1ba811b718 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -4,23 +4,32 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif() -# Includes -INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/..") +# CMake dependencies +include(FindPkgConfig) + +# Third party libraries (which we want to eventually remove from openrct2-cli) +PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) # Sources file(GLOB_RECURSE OPENRCT2_CLI_SOURCES - "${CMAKE_CURRENT_SOURCE_DIR}/*.c" - "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/*.h" - "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp") + "${CMAKE_CURRENT_LIST_DIR}/*.c" + "${CMAKE_CURRENT_LIST_DIR}/*.cpp" + "${CMAKE_CURRENT_LIST_DIR}/*.h" + "${CMAKE_CURRENT_LIST_DIR}/*.hpp") + +# Outputs +set (PROJECT openrct2) +project(${PROJECT}) +add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) + +target_link_libraries(${PROJECT} "libopenrct2") + +# Includes +target_include_directories(${PROJECT} PRIVATE ${SDL2_INCLUDE_DIRS} + "${CMAKE_CURRENT_LIST_DIR}/..") # Compiler flags set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") - -# Outputs -set (PROJECT openrct2) -project(${PROJECT}) -add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 61951b00e7..ea6a30bb9e 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -5,7 +5,7 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) endif() # CMake dependencies -INCLUDE(FindPkgConfig) +include(FindPkgConfig) # Third party libraries PKG_CHECK_MODULES(JANSSON REQUIRED jansson>=2.5) @@ -22,36 +22,32 @@ PKG_CHECK_MODULES(SDL2_TTF REQUIRED SDL2_ttf) PKG_CHECK_MODULES(SPEEX REQUIRED speexdsp) PKG_CHECK_MODULES(GL REQUIRED gl) -message(STATUS "SDL: ${SDL2_INCLUDE_DIRS}") -message(STATUS "SSL: ${SSL_INCLUDE_DIRS}") -message(STATUS "TTF: ${SDL2_TTF_INCLUDE_DIRS}") +# Sources +file(GLOB_RECURSE OPENRCT2_CORE_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.c" + "${CMAKE_CURRENT_LIST_DIR}/*.cpp" + "${CMAKE_CURRENT_LIST_DIR}/*.h" + "${CMAKE_CURRENT_LIST_DIR}/*.hpp") + +# Outputs +set(PROJECT libopenrct2) +project(${PROJECT}) +add_library(${PROJECT} SHARED ${OPENRCT2_CORE_SOURCES}) +set_target_properties(${PROJECT} PROPERTIES PREFIX "") # Includes -INCLUDE_DIRECTORIES(SYSTEM ${LIBZIP_INCLUDE_DIRS}) -INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS} - ${LIBCURL_INCLUDE_DIRS} - ${JANSSON_INCLUDE_DIRS} - ${SPEEX_INCLUDE_DIRS} - ${PNG_INCLUDE_DIRS} - ${ZLIB_INCLUDE_DIRS} - ${BREAKPAD_INCLUDE_DIR} - ${SSL_INCLUDE_DIRS} - ${FONTCONFIG_INCLUDE_DIRS}) - -# Sources -file(GLOB_RECURSE OPENRCT2_CORE_SOURCES - "${CMAKE_CURRENT_SOURCE_DIR}/*.c" - "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" - "${CMAKE_CURRENT_SOURCE_DIR}/*.h" - "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp") +target_include_directories(${PROJECT} SYSTEM PRIVATE ${LIBZIP_INCLUDE_DIRS}) +target_include_directories(${PROJECT} PRIVATE ${SDL2_INCLUDE_DIRS} + ${LIBCURL_INCLUDE_DIRS} + ${JANSSON_INCLUDE_DIRS} + ${SPEEX_INCLUDE_DIRS} + ${PNG_INCLUDE_DIRS} + ${ZLIB_INCLUDE_DIRS} + ${BREAKPAD_INCLUDE_DIR} + ${SSL_INCLUDE_DIRS} + ${FONTCONFIG_INCLUDE_DIRS}) # Compiler flags set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") - -# Outputs -set (PROJECT openrct2) -project(${PROJECT}) -add_library(${PROJECT} SHARED ${OPENRCT2_CORE_SOURCES}) From f856510a159a02d7bdacf76f357c9719bd66d758 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 23:11:29 +0000 Subject: [PATCH 130/670] Get openrct2-cli linking successfully --- src/openrct2-cli/CMakeLists.txt | 4 +++- src/openrct2/CMakeLists.txt | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 1ba811b718..28e1240a57 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -22,7 +22,9 @@ set (PROJECT openrct2) project(${PROJECT}) add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) -target_link_libraries(${PROJECT} "libopenrct2") +target_link_libraries(${PROJECT} "libopenrct2" + ${SDL2_LIBRARIES} + ${SDL2_TTF_LIBRARIES}) # Includes target_include_directories(${PROJECT} PRIVATE ${SDL2_INCLUDE_DIRS} diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index ea6a30bb9e..4a4578393a 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -34,6 +34,32 @@ project(${PROJECT}) add_library(${PROJECT} SHARED ${OPENRCT2_CORE_SOURCES}) set_target_properties(${PROJECT} PROPERTIES PREFIX "") +# Libraries +if (UNIX AND NOT APPLE AND NOT DISABLE_TTF) + # FontConfig for TrueType fonts. + PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) + include_directories(${FONTCONFIG_INCLUDE_DIRS}) + target_link_libraries(${PROJECT} ${FONTCONFIG_LIBRARIES}) +endif() + +target_link_libraries(${PROJECT} ${GL_LIBRARIES}) +target_link_libraries(${PROJECT} ${SDL2_LIBRARIES} + ${SDL2_TTF_LIBRARIES} + ${LIBCURL_LIBRARIES} + ${JANSSON_LIBRARIES} + ${SPEEX_LIBRARIES} + ${PNG_LIBRARIES} + ${ZLIB_LIBRARIES} + ${BREAKPAD_LIBS} + ${SSL_LIBRARIES} + dl + ${LIBZIP_LIBRARIES}) + +if (APPLE OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD") + find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c) + target_link_libraries(${PROJECT} ${ICONV_LIBRARIES}) +endif() + # Includes target_include_directories(${PROJECT} SYSTEM PRIVATE ${LIBZIP_INCLUDE_DIRS}) target_include_directories(${PROJECT} PRIVATE ${SDL2_INCLUDE_DIRS} From 89780363eed75d88c3e8038dfb3e7815405101c3 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Mar 2017 23:40:17 +0000 Subject: [PATCH 131/670] Add openrct2-ui cmake project --- src/CMakeLists.txt | 8 ++++++- src/openrct2-cli/CMakeLists.txt | 8 +++---- src/openrct2-ui/CMakeLists.txt | 42 +++++++++++++++++++++++++++++++++ src/openrct2-ui/UiContext.cpp | 2 +- src/openrct2/CMakeLists.txt | 2 -- 5 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 src/openrct2-ui/CMakeLists.txt diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index db1b669ee5..1c39aa498a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,5 +4,11 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif() +option (CLI_ONLY "CLI only build of OpenRCT2") + include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2/CMakeLists.txt" NO_POLICY_SCOPE) -include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) +if (CLI_ONLY) + include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) +else () + include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE) +endif () diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 28e1240a57..8ef2c3e4fa 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -22,13 +22,11 @@ set (PROJECT openrct2) project(${PROJECT}) add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) -target_link_libraries(${PROJECT} "libopenrct2" - ${SDL2_LIBRARIES} - ${SDL2_TTF_LIBRARIES}) +target_link_libraries(${PROJECT} "libopenrct2") # Includes -target_include_directories(${PROJECT} PRIVATE ${SDL2_INCLUDE_DIRS} - "${CMAKE_CURRENT_LIST_DIR}/..") +target_include_directories(${PROJECT} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.." + ${SDL2_INCLUDE_DIRS}) # Compiler flags set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt new file mode 100644 index 0000000000..293cfd25cb --- /dev/null +++ b/src/openrct2-ui/CMakeLists.txt @@ -0,0 +1,42 @@ +# CMAKE project for openrct2-cli (UI build of OpenRCT2) +cmake_minimum_required(VERSION 2.6) +if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) + message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") +endif() + +# CMake dependencies +include(FindPkgConfig) + +# Third party libraries +PKG_CHECK_MODULES(GL REQUIRED gl) +PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) + +# Sources +file(GLOB_RECURSE OPENRCT2_CLI_SOURCES + "${CMAKE_CURRENT_LIST_DIR}/*.c" + "${CMAKE_CURRENT_LIST_DIR}/*.cpp" + "${CMAKE_CURRENT_LIST_DIR}/*.h" + "${CMAKE_CURRENT_LIST_DIR}/*.hpp") + +# Outputs +set (PROJECT openrct2) +project(${PROJECT}) +add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) + +target_link_libraries(${PROJECT} "libopenrct2" + ${GL_LIBRARIES} + ${SDL2_LIBRARIES} + ${SDL2_TTF_LIBRARIES}) + +# Includes +target_include_directories(${PROJECT} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.." + ${OPENGL_INCLUDE_DIRS} + ${SDL2_INCLUDE_DIRS}) + +# Compiler flags +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") + +add_definitions(-DOPENGL_NO_LINK) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 6863b0a758..c9ae28c1ed 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -18,8 +18,8 @@ #include #include #include +#include "drawing/engines/DrawingEngines.h" #include "UiContext.h" -#include "drawing\engines\DrawingEngines.h" using namespace OpenRCT2; using namespace OpenRCT2::Ui; diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 4a4578393a..1ef1b68c76 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -20,7 +20,6 @@ PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) PKG_CHECK_MODULES(SDL2_TTF REQUIRED SDL2_ttf) PKG_CHECK_MODULES(SPEEX REQUIRED speexdsp) -PKG_CHECK_MODULES(GL REQUIRED gl) # Sources file(GLOB_RECURSE OPENRCT2_CORE_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.c" @@ -42,7 +41,6 @@ if (UNIX AND NOT APPLE AND NOT DISABLE_TTF) target_link_libraries(${PROJECT} ${FONTCONFIG_LIBRARIES}) endif() -target_link_libraries(${PROJECT} ${GL_LIBRARIES}) target_link_libraries(${PROJECT} ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${LIBCURL_LIBRARIES} From c7b1feea077ccb3efafbc2cce17a0a978e491df7 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 25 Mar 2017 01:40:16 +0000 Subject: [PATCH 132/670] Add back most of the cmake options --- src/CMakeLists.txt | 44 +++++ src/openrct2-cli/CMakeLists.txt | 10 +- src/openrct2-ui/CMakeLists.txt | 51 ++++-- src/openrct2/CMakeLists.txt | 304 ++++++++++++++++++++++++++++---- 4 files changed, 362 insertions(+), 47 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1c39aa498a..c268db0ef9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,12 +3,56 @@ cmake_minimum_required(VERSION 2.6) if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif() +set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/..") option (CLI_ONLY "CLI only build of OpenRCT2") +# Define current git branch +execute_process( + COMMAND git rev-parse --abbrev-ref HEAD + WORKING_DIRECTORY ${ROOT_DIR} + OUTPUT_VARIABLE OPENRCT2_BRANCH + OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_QUIET +) +add_definitions(-DOPENRCT2_BRANCH="${OPENRCT2_BRANCH}") + +# Define commit hash +execute_process( + COMMAND git rev-parse HEAD + WORKING_DIRECTORY ${ROOT_DIR} + OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1 + OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_QUIET +) +add_definitions(-DOPENRCT2_COMMIT_SHA1="${OPENRCT2_COMMIT_SHA1}") + +# Define short commit hash +execute_process( + COMMAND git rev-parse --short HEAD + WORKING_DIRECTORY ${ROOT_DIR} + OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1_SHORT + OUTPUT_STRIP_TRAILING_WHITESPACE + ERROR_QUIET +) + +# Tagged builds are not meant to display commit info +if (NOT OPENRCT2_COMMIT_SHA1_SHORT STREQUAL "HEAD") + add_definitions(-DOPENRCT2_COMMIT_SHA1_SHORT="${OPENRCT2_COMMIT_SHA1_SHORT}") +endif() + +# Include sub-projects include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2/CMakeLists.txt" NO_POLICY_SCOPE) if (CLI_ONLY) include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) else () include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE) endif () + +# g2 +add_custom_command( + OUTPUT g2.dat + COMMAND ./openrct2 sprite build ${CMAKE_BINARY_DIR}/g2.dat ${ROOT_DIR}/resources/g2/ + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} +) +add_custom_target(g2 DEPENDS ${PROJECT} g2.dat) diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 8ef2c3e4fa..9c1c24a5e4 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6) if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") -endif() +endif () # CMake dependencies include(FindPkgConfig) @@ -29,7 +29,7 @@ target_include_directories(${PROJECT} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.." ${SDL2_INCLUDE_DIRS}) # Compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") -set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -Wimplicit") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}") diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 293cfd25cb..712b996057 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 2.6) if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") -endif() +endif () + +# Options +option(DISABLE_OPENGL "Disable OpenGL support.") # CMake dependencies include(FindPkgConfig) @@ -10,9 +13,17 @@ include(FindPkgConfig) # Third party libraries PKG_CHECK_MODULES(GL REQUIRED gl) PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) +if (NOT DISABLE_OPENGL) + # GL doesn't work nicely with macOS, while find_package doesn't work with multiarch on Ubuntu. + if (APPLE) + find_package(OpenGL REQUIRED) + elseif (NOT WIN32) + PKG_CHECK_MODULES(GL REQUIRED gl) + endif () +endif () # Sources -file(GLOB_RECURSE OPENRCT2_CLI_SOURCES +file(GLOB_RECURSE OPENRCT2_UI_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.c" "${CMAKE_CURRENT_LIST_DIR}/*.cpp" "${CMAKE_CURRENT_LIST_DIR}/*.h" @@ -21,22 +32,42 @@ file(GLOB_RECURSE OPENRCT2_CLI_SOURCES # Outputs set (PROJECT openrct2) project(${PROJECT}) -add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) +add_executable(${PROJECT} ${OPENRCT2_UI_SOURCES}) target_link_libraries(${PROJECT} "libopenrct2" - ${GL_LIBRARIES} ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARIES}) +if (NOT DISABLE_OPENGL) + if (WIN32) + target_link_libraries(${PROJECT} opengl32) + elseif (APPLE) + target_link_libraries(${PROJECT} ${OPENGL_LIBRARY}) + else () + target_link_libraries(${PROJECT} ${GL_LIBRARIES}) + endif () +endif () + # Includes target_include_directories(${PROJECT} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.." - ${OPENGL_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS}) # Compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") -set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") +if (WIN32) + # mingw complains about "%zu" not being a valid format specifier for printf, unless we + # tell it that it is + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__USE_MINGW_ANSI_STDIO=1") +endif () -add_definitions(-DOPENGL_NO_LINK) +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -Wimplicit") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14") +set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}") + +# Defines +if (DISABLE_OPENGL) + add_definitions(-DDISABLE_OPENGL) +else () + # Makes OpenGL function get queried in run-time rather than linked-in + add_definitions(-DOPENGL_NO_LINK) +endif () diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 1ef1b68c76..1ea3b27514 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -2,76 +2,316 @@ cmake_minimum_required(VERSION 2.6) if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") -endif() +endif () # CMake dependencies +include(CheckCCompilerFlag) +include(CheckCXXCompilerFlag) include(FindPkgConfig) +# Options +option(STATIC "Create a static build.") +option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") +option(USE_MMAP "Use mmap to try loading rct2's data segment into memory.") +option(DISABLE_RCT2 "Build a standalone version, without using code and data segments from vanilla. On by default." ON) + +option(DISABLE_HTTP_TWITCH "Disable HTTP and Twitch support.") +option(DISABLE_NETWORK "Disable multiplayer functionality. Mainly for testing.") +option(DISABLE_TTF "Disable support for TTF provided by SDL2_ttf.") +option(ENABLE_LIGHTFX "Enable lighting effects." ON) + +if (NOT DISABLE_RCT2) + if (WIN32) + message(FATAL_ERROR "DISABLE_RCT2 not supported for Windows") + endif () + if (NOT FORCE32) + set(FORCE32 ON) + message("DISABLE_RCT2 implies FORCE32") + endif () +endif () + +# Needed for linking with non-broken OpenSSL on Apple platforms +if (APPLE) + set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/openssl/lib/pkgconfig") +endif () + # Third party libraries PKG_CHECK_MODULES(JANSSON REQUIRED jansson>=2.5) -PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl) PKG_CHECK_MODULES(LIBZIP REQUIRED libzip>=1.0) -PKG_CHECK_MODULES(SSL REQUIRED openssl>=1.0.0) -PKG_CHECK_MODULES(PNG libpng>=1.6) PKG_CHECK_MODULES(ZLIB REQUIRED zlib) +PKG_CHECK_MODULES(PNG libpng>=1.6) +if (NOT PNG_FOUND) + PKG_CHECK_MODULES(PNG libpng16) + if (NOT PNG_FOUND) + PKG_CHECK_MODULES(PNG libpng>=1.2) + if (NOT PNG_FOUND) + PKG_CHECK_MODULES(PNG REQUIRED libpng12) + endif () + endif () +endif () + +# Third party libraries (optional) +if (NOT DISABLE_HTTP_TWITCH OR NOT DISABLE_NETWORK) + PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl) +endif () +if (NOT DISABLE_NETWORK) + PKG_CHECK_MODULES(SSL REQUIRED openssl>=1.0.0) +endif () + # Third party libraries (which we want to eventually remove from libopenrct2) -PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) -PKG_CHECK_MODULES(SDL2_TTF REQUIRED SDL2_ttf) PKG_CHECK_MODULES(SPEEX REQUIRED speexdsp) +if (NOT DISABLE_TTF) + if (STATIC) + # FreeType is required by SDL2_ttf, but not wired up properly in package + PKG_CHECK_MODULES(FREETYPE REQUIRED freetype2) + endif () + PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) + PKG_CHECK_MODULES(SDL2_TTF REQUIRED SDL2_ttf) +endif () # Sources file(GLOB_RECURSE OPENRCT2_CORE_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.c" "${CMAKE_CURRENT_LIST_DIR}/*.cpp" "${CMAKE_CURRENT_LIST_DIR}/*.h" "${CMAKE_CURRENT_LIST_DIR}/*.hpp") +if (APPLE) + file(GLOB_RECURSE OPENRCT2_CORE_MM_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.m") + set_source_files_properties(${OPENRCT2_CORE_MM_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c -fmodules") +endif () + +# Handle creating the rct2 text and data files on macOS and Linux +# See details in src/openrct2/rct2/interop.c:rct2_interop_setup_segment for how the values +# were derived. +if (NOT DISABLE_RCT2 AND UNIX) + set(OPENRCT2_EXE "${ROOT_DIR}/openrct2.exe") + add_custom_command( + OUTPUT openrct2_text + COMMAND dd if="${OPENRCT2_EXE}" of="${CMAKE_BINARY_DIR}/openrct2_text" bs=4096 skip=1 count=1187 + DEPENDS ${OPENRCT2_EXE} + ) + add_custom_command( + OUTPUT openrct2_data + COMMAND dd if="${OPENRCT2_EXE}" of="${CMAKE_BINARY_DIR}/openrct2_data" bs=4096 skip=1188 count=318 + COMMAND dd if=/dev/zero of="${CMAKE_BINARY_DIR}/openrct2_data" bs=4096 seek=318 count=2630 conv=notrunc + COMMAND dd if="${OPENRCT2_EXE}" of="${CMAKE_BINARY_DIR}/openrct2_data" bs=4096 skip=1506 seek=2948 count=1 conv=notrunc + DEPENDS ${OPENRCT2_EXE} + ) + add_custom_target(segfiles DEPENDS openrct2_text openrct2_data) + if (NOT USE_MMAP) + if (APPLE) + set(RCT2_SEGMENT_LINKER_FLAGS "-sectcreate rct2_text __text ${CMAKE_BINARY_DIR}/openrct2_text -sectcreate rct2_data __data ${CMAKE_BINARY_DIR}/openrct2_data -segaddr rct2_data 0x8a4000 -segprot rct2_data rwx rwx -segaddr rct2_text 0x401000 -segprot rct2_text rwx rwx -segaddr __TEXT 0x2000000 -read_only_relocs suppress") + else () + # For Linux we have to use objcopy to wrap regular binaries into a linkable + # format. We use specific section names which are then referenced in a + # bespoke linker script so they can be placed at predefined VMAs. + add_custom_command( + OUTPUT openrct2_text_section.o + COMMAND objcopy --input binary --output ${OBJ_FORMAT} --binary-architecture i386 openrct2_text openrct2_text_section.o --rename-section .data=.rct2_text,contents,alloc,load,readonly,code + DEPENDS segfiles + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + ) + add_custom_command( + OUTPUT openrct2_data_section.o + COMMAND objcopy --input binary --output ${OBJ_FORMAT} --binary-architecture i386 openrct2_data openrct2_data_section.o --rename-section .data=.rct2_data,contents,alloc,load,readonly,data + DEPENDS segfiles + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + ) + add_custom_target(linkable_sections DEPENDS openrct2_text_section.o openrct2_data_section.o) + set_source_files_properties( + openrct2_text_section.o openrct2_data_section.o + PROPERTIES + EXTERNAL_OBJECT true + GENERATED true + ) + # can't use GLOB here, as the files don't exist yet at cmake-time + set(RCT2_SECTIONS "${CMAKE_BINARY_DIR}/openrct2_data_section.o" "${CMAKE_BINARY_DIR}/openrct2_text_section.o") + set(RCT2_SEGMENT_LINKER_FLAGS "-Wl,-T,\"${ROOT_DIR}/distribution/linux/${LINKER_SCRIPT}\"") + endif () + endif () +elseif (USE_MMAP) + # No dd here, can't extract data segment + message(WARNING "Sorry, your platform is not supported, you have to extract data segment manually") +endif () # Outputs set(PROJECT libopenrct2) project(${PROJECT}) -add_library(${PROJECT} SHARED ${OPENRCT2_CORE_SOURCES}) +add_library(${PROJECT} SHARED ${OPENRCT2_CORE_SOURCES} ${OPENRCT2_CORE_MM_SOURCES} ${RCT2_SECTIONS}) set_target_properties(${PROJECT} PROPERTIES PREFIX "") +set_target_properties(${PROJECT} PROPERTIES COMPILE_FLAGS "-Wundef") + +if (NOT DISABLE_RCT2) + add_dependencies(${PROJECT} segfiles) + if (NOT APPLE AND NOT USE_MMAP) + add_dependencies(${PROJECT} linkable_sections) + endif () + set_target_properties(${PROJECT} PROPERTIES LINK_FLAGS ${RCT2_SEGMENT_LINKER_FLAGS}) +endif () # Libraries -if (UNIX AND NOT APPLE AND NOT DISABLE_TTF) - # FontConfig for TrueType fonts. - PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) - include_directories(${FONTCONFIG_INCLUDE_DIRS}) - target_link_libraries(${PROJECT} ${FONTCONFIG_LIBRARIES}) -endif() +if (STATIC) + target_link_libraries(${PROJECT} ${SDL2_STATIC_LIBRARIES} + ${JANSSON_STATIC_LIBRARIES} + ${SPEEX_STATIC_LIBRARIES} + ${PNG_STATIC_LIBRARIES} + ${ZLIB_STATIC_LIBRARIES} + ${LIBZIP_STATIC_LIBRARIES}) +else () + target_link_libraries(${PROJECT} ${SDL2_LIBRARIES} + ${JANSSON_LIBRARIES} + ${SPEEX_LIBRARIES} + ${PNG_LIBRARIES} + ${ZLIB_LIBRARIES} + ${LIBZIP_LIBRARIES}) +endif () -target_link_libraries(${PROJECT} ${SDL2_LIBRARIES} - ${SDL2_TTF_LIBRARIES} - ${LIBCURL_LIBRARIES} - ${JANSSON_LIBRARIES} - ${SPEEX_LIBRARIES} - ${PNG_LIBRARIES} - ${ZLIB_LIBRARIES} - ${BREAKPAD_LIBS} - ${SSL_LIBRARIES} - dl - ${LIBZIP_LIBRARIES}) +if (UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "BSD") + # Include libdl for dlopen + target_link_libraries(${PROJECT} dl) +endif () + +if (NOT DISABLE_NETWORK) + if (WIN32) + target_link_libraries(${PROJECT} ws2_32) + endif () + if (STATIC) + target_link_libraries(${PROJECT} ${LIBCURL_STATIC_LIBRARIES} + ${SSL_STATIC_LIBRARIES}) + else () + target_link_libraries(${PROJECT} ${LIBCURL_LIBRARIES} + ${SSL_LIBRARIES}) + endif () +endif () + +if (NOT DISABLE_TTF) + if (STATIC) + target_link_libraries(${PROJECT} ${FREETYPE_STATIC_LIBRARIES} + ${SDL2_TTF_STATIC_LIBRARIES}) + if (UNIX AND NOT APPLE) + target_link_libraries(${PROJECT} ${FONTCONFIG_STATIC_LIBRARIES}) + endif () + else () + target_link_libraries(${PROJECT} ${SDL2_TTF_LIBRARIES}) + if (UNIX AND NOT APPLE) + target_link_libraries(${PROJECT} ${FONTCONFIG_LIBRARIES}) + endif () + endif () +endif () if (APPLE OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD") - find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c) + find_library(ICONV_LIBRARIES NAMES c iconv libiconv libiconv-2) target_link_libraries(${PROJECT} ${ICONV_LIBRARIES}) endif() # Includes target_include_directories(${PROJECT} SYSTEM PRIVATE ${LIBZIP_INCLUDE_DIRS}) target_include_directories(${PROJECT} PRIVATE ${SDL2_INCLUDE_DIRS} - ${LIBCURL_INCLUDE_DIRS} ${JANSSON_INCLUDE_DIRS} ${SPEEX_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS} - ${ZLIB_INCLUDE_DIRS} - ${BREAKPAD_INCLUDE_DIR} - ${SSL_INCLUDE_DIRS} - ${FONTCONFIG_INCLUDE_DIRS}) + ${ZLIB_INCLUDE_DIRS}) +if (NOT DISABLE_HTTP_TWITCH OR NOT DISABLE_NETWORK) + target_include_directories(${PROJECT} PRIVATE ${LIBCURL_INCLUDE_DIRS}) +endif () +if (NOT DISABLE_NETWORK) + target_include_directories(${PROJECT} PRIVATE ${SSL_INCLUDE_DIRS}) +endif () +if (NOT DISABLE_TTF AND UNIX AND NOT APPLE) + target_include_directories(${PROJECT} PRIVATE ${FONTCONFIG_INCLUDE_DIRS}) +endif () # Compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS}") +set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wno-unknown-pragmas -Wno-unused-function -Wno-missing-braces ") +set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-comment -Wshadow -Wmissing-declarations -Wnonnull") + +# On mingw all code is already PIC, this will avoid compiler error on redefining this option +if (NOT MINGW) + set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fPIC") +endif () + +if (APPLE AND NOT USE_MMAP) + set(PIE_FLAG "-fno-pie") +else () + set(PIE_FLAG "-fpie") +endif () + +set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG=${DEBUG_LEVEL}") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG=${DEBUG_LEVEL}") + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 ${COMMON_COMPILE_OPTIONS} ${TARGET_M} -Wimplicit") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 ${COMMON_COMPILE_OPTIONS} ${TARGET_M}") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") + +function (ADD_CHECK_C_COMPILER_FLAG _CFLAGS _CACHE_VAR _FLAG) + CHECK_C_COMPILER_FLAG("${_FLAG}" "${_CACHE_VAR}") + if (${_CACHE_VAR}) + set(${_CFLAGS} "${${_CFLAGS}} ${_FLAG}" PARENT_SCOPE) + else () + message(STATUS "Unsupported CFLAG: ${_FLAG}") + endif () +endfunction () + +function (ADD_CHECK_CXX_COMPILER_FLAG _CXXFLAGS _CACHE_VAR _FLAG) + CHECK_CXX_COMPILER_FLAG("${_FLAG}" "${_CACHE_VAR}") + if (${_CACHE_VAR}) + set(${_CXXFLAGS} "${${_CXXFLAGS}} ${_FLAG}" PARENT_SCOPE) + else () + message(STATUS "Unsupported CXXFLAG: ${_FLAG}") + endif () +endfunction () + +# Launchpad turns on -Wdate-time for compilers that support it, this shouldn't break our build +ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_WRITE_STRINGS -Wno-error=date-time) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_WRITE_STRINGS -Wno-error=date-time) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_NULL_DEREFERENCE -Wnull-dereference) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_FINAL_TYPES -Wsuggest-final-types) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_FINAL_METHODS -Wsuggest-final-methods) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_OVERRIDE -Wsuggest-override) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_DUPLICATED_COND -Wduplicated-cond) + +# Items below are not supported by ICC +ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_REDUNDANT_DECLS -Wredundant-decls) +ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_IGNORED_QUALIFIERS -Wignored-qualifiers) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_REDUNDANT_DECLS -Wredundant-decls) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_IGNORED_QUALIFIERS -Wignored-qualifiers) + +# -Wstrict-overflow is only active when -fstrict-overflow is enabled, but -fstrict-overflow +# is enabled on -O2, -O3, -Os. This should help catch bugs locally before they reach Travis +# As of 2a435bf -Wstrict-overflow=1 passes, but higher values do not. +set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-overflow") +ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_STRICT_OVERFLOW -Wstrict-overflow=1) +ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_STRICT_OVERFLOW -Wstrict-overflow=1) + +if (FORCE32) + set(TARGET_M "-m32") + set(OBJ_FORMAT "elf32-i386") + set(LINKER_SCRIPT "ld_script_i386.xc") +endif () + +# Defines +if (USE_MMAP) + add_definitions(-DUSE_MMAP) +endif () +if (DISABLE_NETWORK) + add_definitions(-DDISABLE_NETWORK) +endif () +if (DISABLE_HTTP_TWITCH) + add_definitions(-DDISABLE_HTTP) + add_definitions(-DDISABLE_TWITCH) +endif () +if (DISABLE_TTF) + add_definitions(-DNO_TTF) +endif () +if (ENABLE_LIGHTFX) + add_definitions(-D__ENABLE_LIGHTFX__) +endif () + +if (NOT DISABLE_RCT2) + # Disable optimizations for addresses.c for all compilers, to allow optimized + # builds without need for -fno-omit-frame-pointer + set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/rct2/addresses.c PROPERTIES COMPILE_FLAGS -O0) +endif () From 06bba09b43a373198998cefd67e7ab2f7dd09785 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 25 Mar 2017 02:03:35 +0000 Subject: [PATCH 133/670] Fix various issues with the cmake projects --- src/CMakeLists.txt | 3 ++- src/openrct2-cli/CMakeLists.txt | 10 ++++++---- src/openrct2-ui/CMakeLists.txt | 11 ++++++----- src/openrct2/CMakeLists.txt | 29 +++++++++++++---------------- 4 files changed, 27 insertions(+), 26 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c268db0ef9..af92abf923 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,7 +5,8 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) endif() set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/..") -option (CLI_ONLY "CLI only build of OpenRCT2") +option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") +option(CLI_ONLY "CLI only build of OpenRCT2") # Define current git branch execute_process( diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 9c1c24a5e4..3966b7f05b 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -29,7 +29,9 @@ target_include_directories(${PROJECT} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.." ${SDL2_INCLUDE_DIRS}) # Compiler flags -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -Wimplicit") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14") -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}") -set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}") +if (FORCE32) + set(TARGET_M "-m32") +endif () +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 ${TARGET_M}") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 ${TARGET_M}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TARGET_M}") diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 712b996057..1d514db2ab 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -53,16 +53,17 @@ target_include_directories(${PROJECT} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.." ${SDL2_INCLUDE_DIRS}) # Compiler flags +if (FORCE32) + set(TARGET_M "-m32") +endif () if (WIN32) # mingw complains about "%zu" not being a valid format specifier for printf, unless we # tell it that it is set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__USE_MINGW_ANSI_STDIO=1") endif () - -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -Wimplicit") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14") -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}") -set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS}") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 ${TARGET_M}") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 ${TARGET_M}") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TARGET_M}") # Defines if (DISABLE_OPENGL) diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 1ea3b27514..3fa355600e 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -11,7 +11,6 @@ include(FindPkgConfig) # Options option(STATIC "Create a static build.") -option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") option(USE_MMAP "Use mmap to try loading rct2's data segment into memory.") option(DISABLE_RCT2 "Build a standalone version, without using code and data segments from vanilla. On by default." ON) @@ -25,8 +24,7 @@ if (NOT DISABLE_RCT2) message(FATAL_ERROR "DISABLE_RCT2 not supported for Windows") endif () if (NOT FORCE32) - set(FORCE32 ON) - message("DISABLE_RCT2 implies FORCE32") + message(FATAL_ERROR "DISABLE_RCT2 requires FORCE32") endif () endif () @@ -100,6 +98,8 @@ if (NOT DISABLE_RCT2 AND UNIX) ) add_custom_target(segfiles DEPENDS openrct2_text openrct2_data) if (NOT USE_MMAP) + set(OBJ_FORMAT "elf32-i386") + set(LINKER_SCRIPT "ld_script_i386.xc") if (APPLE) set(RCT2_SEGMENT_LINKER_FLAGS "-sectcreate rct2_text __text ${CMAKE_BINARY_DIR}/openrct2_text -sectcreate rct2_data __data ${CMAKE_BINARY_DIR}/openrct2_data -segaddr rct2_data 0x8a4000 -segprot rct2_data rwx rwx -segaddr rct2_text 0x401000 -segprot rct2_text rwx rwx -segaddr __TEXT 0x2000000 -read_only_relocs suppress") else () @@ -144,10 +144,12 @@ set_target_properties(${PROJECT} PROPERTIES COMPILE_FLAGS "-Wundef") if (NOT DISABLE_RCT2) add_dependencies(${PROJECT} segfiles) - if (NOT APPLE AND NOT USE_MMAP) - add_dependencies(${PROJECT} linkable_sections) + if (NOT USE_MMAP) + if (NOT APPLE) + add_dependencies(${PROJECT} linkable_sections) + endif () + set_target_properties(${PROJECT} PROPERTIES LINK_FLAGS ${RCT2_SEGMENT_LINKER_FLAGS}) endif () - set_target_properties(${PROJECT} PROPERTIES LINK_FLAGS ${RCT2_SEGMENT_LINKER_FLAGS}) endif () # Libraries @@ -223,8 +225,10 @@ if (NOT DISABLE_TTF AND UNIX AND NOT APPLE) endif () # Compiler flags +set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.") set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wno-unknown-pragmas -Wno-unused-function -Wno-missing-braces ") set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-comment -Wshadow -Wmissing-declarations -Wnonnull") +set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -DDEBUG=${DEBUG_LEVEL}") # On mingw all code is already PIC, this will avoid compiler error on redefining this option if (NOT MINGW) @@ -237,14 +241,13 @@ else () set(PIE_FLAG "-fpie") endif () -set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG=${DEBUG_LEVEL}") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG=${DEBUG_LEVEL}") +if (FORCE32) + set(TARGET_M "-m32") +endif () set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 ${COMMON_COMPILE_OPTIONS} ${TARGET_M} -Wimplicit") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 ${COMMON_COMPILE_OPTIONS} ${TARGET_M}") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") -set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") function (ADD_CHECK_C_COMPILER_FLAG _CFLAGS _CACHE_VAR _FLAG) CHECK_C_COMPILER_FLAG("${_FLAG}" "${_CACHE_VAR}") @@ -286,12 +289,6 @@ set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-overflow") ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_STRICT_OVERFLOW -Wstrict-overflow=1) ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_STRICT_OVERFLOW -Wstrict-overflow=1) -if (FORCE32) - set(TARGET_M "-m32") - set(OBJ_FORMAT "elf32-i386") - set(LINKER_SCRIPT "ld_script_i386.xc") -endif () - # Defines if (USE_MMAP) add_definitions(-DUSE_MMAP) From 10182879da50a771f371e5bbf02063a5b5d12629 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 25 Mar 2017 03:16:40 +0000 Subject: [PATCH 134/670] Invert Context and UiContext dependencies --- src/openrct2-dll/openrct2-dll.cpp | 10 ++- src/openrct2-ui/UiContext.cpp | 53 +++++++----- src/openrct2-ui/UiContext.h | 7 +- .../drawing/engines/DrawingEngines.h | 33 +++----- .../drawing/engines/SoftwareDrawingEngine.cpp | 6 +- .../engines/opengl/OpenGLDrawingEngine.cpp | 17 ++-- src/openrct2/Context.cpp | 78 +++++++++++------ src/openrct2/Context.h | 11 +-- src/openrct2/drawing/IDrawingContext.h | 34 ++++---- src/openrct2/drawing/IDrawingEngine.h | 83 ++++++++----------- src/openrct2/drawing/NewDrawing.cpp | 32 ++----- src/openrct2/drawing/Rain.cpp | 2 + src/openrct2/drawing/Rain.h | 7 +- src/openrct2/ui/UiContext.h | 70 ++++++++++++++++ 14 files changed, 260 insertions(+), 183 deletions(-) create mode 100644 src/openrct2/ui/UiContext.h diff --git a/src/openrct2-dll/openrct2-dll.cpp b/src/openrct2-dll/openrct2-dll.cpp index 8e08fd6d39..c15683e233 100644 --- a/src/openrct2-dll/openrct2-dll.cpp +++ b/src/openrct2-dll/openrct2-dll.cpp @@ -22,8 +22,12 @@ #include #include #include +#include #include +using namespace OpenRCT2; +using namespace OpenRCT2::Ui; + #define DLLEXPORT extern "C" __declspec(dllexport) static char * * GetCommandLineArgs(int argc, wchar_t * * argvW); @@ -39,13 +43,13 @@ DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t * * argvW) return -1; } - OpenRCT2::IContext * context = OpenRCT2::CreateContext(); - OpenRCT2::Ui::IUiContext * uiContext = OpenRCT2::Ui::CreateContext(context); + IUiContext * uiContext = OpenRCT2::Ui::CreateContext(); + IContext * context = OpenRCT2::CreateContext(uiContext); int exitCode = context->RunOpenRCT2(argc, argv); - delete uiContext; delete context; + delete uiContext; FreeCommandLineArgs(argc, argv); return exitCode; diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index c9ae28c1ed..397a78b9ac 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -17,41 +17,56 @@ #include #include #include -#include +#include +#include #include "drawing/engines/DrawingEngines.h" #include "UiContext.h" using namespace OpenRCT2; +using namespace OpenRCT2::Drawing; using namespace OpenRCT2::Ui; class UiContext : public IUiContext { -private: - IContext * const _context; - std::vector> _registrations; - - // Drawing engines - SoftwareDrawingEngineFactory _softwareDrawingFactory; - HardwareDisplayDrawingEngineFactory _hardwareDrawingFactory; -#ifndef DISABLE_OPENGL - OpenGLDrawingEngineFactory _openglDrawingFactory; -#endif - public: - UiContext(IContext * context) : - _context(context) + UiContext() { - _registrations.emplace_back(context->RegisterDrawingEngine(DRAWING_ENGINE_SOFTWARE, &_softwareDrawingFactory)); - _registrations.emplace_back(context->RegisterDrawingEngine(DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY, &_hardwareDrawingFactory)); - _registrations.emplace_back(context->RegisterDrawingEngine(DRAWING_ENGINE_OPENGL, &_openglDrawingFactory)); } ~UiContext() override { } + + // Window + void * GetWindow() override { return nullptr; } + sint32 GetWidth() override { return 0; } + sint32 GetHeight() override { return 0; } + void SetFullscreenMode(FULLSCREEN_MODE mode) override { } + + // Drawing + IDrawingEngine * CreateDrawingEngine(DRAWING_ENGINE_TYPE type) override + { + switch ((sint32)type) { + case DRAWING_ENGINE_SOFTWARE: + return CreateSoftwareDrawingEngine(); + case DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY: + return CreateHardwareDisplayDrawingEngine(); +#ifndef DISABLE_OPENGL + case DRAWING_ENGINE_OPENGL: + return CreateOpenGLDrawingEngine(); +#endif + default: + return nullptr; + } + } + + // Text input + bool IsTextInputActive() override { return false; } + const TextInputSession * StartTextInput(utf8 * buffer, sint32 bufferSize) override { return nullptr; } + void StopTextInput() override { } }; -IUiContext * OpenRCT2::Ui::CreateContext(IContext * context) +IUiContext * OpenRCT2::Ui::CreateContext() { - return new UiContext(context); + return new UiContext(); } diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h index ff3b7727d9..cfff4c2439 100644 --- a/src/openrct2-ui/UiContext.h +++ b/src/openrct2-ui/UiContext.h @@ -24,11 +24,8 @@ namespace OpenRCT2 namespace Ui { - interface IUiContext - { - virtual ~IUiContext() { } - }; + interface IUiContext; - IUiContext * CreateContext(IContext * context); + IUiContext * CreateContext(); } } diff --git a/src/openrct2-ui/drawing/engines/DrawingEngines.h b/src/openrct2-ui/drawing/engines/DrawingEngines.h index 08a364425d..68aa8296bd 100644 --- a/src/openrct2-ui/drawing/engines/DrawingEngines.h +++ b/src/openrct2-ui/drawing/engines/DrawingEngines.h @@ -17,29 +17,20 @@ #pragma once #include -#include -namespace OpenRCT2 { namespace Ui +namespace OpenRCT2 { - class SoftwareDrawingEngineFactory : public Drawing::IDrawingEngineFactory + namespace Drawing { - public: - IDrawingEngine * Create() override; - }; + interface IDrawingEngine; + } - class HardwareDisplayDrawingEngineFactory : public Drawing::IDrawingEngineFactory + namespace Ui { - public: - IDrawingEngine * Create() override; - }; - - #ifndef DISABLE_OPENGL - - class OpenGLDrawingEngineFactory : public Drawing::IDrawingEngineFactory - { - public: - IDrawingEngine * Create() override; - }; - - #endif // DISABLE_OPENGL -} } + Drawing::IDrawingEngine * CreateSoftwareDrawingEngine(); + Drawing::IDrawingEngine * CreateHardwareDisplayDrawingEngine(); +#ifndef DISABLE_OPENGL + Drawing::IDrawingEngine * CreateOpenGLDrawingEngine(); +#endif + } +} diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index e5da799b3a..5a044158c7 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -37,6 +37,8 @@ extern "C" #include } +using namespace OpenRCT2::Drawing; + class SoftwareDrawingEngine; struct DirtyGrid @@ -828,12 +830,12 @@ private: } }; -IDrawingEngine * OpenRCT2::Ui::SoftwareDrawingEngineFactory::Create() +IDrawingEngine * OpenRCT2::Ui::CreateSoftwareDrawingEngine() { return new SoftwareDrawingEngine(false); } -IDrawingEngine * OpenRCT2::Ui::HardwareDisplayDrawingEngineFactory::Create() +IDrawingEngine * OpenRCT2::Ui::CreateHardwareDisplayDrawingEngine() { return new SoftwareDrawingEngine(true); } diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index 185641bb21..7fecda0e9d 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -14,16 +14,7 @@ *****************************************************************************/ #pragma endregion -#ifdef DISABLE_OPENGL - -#include "../../IDrawingEngine.h" - -IDrawingEngine * DrawingEngineFactory::CreateOpenGL() -{ - return nullptr; -} - -#else +#ifndef DISABLE_OPENGL #include #include @@ -59,6 +50,10 @@ extern "C" #include "TextureCache.h" #include "DrawCommands.h" +using namespace OpenRCT2; +using namespace OpenRCT2::Drawing; +using namespace OpenRCT2::Ui; + struct OpenGLVersion { GLint Major; @@ -499,7 +494,7 @@ private: } }; -IDrawingEngine * OpenRCT2::Ui::OpenGLDrawingEngineFactory::Create() +IDrawingEngine * OpenRCT2::Ui::CreateOpenGLDrawingEngine() { return new OpenGLDrawingEngine(); } diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index ba9060a53f..0e659cdb20 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -14,41 +14,69 @@ *****************************************************************************/ #pragma endregion -#include "drawing/IDrawingEngine.h" +#include #include "Context.h" #include "OpenRCT2.h" using namespace OpenRCT2; +using namespace OpenRCT2::Ui; -class Context : public IContext +namespace OpenRCT2 { -public: - Context() + class Context : public IContext { - } + private: + IUiContext * const _uiContext; - ~Context() override - { - } + public: + // Singleton of Context. + // Remove this when GetContext() is no longer called so that + // multiple instances can be created in parallel + static Context * Instance; - IRegistration * RegisterDrawingEngine(sint32 type, Drawing::IDrawingEngineFactory * factory) override - { - return Drawing::DrawingEngineFactory::Register((DRAWING_ENGINE)type, factory); - } - - sint32 RunOpenRCT2(int argc, char * * argv) override - { - core_init(); - int runGame = cmdline_run((const char * *)argv, argc); - if (runGame == 1) + public: + Context(IUiContext * uiContext) + : _uiContext(uiContext) { - openrct2_launch(); + Instance = this; } - return gExitCode; - } -}; -IContext * OpenRCT2::CreateContext() -{ - return new Context(); + ~Context() override + { + Instance = nullptr; + } + + IUiContext * GetUiContext() override + { + return _uiContext; + } + + sint32 RunOpenRCT2(int argc, char * * argv) override + { + core_init(); + int runGame = cmdline_run((const char * *)argv, argc); + if (runGame == 1) + { + openrct2_launch(); + } + return gExitCode; + } + }; + + Context * Context::Instance = nullptr; + + IContext * CreateContext() + { + return new Context(nullptr); + } + + IContext * CreateContext(IUiContext * uiContext) + { + return new Context(uiContext); + } + + IContext * GetContext() + { + return Context::Instance; + } } diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 59b424b037..b73841d29b 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -20,11 +20,9 @@ namespace OpenRCT2 { - interface IRegistration; - - namespace Drawing + namespace Ui { - interface IDrawingEngineFactory; + interface IUiContext; } /** @@ -33,9 +31,12 @@ namespace OpenRCT2 interface IContext { virtual ~IContext() = default; - virtual IRegistration * RegisterDrawingEngine(sint32 type, Drawing::IDrawingEngineFactory * factory) abstract; + + virtual Ui::IUiContext * GetUiContext() abstract; virtual sint32 RunOpenRCT2(int argc, char * * argv) abstract; }; IContext * CreateContext(); + IContext * CreateContext(Ui::IUiContext * uiContext); + IContext * GetContext(); } diff --git a/src/openrct2/drawing/IDrawingContext.h b/src/openrct2/drawing/IDrawingContext.h index a9c9afb66f..69287c003e 100644 --- a/src/openrct2/drawing/IDrawingContext.h +++ b/src/openrct2/drawing/IDrawingContext.h @@ -18,24 +18,28 @@ #include "../common.h" -extern "C" { +extern "C" +{ #include "drawing.h" } -interface IDrawingEngine; - -interface IDrawingContext +namespace OpenRCT2 { namespace Drawing { - virtual ~IDrawingContext() { } + interface IDrawingEngine; - virtual IDrawingEngine * GetEngine() abstract; + interface IDrawingContext + { + virtual ~IDrawingContext() { } - virtual void Clear(uint8 paletteIndex) abstract; - virtual void FillRect(uint32 colour, sint32 left, sint32 top, sint32 right, sint32 bottom) abstract; - virtual void FilterRect(FILTER_PALETTE_ID palette, sint32 left, sint32 top, sint32 right, sint32 bottom) abstract; - virtual void DrawLine(uint32 colour, sint32 x1, sint32 y1, sint32 x2, sint32 y2) abstract; - virtual void DrawSprite(uint32 image, sint32 x, sint32 y, uint32 tertiaryColour) abstract; - virtual void DrawSpriteRawMasked(sint32 x, sint32 y, uint32 maskImage, uint32 colourImage) abstract; - virtual void DrawSpriteSolid(uint32 image, sint32 x, sint32 y, uint8 colour) abstract; - virtual void DrawGlyph(uint32 image, sint32 x, sint32 y, uint8 * palette) abstract; -}; + virtual OpenRCT2::Drawing::IDrawingEngine * GetEngine() abstract; + + virtual void Clear(uint8 paletteIndex) abstract; + virtual void FillRect(uint32 colour, sint32 left, sint32 top, sint32 right, sint32 bottom) abstract; + virtual void FilterRect(FILTER_PALETTE_ID palette, sint32 left, sint32 top, sint32 right, sint32 bottom) abstract; + virtual void DrawLine(uint32 colour, sint32 x1, sint32 y1, sint32 x2, sint32 y2) abstract; + virtual void DrawSprite(uint32 image, sint32 x, sint32 y, uint32 tertiaryColour) abstract; + virtual void DrawSpriteRawMasked(sint32 x, sint32 y, uint32 maskImage, uint32 colourImage) abstract; + virtual void DrawSpriteSolid(uint32 image, sint32 x, sint32 y, uint8 colour) abstract; + virtual void DrawGlyph(uint32 image, sint32 x, sint32 y, uint8 * palette) abstract; + }; +} } diff --git a/src/openrct2/drawing/IDrawingEngine.h b/src/openrct2/drawing/IDrawingEngine.h index 574913cde7..a791acc222 100644 --- a/src/openrct2/drawing/IDrawingEngine.h +++ b/src/openrct2/drawing/IDrawingEngine.h @@ -42,59 +42,44 @@ enum DRAWING_ENGINE_FLAGS #ifdef __cplusplus struct rct_drawpixelinfo; -interface IDrawingContext; -interface IDrawingEngine +namespace OpenRCT2 { namespace Drawing { - virtual ~IDrawingEngine() { } + interface IDrawingContext; - virtual void Initialise(SDL_Window * window) abstract; - virtual void Resize(uint32 width, uint32 height) abstract; - virtual void SetPalette(SDL_Color * colours) abstract; - - virtual void SetUncappedFrameRate(bool uncapped) abstract; - - virtual void Invalidate(sint32 left, sint32 top, sint32 right, sint32 bottom) abstract; - virtual void Draw() abstract; - virtual void CopyRect(sint32 x, sint32 y, sint32 width, sint32 height, sint32 dx, sint32 dy) abstract; - virtual sint32 Screenshot() abstract; - - virtual IDrawingContext * GetDrawingContext(rct_drawpixelinfo * dpi) abstract; - virtual rct_drawpixelinfo * GetDrawingPixelInfo() abstract; - - virtual DRAWING_ENGINE_FLAGS GetFlags() abstract; - - virtual void InvalidateImage(uint32 image) abstract; -}; - -interface IRainDrawer -{ - virtual ~IRainDrawer() { } - virtual void Draw(sint32 x, - sint32 y, - sint32 width, - sint32 height, - sint32 xStart, - sint32 yStart) abstract; -}; - -namespace OpenRCT2 -{ - interface IRegistration; - - namespace Drawing + interface IDrawingEngine { - interface IDrawingEngineFactory - { - virtual ~IDrawingEngineFactory() { } - virtual IDrawingEngine * Create() abstract; - }; + virtual ~IDrawingEngine() { } - namespace DrawingEngineFactory - { - IRegistration * Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory); - } - } -} + virtual void Initialise(SDL_Window * window) abstract; + virtual void Resize(uint32 width, uint32 height) abstract; + virtual void SetPalette(SDL_Color * colours) abstract; + + virtual void SetUncappedFrameRate(bool uncapped) abstract; + + virtual void Invalidate(sint32 left, sint32 top, sint32 right, sint32 bottom) abstract; + virtual void Draw() abstract; + virtual void CopyRect(sint32 x, sint32 y, sint32 width, sint32 height, sint32 dx, sint32 dy) abstract; + virtual sint32 Screenshot() abstract; + + virtual IDrawingContext * GetDrawingContext(rct_drawpixelinfo * dpi) abstract; + virtual rct_drawpixelinfo * GetDrawingPixelInfo() abstract; + + virtual DRAWING_ENGINE_FLAGS GetFlags() abstract; + + virtual void InvalidateImage(uint32 image) abstract; + }; + + interface IRainDrawer + { + virtual ~IRainDrawer() { } + virtual void Draw(sint32 x, + sint32 y, + sint32 width, + sint32 height, + sint32 xStart, + sint32 yStart) abstract; + }; +} } #endif diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 67f5668572..0ba3e5148a 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -15,6 +15,8 @@ #pragma endregion #include +#include "../Context.h" +#include "../ui/UiContext.h" #include "../core/Exception.hpp" #include "../core/Registration.hpp" #include "IDrawingContext.h" @@ -33,28 +35,10 @@ extern "C" using namespace OpenRCT2; using namespace OpenRCT2::Drawing; +using namespace OpenRCT2::Ui; static sint32 _drawingEngineType = DRAWING_ENGINE_SOFTWARE; static IDrawingEngine * _drawingEngine = nullptr; -static IDrawingEngineFactory * _drawingEngineFactories[DRAWING_ENGINE_COUNT] = { nullptr }; - -IRegistration * DrawingEngineFactory::Register(DRAWING_ENGINE type, IDrawingEngineFactory * factory) -{ - if (_drawingEngineFactories[type] != nullptr) - { - throw std::invalid_argument("Engine already registered."); - } - _drawingEngineFactories[type] = factory; - - return Registration::Create([type, factory]() -> void - { - if (_drawingEngineFactories[type] != factory) - { - throw std::invalid_argument("Engine not registered."); - } - _drawingEngineFactories[type] = nullptr; - }); -} extern "C" { @@ -94,14 +78,10 @@ extern "C" assert(_drawingEngine == nullptr); _drawingEngineType = gConfigGeneral.drawing_engine; - IDrawingEngineFactory * deFactory = _drawingEngineFactories[_drawingEngineType]; - if (deFactory == nullptr) - { - log_fatal("Drawing engine not registered."); - exit(-1); - } - IDrawingEngine * drawingEngine = deFactory->Create(); + IContext * context = GetContext(); + IUiContext * uiContext = context->GetUiContext(); + IDrawingEngine * drawingEngine = uiContext->CreateDrawingEngine((DRAWING_ENGINE_TYPE)_drawingEngineType); if (drawingEngine == nullptr) { if (_drawingEngineType == DRAWING_ENGINE_SOFTWARE) diff --git a/src/openrct2/drawing/Rain.cpp b/src/openrct2/drawing/Rain.cpp index 9def06379f..b082144bd8 100644 --- a/src/openrct2/drawing/Rain.cpp +++ b/src/openrct2/drawing/Rain.cpp @@ -26,6 +26,8 @@ extern "C" #include "Rain.h" #include "../core/Math.hpp" +using namespace OpenRCT2::Drawing; + typedef void (* DrawRainFunc)(IRainDrawer * rainDrawer, sint32 left, sint32 top, sint32 width, sint32 height); static void DrawLightRain(IRainDrawer * rainDrawer, sint32 left, sint32 top, sint32 width, sint32 height); diff --git a/src/openrct2/drawing/Rain.h b/src/openrct2/drawing/Rain.h index 89d6194bec..6c07fa7f3d 100644 --- a/src/openrct2/drawing/Rain.h +++ b/src/openrct2/drawing/Rain.h @@ -18,6 +18,9 @@ #include "../common.h" -interface IRainDrawer; +namespace OpenRCT2 { namespace Drawing +{ + interface IRainDrawer; +} } -void DrawRain(rct_drawpixelinfo * dpi, IRainDrawer * rainDrawer); +void DrawRain(rct_drawpixelinfo * dpi, OpenRCT2::Drawing::IRainDrawer * rainDrawer); diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h new file mode 100644 index 0000000000..0cbe4be69d --- /dev/null +++ b/src/openrct2/ui/UiContext.h @@ -0,0 +1,70 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include "../common.h" + +namespace OpenRCT2 +{ + namespace Drawing + { + enum class DRAWING_ENGINE_TYPE; + interface IDrawingEngine; + } + + namespace Ui + { + enum class FULLSCREEN_MODE + { + WINDOWED, + FULLSCREEN, + FULLSCREEN_DESKTOP, + }; + + struct TextInputSession + { + const utf8 * Buffer; // UTF-8 stream + size_t BufferSize; // Maximum number of bytes (excluding null terminator) + size_t Size; // Number of bytes (excluding null terminator) + uint32 Length; // Number of codepoints + size_t SelectionStart; // Selection start, in bytes + size_t SelectionSize; // Selection length in bytes + }; + + /** + * Represents the window or screen that OpenRCT2 is presented on. + */ + interface IUiContext + { + virtual ~IUiContext() = default; + + // Window + virtual void * GetWindow() abstract; + virtual sint32 GetWidth() abstract; + virtual sint32 GetHeight() abstract; + virtual void SetFullscreenMode(FULLSCREEN_MODE mode) abstract; + + // Drawing + virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) abstract; + + // Text input + virtual bool IsTextInputActive() abstract; + virtual const TextInputSession * StartTextInput(utf8 * buffer, sint32 bufferSize) abstract; + virtual void StopTextInput() abstract; + }; + } +} From 6375e01f3fbb64207acd31a2f04589aa6501365f Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 25 Mar 2017 11:22:56 +0000 Subject: [PATCH 135/670] Add VS project for CLI only build --- openrct2.sln | 14 +++++++ src/openrct2-cli/Cli.cpp | 4 -- src/openrct2-cli/openrct2-cli.vcxproj | 59 +++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 4 deletions(-) create mode 100644 src/openrct2-cli/openrct2-cli.vcxproj diff --git a/openrct2.sln b/openrct2.sln index 90e2adc669..b42ef99c1a 100644 --- a/openrct2.sln +++ b/openrct2.sln @@ -34,6 +34,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libopenrct2ui", "src\openrc {D24D94F6-2A74-480C-B512-629C306CE92F} = {D24D94F6-2A74-480C-B512-629C306CE92F} EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openrct2-cli", "src\openrct2-cli\openrct2-cli.vcxproj", "{B6808F71-30B4-4499-8FF6-0B1C86391842}" + ProjectSection(ProjectDependencies) = postProject + {D24D94F6-2A74-480C-B512-629C306CE92F} = {D24D94F6-2A74-480C-B512-629C306CE92F} + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -87,6 +92,14 @@ Global {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Release|Win32.Build.0 = Release|Win32 {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Release|x64.ActiveCfg = Release|x64 {8DD8AB7D-2EA6-44E3-8265-BAF08E832951}.Release|x64.Build.0 = Release|x64 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Debug|Win32.ActiveCfg = Debug|Win32 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Debug|Win32.Build.0 = Debug|Win32 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Debug|x64.ActiveCfg = Debug|x64 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Debug|x64.Build.0 = Debug|x64 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Release|Win32.ActiveCfg = Release|Win32 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Release|Win32.Build.0 = Release|Win32 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Release|x64.ActiveCfg = Release|x64 + {B6808F71-30B4-4499-8FF6-0B1C86391842}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -98,5 +111,6 @@ Global {62B020FA-E4FB-4C6E-B32A-DC999470F155} = {480B577D-4E4A-4757-9A42-28A9AD33E6B0} {57E60BA1-FB76-4316-909E-C1449C142327} = {480B577D-4E4A-4757-9A42-28A9AD33E6B0} {8DD8AB7D-2EA6-44E3-8265-BAF08E832951} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} + {B6808F71-30B4-4499-8FF6-0B1C86391842} = {2202A816-377D-4FA0-A7AF-7D4105F8A4FB} EndGlobalSection EndGlobal diff --git a/src/openrct2-cli/Cli.cpp b/src/openrct2-cli/Cli.cpp index 02755a1cc7..4c1e52de49 100644 --- a/src/openrct2-cli/Cli.cpp +++ b/src/openrct2-cli/Cli.cpp @@ -14,8 +14,6 @@ *****************************************************************************/ #pragma endregion -#ifndef _MSC_VER - #include using namespace OpenRCT2; @@ -30,5 +28,3 @@ int main(int argc, char * * argv) delete context; return exitCode; } - -#endif diff --git a/src/openrct2-cli/openrct2-cli.vcxproj b/src/openrct2-cli/openrct2-cli.vcxproj new file mode 100644 index 0000000000..5f153bce6e --- /dev/null +++ b/src/openrct2-cli/openrct2-cli.vcxproj @@ -0,0 +1,59 @@ + + + + ..\..\ + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {B6808F71-30B4-4499-8FF6-0B1C86391842} + openrct2-cli + openrct2-cli + + + Application + + + + openrct2-cli + $(SolutionDir)bin;$(LibraryPath) + + + + $(IntDir)\%(RelativeDir) + $(OPENRCT2_CL_ADDITIONALOPTIONS) %(AdditionalOptions) + + + libopenrct2.lib;%(AdditionalDependencies) + $(OutDir)openrct2-cli.pdb + Console + + + MachineX86 + MachineX64 + + + + + + + + + + \ No newline at end of file From 5885cb646f3d39e016705259751483982ee4dc8c Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 25 Mar 2017 14:57:02 +0000 Subject: [PATCH 136/670] Start moving window logic to UI project --- .../interface => openrct2-ui}/CursorData.cpp | 9 +- src/openrct2-ui/CursorRepository.cpp | 80 +++++ src/openrct2-ui/CursorRepository.h | 45 +++ src/openrct2-ui/UiContext.Win32.cpp | 99 ++++++ src/openrct2-ui/UiContext.cpp | 281 +++++++++++++++++- src/openrct2-ui/UiContext.h | 10 + src/openrct2-ui/libopenrct2ui.vcxproj | 4 + src/openrct2/Context.cpp | 9 + src/openrct2/Context.h | 13 + src/openrct2/input.c | 3 +- src/openrct2/interface/Cursors.cpp | 116 -------- src/openrct2/interface/Cursors.h | 25 +- src/openrct2/platform/shared.c | 225 -------------- src/openrct2/platform/windows.c | 12 - src/openrct2/ui/UiContext.h | 34 +++ src/openrct2/world/map.c | 3 +- 16 files changed, 580 insertions(+), 388 deletions(-) rename src/{openrct2/interface => openrct2-ui}/CursorData.cpp (99%) create mode 100644 src/openrct2-ui/CursorRepository.cpp create mode 100644 src/openrct2-ui/CursorRepository.h create mode 100644 src/openrct2-ui/UiContext.Win32.cpp delete mode 100644 src/openrct2/interface/Cursors.cpp diff --git a/src/openrct2/interface/CursorData.cpp b/src/openrct2-ui/CursorData.cpp similarity index 99% rename from src/openrct2/interface/CursorData.cpp rename to src/openrct2-ui/CursorData.cpp index 4777b161eb..2015f5d88b 100644 --- a/src/openrct2/interface/CursorData.cpp +++ b/src/openrct2-ui/CursorData.cpp @@ -14,9 +14,10 @@ *****************************************************************************/ #pragma endregion -#include "Cursors.h" +#include +#include "CursorRepository.h" -namespace Cursors +namespace OpenRCT2 { namespace Ui { static const CursorData BlankCursorData = { @@ -654,7 +655,7 @@ namespace Cursors &HandClosedDownCursorData, // CURSOR_HAND_CLOSED }; - const CursorData * GetCursorData(CURSOR_ID cursorId) + const CursorData * CursorRepository::GetCursorData(CURSOR_ID cursorId) { const CursorData * result = nullptr; if (cursorId >= 0 && cursorId < CURSOR_COUNT) @@ -663,4 +664,4 @@ namespace Cursors } return result; } -} +} } diff --git a/src/openrct2-ui/CursorRepository.cpp b/src/openrct2-ui/CursorRepository.cpp new file mode 100644 index 0000000000..61b027c2b2 --- /dev/null +++ b/src/openrct2-ui/CursorRepository.cpp @@ -0,0 +1,80 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include +#include +#include +#include +#include "CursorRepository.h" + +using namespace OpenRCT2::Ui; + +CursorRepository::CursorRepository() +{ + // Using system cursors + _loadedCursors[CURSOR_ARROW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW); + _loadedCursors[CURSOR_HAND_POINT] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND); + + // Using custom cursors + for (size_t i = 0; i < CURSOR_COUNT; i++) + { + const CursorData * cursorData = GetCursorData((CURSOR_ID)i); + if (cursorData != nullptr) + { + _loadedCursors[i] = Create(cursorData); + } + } + + _currentCursor = CURSOR_UNDEFINED; + SetCurrentCursor(CURSOR_ARROW); +} + +CursorRepository::~CursorRepository() +{ + for (size_t i = 0; i < CURSOR_COUNT; i++) + { + SDL_FreeCursor(_loadedCursors[i]); + _loadedCursors[i] = nullptr; + } + _currentCursor = CURSOR_UNDEFINED; +} + +CURSOR_ID CursorRepository::GetCurrentCursor() +{ + return _currentCursor; +} + +void CursorRepository::SetCurrentCursor(CURSOR_ID cursorId) +{ + if (_currentCursor != cursorId) + { + SDL_Cursor * cursor = _loadedCursors[cursorId]; + SDL_SetCursor(cursor); + _currentCursor = cursorId; + } +} + +SDL_Cursor * CursorRepository::Create(const CursorData * cursorInfo) +{ + SDL_Cursor * cursor = SDL_CreateCursor( + cursorInfo->Data, + cursorInfo->Mask, + CURSOR_WIDTH, + CURSOR_HEIGHT, + cursorInfo->HotSpot.X, + cursorInfo->HotSpot.Y); + return cursor; +} diff --git a/src/openrct2-ui/CursorRepository.h b/src/openrct2-ui/CursorRepository.h new file mode 100644 index 0000000000..c15faf4a95 --- /dev/null +++ b/src/openrct2-ui/CursorRepository.h @@ -0,0 +1,45 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include + +struct SDL_Cursor; + +namespace OpenRCT2 +{ + namespace Ui + { + class CursorRepository + { + private: + constexpr static sint32 CURSOR_WIDTH = 32; + constexpr static sint32 CURSOR_HEIGHT = 32; + + SDL_Cursor * _loadedCursors[CURSOR_COUNT]; + CURSOR_ID _currentCursor = CURSOR_UNDEFINED; + + public: + CursorRepository(); + ~CursorRepository(); + CURSOR_ID GetCurrentCursor(); + void SetCurrentCursor(CURSOR_ID cursorId); + + private: + SDL_Cursor * Create(const CursorData * cursorInfo); + static const CursorData * GetCursorData(CURSOR_ID cursorId); + }; + } +} diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp new file mode 100644 index 0000000000..55d0a6efd7 --- /dev/null +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -0,0 +1,99 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#define WIN32_LEAN_AND_MEAN + +#include +#include +#include +#include +#include "UiContext.h" + +// Native resource IDs +#include "../../../resources/resource.h" + +#ifdef __WINDOWS__ + +namespace OpenRCT2 { namespace Ui +{ + class Win32Context : public IPlatformUiContext + { + private: + HMODULE _win32module; + + public: + Win32Context() + { + _win32module = GetModuleHandleA(nullptr); + } + + void SetWindowIcon(SDL_Window * window) override + { + if (_win32module != nullptr) + { + HICON icon = LoadIconA(_win32module, MAKEINTRESOURCEA(IDI_ICON)); + if (icon != nullptr) + { + HWND hwnd = GetHWND(window); + if (hwnd != nullptr) + { + SendMessageA(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)icon); + } + } + } + } + + bool IsSteamOverlayAttached() override + { + return (GetModuleHandleA("GameOverlayRenderer.dll") != nullptr); + } + + private: + HWND GetHWND(SDL_Window * window) + { + HWND result = nullptr; + if (window != nullptr) + { + SDL_SysWMinfo wmInfo; + SDL_VERSION(&wmInfo.version); + if (SDL_GetWindowWMInfo(window, &wmInfo) != SDL_TRUE) + { + log_error("SDL_GetWindowWMInfo failed %s", SDL_GetError()); + exit(-1); + } + + result = wmInfo.info.win.window; +#ifdef __MINGW32__ + assert(sizeof(HWND) == sizeof(uint32)); + uint8 A = (uint32)result & 0xff000000 >> 24; + uint8 B = (uint32)result & 0xff0000 >> 16; + uint8 C = (uint32)result & 0xff00 >> 8; + uint8 D = (uint32)handle & 0xff; + result = (HWND)(D << 24 | A << 16 | B << 8 | C); + log_warning("twisting bits of handle, a workaround for mingw/sdl bug"); +#endif // __MINGW32__ + } + return result; + } + }; + + IPlatformUiContext * CreatePlatformUiContext() + { + return new Win32Context(); + } +} } + +#endif // __WINDOWS__ diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 397a78b9ac..711c495f7f 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -14,11 +14,17 @@ *****************************************************************************/ #pragma endregion +#include #include #include +#include +#include #include #include +#include #include +#include +#include "CursorRepository.h" #include "drawing/engines/DrawingEngines.h" #include "UiContext.h" @@ -28,20 +34,93 @@ using namespace OpenRCT2::Ui; class UiContext : public IUiContext { +private: + IPlatformUiContext * const _platformUiContext; + + CursorRepository _cursorRepository; + + SDL_Window * _window = nullptr; + sint32 _width = 0; + sint32 _height = 0; + + bool _resolutionsAllowAnyAspectRatio = false; + std::vector _fsResolutions; + + bool _steamOverlayActive = false; + public: - UiContext() + UiContext(IPlatformUiContext * platformUiContext) + : _platformUiContext(platformUiContext) { } ~UiContext() override { + CloseWindow(); } // Window - void * GetWindow() override { return nullptr; } - sint32 GetWidth() override { return 0; } - sint32 GetHeight() override { return 0; } - void SetFullscreenMode(FULLSCREEN_MODE mode) override { } + CURSOR_ID GetCursor() override + { + return _cursorRepository.GetCurrentCursor(); + } + + void SetCursor(CURSOR_ID cursor) override + { + _cursorRepository.SetCurrentCursor(cursor); + } + + void * GetWindow() override + { + return _window; + } + + sint32 GetWidth() override + { + return _width; + } + + sint32 GetHeight() override + { + return _height; + } + + void SetFullscreenMode(FULLSCREEN_MODE mode) override + { + static const sint32 SDLFSFlags[] = { 0, SDL_WINDOW_FULLSCREEN, SDL_WINDOW_FULLSCREEN_DESKTOP }; + uint32 windowFlags = SDLFSFlags[(sint32)mode]; + + // HACK Changing window size when in fullscreen usually has no effect + if (mode == FULLSCREEN_MODE::FULLSCREEN) + { + SDL_SetWindowFullscreen(_window, 0); + } + + // Set window size + if (mode == FULLSCREEN_MODE::FULLSCREEN) + { + UpdateFullscreenResolutions(); + Resolution resolution = GetClosestResolution(gConfigGeneral.fullscreen_width, gConfigGeneral.fullscreen_height); + SDL_SetWindowSize(_window, resolution.Width, resolution.Height); + } + else if (mode == FULLSCREEN_MODE::WINDOWED) + { + SDL_SetWindowSize(_window, gConfigGeneral.window_width, gConfigGeneral.window_height); + } + + if (SDL_SetWindowFullscreen(_window, windowFlags)) + { + log_fatal("SDL_SetWindowFullscreen %s", SDL_GetError()); + exit(1); + + // TODO try another display mode rather than just exiting the game + } + } + + std::vector GetFullscreenResolutions() override + { + return _fsResolutions; + } // Drawing IDrawingEngine * CreateDrawingEngine(DRAWING_ENGINE_TYPE type) override @@ -64,9 +143,199 @@ public: bool IsTextInputActive() override { return false; } const TextInputSession * StartTextInput(utf8 * buffer, sint32 bufferSize) override { return nullptr; } void StopTextInput() override { } + +private: + void CreateWindow() + { + if (SDL_Init(SDL_INIT_VIDEO) < 0) + { + log_fatal("SDL_Init %s", SDL_GetError()); + exit(-1); + } + + SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, gConfigGeneral.minimize_fullscreen_focus_loss ? "1" : "0"); + + // TODO This should probably be called somewhere else. It has nothing to do with window creation and can be done as soon as + // g1.dat is loaded. + sub_68371D(); + + // Get saved window size + sint32 width = gConfigGeneral.window_width; + sint32 height = gConfigGeneral.window_height; + if (width == -1) width = 640; + if (height == -1) height = 480; + + // Create window in window first rather than fullscreen so we have the display the window is on first + uint32 flags = SDL_WINDOW_RESIZABLE; + if (gConfigGeneral.drawing_engine == DRAWING_ENGINE_OPENGL) + { + flags |= SDL_WINDOW_OPENGL; + } + + _window = SDL_CreateWindow(OPENRCT2_NAME, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, flags); + if (_window == nullptr) + { + log_fatal("SDL_CreateWindow failed %s", SDL_GetError()); + exit(-1); + } + + SDL_SetWindowGrab(_window, gConfigGeneral.trap_cursor ? SDL_TRUE : SDL_FALSE); + SDL_SetWindowMinimumSize(_window, 720, 480); + _platformUiContext->SetWindowIcon(_window); +#ifdef __MACOSX__ + macos_disallow_automatic_window_tabbing(); +#endif + + // Initialise the surface, palette and draw buffer + OnResize(width, height); + + UpdateFullscreenResolutions(); + SetFullscreenMode((FULLSCREEN_MODE)gConfigGeneral.fullscreen_mode); + + // Check if steam overlay renderer is loaded into the process + _steamOverlayActive = _platformUiContext->IsSteamOverlayAttached(); + TriggerResize(); + } + + void CloseWindow() + { + drawing_engine_dispose(); + SDL_DestroyWindow(_window); + SDL_Quit(); + } + + void OnResize(sint32 width, sint32 height) + { + // Scale the native window size to the game's canvas size + _width = (sint32)(width / gConfigGeneral.window_scale); + _height = (sint32)(height / gConfigGeneral.window_scale); + + drawing_engine_resize(); + + uint32 flags = SDL_GetWindowFlags(_window); + if ((flags & SDL_WINDOW_MINIMIZED) == 0) + { + window_resize_gui(_width, _height); + window_relocate_windows(_width, _height); + } + + gfx_invalidate_screen(); + + // Check if the window has been resized in windowed mode and update the config file accordingly + // This is called in rct2_update and is only called after resizing a window has finished + sint32 nonWindowFlags = SDL_WINDOW_MAXIMIZED | + SDL_WINDOW_MINIMIZED | + SDL_WINDOW_FULLSCREEN | + SDL_WINDOW_FULLSCREEN_DESKTOP; + if (!(flags & nonWindowFlags)) + { + if (width != gConfigGeneral.window_width || height != gConfigGeneral.window_height) + { + gConfigGeneral.window_width = width; + gConfigGeneral.window_height = height; + config_save_default(); + } + } + } + + /** + * Helper function to set various render target features. + * Does not get triggered on resize, but rather manually on config changes. + */ + void TriggerResize() + { + char scaleQualityBuffer[4]; + uint8 scaleQuality = gConfigGeneral.scale_quality; + if (gConfigGeneral.use_nn_at_integer_scales && + gConfigGeneral.window_scale == std::floor(gConfigGeneral.window_scale)) + { + scaleQuality = 0; + } + snprintf(scaleQualityBuffer, sizeof(scaleQualityBuffer), "%u", scaleQuality); + SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, scaleQualityBuffer); + + sint32 width, height; + SDL_GetWindowSize(_window, &width, &height); + OnResize(width, height); + } + + void UpdateFullscreenResolutions() + { + // Query number of display modes + sint32 displayIndex = SDL_GetWindowDisplayIndex(_window); + sint32 numDisplayModes = SDL_GetNumDisplayModes(displayIndex); + + // Get desktop aspect ratio + SDL_DisplayMode mode; + SDL_GetDesktopDisplayMode(displayIndex, &mode); + + // Get resolutions + auto resolutions = std::vector(numDisplayModes); + float desktopAspectRatio = (float)mode.w / mode.h; + for (sint32 i = 0; i < numDisplayModes; i++) + { + SDL_GetDisplayMode(displayIndex, i, &mode); + + float aspectRatio = (float)mode.w / mode.h; + if (_resolutionsAllowAnyAspectRatio || std::fabs(desktopAspectRatio - aspectRatio) < 0.0001f) + { + resolutions.push_back({ mode.w, mode.h }); + } + } + + // Sort by area + std::sort(resolutions.begin(), resolutions.end()); + // [](const Resolution &a, const Resolution &b) -> bool + // { + // sint32 areaA = a.Width * a.Height; + // sint32 areaB = b.Width * b.Height; + // return areaA < areaB; + // }); + + // Remove duplicates + auto last = std::unique(resolutions.begin(), resolutions.end()); + // [](const Resolution &a, const Resolution &b) -> bool + // { + // return (a.Width == b.Width && a.Height == b.Height); + // }); + resolutions.erase(last, resolutions.end()); + + // Update config fullscreen resolution if not set + if (gConfigGeneral.fullscreen_width == -1 || gConfigGeneral.fullscreen_height == -1) + { + gConfigGeneral.fullscreen_width = resolutions.back().Width; + gConfigGeneral.fullscreen_height = resolutions.back().Height; + } + } + + Resolution GetClosestResolution(sint32 inWidth, sint32 inHeight) + { + Resolution result = { 640, 480 }; + sint32 closestAreaDiff = -1; + sint32 destinationArea = inWidth * inHeight; + for (const Resolution &resolution : _fsResolutions) + { + // Check if exact match + if (resolution.Width == inWidth && resolution.Height == inHeight) + { + result = resolution; + break; + } + + // Check if area is closer to best match + sint32 areaDiff = std::abs((resolution.Width * resolution.Height) - destinationArea); + if (closestAreaDiff == -1 || areaDiff < closestAreaDiff) + { + closestAreaDiff = areaDiff; + result = resolution; + } + } + return result; + } }; IUiContext * OpenRCT2::Ui::CreateContext() { - return new UiContext(); + auto platformUiContext = std::unique_ptr(CreatePlatformUiContext()); + return new UiContext(platformUiContext.get()); } diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h index cfff4c2439..7712bdf935 100644 --- a/src/openrct2-ui/UiContext.h +++ b/src/openrct2-ui/UiContext.h @@ -18,6 +18,8 @@ #include +struct SDL_Window; + namespace OpenRCT2 { interface IContext; @@ -26,6 +28,14 @@ namespace OpenRCT2 { interface IUiContext; + interface IPlatformUiContext + { + virtual ~IPlatformUiContext() = default; + virtual void SetWindowIcon(SDL_Window * window) abstract; + virtual bool IsSteamOverlayAttached() abstract; + }; + IUiContext * CreateContext(); + IPlatformUiContext * CreatePlatformUiContext(); } } diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 3e86ba50d6..8424c2c760 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -22,6 +22,8 @@ + + @@ -35,8 +37,10 @@ + + diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 0e659cdb20..8a2b30421f 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -17,6 +17,7 @@ #include #include "Context.h" #include "OpenRCT2.h" +#include "ui/UiContext.h" using namespace OpenRCT2; using namespace OpenRCT2::Ui; @@ -80,3 +81,11 @@ namespace OpenRCT2 return Context::Instance; } } + +extern "C" +{ + void context_setcurrentcursor(sint32 cursor) + { + GetContext()->GetUiContext()->SetCursor((CURSOR_ID)cursor); + } +} diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index b73841d29b..7d82241922 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -18,6 +18,8 @@ #include "common.h" +#ifdef __cplusplus + namespace OpenRCT2 { namespace Ui @@ -40,3 +42,14 @@ namespace OpenRCT2 IContext * CreateContext(Ui::IUiContext * uiContext); IContext * GetContext(); } + +#endif // __cplusplus + +#if __cplusplus +extern "C" +{ +#endif + void context_setcurrentcursor(sint32 cursor); +#if __cplusplus +} +#endif diff --git a/src/openrct2/input.c b/src/openrct2/input.c index ab3579e7e3..5170516f60 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -17,6 +17,7 @@ #include #include "audio/audio.h" #include "config/Config.h" +#include "Context.h" #include "game.h" #include "input.h" #include "interface/chat.h" @@ -1557,7 +1558,7 @@ void sub_6ED990(uint8 cursor_id) if (_inputState == INPUT_STATE_RESIZING) { cursor_id = CURSOR_DIAGONAL_ARROWS; } - cursors_setcurrentcursor(cursor_id); + context_setcurrentcursor(cursor_id); } diff --git a/src/openrct2/interface/Cursors.cpp b/src/openrct2/interface/Cursors.cpp deleted file mode 100644 index d2e915cd6e..0000000000 --- a/src/openrct2/interface/Cursors.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#include -#include "../core/Guard.hpp" -#include "Cursors.h" - -namespace Cursors -{ - constexpr sint32 CURSOR_WIDTH = 32; - constexpr sint32 CURSOR_HEIGHT = 32; - - static SDL_Cursor * _loadedCursors[CURSOR_COUNT]; - static bool _initialised = false; - static CURSOR_ID _currentCursor = CURSOR_UNDEFINED; - - static SDL_Cursor * Create(const CursorData * cursorInfo) - { - SDL_Cursor * cursor = SDL_CreateCursor( - cursorInfo->Data, - cursorInfo->Mask, - CURSOR_WIDTH, - CURSOR_HEIGHT, - cursorInfo->HotSpot.X, - cursorInfo->HotSpot.Y); - return cursor; - } - - void Initialise() - { - Guard::Assert(!_initialised, "Cursors have already been initialised."); - _initialised = true; - - // Using system cursors - _loadedCursors[CURSOR_ARROW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW); - _loadedCursors[CURSOR_HAND_POINT] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND); - - // Using custom cursors - for (size_t i = 0; i < CURSOR_COUNT; i++) - { - const CursorData * cursorData = GetCursorData((CURSOR_ID)i); - if (cursorData != nullptr) - { - _loadedCursors[i] = Create(cursorData); - } - } - - _currentCursor = CURSOR_UNDEFINED; - SetCurrentCursor(CURSOR_ARROW); - } - - void Dispose() - { - if (_initialised) - { - for (size_t i = 0; i < CURSOR_COUNT; i++) - { - SDL_FreeCursor(_loadedCursors[i]); - _loadedCursors[i] = nullptr; - } - _currentCursor = CURSOR_UNDEFINED; - _initialised = false; - } - } - - CURSOR_ID GetCurrentCursor() - { - return _currentCursor; - } - - void SetCurrentCursor(CURSOR_ID cursorId) - { - if (_currentCursor != cursorId) - { - SDL_Cursor * cursor = _loadedCursors[cursorId]; - SDL_SetCursor(cursor); - _currentCursor = cursorId; - } - } -} - -extern "C" -{ - void cursors_initialise() - { - Cursors::Initialise(); - } - - void cursors_dispose() - { - Cursors::Dispose(); - } - - sint32 cursors_getcurrentcursor() - { - return Cursors::GetCurrentCursor(); - } - - void cursors_setcurrentcursor(sint32 cursorId) - { - Cursors::SetCurrentCursor((CURSOR_ID)cursorId); - } -} diff --git a/src/openrct2/interface/Cursors.h b/src/openrct2/interface/Cursors.h index 87ae8b1a4a..125d1d9921 100644 --- a/src/openrct2/interface/Cursors.h +++ b/src/openrct2/interface/Cursors.h @@ -53,7 +53,7 @@ enum CURSOR_ID #ifdef __cplusplus -namespace Cursors +namespace OpenRCT2 { namespace Ui { struct CursorData { @@ -65,27 +65,6 @@ namespace Cursors uint8 Data[32 * 4]; uint8 Mask[32 * 4]; }; - - const CursorData * GetCursorData(CURSOR_ID cursorId); - - void Initialise(); - void Dispose(); - CURSOR_ID GetCurrentCursor(); - void SetCurrentCursor(CURSOR_ID cursorId); -} +} } #endif - -#ifdef __cplusplus -extern "C" -{ -#endif - - void cursors_initialise(); - void cursors_dispose(); - sint32 cursors_getcurrentcursor(); - void cursors_setcurrentcursor(sint32 cursorId); - -#ifdef __cplusplus -} -#endif diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 2f3ee893a9..80aa3fb641 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -77,108 +77,6 @@ static const sint32 _fullscreen_modes[] = { 0, SDL_WINDOW_FULLSCREEN, SDL_WINDOW static uint32 _lastGestureTimestamp; static float _gestureRadius; -static void platform_create_window(); - -#if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) - mach_timebase_info_data_t _mach_base_info = { 0 }; -#endif - -static sint32 resolution_sort_func(const void *pa, const void *pb) -{ - const resolution_t *a = (resolution_t*)pa; - const resolution_t *b = (resolution_t*)pb; - - sint32 areaA = a->width * a->height; - sint32 areaB = b->width * b->height; - - if (areaA == areaB) return 0; - if (areaA < areaB) return -1; - return 1; -} - -void platform_update_fullscreen_resolutions() -{ - // Query number of display modes - sint32 displayIndex = SDL_GetWindowDisplayIndex(gWindow); - sint32 numDisplayModes = SDL_GetNumDisplayModes(displayIndex); - - // Get desktop aspect ratio - SDL_DisplayMode mode; - SDL_GetDesktopDisplayMode(displayIndex, &mode); - - if (gResolutions != NULL) - free(gResolutions); - - // Get resolutions - gNumResolutions = numDisplayModes; - gResolutions = malloc(gNumResolutions * sizeof(resolution_t)); - gNumResolutions = 0; - - float desktopAspectRatio = (float)mode.w / mode.h; - for (sint32 i = 0; i < numDisplayModes; i++) { - SDL_GetDisplayMode(displayIndex, i, &mode); - - float aspectRatio = (float)mode.w / mode.h; - if (gResolutionsAllowAnyAspectRatio || fabs(desktopAspectRatio - aspectRatio) < 0.0001f) { - gResolutions[gNumResolutions].width = mode.w; - gResolutions[gNumResolutions].height = mode.h; - gNumResolutions++; - } - } - - // Sort by area - qsort(gResolutions, gNumResolutions, sizeof(resolution_t), resolution_sort_func); - - // Remove duplicates - resolution_t *resPlace = &gResolutions[0]; - for (sint32 i = 1; i < gNumResolutions; i++) { - resolution_t *resLook = &gResolutions[i]; - if (resLook->width != resPlace->width || resLook->height != resPlace->height) - *++resPlace = *resLook; - } - - gNumResolutions = (sint32)(resPlace - &gResolutions[0]) + 1; - - // Update config fullscreen resolution if not set - if (gConfigGeneral.fullscreen_width == -1 || gConfigGeneral.fullscreen_height == -1) { - gConfigGeneral.fullscreen_width = gResolutions[gNumResolutions - 1].width; - gConfigGeneral.fullscreen_height = gResolutions[gNumResolutions - 1].height; - } -} - -void platform_get_closest_resolution(sint32 inWidth, sint32 inHeight, sint32 *outWidth, sint32 *outHeight) -{ - sint32 closestWidth = 640, closestHeight = 480; - - sint32 closestAreaDiff = -1; - sint32 destinationArea = inWidth * inHeight; - for (sint32 i = 0; i < gNumResolutions; i++) { - // Check if exact match - if (gResolutions[i].width == inWidth && gResolutions[i].height == inHeight) { - closestWidth = gResolutions[i].width; - closestHeight = gResolutions[i].height; - closestAreaDiff = 0; - break; - } - - // Check if area is closer to best match - sint32 areaDiff = abs((gResolutions[i].width * gResolutions[i].height) - destinationArea); - if (closestAreaDiff == -1 || areaDiff < closestAreaDiff) { - closestAreaDiff = areaDiff; - closestWidth = gResolutions[i].width; - closestHeight = gResolutions[i].height; - } - } - - if (closestAreaDiff != -1) { - *outWidth = closestWidth; - *outHeight = closestHeight; - } else { - *outWidth = 640; - *outHeight = 480; - } -} - void platform_draw() { if (!gOpenRCT2Headless) { @@ -186,58 +84,6 @@ void platform_draw() } } -static void platform_resize(sint32 width, sint32 height) -{ - uint32 flags; - sint32 dst_w = (sint32)(width / gConfigGeneral.window_scale); - sint32 dst_h = (sint32)(height / gConfigGeneral.window_scale); - - gScreenWidth = dst_w; - gScreenHeight = dst_h; - - drawing_engine_resize(); - - flags = SDL_GetWindowFlags(gWindow); - - if ((flags & SDL_WINDOW_MINIMIZED) == 0) { - window_resize_gui(dst_w, dst_h); - window_relocate_windows(dst_w, dst_h); - } - - gfx_invalidate_screen(); - - // Check if the window has been resized in windowed mode and update the config file accordingly - // This is called in rct2_update and is only called after resizing a window has finished - if (!(flags & platform_get_non_window_flags())) { - if (width != gConfigGeneral.window_width || height != gConfigGeneral.window_height) { - gConfigGeneral.window_width = width; - gConfigGeneral.window_height = height; - config_save_default(); - } - } -} - -/** - * @brief platform_trigger_resize - * Helper function to set various render target features. - * - * Does not get triggered on resize, but rather manually on config changes. - */ -void platform_trigger_resize() -{ - char scale_quality_buffer[4]; // just to make sure we can hold whole uint8 - uint8 scale_quality = gConfigGeneral.scale_quality; - if (gConfigGeneral.use_nn_at_integer_scales && gConfigGeneral.window_scale == floor(gConfigGeneral.window_scale)) { - scale_quality = 0; - } - snprintf(scale_quality_buffer, sizeof(scale_quality_buffer), "%u", scale_quality); - SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, scale_quality_buffer); - - sint32 w, h; - SDL_GetWindowSize(gWindow, &w, &h); - platform_resize(w, h); -} - static uint8 soft_light(uint8 a, uint8 b) { float fa = a / 255.0f; @@ -572,15 +418,8 @@ void platform_process_messages() gKeysState = SDL_GetKeyboardState(&numKeys); } -static void platform_close_window() -{ - drawing_engine_dispose(); - cursors_dispose(); -} - void platform_init() { - platform_create_window(); gKeysPressed = malloc(sizeof(uint8) * 256); memset(gKeysPressed, 0, sizeof(uint8) * 256); @@ -593,57 +432,6 @@ void platform_init() gPalette[255].b = 255; } -static void platform_create_window() -{ - if (SDL_Init(SDL_INIT_VIDEO) < 0) { - log_fatal("SDL_Init %s", SDL_GetError()); - exit(-1); - } - - SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, gConfigGeneral.minimize_fullscreen_focus_loss ? "1" : "0"); - - cursors_initialise(); - - // TODO This should probably be called somewhere else. It has nothing to do with window creation and can be done as soon as - // g1.dat is loaded. - sub_68371D(); - - // Get window size - sint32 width = gConfigGeneral.window_width; - sint32 height = gConfigGeneral.window_height; - if (width == -1) width = 640; - if (height == -1) height = 480; - - // Create window in window first rather than fullscreen so we have the display the window is on first - uint32 flags = SDL_WINDOW_RESIZABLE; - if (gConfigGeneral.drawing_engine == DRAWING_ENGINE_OPENGL) { - flags |= SDL_WINDOW_OPENGL; - } - - gWindow = SDL_CreateWindow(OPENRCT2_NAME, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, flags); - if (!gWindow) { - log_fatal("SDL_CreateWindow failed %s", SDL_GetError()); - exit(-1); - } - - SDL_SetWindowGrab(gWindow, gConfigGeneral.trap_cursor ? SDL_TRUE : SDL_FALSE); - SDL_SetWindowMinimumSize(gWindow, 720, 480); - platform_init_window_icon(); -#ifdef __MACOSX__ - macos_disallow_automatic_window_tabbing(); -#endif - - // Initialise the surface, palette and draw buffer - platform_resize(width, height); - - platform_update_fullscreen_resolutions(); - platform_set_fullscreen_mode(gConfigGeneral.fullscreen_mode); - - // Check if steam overlay renderer is loaded into the process - gSteamOverlayActive = platform_check_steam_overlay_attached(); - platform_trigger_resize(); -} - sint32 platform_scancode_to_rct_keycode(sint32 sdl_key) { char keycode = (char)SDL_GetKeyFromScancode((SDL_Scancode)sdl_key); @@ -660,9 +448,6 @@ sint32 platform_scancode_to_rct_keycode(sint32 sdl_key) void platform_free() { free(gKeysPressed); - - platform_close_window(); - SDL_Quit(); } void platform_start_text_input(utf8* buffer, sint32 max_length) @@ -723,16 +508,6 @@ void platform_toggle_windowed_mode() config_save_default(); } -/** - * This is not quite the same as the below function as we don't want to - * dereference the cursor before the function. - * rct2: 0x0407956 - */ -void platform_set_cursor(uint8 cursor) -{ - cursors_setcurrentcursor(cursor); -} - void platform_refresh_video() { SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, gConfigGeneral.minimize_fullscreen_focus_loss ? "1" : "0"); diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 0d8878860b..d139fe59d8 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -804,18 +804,6 @@ HWND windows_get_window_handle() return result; } -void platform_init_window_icon() -{ - HMODULE module = plaform_get_dll_module(); - if (module != NULL) { - HICON icon = LoadIcon(module, MAKEINTRESOURCE(IDI_ICON)); - if (icon != NULL) { - HWND hwnd = windows_get_window_handle(); - SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)icon); - } - } -} - uint16 platform_get_locale_language() { CHAR langCode[4]; diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 0cbe4be69d..c03ead8342 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -16,7 +16,9 @@ #pragma once +#include #include "../common.h" +#include "../interface/Cursors.h" namespace OpenRCT2 { @@ -45,6 +47,34 @@ namespace OpenRCT2 size_t SelectionSize; // Selection length in bytes }; + struct Resolution + { + sint32 Width; + sint32 Height; + }; + + inline bool operator <(const Resolution& lhs, const Resolution& rhs) + { + sint32 areaA = lhs.Width * lhs.Height; + sint32 areaB = rhs.Width * rhs.Height; + if (areaA == areaB) + { + return lhs.Width < rhs.Width; + } + return areaA < areaB; + } + + inline bool operator ==(const Resolution& lhs, const Resolution& rhs) + { + return lhs.Width == rhs.Width && + lhs.Height == rhs.Height; + } + + inline bool operator !=(const Resolution& lhs, const Resolution& rhs) + { + return !(lhs == rhs); + } + /** * Represents the window or screen that OpenRCT2 is presented on. */ @@ -53,11 +83,15 @@ namespace OpenRCT2 virtual ~IUiContext() = default; // Window + virtual CURSOR_ID GetCursor() abstract; + virtual void SetCursor(CURSOR_ID cursor) abstract; virtual void * GetWindow() abstract; virtual sint32 GetWidth() abstract; virtual sint32 GetHeight() abstract; virtual void SetFullscreenMode(FULLSCREEN_MODE mode) abstract; + virtual std::vector GetFullscreenResolutions() abstract; + // Drawing virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) abstract; diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index c102c98bbb..b84478c3ac 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -18,6 +18,7 @@ #include "../audio/audio.h" #include "../cheats.h" #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../interface/Cursors.h" #include "../interface/window.h" @@ -3319,7 +3320,7 @@ void map_invalidate_selection_rect() */ void map_reorganise_elements() { - platform_set_cursor(CURSOR_ZZZ); + context_setcurrentcursor(CURSOR_ZZZ); rct_map_element* new_map_elements = malloc(0x30000 * sizeof(rct_map_element)); rct_map_element* new_elements_pointer = new_map_elements; From f736e8ff969923aa1514cb06c8e1fa5da2764458 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 25 Mar 2017 17:42:14 +0000 Subject: [PATCH 137/670] Move more platform code to UiContext --- src/openrct2-ui/TextComposition.cpp | 300 ++++++++++++++ src/openrct2-ui/TextComposition.h | 57 +++ src/openrct2-ui/UiContext.cpp | 294 +++++++++++++- .../drawing/engines/SoftwareDrawingEngine.cpp | 8 +- src/openrct2-ui/libopenrct2ui.vcxproj | 2 + src/openrct2/Context.cpp | 60 +++ src/openrct2/Context.h | 35 +- src/openrct2/OpenRCT2.cpp | 6 +- src/openrct2/audio/AudioMixer.cpp | 16 + src/openrct2/audio/AudioMixer.h | 17 +- src/openrct2/input.c | 75 ++-- src/openrct2/interface/chat.c | 5 +- src/openrct2/interface/console.c | 7 +- src/openrct2/interface/window.c | 20 +- src/openrct2/intro.c | 11 +- src/openrct2/platform/platform.h | 48 --- src/openrct2/platform/shared.c | 365 ------------------ src/openrct2/ui/UiContext.h | 21 +- 18 files changed, 845 insertions(+), 502 deletions(-) create mode 100644 src/openrct2-ui/TextComposition.cpp create mode 100644 src/openrct2-ui/TextComposition.h diff --git a/src/openrct2-ui/TextComposition.cpp b/src/openrct2-ui/TextComposition.cpp new file mode 100644 index 0000000000..b8536a2b53 --- /dev/null +++ b/src/openrct2-ui/TextComposition.cpp @@ -0,0 +1,300 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include +#include +#include +#include +#include +#include +#include "TextComposition.h" + +extern "C" +{ + #include + #include +} + +#ifdef __MACOSX__ + // macOS uses COMMAND rather than CTRL for many keyboard shortcuts + #define KEYBOARD_PRIMARY_MODIFIER KMOD_GUI +#else + #define KEYBOARD_PRIMARY_MODIFIER KMOD_CTRL +#endif + +using namespace OpenRCT2; +using namespace OpenRCT2::Ui; + +bool TextComposition::IsActive() +{ + return SDL_IsTextInputActive() && _session.Buffer != nullptr; +} + +const TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize) +{ + Guard::ArgumentNotNull(buffer); + + // TODO This doesn't work, and position could be improved to where text entry is + SDL_Rect rect = { 10, 10, 100, 100 }; + SDL_SetTextInputRect(&rect); + SDL_StartTextInput(); + + _session.Buffer = buffer; + _session.BufferSize = bufferSize - 1; + _session.Size = strlen(buffer); + _session.SelectionStart = _session.Size; + _session.SelectionSize = 0; + RecalculateLength(); + return &_session; +} + +void TextComposition::Stop() +{ + SDL_StopTextInput(); + _session.Buffer = nullptr; + _imeActive = false; +} + +void TextComposition::HandleMessage(const SDL_Event * e) +{ + switch (e->type) { + case SDL_TEXTEDITING: + // When inputting Korean characters, `edit.length` is always zero + String::Set(_imeBuffer, sizeof(_imeBuffer), e->edit.text); + _imeStart = e->edit.start; + _imeLength = e->edit.length; + _imeActive = ((e->edit.length != 0 || String::SizeOf(e->edit.text) != 0) && _imeBuffer[0] != '\0'); + break; + case SDL_TEXTINPUT: + // will receive an `SDL_TEXTINPUT` event when a composition is committed + _imeActive = false; + if (_session.Buffer != nullptr) + { + // HACK ` will close console, so don't input any text + if (e->text.text[0] == '`' && gConsoleOpen) { + break; + } + + utf8 * newText = String::Duplicate(e->text.text); + utf8_remove_formatting(newText, false); + Insert(newText); + Memory::Free(newText); + + console_refresh_caret(); + window_update_textbox(); + } + break; + case SDL_KEYDOWN: + { + if (_imeActive) + { + break; + } + + uint16 modifier = e->key.keysym.mod; + SDL_Keycode key = e->key.keysym.sym; + if (key == SDLK_KP_ENTER) + { + // Map Keypad enter to regular enter. + key = SDLK_RETURN; + } + + // _lastKeyPressed = e.key.keysym.sym; + // _keysPressed[e.key.keysym.scancode] = 1; + + // Text input + if (_session.Buffer == nullptr) + { + break; + } + + // Clear the input on Backspace (Windows/Linux) or Backspace (macOS) + if (key == SDLK_BACKSPACE && (modifier & KEYBOARD_PRIMARY_MODIFIER)) + { + Clear(); + console_refresh_caret(); + window_update_textbox(); + } + + switch (key) { + case SDLK_BACKSPACE: + // If backspace and we have input text with a cursor position none zero + if (_session.SelectionStart > 0) + { + size_t endOffset = _session.SelectionStart; + CursorLeft(); + _session.SelectionSize = endOffset - _session.SelectionStart; + Delete(); + + console_refresh_caret(); + window_update_textbox(); + } + break; + case SDLK_HOME: + CursorHome(); + console_refresh_caret(); + break; + case SDLK_END: + CursorEnd(); + console_refresh_caret(); + break; + case SDLK_DELETE: + { + size_t startOffset = _session.SelectionStart; + CursorRight(); + _session.SelectionSize = _session.SelectionStart - startOffset; + _session.SelectionStart = startOffset; + Delete(); + console_refresh_caret(); + window_update_textbox(); + break; + } + case SDLK_RETURN: + window_cancel_textbox(); + break; + case SDLK_LEFT: + CursorLeft(); + console_refresh_caret(); + break; + case SDLK_RIGHT: + CursorRight(); + console_refresh_caret(); + break; + case SDLK_v: + if ((modifier & KEYBOARD_PRIMARY_MODIFIER) && SDL_HasClipboardText()) + { + utf8 * text = SDL_GetClipboardText(); + utf8_remove_formatting(text, false); + Insert(text); + SDL_free(text); + window_update_textbox(); + } + break; + } + } + } +} + +void TextComposition::CursorHome() +{ + _session.SelectionStart = 0; +} + +void TextComposition::CursorEnd() +{ + _session.SelectionStart = _session.SelectionSize; +} + +void TextComposition::CursorLeft() +{ + size_t selectionOffset = _session.SelectionStart; + if (selectionOffset > 0) + { + const utf8 * ch = _session.Buffer + selectionOffset; + do + { + ch--; + selectionOffset--; + } + while (!utf8_is_codepoint_start(ch) && selectionOffset > 0); + + _session.SelectionStart = selectionOffset; + } +} + +void TextComposition::CursorRight() +{ + size_t selectionOffset = _session.SelectionStart; + size_t selectionMaxOffset = _session.Size; + if (selectionOffset < selectionMaxOffset) + { + const utf8 * ch = _session.Buffer + _session.SelectionStart; + do + { + ch++; + selectionOffset++; + } + while (!utf8_is_codepoint_start(ch) && selectionOffset < selectionMaxOffset); + + _session.SelectionSize = Math::Max(0, _session.SelectionSize - (selectionOffset - _session.SelectionStart)); + _session.SelectionStart = selectionOffset; + } +} + +void TextComposition::Insert(const utf8 * text) +{ + const utf8 * ch = text; + uint32 codepoint; + while ((codepoint = utf8_get_next(ch, &ch)) != 0) + { + InsertCodepoint(codepoint); + } +} + +void TextComposition::InsertCodepoint(codepoint_t codepoint) +{ + size_t codepointLength = utf8_get_codepoint_length(codepoint); + size_t remainingSize = _session.BufferSize - _session.Size; + if (codepointLength <= remainingSize) + { + utf8 * buffer = (utf8 *)_session.Buffer; + utf8 * insertPtr = buffer + _session.SelectionStart; + if (_session.SelectionStart < _session.Size) + { + // Shift bytes (including null terminator) right to make room for new codepoint + utf8 * targetShiftPtr = insertPtr + codepointLength; + size_t shiftSize = _session.Size - _session.SelectionStart + 1; + memmove(targetShiftPtr, insertPtr, shiftSize); + } + else + { + // Character is appended onto the end, so set byte after it to null terminator + buffer[_session.Size + codepointLength] = 0; + } + + utf8_write_codepoint(insertPtr, codepoint); + _session.SelectionStart += codepointLength; + _session.Size += codepointLength; + _session.Length++; + } +} + +void TextComposition::Clear() +{ + utf8 * buffer = (utf8 *)_session.Buffer; + buffer[0] = 0; + _session.Size = 0; + _session.Length = 0; + _session.SelectionStart = 0; + _session.SelectionSize = 0; +} + +void TextComposition::Delete() +{ + utf8 * buffer = (utf8 *)_session.Buffer; + utf8 * targetShiftPtr = buffer + _session.SelectionStart; + utf8 * sourceShiftPtr = targetShiftPtr + _session.SelectionSize; + size_t shiftSize = _session.SelectionSize - _session.SelectionStart - _session.SelectionSize + 1; + memmove(targetShiftPtr, sourceShiftPtr, shiftSize); + _session.SelectionSize = 0; + RecalculateLength(); +} + +void TextComposition::RecalculateLength() +{ + _session.Size = String::SizeOf(_session.Buffer); + _session.Length = String::LengthOf(_session.Buffer); +} diff --git a/src/openrct2-ui/TextComposition.h b/src/openrct2-ui/TextComposition.h new file mode 100644 index 0000000000..fe9aeddcd1 --- /dev/null +++ b/src/openrct2-ui/TextComposition.h @@ -0,0 +1,57 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include +#include + +union SDL_Event; + +namespace OpenRCT2 +{ + namespace Ui + { + /** + * Represents a + */ + class TextComposition + { + private: + TextInputSession _session = { 0 }; + + bool _imeActive = false; + sint32 _imeStart = 0; + sint32 _imeLength = 0; + utf8 _imeBuffer[32] = { 0 }; + + public: + bool IsActive(); + const TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize); + void Stop(); + void HandleMessage(const SDL_Event * e); + + private: + void CursorHome(); + void CursorEnd(); + void CursorLeft(); + void CursorRight(); + void Insert(const utf8 * text); + void InsertCodepoint(codepoint_t codepoint); + void Clear(); + void Delete(); + void RecalculateLength(); + }; + } +} diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 711c495f7f..cd7666d4a8 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -26,15 +27,31 @@ #include #include "CursorRepository.h" #include "drawing/engines/DrawingEngines.h" +#include "TextComposition.h" #include "UiContext.h" +extern "C" +{ + #include + #include +} + using namespace OpenRCT2; using namespace OpenRCT2::Drawing; using namespace OpenRCT2::Ui; +#ifdef __MACOSX__ + // macOS uses COMMAND rather than CTRL for many keyboard shortcuts + #define KEYBOARD_PRIMARY_MODIFIER KMOD_GUI +#else + #define KEYBOARD_PRIMARY_MODIFIER KMOD_CTRL +#endif + class UiContext : public IUiContext { private: + constexpr static uint32 TOUCH_DOUBLE_TIMEOUT = 300; + IPlatformUiContext * const _platformUiContext; CursorRepository _cursorRepository; @@ -48,6 +65,15 @@ private: bool _steamOverlayActive = false; + // Input + TextComposition _textComposition; + CursorState _cursorState; + uint32 _lastKeyPressed; + const uint8 * _keysState; + uint8 * _keysPressed; + uint32 _lastGestureTimestamp; + float _gestureRadius; + public: UiContext(IPlatformUiContext * platformUiContext) : _platformUiContext(platformUiContext) @@ -60,16 +86,6 @@ public: } // Window - CURSOR_ID GetCursor() override - { - return _cursorRepository.GetCurrentCursor(); - } - - void SetCursor(CURSOR_ID cursor) override - { - _cursorRepository.SetCurrentCursor(cursor); - } - void * GetWindow() override { return _window; @@ -122,6 +138,52 @@ public: return _fsResolutions; } + bool IsSteamOverlayActive() override + { + return _steamOverlayActive; + } + + // Input + const CursorState * GetCursorState() override + { + return &_cursorState; + } + + const uint8 * GetKeysState() override + { + return _keysState; + } + + const uint8 * GetKeysPressed() override + { + return _keysPressed; + } + + CURSOR_ID GetCursor() override + { + return _cursorRepository.GetCurrentCursor(); + } + + void SetCursor(CURSOR_ID cursor) override + { + _cursorRepository.SetCurrentCursor(cursor); + } + + void SetCursorVisible(bool value) override + { + SDL_ShowCursor(value ? SDL_ENABLE : SDL_DISABLE); + } + + void GetCursorPosition(sint32 * x, sint32 * y) override + { + SDL_GetMouseState(x, y); + } + + void SetCursorPosition(sint32 x, sint32 y) override + { + SDL_WarpMouseInWindow(nullptr, x, y); + } + // Drawing IDrawingEngine * CreateDrawingEngine(DRAWING_ENGINE_TYPE type) override { @@ -140,9 +202,215 @@ public: } // Text input - bool IsTextInputActive() override { return false; } - const TextInputSession * StartTextInput(utf8 * buffer, sint32 bufferSize) override { return nullptr; } - void StopTextInput() override { } + bool IsTextInputActive() override + { + return _textComposition.IsActive(); + } + + const TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) override + { + return _textComposition.Start(buffer, bufferSize); + } + + void StopTextInput() override + { + _textComposition.Stop(); + } + + void ProcessMessages() + { + _lastKeyPressed = 0; + _cursorState.left &= ~CURSOR_CHANGED; + _cursorState.middle &= ~CURSOR_CHANGED; + _cursorState.right &= ~CURSOR_CHANGED; + _cursorState.old = 0; + _cursorState.touch = false; + + SDL_Event e; + while (SDL_PollEvent(&e)) + { + switch (e.type) { + case SDL_QUIT: + rct2_quit(); + break; + case SDL_WINDOWEVENT: + // HACK: Fix #2158, OpenRCT2 does not draw if it does not think that the window is + // visible - due a bug in SDL 2.0.3 this hack is required if the + // window is maximised, minimised and then restored again. + if (e.window.event == SDL_WINDOWEVENT_FOCUS_GAINED) + { + if (SDL_GetWindowFlags(_window) & SDL_WINDOW_MAXIMIZED) + { + SDL_RestoreWindow(_window); + SDL_MaximizeWindow(_window); + } + if ((SDL_GetWindowFlags(_window) & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) + { + SDL_RestoreWindow(_window); + SDL_SetWindowFullscreen(_window, SDL_WINDOW_FULLSCREEN_DESKTOP); + } + } + + if (e.window.event == SDL_WINDOWEVENT_SIZE_CHANGED) + { + OnResize(e.window.data1, e.window.data2); + } + if (gConfigSound.audio_focus && gConfigSound.sound_enabled) + { + if (e.window.event == SDL_WINDOWEVENT_FOCUS_GAINED) + { + Mixer_SetVolume(1); + } + if (e.window.event == SDL_WINDOWEVENT_FOCUS_LOST) + { + Mixer_SetVolume(0); + } + } + break; + case SDL_MOUSEMOTION: + _cursorState.x = (sint32)(e.motion.x / gConfigGeneral.window_scale); + _cursorState.y = (sint32)(e.motion.y / gConfigGeneral.window_scale); + break; + case SDL_MOUSEWHEEL: + if (gConsoleOpen) + { + console_scroll(e.wheel.y); + break; + } + _cursorState.wheel += e.wheel.y * 128; + break; + case SDL_MOUSEBUTTONDOWN: + { + sint32 x = (sint32)(e.button.x / gConfigGeneral.window_scale); + sint32 y = (sint32)(e.button.y / gConfigGeneral.window_scale); + switch (e.button.button) { + case SDL_BUTTON_LEFT: + store_mouse_input(MOUSE_STATE_LEFT_PRESS, x, y); + _cursorState.left = CURSOR_PRESSED; + _cursorState.old = 1; + break; + case SDL_BUTTON_MIDDLE: + _cursorState.middle = CURSOR_PRESSED; + break; + case SDL_BUTTON_RIGHT: + store_mouse_input(MOUSE_STATE_RIGHT_PRESS, x, y); + _cursorState.right = CURSOR_PRESSED; + _cursorState.old = 2; + break; + } + break; + } + case SDL_MOUSEBUTTONUP: + { + sint32 x = (sint32)(e.button.x / gConfigGeneral.window_scale); + sint32 y = (sint32)(e.button.y / gConfigGeneral.window_scale); + switch (e.button.button) { + case SDL_BUTTON_LEFT: + store_mouse_input(MOUSE_STATE_LEFT_RELEASE, x, y); + _cursorState.left = CURSOR_RELEASED; + _cursorState.old = 3; + break; + case SDL_BUTTON_MIDDLE: + _cursorState.middle = CURSOR_RELEASED; + break; + case SDL_BUTTON_RIGHT: + store_mouse_input(MOUSE_STATE_RIGHT_RELEASE, x, y); + _cursorState.right = CURSOR_RELEASED; + _cursorState.old = 4; + break; + } + break; + } + // Apple sends touchscreen events for trackpads, so ignore these events on macOS +#ifndef __MACOSX__ + case SDL_FINGERMOTION: + _cursorState.x = (sint32)(e.tfinger.x * gScreenWidth); + _cursorState.y = (sint32)(e.tfinger.y * gScreenHeight); + break; + case SDL_FINGERDOWN: + { + sint32 x = (sint32)(e.tfinger.x * gScreenWidth); + sint32 y = (sint32)(e.tfinger.y * gScreenHeight); + + _cursorState.touchIsDouble = (!_cursorState.touchIsDouble && + e.tfinger.timestamp - _cursorState.touchDownTimestamp < TOUCH_DOUBLE_TIMEOUT); + + if (_cursorState.touchIsDouble) + { + store_mouse_input(MOUSE_STATE_RIGHT_PRESS, x, y); + _cursorState.right = CURSOR_PRESSED; + _cursorState.old = 2; + } + else + { + store_mouse_input(MOUSE_STATE_LEFT_PRESS, x, y); + _cursorState.left = CURSOR_PRESSED; + _cursorState.old = 1; + } + _cursorState.touch = true; + _cursorState.touchDownTimestamp = e.tfinger.timestamp; + break; + } + case SDL_FINGERUP: + { + sint32 x = (sint32)(e.tfinger.x * gScreenWidth); + sint32 y = (sint32)(e.tfinger.y * gScreenHeight); + + if (_cursorState.touchIsDouble) + { + store_mouse_input(MOUSE_STATE_RIGHT_RELEASE, x, y); + _cursorState.left = CURSOR_RELEASED; + _cursorState.old = 4; + } + else { + store_mouse_input(MOUSE_STATE_LEFT_RELEASE, x, y); + _cursorState.left = CURSOR_RELEASED; + _cursorState.old = 3; + } + _cursorState.touch = true; + break; + } +#endif + case SDL_KEYDOWN: + _textComposition.HandleMessage(&e); + break; + case SDL_MULTIGESTURE: + if (e.mgesture.numFingers == 2) + { + if (e.mgesture.timestamp > _lastGestureTimestamp + 1000) + { + _gestureRadius = 0; + } + _lastGestureTimestamp = e.mgesture.timestamp; + _gestureRadius += e.mgesture.dDist; + + // Zoom gesture + constexpr sint32 tolerance = 128; + sint32 gesturePixels = (sint32)(_gestureRadius * gScreenWidth); + if (abs(gesturePixels) > tolerance) + { + _gestureRadius = 0; + main_window_zoom(gesturePixels > 0, true); + } + } + break; + case SDL_TEXTEDITING: + _textComposition.HandleMessage(&e); + break; + case SDL_TEXTINPUT: + _textComposition.HandleMessage(&e); + break; + default: + break; + } + } + + _cursorState.any = _cursorState.left | _cursorState.middle | _cursorState.right; + + // Updates the state of the keys + sint32 numKeys = 256; + _keysState = SDL_GetKeyboardState(&numKeys); + } private: void CreateWindow() diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index 5a044158c7..641994f6b4 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -15,6 +15,8 @@ #pragma endregion #include +#include +#include #include #include #include @@ -37,6 +39,7 @@ extern "C" #include } +using namespace OpenRCT2; using namespace OpenRCT2::Drawing; class SoftwareDrawingEngine; @@ -730,14 +733,15 @@ private: } SDL_RenderCopy(_sdlRenderer, _screenTexture, nullptr, nullptr); - if (gSteamOverlayActive && gConfigGeneral.steam_overlay_pause) + bool isSteamOverlayActive = GetContext()->GetUiContext()->IsSteamOverlayActive(); + if (isSteamOverlayActive && gConfigGeneral.steam_overlay_pause) { OverlayPreRenderCheck(); } SDL_RenderPresent(_sdlRenderer); - if (gSteamOverlayActive && gConfigGeneral.steam_overlay_pause) + if (isSteamOverlayActive && gConfigGeneral.steam_overlay_pause) { OverlayPostRenderCheck(); } diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 8424c2c760..15bdf61d77 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -35,6 +35,7 @@ + @@ -53,6 +54,7 @@ + diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 8a2b30421f..ed94d722df 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -15,6 +15,7 @@ #pragma endregion #include +#include "config/Config.h" #include "Context.h" #include "OpenRCT2.h" #include "ui/UiContext.h" @@ -88,4 +89,63 @@ extern "C" { GetContext()->GetUiContext()->SetCursor((CURSOR_ID)cursor); } + + void context_hide_cursor() + { + GetContext()->GetUiContext()->SetCursorVisible(false); + } + + void context_show_cursor() + { + GetContext()->GetUiContext()->SetCursorVisible(true); + } + + void context_get_cursor_position(sint32 * x, sint32 * y) + { + GetContext()->GetUiContext()->GetCursorPosition(x, y); + } + + void context_get_cursor_position_scaled(sint32 * x, sint32 * y) + { + context_get_cursor_position(x, y); + + // Compensate for window scaling. + *x = (sint32)ceilf(*x / gConfigGeneral.window_scale); + *y = (sint32)ceilf(*y / gConfigGeneral.window_scale); + } + + void context_set_cursor_position(sint32 x, sint32 y) + { + GetContext()->GetUiContext()->SetCursorPosition(x, y); + } + + const CursorState * context_get_cursor_state() + { + return GetContext()->GetUiContext()->GetCursorState(); + } + + const uint8 * context_get_keys_state() + { + return GetContext()->GetUiContext()->GetKeysState(); + } + + const uint8 * context_get_keys_pressed() + { + return GetContext()->GetUiContext()->GetKeysPressed(); + } + + void context_start_text_input(utf8 * buffer, size_t maxLength) + { + GetContext()->GetUiContext()->StartTextInput(buffer, maxLength); + } + + void context_stop_text_input() + { + GetContext()->GetUiContext()->StopTextInput(); + } + + bool context_is_input_active() + { + return GetContext()->GetUiContext()->IsTextInputActive(); + } } diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 7d82241922..321c378d79 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -18,6 +18,25 @@ #include "common.h" +typedef struct CursorState +{ + sint32 x, y; + uint8 left, middle, right, any; + sint32 wheel; + sint32 old; + bool touch, touchIsDouble; + uint32 touchDownTimestamp; +} CursorState; + +enum +{ + CURSOR_UP = 0, + CURSOR_DOWN = 1, + CURSOR_CHANGED = 2, + CURSOR_RELEASED = CURSOR_UP | CURSOR_CHANGED, + CURSOR_PRESSED = CURSOR_DOWN | CURSOR_CHANGED, +}; + #ifdef __cplusplus namespace OpenRCT2 @@ -45,11 +64,23 @@ namespace OpenRCT2 #endif // __cplusplus -#if __cplusplus +#ifdef __cplusplus extern "C" { #endif void context_setcurrentcursor(sint32 cursor); -#if __cplusplus + void context_hide_cursor(); + void context_show_cursor(); + void context_get_cursor_position(sint32 * x, sint32 * y); + void context_get_cursor_position_scaled(sint32 * x, sint32 * y); + void context_set_cursor_position(sint32 x, sint32 y); + const CursorState * context_get_cursor_state(); + const uint8 * context_get_keys_state(); + const uint8 * context_get_keys_pressed(); + void context_start_text_input(utf8 * buffer, size_t maxLength); + void context_stop_text_input(); + bool context_is_input_active(); + +#ifdef __cplusplus } #endif diff --git a/src/openrct2/OpenRCT2.cpp b/src/openrct2/OpenRCT2.cpp index db5a198f96..56657be733 100644 --- a/src/openrct2/OpenRCT2.cpp +++ b/src/openrct2/OpenRCT2.cpp @@ -16,6 +16,8 @@ #include #include +#include "Context.h" +#include "ui/UiContext.h" #include "core/Console.hpp" #include "core/File.h" #include "core/FileStream.hpp" @@ -463,7 +465,7 @@ namespace OpenRCT2 { _lastTick = currentTick; } - platform_process_messages(); + GetContext()->GetUiContext()->ProcessMessages(); rct2_update(); if (!_isWindowMinimised) { @@ -486,7 +488,7 @@ namespace OpenRCT2 _uncapTick = currentTick - UPDATE_TIME_MS - 1; } - platform_process_messages(); + GetContext()->GetUiContext()->ProcessMessages(); while (_uncapTick <= currentTick && currentTick - _uncapTick > UPDATE_TIME_MS) { diff --git a/src/openrct2/audio/AudioMixer.cpp b/src/openrct2/audio/AudioMixer.cpp index af0a2e6370..72453547ed 100644 --- a/src/openrct2/audio/AudioMixer.cpp +++ b/src/openrct2/audio/AudioMixer.cpp @@ -690,3 +690,19 @@ void Mixer_SetVolume(float volume) gMixer->SetVolume(volume); } } + +sint32 DStoMixerVolume(sint32 volume) +{ + return (sint32)(SDL_MIX_MAXVOLUME * (SDL_pow(10, (float)volume / 2000))); +} + +float DStoMixerPan(sint32 pan) +{ + return (((float)pan + -DSBPAN_LEFT) / DSBPAN_RIGHT) / 2; +} + +double DStoMixerRate(sint32 frequency) +{ + return (double)frequency / 22050; +} + diff --git a/src/openrct2/audio/AudioMixer.h b/src/openrct2/audio/AudioMixer.h index c27e17de22..085e911795 100644 --- a/src/openrct2/audio/AudioMixer.h +++ b/src/openrct2/audio/AudioMixer.h @@ -19,17 +19,6 @@ #include "../common.h" -#ifdef __cplusplus -extern "C" -{ -#endif // __cplusplus - - #include "../platform/platform.h" - -#ifdef __cplusplus -} -#endif // __cplusplus - #define MIXER_LOOP_NONE 0 #define MIXER_LOOP_INFINITE -1 @@ -89,9 +78,9 @@ void Mixer_Channel_SetGroup(void* channel, sint32 group); void* Mixer_Play_Music(sint32 pathId, sint32 loop, sint32 streaming); void Mixer_SetVolume(float volume); -static inline sint32 DStoMixerVolume(sint32 volume) { return (sint32)(SDL_MIX_MAXVOLUME * (SDL_pow(10, (float)volume / 2000))); } -static inline float DStoMixerPan(sint32 pan) { return (((float)pan + -DSBPAN_LEFT) / DSBPAN_RIGHT) / 2; } -static inline double DStoMixerRate(sint32 frequency) { return (double)frequency / 22050; } +sint32 DStoMixerVolume(sint32 volume); +float DStoMixerPan(sint32 pan); +double DStoMixerRate(sint32 frequency); #ifdef __cplusplus } diff --git a/src/openrct2/input.c b/src/openrct2/input.c index 5170516f60..de806bf396 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -159,8 +159,9 @@ static sint32 game_get_next_input(sint32 *x, sint32 *y) { rct_mouse_data *input = get_mouse_input(); if (input == NULL) { - *x = gCursorState.x; - *y = gCursorState.y; + const CursorState * cursorState = context_get_cursor_state(); + *x = cursorState->x; + *y = cursorState->y; return 0; } else { *x = input->x; @@ -200,7 +201,7 @@ static void input_scroll_drag_begin(sint32 x, sint32 y, rct_window* w, rct_widge _ticksSinceDragStart = 0; _dragScrollIndex = window_get_scroll_data_index(w, widgetIndex); - platform_hide_cursor(); + context_hide_cursor(); } /** @@ -241,7 +242,7 @@ static void input_scroll_drag_continue(sint32 x, sint32 y, rct_window* w) sint32 fixedCursorPositionX = (sint32) ceilf(gInputDragLastX * gConfigGeneral.window_scale); sint32 fixedCursorPositionY = (sint32) ceilf(gInputDragLastY * gConfigGeneral.window_scale); - platform_set_cursor_position(fixedCursorPositionX, fixedCursorPositionY); + context_set_cursor_position(fixedCursorPositionX, fixedCursorPositionY); } /** @@ -252,7 +253,7 @@ static void input_scroll_right(sint32 x, sint32 y, sint32 state) { rct_window* w = window_find_by_number(_dragWidget.window_classification, _dragWidget.window_number); if (w == NULL) { - platform_show_cursor(); + context_show_cursor(); _inputState = INPUT_STATE_RESET; return; } @@ -267,7 +268,7 @@ static void input_scroll_right(sint32 x, sint32 y, sint32 state) break; case MOUSE_STATE_RIGHT_RELEASE: _inputState = INPUT_STATE_RESET; - platform_show_cursor(); + context_show_cursor(); break; } } @@ -502,8 +503,8 @@ static void input_viewport_drag_begin(rct_window *w, sint32 x, sint32 y) _dragWidget.window_classification = w->classification; _dragWidget.window_number = w->number; _ticksSinceDragStart = 0; - platform_get_cursor_position(&gInputDragLastX, &gInputDragLastY); - platform_hide_cursor(); + context_get_cursor_position(&gInputDragLastX, &gInputDragLastY); + context_hide_cursor(); // gInputFlags |= INPUT_FLAG_5; } @@ -514,7 +515,7 @@ static void input_viewport_drag_continue() rct_window *w; rct_viewport *viewport; - platform_get_cursor_position(&newDragX, &newDragY); + context_get_cursor_position(&newDragX, &newDragY); dx = newDragX - gInputDragLastX; dy = newDragY - gInputDragLastY; @@ -530,7 +531,7 @@ static void input_viewport_drag_continue() viewport = w->viewport; _ticksSinceDragStart += gTicksSinceLastUpdate; if (viewport == NULL) { - platform_show_cursor(); + context_show_cursor(); _inputState = INPUT_STATE_RESET; } else if (dx != 0 || dy != 0) { if (!(w->flags & WF_NO_SCROLLING)) { @@ -552,13 +553,13 @@ static void input_viewport_drag_continue() } } - platform_set_cursor_position(gInputDragLastX, gInputDragLastY); + context_set_cursor_position(gInputDragLastX, gInputDragLastY); } static void input_viewport_drag_end() { _inputState = INPUT_STATE_RESET; - platform_show_cursor(); + context_show_cursor(); } #pragma endregion @@ -1411,14 +1412,15 @@ void title_handle_keyboard_input() if (!gConsoleOpen) { // Handle modifier keys and key scrolling gInputPlaceObjectModifier = PLACE_OBJECT_MODIFIER_NONE; - if (gKeysState[SDL_SCANCODE_LSHIFT] || gKeysState[SDL_SCANCODE_RSHIFT]) + const uint8 * keysState = context_get_keys_state(); + if (keysState[SDL_SCANCODE_LSHIFT] || keysState[SDL_SCANCODE_RSHIFT]) gInputPlaceObjectModifier |= PLACE_OBJECT_MODIFIER_SHIFT_Z; - if (gKeysState[SDL_SCANCODE_LCTRL] || gKeysState[SDL_SCANCODE_RCTRL]) + if (keysState[SDL_SCANCODE_LCTRL] || keysState[SDL_SCANCODE_RCTRL]) gInputPlaceObjectModifier |= PLACE_OBJECT_MODIFIER_COPY_Z; - if (gKeysState[SDL_SCANCODE_LALT] || gKeysState[SDL_SCANCODE_RALT]) + if (keysState[SDL_SCANCODE_LALT] || keysState[SDL_SCANCODE_RALT]) gInputPlaceObjectModifier |= 4; #ifdef __MACOSX__ - if (gKeysState[SDL_SCANCODE_LGUI] || gKeysState[SDL_SCANCODE_RGUI]) { + if (keysState[SDL_SCANCODE_LGUI] || keysState[SDL_SCANCODE_RGUI]) { gInputPlaceObjectModifier |= 8; } #endif @@ -1430,7 +1432,7 @@ void title_handle_keyboard_input() // Reserve backtick for console if (key == SDL_SCANCODE_GRAVE) { - if ((gConfigGeneral.debugging_tools && !platform_is_input_active()) || gConsoleOpen) { + if ((gConfigGeneral.debugging_tools && !context_is_input_active()) || gConsoleOpen) { window_cancel_textbox(); console_toggle(); } @@ -1476,17 +1478,18 @@ void game_handle_keyboard_input() // Handle modifier keys and key scrolling gInputPlaceObjectModifier = PLACE_OBJECT_MODIFIER_NONE; - if (gKeysState[SDL_SCANCODE_LSHIFT] || gKeysState[SDL_SCANCODE_RSHIFT]) { + const uint8 * keysState = context_get_keys_state(); + if (keysState[SDL_SCANCODE_LSHIFT] || keysState[SDL_SCANCODE_RSHIFT]) { gInputPlaceObjectModifier |= PLACE_OBJECT_MODIFIER_SHIFT_Z; } - if (gKeysState[SDL_SCANCODE_LCTRL] || gKeysState[SDL_SCANCODE_RCTRL]) { + if (keysState[SDL_SCANCODE_LCTRL] || keysState[SDL_SCANCODE_RCTRL]) { gInputPlaceObjectModifier |= PLACE_OBJECT_MODIFIER_COPY_Z; } - if (gKeysState[SDL_SCANCODE_LALT] || gKeysState[SDL_SCANCODE_RALT]) { + if (keysState[SDL_SCANCODE_LALT] || keysState[SDL_SCANCODE_RALT]) { gInputPlaceObjectModifier |= 4; } #ifdef __MACOSX__ - if (gKeysState[SDL_SCANCODE_LGUI] || gKeysState[SDL_SCANCODE_RGUI]) { + if (keysState[SDL_SCANCODE_LGUI] || keysState[SDL_SCANCODE_RGUI]) { gInputPlaceObjectModifier |= 8; } #endif @@ -1501,7 +1504,7 @@ void game_handle_keyboard_input() // Reserve backtick for console if (key == SDL_SCANCODE_GRAVE) { - if ((gConfigGeneral.debugging_tools && !platform_is_input_active()) || gConsoleOpen) { + if ((gConfigGeneral.debugging_tools && !context_is_input_active()) || gConsoleOpen) { window_cancel_textbox(); console_toggle(); } @@ -1536,10 +1539,10 @@ void game_handle_keyboard_input() */ sint32 get_next_key() { - sint32 i; - for (i = 0; i < 221; i++) { - if (gKeysPressed[i]) { - gKeysPressed[i] = 0; + uint8 * keysPressed = (uint8 *)context_get_keys_pressed(); + for (sint32 i = 0; i < 221; i++) { + if (keysPressed[i]) { + keysPressed[i] = 0; return i; } } @@ -1617,15 +1620,16 @@ void game_handle_edge_scroll() scrollY = 0; // Scroll left / right - if (gCursorState.x == 0) + const CursorState * cursorState = context_get_cursor_state(); + if (cursorState->x == 0) scrollX = -1; - else if (gCursorState.x >= gScreenWidth - 1) + else if (cursorState->x >= gScreenWidth - 1) scrollX = 1; // Scroll up / down - if (gCursorState.y == 0) + if (cursorState->y == 0) scrollY = -1; - else if (gCursorState.y >= gScreenHeight - 1) + else if (cursorState->y >= gScreenHeight - 1) scrollY = 1; // Scroll viewport @@ -1661,25 +1665,26 @@ void game_handle_key_scroll() scrollX = 0; scrollY = 0; + const uint8 * keysState = context_get_keys_state(); for (sint32 shortcutId = SHORTCUT_SCROLL_MAP_UP; shortcutId <= SHORTCUT_SCROLL_MAP_RIGHT; shortcutId++) { uint16 shortcutKey = gShortcutKeys[shortcutId]; uint8 scancode = shortcutKey & 0xFF; if (shortcutKey == 0xFFFF) continue; - if (!gKeysState[scancode]) continue; + if (!keysState[scancode]) continue; if (shortcutKey & SHIFT) { - if (!gKeysState[SDL_SCANCODE_LSHIFT] && !gKeysState[SDL_SCANCODE_RSHIFT]) continue; + if (!keysState[SDL_SCANCODE_LSHIFT] && !keysState[SDL_SCANCODE_RSHIFT]) continue; } if (shortcutKey & CTRL) { - if (!gKeysState[SDL_SCANCODE_LCTRL] && !gKeysState[SDL_SCANCODE_RCTRL]) continue; + if (!keysState[SDL_SCANCODE_LCTRL] && !keysState[SDL_SCANCODE_RCTRL]) continue; } if (shortcutKey & ALT) { - if (!gKeysState[SDL_SCANCODE_LALT] && !gKeysState[SDL_SCANCODE_RALT]) continue; + if (!keysState[SDL_SCANCODE_LALT] && !keysState[SDL_SCANCODE_RALT]) continue; } #ifdef __MACOSX__ if (shortcutKey & CMD) { - if (!gKeysState[SDL_SCANCODE_LGUI] && !gKeysState[SDL_SCANCODE_RGUI]) continue; + if (!keysState[SDL_SCANCODE_LGUI] && !keysState[SDL_SCANCODE_RGUI]) continue; } #endif diff --git a/src/openrct2/interface/chat.c b/src/openrct2/interface/chat.c index 5c5c755011..ec76f4f873 100644 --- a/src/openrct2/interface/chat.c +++ b/src/openrct2/interface/chat.c @@ -16,6 +16,7 @@ #include "../audio/audio.h" #include "../audio/AudioMixer.h" +#include "../Context.h" #include "../interface/themes.h" #include "../localisation/localisation.h" #include "../network/network.h" @@ -44,13 +45,13 @@ static void chat_clear_input(); void chat_open() { gChatOpen = true; - platform_start_text_input(_chatCurrentLine, sizeof(_chatCurrentLine)); + context_start_text_input(_chatCurrentLine, sizeof(_chatCurrentLine)); } void chat_close() { gChatOpen = false; - platform_stop_text_input(); + context_stop_text_input(); } void chat_toggle() diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 6a296a9d4d..65a7f86617 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -18,6 +18,7 @@ #include #include "../config/Config.h" +#include "../Context.h" #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" @@ -91,14 +92,14 @@ void console_open() _consoleScrollPos = 0; console_refresh_caret(); console_update_scroll(); - platform_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine)); + context_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine)); } void console_close() { gConsoleOpen = false; console_invalidate(); - platform_stop_text_input(); + context_stop_text_input(); } void console_toggle() @@ -412,7 +413,7 @@ static void console_clear_input() { _consoleCurrentLine[0] = 0; if (gConsoleOpen) { - platform_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine)); + context_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine)); } } diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index a675cc5398..08a1adbdfb 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -15,6 +15,7 @@ #pragma endregion #include "../audio/audio.h" +#include "../Context.h" #include "../core/Guard.hpp" #include "../drawing/drawing.h" #include "../editor.h" @@ -295,7 +296,7 @@ static bool window_other_wheel_input(rct_window *w, rct_widgetindex widgetIndex, static void window_all_wheel_input() { // Get wheel value - sint32 raw = gCursorState.wheel; + sint32 raw = context_get_cursor_state()->wheel; sint32 wheel = 0; while (1) { raw -= 120; @@ -311,14 +312,17 @@ static void window_all_wheel_input() wheel += 17; } raw -= 120; - gCursorState.wheel = raw; + + // TODO do something about this hack + CursorState * cursorState = (CursorState *)context_get_cursor_state(); + cursorState->wheel = raw; if (wheel == 0) return; // Check window cursor is over if (!(input_test_flag(INPUT_FLAG_5))) { - rct_window *w = window_find_from_point(gCursorState.x, gCursorState.y); + rct_window *w = window_find_from_point(cursorState->x, cursorState->y); if (w != NULL) { // Check if main window if (w->classification == WC_MAIN_WINDOW || w->classification == WC_VIEWPORT) { @@ -327,7 +331,7 @@ static void window_all_wheel_input() } // Check scroll view, cursor is over - rct_widgetindex widgetIndex = window_find_widget_from_point(w, gCursorState.x, gCursorState.y); + rct_widgetindex widgetIndex = window_find_widget_from_point(w, cursorState->x, cursorState->y); if (widgetIndex != -1) { rct_widget *widget = &w->widgets[widgetIndex]; if (widget->type == WWT_SCROLL) { @@ -1471,7 +1475,7 @@ void window_viewport_get_map_coords_by_cursor(rct_window *w, sint16 *map_x, sint { // Get mouse position to offset against. sint32 mouse_x, mouse_y; - platform_get_cursor_position_scaled(&mouse_x, &mouse_y); + context_get_cursor_position_scaled(&mouse_x, &mouse_y); // Compute map coordinate by mouse position. get_map_coordinates_from_pos(mouse_x, mouse_y, VIEWPORT_INTERACTION_MASK_NONE, map_x, map_y, NULL, NULL, NULL); @@ -1499,7 +1503,7 @@ void window_viewport_centre_tile_around_cursor(rct_window *w, sint16 map_x, sint // Get mouse position to offset against. sint32 mouse_x, mouse_y; - platform_get_cursor_position_scaled(&mouse_x, &mouse_y); + context_get_cursor_position_scaled(&mouse_x, &mouse_y); // Rebase mouse position onto centre of window, and compensate for zoom level. sint32 rebased_x = ((w->width >> 1) - mouse_x) * (1 << w->viewport->zoom), @@ -2507,7 +2511,7 @@ void window_start_textbox(rct_window *call_w, rct_widgetindex call_widget, rct_s // from crashing the game. gTextBoxInput[maxLength - 1] = '\0'; - platform_start_text_input(gTextBoxInput, maxLength); + context_start_text_input(gTextBoxInput, maxLength); } void window_cancel_textbox() @@ -2520,7 +2524,7 @@ void window_cancel_textbox() window_event_textinput_call(w, gCurrentTextBox.widget_index, NULL); gCurrentTextBox.window.classification = WC_NULL; gCurrentTextBox.window.number = 0; - platform_stop_text_input(); + context_stop_text_input(); gUsingWidgetTextBox = false; widget_invalidate(w, gCurrentTextBox.widget_index); gCurrentTextBox.widget_index = WWT_LAST; diff --git a/src/openrct2/intro.c b/src/openrct2/intro.c index c2740dc8a9..5b3b7fcd07 100644 --- a/src/openrct2/intro.c +++ b/src/openrct2/intro.c @@ -16,6 +16,7 @@ #include "audio/audio.h" #include "audio/AudioMixer.h" +#include "Context.h" #include "drawing/drawing.h" #include "intro.h" #include "rct2.h" @@ -221,7 +222,7 @@ void intro_draw(rct_drawpixelinfo *dpi) static void screen_intro_process_mouse_input() { - if (gCursorState.any == CURSOR_PRESSED) { + if (context_get_cursor_state()->any == CURSOR_PRESSED) { screen_intro_skip_part(); } } @@ -232,8 +233,12 @@ static void screen_intro_process_mouse_input() */ static void screen_intro_process_keyboard_input() { - if (gLastKeyPressed != 0) { - screen_intro_skip_part(); + const uint8 * keys = context_get_keys_state(); + for (int i = 0; i < 256; i++) { + if (keys[i] != 0) { + screen_intro_skip_part(); + break; + } } } diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index ed48c36a68..3c5516b6e2 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -86,23 +86,6 @@ typedef struct rct2_time { uint8 second; } rct2_time; -typedef struct openrct2_cursor { - sint32 x, y; - uint8 left, middle, right, any; - sint32 wheel; - sint32 old; - bool touch, touchIsDouble; - uint32 touchDownTimestamp; -} openrct2_cursor; - -enum { - CURSOR_UP = 0, - CURSOR_DOWN = 1, - CURSOR_CHANGED = 2, - CURSOR_RELEASED = CURSOR_UP | CURSOR_CHANGED, - CURSOR_PRESSED = CURSOR_DOWN | CURSOR_CHANGED, -}; - typedef enum {FD_OPEN, FD_SAVE} filedialog_type; typedef struct file_dialog_desc { @@ -116,44 +99,18 @@ typedef struct file_dialog_desc { } filters[8]; } file_dialog_desc; -extern openrct2_cursor gCursorState; -extern const uint8 *gKeysState; -extern uint8 *gKeysPressed; -extern uint32 gLastKeyPressed; - -extern textinputbuffer gTextInput; -extern bool gTextInputCompositionActive; -extern utf8 gTextInputComposition[32]; -extern sint32 gTextInputCompositionStart; -extern sint32 gTextInputCompositionLength; - -extern sint32 gResolutionsAllowAnyAspectRatio; -extern sint32 gNumResolutions; -extern resolution_t *gResolutions; extern SDL_Window *gWindow; - extern SDL_Color gPalette[256]; -extern bool gSteamOverlayActive; - // Platform shared definitions -void platform_update_fullscreen_resolutions(); -void platform_get_closest_resolution(sint32 inWidth, sint32 inHeight, sint32 *outWidth, sint32 *outHeight); void platform_init(); void platform_draw(); void platform_draw_require_end(); void platform_free(); -void platform_trigger_resize(); void platform_update_palette(const uint8 *colours, sint32 start_index, sint32 num_colours); -void platform_set_fullscreen_mode(sint32 mode); void platform_toggle_windowed_mode(); -void platform_set_cursor(uint8 cursor); void platform_refresh_video(); -void platform_process_messages(); sint32 platform_scancode_to_rct_keycode(sint32 sdl_key); -void platform_start_text_input(utf8 *buffer, sint32 max_length); -void platform_stop_text_input(); -bool platform_is_input_active(); void platform_get_date_utc(rct2_date *out_date); void platform_get_time_utc(rct2_time *out_time); void platform_get_date_local(rct2_date *out_date); @@ -183,11 +140,6 @@ sint32 platform_get_drives(); bool platform_file_copy(const utf8 *srcPath, const utf8 *dstPath, bool overwrite); bool platform_file_move(const utf8 *srcPath, const utf8 *dstPath); bool platform_file_delete(const utf8 *path); -void platform_hide_cursor(); -void platform_show_cursor(); -void platform_get_cursor_position(sint32 *x, sint32 *y); -void platform_get_cursor_position_scaled(sint32 *x, sint32 *y); -void platform_set_cursor_position(sint32 x, sint32 y); uint32 platform_get_ticks(); void platform_sleep(uint32 ms); void platform_resolve_user_data_path(); diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 80aa3fb641..277c911ed8 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -49,21 +49,6 @@ typedef void(*update_palette_func)(const uint8*, sint32, sint32); -openrct2_cursor gCursorState; -const uint8 *gKeysState; -uint8 *gKeysPressed; -uint32 gLastKeyPressed; -textinputbuffer gTextInput; - -bool gTextInputCompositionActive; -utf8 gTextInputComposition[32]; -sint32 gTextInputCompositionStart; -sint32 gTextInputCompositionLength; - -sint32 gNumResolutions = 0; -resolution_t *gResolutions = NULL; -sint32 gResolutionsAllowAnyAspectRatio = 0; - SDL_Window *gWindow = NULL; SDL_Renderer *gRenderer = NULL; SDL_Texture *gBufferTexture = NULL; @@ -147,277 +132,6 @@ void platform_update_palette(const uint8* colours, sint32 start_index, sint32 nu } } -void platform_process_messages() -{ - SDL_Event e; - - gLastKeyPressed = 0; - // gCursorState.wheel = 0; - gCursorState.left &= ~CURSOR_CHANGED; - gCursorState.middle &= ~CURSOR_CHANGED; - gCursorState.right &= ~CURSOR_CHANGED; - gCursorState.old = 0; - gCursorState.touch = false; - - while (SDL_PollEvent(&e)) { - switch (e.type) { - case SDL_QUIT: -// rct2_finish(); - rct2_quit(); - break; - case SDL_WINDOWEVENT: - // HACK: Fix #2158, OpenRCT2 does not draw if it does not think that the window is - // visible - due a bug in SDL2.0.3 this hack is required if the - // window is maximised, minimised and then restored again. - if (e.window.event == SDL_WINDOWEVENT_FOCUS_GAINED) { - if (SDL_GetWindowFlags(gWindow) & SDL_WINDOW_MAXIMIZED) { - SDL_RestoreWindow(gWindow); - SDL_MaximizeWindow(gWindow); - } - if ((SDL_GetWindowFlags(gWindow) & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) { - SDL_RestoreWindow(gWindow); - SDL_SetWindowFullscreen(gWindow, SDL_WINDOW_FULLSCREEN_DESKTOP); - } - } - - if (e.window.event == SDL_WINDOWEVENT_SIZE_CHANGED) - platform_resize(e.window.data1, e.window.data2); - if (gConfigSound.audio_focus && gConfigSound.sound_enabled) { - if (e.window.event == SDL_WINDOWEVENT_FOCUS_GAINED) { - Mixer_SetVolume(1); - } - if (e.window.event == SDL_WINDOWEVENT_FOCUS_LOST) { - Mixer_SetVolume(0); - } - } - break; - case SDL_MOUSEMOTION: - gCursorState.x = (sint32)(e.motion.x / gConfigGeneral.window_scale); - gCursorState.y = (sint32)(e.motion.y / gConfigGeneral.window_scale); - break; - case SDL_MOUSEWHEEL: - if (gConsoleOpen) { - console_scroll(e.wheel.y); - break; - } - gCursorState.wheel += e.wheel.y * 128; - break; - case SDL_MOUSEBUTTONDOWN: - { - sint32 x = (sint32)(e.button.x / gConfigGeneral.window_scale); - sint32 y = (sint32)(e.button.y / gConfigGeneral.window_scale); - switch (e.button.button) { - case SDL_BUTTON_LEFT: - store_mouse_input(MOUSE_STATE_LEFT_PRESS, x, y); - gCursorState.left = CURSOR_PRESSED; - gCursorState.old = 1; - break; - case SDL_BUTTON_MIDDLE: - gCursorState.middle = CURSOR_PRESSED; - break; - case SDL_BUTTON_RIGHT: - store_mouse_input(MOUSE_STATE_RIGHT_PRESS, x, y); - gCursorState.right = CURSOR_PRESSED; - gCursorState.old = 2; - break; - } - break; - } - case SDL_MOUSEBUTTONUP: - { - sint32 x = (sint32)(e.button.x / gConfigGeneral.window_scale); - sint32 y = (sint32)(e.button.y / gConfigGeneral.window_scale); - switch (e.button.button) { - case SDL_BUTTON_LEFT: - store_mouse_input(MOUSE_STATE_LEFT_RELEASE, x, y); - gCursorState.left = CURSOR_RELEASED; - gCursorState.old = 3; - break; - case SDL_BUTTON_MIDDLE: - gCursorState.middle = CURSOR_RELEASED; - break; - case SDL_BUTTON_RIGHT: - store_mouse_input(MOUSE_STATE_RIGHT_RELEASE, x, y); - gCursorState.right = CURSOR_RELEASED; - gCursorState.old = 4; - break; - } - break; - } -// Apple sends touchscreen events for trackpads, so ignore these events on macOS -#ifndef __MACOSX__ - case SDL_FINGERMOTION: - gCursorState.x = (sint32)(e.tfinger.x * gScreenWidth); - gCursorState.y = (sint32)(e.tfinger.y * gScreenHeight); - break; - case SDL_FINGERDOWN: - { - sint32 x = (sint32)(e.tfinger.x * gScreenWidth); - sint32 y = (sint32)(e.tfinger.y * gScreenHeight); - - gCursorState.touchIsDouble = (!gCursorState.touchIsDouble - && e.tfinger.timestamp - gCursorState.touchDownTimestamp < TOUCH_DOUBLE_TIMEOUT); - - if (gCursorState.touchIsDouble) { - store_mouse_input(MOUSE_STATE_RIGHT_PRESS, x, y); - gCursorState.right = CURSOR_PRESSED; - gCursorState.old = 2; - } else { - store_mouse_input(MOUSE_STATE_LEFT_PRESS, x, y); - gCursorState.left = CURSOR_PRESSED; - gCursorState.old = 1; - } - gCursorState.touch = true; - gCursorState.touchDownTimestamp = e.tfinger.timestamp; - break; - } - case SDL_FINGERUP: - { - sint32 x = (sint32)(e.tfinger.x * gScreenWidth); - sint32 y = (sint32)(e.tfinger.y * gScreenHeight); - - if (gCursorState.touchIsDouble) { - store_mouse_input(MOUSE_STATE_RIGHT_RELEASE, x, y); - gCursorState.left = CURSOR_RELEASED; - gCursorState.old = 4; - } else { - store_mouse_input(MOUSE_STATE_LEFT_RELEASE, x, y); - gCursorState.left = CURSOR_RELEASED; - gCursorState.old = 3; - } - gCursorState.touch = true; - break; - } -#endif - case SDL_KEYDOWN: - if (gTextInputCompositionActive) break; - - if (e.key.keysym.sym == SDLK_KP_ENTER){ - // Map Keypad enter to regular enter. - e.key.keysym.scancode = SDL_SCANCODE_RETURN; - } - - gLastKeyPressed = e.key.keysym.sym; - gKeysPressed[e.key.keysym.scancode] = 1; - - // Text input - if (gTextInput.buffer == NULL) break; - - // Clear the input on Backspace (Windows/Linux) or Backspace (macOS) - if (e.key.keysym.sym == SDLK_BACKSPACE && (e.key.keysym.mod & KEYBOARD_PRIMARY_MODIFIER)) { - textinputbuffer_clear(&gTextInput); - console_refresh_caret(); - window_update_textbox(); - } - - // If backspace and we have input text with a cursor position none zero - if (e.key.keysym.sym == SDLK_BACKSPACE) { - if (gTextInput.selection_offset > 0) { - size_t endOffset = gTextInput.selection_offset; - textinputbuffer_cursor_left(&gTextInput); - gTextInput.selection_size = endOffset - gTextInput.selection_offset; - textinputbuffer_remove_selected(&gTextInput); - - console_refresh_caret(); - window_update_textbox(); - } - } - if (e.key.keysym.sym == SDLK_HOME) { - textinputbuffer_cursor_home(&gTextInput); - console_refresh_caret(); - } - if (e.key.keysym.sym == SDLK_END) { - textinputbuffer_cursor_end(&gTextInput); - console_refresh_caret(); - } - if (e.key.keysym.sym == SDLK_DELETE) { - size_t startOffset = gTextInput.selection_offset; - textinputbuffer_cursor_right(&gTextInput); - gTextInput.selection_size = gTextInput.selection_offset - startOffset; - gTextInput.selection_offset = startOffset; - textinputbuffer_remove_selected(&gTextInput); - console_refresh_caret(); - window_update_textbox(); - } - if (e.key.keysym.sym == SDLK_RETURN) { - window_cancel_textbox(); - } - if (e.key.keysym.sym == SDLK_LEFT) { - textinputbuffer_cursor_left(&gTextInput); - console_refresh_caret(); - } - else if (e.key.keysym.sym == SDLK_RIGHT) { - textinputbuffer_cursor_right(&gTextInput); - console_refresh_caret(); - } - else if (e.key.keysym.sym == SDLK_v && (SDL_GetModState() & KEYBOARD_PRIMARY_MODIFIER)) { - if (SDL_HasClipboardText()) { - utf8* text = SDL_GetClipboardText(); - - utf8_remove_formatting(text, false); - textinputbuffer_insert(&gTextInput, text); - - SDL_free(text); - - window_update_textbox(); - } - } - break; - case SDL_MULTIGESTURE: - if (e.mgesture.numFingers == 2) { - if (e.mgesture.timestamp > _lastGestureTimestamp + 1000) - _gestureRadius = 0; - _lastGestureTimestamp = e.mgesture.timestamp; - _gestureRadius += e.mgesture.dDist; - - // Zoom gesture - const sint32 tolerance = 128; - sint32 gesturePixels = (sint32)(_gestureRadius * gScreenWidth); - if (abs(gesturePixels) > tolerance) { - _gestureRadius = 0; - main_window_zoom(gesturePixels > 0, true); - } - } - break; - case SDL_TEXTEDITING: - // When inputting Korean characters, `e.edit.length` is always Zero. - safe_strcpy(gTextInputComposition, e.edit.text, sizeof(gTextInputComposition)); - gTextInputCompositionStart = e.edit.start; - gTextInputCompositionLength = e.edit.length; - gTextInputCompositionActive = ((e.edit.length != 0 || strlen(e.edit.text) != 0) && gTextInputComposition[0] != 0); - break; - case SDL_TEXTINPUT: - // will receive an `SDL_TEXTINPUT` event when a composition is committed. - // so, set gTextInputCompositionActive to false. - gTextInputCompositionActive = false; - - if (gTextInput.buffer == NULL) break; - - // HACK ` will close console, so don't input any text - if (e.text.text[0] == '`' && gConsoleOpen) { - break; - } - - utf8* newText = e.text.text; - - utf8_remove_formatting(newText, false); - textinputbuffer_insert(&gTextInput, newText); - - console_refresh_caret(); - window_update_textbox(); - break; - default: - break; - } - } - - gCursorState.any = gCursorState.left | gCursorState.middle | gCursorState.right; - - // Updates the state of the keys - sint32 numKeys = 256; - gKeysState = SDL_GetKeyboardState(&numKeys); -} - void platform_init() { gKeysPressed = malloc(sizeof(uint8) * 256); @@ -450,56 +164,6 @@ void platform_free() free(gKeysPressed); } -void platform_start_text_input(utf8* buffer, sint32 max_length) -{ - // TODO This doesn't work, and position could be improved to where text entry is - SDL_Rect rect = { 10, 10, 100, 100 }; - SDL_SetTextInputRect(&rect); - - SDL_StartTextInput(); - - textinputbuffer_init(&gTextInput, buffer, max_length); -} - -bool platform_is_input_active() -{ - return SDL_IsTextInputActive() && gTextInput.buffer != NULL; -} - -void platform_stop_text_input() -{ - SDL_StopTextInput(); - gTextInput.buffer = NULL; - gTextInputCompositionActive = false; -} - -void platform_set_fullscreen_mode(sint32 mode) -{ - sint32 width, height; - - mode = _fullscreen_modes[mode]; - - // HACK Changing window size when in fullscreen usually has no effect - if (mode == SDL_WINDOW_FULLSCREEN) - SDL_SetWindowFullscreen(gWindow, 0); - - // Set window size - if (mode == SDL_WINDOW_FULLSCREEN) { - platform_update_fullscreen_resolutions(); - platform_get_closest_resolution(gConfigGeneral.fullscreen_width, gConfigGeneral.fullscreen_height, &width, &height); - SDL_SetWindowSize(gWindow, width, height); - } else if (mode == 0) { - SDL_SetWindowSize(gWindow, gConfigGeneral.window_width, gConfigGeneral.window_height); - } - - if (SDL_SetWindowFullscreen(gWindow, mode)) { - log_fatal("SDL_SetWindowFullscreen %s", SDL_GetError()); - exit(1); - - // TODO try another display mode rather than just exiting the game - } -} - void platform_toggle_windowed_mode() { sint32 targetMode = gConfigGeneral.fullscreen_mode == 0 ? 2 : 0; @@ -519,35 +183,6 @@ void platform_refresh_video() gfx_invalidate_screen(); } -void platform_hide_cursor() -{ - SDL_ShowCursor(SDL_DISABLE); -} - -void platform_show_cursor() -{ - SDL_ShowCursor(SDL_ENABLE); -} - -void platform_get_cursor_position(sint32 *x, sint32 *y) -{ - SDL_GetMouseState(x, y); -} - -void platform_get_cursor_position_scaled(sint32 *x, sint32 *y) -{ - platform_get_cursor_position(x, y); - - // Compensate for window scaling. - *x = (sint32) ceilf(*x / gConfigGeneral.window_scale); - *y = (sint32) ceilf(*y / gConfigGeneral.window_scale); -} - -void platform_set_cursor_position(sint32 x, sint32 y) -{ - SDL_WarpMouseInWindow(NULL, x, y); -} - uint32 platform_get_ticks() { #ifdef _WIN32 diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index c03ead8342..2f84db1f00 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -20,6 +20,8 @@ #include "../common.h" #include "../interface/Cursors.h" +struct CursorState; + namespace OpenRCT2 { namespace Drawing @@ -42,7 +44,7 @@ namespace OpenRCT2 const utf8 * Buffer; // UTF-8 stream size_t BufferSize; // Maximum number of bytes (excluding null terminator) size_t Size; // Number of bytes (excluding null terminator) - uint32 Length; // Number of codepoints + size_t Length; // Number of codepoints size_t SelectionStart; // Selection start, in bytes size_t SelectionSize; // Selection length in bytes }; @@ -83,21 +85,30 @@ namespace OpenRCT2 virtual ~IUiContext() = default; // Window - virtual CURSOR_ID GetCursor() abstract; - virtual void SetCursor(CURSOR_ID cursor) abstract; virtual void * GetWindow() abstract; virtual sint32 GetWidth() abstract; virtual sint32 GetHeight() abstract; virtual void SetFullscreenMode(FULLSCREEN_MODE mode) abstract; - virtual std::vector GetFullscreenResolutions() abstract; + virtual bool IsSteamOverlayActive() abstract; + virtual void ProcessMessages() abstract; + + // Input + virtual const CursorState * GetCursorState() abstract; + virtual CURSOR_ID GetCursor() abstract; + virtual void SetCursor(CURSOR_ID cursor) abstract; + virtual void SetCursorVisible(bool value) abstract; + virtual void GetCursorPosition(sint32 * x, sint32 * y) abstract; + virtual void SetCursorPosition(sint32 x, sint32 y) abstract; + virtual const uint8 * GetKeysState() abstract; + virtual const uint8 * GetKeysPressed() abstract; // Drawing virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) abstract; // Text input virtual bool IsTextInputActive() abstract; - virtual const TextInputSession * StartTextInput(utf8 * buffer, sint32 bufferSize) abstract; + virtual const TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) abstract; virtual void StopTextInput() abstract; }; } From 9d24e47e6f3210ae2e176b09c44f1516d940765a Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 26 Mar 2017 03:36:22 +0100 Subject: [PATCH 138/670] Fix build --- src/openrct2-ui/TextComposition.cpp | 10 +-- src/openrct2-ui/TextComposition.h | 3 +- src/openrct2-ui/UiContext.cpp | 75 ++++++++++--------- src/openrct2/Context.cpp | 24 +++++- src/openrct2/Context.h | 21 +++++- src/openrct2/interface/chat.c | 29 +++---- src/openrct2/interface/console.c | 19 +++-- src/openrct2/interface/widget.c | 7 +- src/openrct2/interface/window.c | 1 + src/openrct2/interface/window.h | 2 + src/openrct2/platform/shared.c | 9 ++- src/openrct2/ui/UiContext.h | 26 ++----- .../windows/editor_object_selection.c | 4 +- src/openrct2/windows/error.c | 6 +- src/openrct2/windows/map_tooltip.c | 11 ++- src/openrct2/windows/options.c | 47 +++++++----- src/openrct2/windows/ride_construction.c | 6 +- src/openrct2/windows/scenery.c | 10 ++- src/openrct2/windows/text_input.c | 43 +++++------ 19 files changed, 205 insertions(+), 148 deletions(-) diff --git a/src/openrct2-ui/TextComposition.cpp b/src/openrct2-ui/TextComposition.cpp index b8536a2b53..f211cd7aef 100644 --- a/src/openrct2-ui/TextComposition.cpp +++ b/src/openrct2-ui/TextComposition.cpp @@ -19,13 +19,13 @@ #include #include #include -#include #include "TextComposition.h" extern "C" { #include #include + #include } #ifdef __MACOSX__ @@ -43,7 +43,7 @@ bool TextComposition::IsActive() return SDL_IsTextInputActive() && _session.Buffer != nullptr; } -const TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize) +TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize) { Guard::ArgumentNotNull(buffer); @@ -250,7 +250,7 @@ void TextComposition::InsertCodepoint(codepoint_t codepoint) size_t remainingSize = _session.BufferSize - _session.Size; if (codepointLength <= remainingSize) { - utf8 * buffer = (utf8 *)_session.Buffer; + utf8 * buffer = _session.Buffer; utf8 * insertPtr = buffer + _session.SelectionStart; if (_session.SelectionStart < _session.Size) { @@ -274,7 +274,7 @@ void TextComposition::InsertCodepoint(codepoint_t codepoint) void TextComposition::Clear() { - utf8 * buffer = (utf8 *)_session.Buffer; + utf8 * buffer = _session.Buffer; buffer[0] = 0; _session.Size = 0; _session.Length = 0; @@ -284,7 +284,7 @@ void TextComposition::Clear() void TextComposition::Delete() { - utf8 * buffer = (utf8 *)_session.Buffer; + utf8 * buffer = _session.Buffer; utf8 * targetShiftPtr = buffer + _session.SelectionStart; utf8 * sourceShiftPtr = targetShiftPtr + _session.SelectionSize; size_t shiftSize = _session.SelectionSize - _session.SelectionStart - _session.SelectionSize + 1; diff --git a/src/openrct2-ui/TextComposition.h b/src/openrct2-ui/TextComposition.h index fe9aeddcd1..af08a34dc3 100644 --- a/src/openrct2-ui/TextComposition.h +++ b/src/openrct2-ui/TextComposition.h @@ -15,6 +15,7 @@ #pragma endregion #include +#include #include union SDL_Event; @@ -38,7 +39,7 @@ namespace OpenRCT2 public: bool IsActive(); - const TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize); + TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize); void Stop(); void HandleMessage(const SDL_Event * e); diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index cd7666d4a8..37e9b40043 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include "CursorRepository.h" @@ -32,8 +31,9 @@ extern "C" { - #include #include + #include + #include } using namespace OpenRCT2; @@ -135,6 +135,7 @@ public: std::vector GetFullscreenResolutions() override { + UpdateFullscreenResolutions(); return _fsResolutions; } @@ -207,7 +208,7 @@ public: return _textComposition.IsActive(); } - const TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) override + TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) override { return _textComposition.Start(buffer, bufferSize); } @@ -217,7 +218,7 @@ public: _textComposition.Stop(); } - void ProcessMessages() + void ProcessMessages() override { _lastKeyPressed = 0; _cursorState.left &= ~CURSOR_CHANGED; @@ -412,6 +413,27 @@ public: _keysState = SDL_GetKeyboardState(&numKeys); } + /** + * Helper function to set various render target features. + * Does not get triggered on resize, but rather manually on config changes. + */ + void TriggerResize() override + { + char scaleQualityBuffer[4]; + uint8 scaleQuality = gConfigGeneral.scale_quality; + if (gConfigGeneral.use_nn_at_integer_scales && + gConfigGeneral.window_scale == std::floor(gConfigGeneral.window_scale)) + { + scaleQuality = 0; + } + snprintf(scaleQualityBuffer, sizeof(scaleQualityBuffer), "%u", scaleQuality); + SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, scaleQualityBuffer); + + sint32 width, height; + SDL_GetWindowSize(_window, &width, &height); + OnResize(width, height); + } + private: void CreateWindow() { @@ -506,27 +528,6 @@ private: } } - /** - * Helper function to set various render target features. - * Does not get triggered on resize, but rather manually on config changes. - */ - void TriggerResize() - { - char scaleQualityBuffer[4]; - uint8 scaleQuality = gConfigGeneral.scale_quality; - if (gConfigGeneral.use_nn_at_integer_scales && - gConfigGeneral.window_scale == std::floor(gConfigGeneral.window_scale)) - { - scaleQuality = 0; - } - snprintf(scaleQualityBuffer, sizeof(scaleQualityBuffer), "%u", scaleQuality); - SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, scaleQualityBuffer); - - sint32 width, height; - SDL_GetWindowSize(_window, &width, &height); - OnResize(width, height); - } - void UpdateFullscreenResolutions() { // Query number of display modes @@ -552,20 +553,20 @@ private: } // Sort by area - std::sort(resolutions.begin(), resolutions.end()); - // [](const Resolution &a, const Resolution &b) -> bool - // { - // sint32 areaA = a.Width * a.Height; - // sint32 areaB = b.Width * b.Height; - // return areaA < areaB; - // }); + std::sort(resolutions.begin(), resolutions.end(), + [](const Resolution &a, const Resolution &b) -> bool + { + sint32 areaA = a.Width * a.Height; + sint32 areaB = b.Width * b.Height; + return areaA < areaB; + }); // Remove duplicates - auto last = std::unique(resolutions.begin(), resolutions.end()); - // [](const Resolution &a, const Resolution &b) -> bool - // { - // return (a.Width == b.Width && a.Height == b.Height); - // }); + auto last = std::unique(resolutions.begin(), resolutions.end(), + [](const Resolution &a, const Resolution &b) -> bool + { + return (a.Width == b.Width && a.Height == b.Height); + }); resolutions.erase(last, resolutions.end()); // Update config fullscreen resolution if not set diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index ed94d722df..c84d8d2c8f 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -15,6 +15,7 @@ #pragma endregion #include +#include "core/Memory.hpp" #include "config/Config.h" #include "Context.h" #include "OpenRCT2.h" @@ -134,9 +135,9 @@ extern "C" return GetContext()->GetUiContext()->GetKeysPressed(); } - void context_start_text_input(utf8 * buffer, size_t maxLength) + TextInputSession * context_start_text_input(utf8 * buffer, size_t maxLength) { - GetContext()->GetUiContext()->StartTextInput(buffer, maxLength); + return GetContext()->GetUiContext()->StartTextInput(buffer, maxLength); } void context_stop_text_input() @@ -148,4 +149,23 @@ extern "C" { return GetContext()->GetUiContext()->IsTextInputActive(); } + + void context_trigger_resize() + { + return GetContext()->GetUiContext()->TriggerResize(); + } + + void context_set_fullscreen_mode(sint32 mode) + { + return GetContext()->GetUiContext()->SetFullscreenMode((FULLSCREEN_MODE)mode); + } + + sint32 context_get_resolutions(Resolution * * outResolutions) + { + auto resolutions = GetContext()->GetUiContext()->GetFullscreenResolutions(); + sint32 count = (sint32)resolutions.size(); + *outResolutions = Memory::AllocateArray(count); + Memory::CopyArray(*outResolutions, resolutions.data(), count); + return count; + } } diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 321c378d79..7a4ddb6ea6 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -28,6 +28,22 @@ typedef struct CursorState uint32 touchDownTimestamp; } CursorState; +typedef struct TextInputSession +{ + utf8 * Buffer; // UTF-8 stream + size_t BufferSize; // Maximum number of bytes (excluding null terminator) + size_t Size; // Number of bytes (excluding null terminator) + size_t Length; // Number of codepoints + size_t SelectionStart; // Selection start, in bytes + size_t SelectionSize; // Selection length in bytes +} TextInputSession; + +struct Resolution +{ + sint32 Width; + sint32 Height; +}; + enum { CURSOR_UP = 0, @@ -77,9 +93,12 @@ extern "C" const CursorState * context_get_cursor_state(); const uint8 * context_get_keys_state(); const uint8 * context_get_keys_pressed(); - void context_start_text_input(utf8 * buffer, size_t maxLength); + TextInputSession * context_start_text_input(utf8 * buffer, size_t maxLength); void context_stop_text_input(); bool context_is_input_active(); + void context_trigger_resize(); + void context_set_fullscreen_mode(sint32 mode); + sint32 context_get_resolutions(struct Resolution * * outResolutions); #ifdef __cplusplus } diff --git a/src/openrct2/interface/chat.c b/src/openrct2/interface/chat.c index ec76f4f873..c39afe0f95 100644 --- a/src/openrct2/interface/chat.c +++ b/src/openrct2/interface/chat.c @@ -26,17 +26,18 @@ #include "chat.h" bool gChatOpen = false; -char _chatCurrentLine[CHAT_MAX_MESSAGE_LENGTH]; -char _chatHistory[CHAT_HISTORY_SIZE][CHAT_INPUT_SIZE]; -uint32 _chatHistoryTime[CHAT_HISTORY_SIZE]; -uint32 _chatHistoryIndex = 0; -uint32 _chatCaretTicks = 0; -sint32 _chatLeft; -sint32 _chatTop; -sint32 _chatRight; -sint32 _chatBottom; -sint32 _chatWidth; -sint32 _chatHeight; +static char _chatCurrentLine[CHAT_MAX_MESSAGE_LENGTH]; +static char _chatHistory[CHAT_HISTORY_SIZE][CHAT_INPUT_SIZE]; +static uint32 _chatHistoryTime[CHAT_HISTORY_SIZE]; +static uint32 _chatHistoryIndex = 0; +static uint32 _chatCaretTicks = 0; +static sint32 _chatLeft; +static sint32 _chatTop; +static sint32 _chatRight; +static sint32 _chatBottom; +static sint32 _chatWidth; +static sint32 _chatHeight; +static TextInputSession * _chatTextInputSession; static const char* chat_history_get(uint32 index); static uint32 chat_history_get_time(uint32 index); @@ -45,7 +46,7 @@ static void chat_clear_input(); void chat_open() { gChatOpen = true; - context_start_text_input(_chatCurrentLine, sizeof(_chatCurrentLine)); + _chatTextInputSession = context_start_text_input(_chatCurrentLine, sizeof(_chatCurrentLine)); } void chat_close() @@ -161,8 +162,8 @@ void chat_draw(rct_drawpixelinfo * dpi) // TODO: Show caret if the input text has multiple lines if (_chatCaretTicks < 15 && gfx_get_string_width(lineBuffer) < (_chatWidth - 10)) { - memcpy(lineBuffer, _chatCurrentLine, gTextInput.selection_offset); - lineBuffer[gTextInput.selection_offset] = 0; + memcpy(lineBuffer, _chatCurrentLine, _chatTextInputSession->SelectionStart); + lineBuffer[_chatTextInputSession->SelectionStart] = 0; sint32 caretX = x + gfx_get_string_width(lineBuffer); sint32 caretY = y + 14; diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 65a7f86617..8b1ff0c56f 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -64,6 +64,7 @@ static sint32 _consoleCaretTicks; static utf8 _consolePrintfBuffer[CONSOLE_BUFFER_2_SIZE]; static utf8 _consoleErrorBuffer[CONSOLE_BUFFER_2_SIZE]; static sint32 _consoleScrollPos = 0; +static TextInputSession * _consoleTextInputSession; static utf8 _consoleHistory[CONSOLE_HISTORY_SIZE][CONSOLE_INPUT_SIZE]; static sint32 _consoleHistoryIndex = 0; @@ -92,7 +93,7 @@ void console_open() _consoleScrollPos = 0; console_refresh_caret(); console_update_scroll(); - context_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine)); + _consoleTextInputSession = context_start_text_input(_consoleCurrentLine, sizeof(_consoleCurrentLine)); } void console_close() @@ -236,8 +237,8 @@ void console_draw(rct_drawpixelinfo *dpi) // Draw caret if (_consoleCaretTicks < 15) { - memcpy(lineBuffer, _consoleCurrentLine, gTextInput.selection_offset); - lineBuffer[gTextInput.selection_offset] = 0; + memcpy(lineBuffer, _consoleCurrentLine, _consoleTextInputSession->SelectionStart); + lineBuffer[_consoleTextInputSession->SelectionStart] = 0; sint32 caretX = x + gfx_get_string_width(lineBuffer); sint32 caretY = y + lineHeight; @@ -271,15 +272,17 @@ void console_input(sint32 c) _consoleHistoryIndex--; memcpy(_consoleCurrentLine, _consoleHistory[_consoleHistoryIndex], 256); } - textinputbuffer_recalculate_length(&gTextInput); - gTextInput.selection_offset = strlen(_consoleCurrentLine); + _consoleTextInputSession->Size = strlen(_consoleTextInputSession->Buffer); + _consoleTextInputSession->Length = utf8_length(_consoleTextInputSession->Buffer); + _consoleTextInputSession->SelectionStart = strlen(_consoleCurrentLine); break; case SDL_SCANCODE_DOWN: if (_consoleHistoryIndex < _consoleHistoryCount - 1) { _consoleHistoryIndex++; memcpy(_consoleCurrentLine, _consoleHistory[_consoleHistoryIndex], 256); - textinputbuffer_recalculate_length(&gTextInput); - gTextInput.selection_offset = strlen(_consoleCurrentLine); + _consoleTextInputSession->Size = strlen(_consoleTextInputSession->Buffer); + _consoleTextInputSession->Length = utf8_length(_consoleTextInputSession->Buffer); + _consoleTextInputSession->SelectionStart = strlen(_consoleCurrentLine); } else { _consoleHistoryIndex = _consoleHistoryCount; console_clear_input(); @@ -1006,7 +1009,7 @@ static sint32 cc_set(const utf8 **argv, sint32 argc) gConfigGeneral.window_scale = clamp(newScale, 0.5f, 5.0f); config_save_default(); gfx_invalidate_screen(); - platform_trigger_resize(); + context_trigger_resize(); console_execute_silent("get window_scale"); } else if (strcmp(argv[0], "window_limit") == 0 && invalidArguments(&invalidArgs, int_valid[0])) { diff --git a/src/openrct2/interface/widget.c b/src/openrct2/interface/widget.c index 82e158418a..a822fb859b 100644 --- a/src/openrct2/interface/widget.c +++ b/src/openrct2/interface/widget.c @@ -22,6 +22,7 @@ #include "../platform/platform.h" #include "../localisation/localisation.h" #include "../util/util.h" +#include "../Context.h" #include @@ -1104,15 +1105,15 @@ static void widget_text_box_draw(rct_drawpixelinfo *dpi, rct_window *w, rct_widg // Make a copy of the string for measuring the width. char temp_string[TEXT_INPUT_SIZE] = { 0 }; - memcpy(temp_string, wrapped_string, min(string_length, gTextInput.selection_offset)); + memcpy(temp_string, wrapped_string, min(string_length, gTextInput->SelectionStart)); sint32 cur_x = l + gfx_get_string_width(temp_string) + 3; sint32 width = 6; - if ((uint32)gTextInput.selection_offset < strlen(gTextBoxInput)){ + if ((uint32)gTextInput->SelectionStart < strlen(gTextBoxInput)){ // Make a new 1 character wide string for measuring the width // of the character that the cursor is under. temp_string[1] = '\0'; - temp_string[0] = gTextBoxInput[gTextInput.selection_offset]; + temp_string[0] = gTextBoxInput[gTextInput->SelectionStart]; width = max(gfx_get_string_width(temp_string) - 2, 4); } diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 08a1adbdfb..a153af4e24 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -48,6 +48,7 @@ char gTextBoxInput[TEXT_INPUT_SIZE] = { 0 }; sint32 gMaxTextBoxInputLength = 0; sint32 gTextBoxFrameNo = 0; bool gUsingWidgetTextBox = 0; +TextInputSession * gTextInput; uint16 gWindowUpdateTicks; uint8 gToolbarDirtyFlags; diff --git a/src/openrct2/interface/window.h b/src/openrct2/interface/window.h index 5b15a8a3da..06d83fb840 100644 --- a/src/openrct2/interface/window.h +++ b/src/openrct2/interface/window.h @@ -33,6 +33,7 @@ struct rct_window; union rct_window_event; struct track_design_file_ref; struct TitleSequence; +struct TextInputSession; #define TEXT_INPUT_SIZE 1024 @@ -41,6 +42,7 @@ extern char gTextBoxInput[TEXT_INPUT_SIZE]; extern sint32 gMaxTextBoxInputLength; extern sint32 gTextBoxFrameNo; extern bool gUsingWidgetTextBox; +extern struct TextInputSession * gTextInput; typedef void wndproc(struct rct_window*, union rct_window_event*); diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 277c911ed8..62ab7fcfb4 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -19,6 +19,7 @@ #include "../audio/audio.h" #include "../audio/AudioMixer.h" #include "../config/Config.h" +#include "../Context.h" #include "../drawing/drawing.h" #include "../drawing/IDrawingEngine.h" #include "../drawing/lightfx.h" @@ -134,8 +135,8 @@ void platform_update_palette(const uint8* colours, sint32 start_index, sint32 nu void platform_init() { - gKeysPressed = malloc(sizeof(uint8) * 256); - memset(gKeysPressed, 0, sizeof(uint8) * 256); + // gKeysPressed = malloc(sizeof(uint8) * 256); + // memset(gKeysPressed, 0, sizeof(uint8) * 256); // Set the highest palette entry to white. // This fixes a bug with the TT:rainbow road due to the @@ -161,13 +162,13 @@ sint32 platform_scancode_to_rct_keycode(sint32 sdl_key) void platform_free() { - free(gKeysPressed); + // free(gKeysPressed); } void platform_toggle_windowed_mode() { sint32 targetMode = gConfigGeneral.fullscreen_mode == 0 ? 2 : 0; - platform_set_fullscreen_mode(targetMode); + context_set_fullscreen_mode(targetMode); gConfigGeneral.fullscreen_mode = targetMode; config_save_default(); } diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 2f84db1f00..e762dc2642 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -18,10 +18,9 @@ #include #include "../common.h" +#include "../Context.h" #include "../interface/Cursors.h" -struct CursorState; - namespace OpenRCT2 { namespace Drawing @@ -39,22 +38,6 @@ namespace OpenRCT2 FULLSCREEN_DESKTOP, }; - struct TextInputSession - { - const utf8 * Buffer; // UTF-8 stream - size_t BufferSize; // Maximum number of bytes (excluding null terminator) - size_t Size; // Number of bytes (excluding null terminator) - size_t Length; // Number of codepoints - size_t SelectionStart; // Selection start, in bytes - size_t SelectionSize; // Selection length in bytes - }; - - struct Resolution - { - sint32 Width; - sint32 Height; - }; - inline bool operator <(const Resolution& lhs, const Resolution& rhs) { sint32 areaA = lhs.Width * lhs.Height; @@ -92,6 +75,7 @@ namespace OpenRCT2 virtual std::vector GetFullscreenResolutions() abstract; virtual bool IsSteamOverlayActive() abstract; virtual void ProcessMessages() abstract; + virtual void TriggerResize() abstract; // Input virtual const CursorState * GetCursorState() abstract; @@ -107,9 +91,9 @@ namespace OpenRCT2 virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) abstract; // Text input - virtual bool IsTextInputActive() abstract; - virtual const TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) abstract; - virtual void StopTextInput() abstract; + virtual bool IsTextInputActive() abstract; + virtual TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) abstract; + virtual void StopTextInput() abstract; }; } } diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 8af147ba87..dee737a89f 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -18,6 +18,7 @@ #include "../audio/audio.h" #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../editor.h" #include "../interface/widget.h" @@ -1002,7 +1003,8 @@ static void window_editor_object_selection_scroll_mousedown(rct_window *w, sint3 window_invalidate(w); - audio_play_sound_panned(SOUND_CLICK_1, gCursorState.x, 0, 0, 0); + const CursorState * state = context_get_cursor_state(); + audio_play_sound_panned(SOUND_CLICK_1, state->x, 0, 0, 0); if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) { diff --git a/src/openrct2/windows/error.c b/src/openrct2/windows/error.c index fe72033904..6c05b528d3 100644 --- a/src/openrct2/windows/error.c +++ b/src/openrct2/windows/error.c @@ -15,6 +15,7 @@ #pragma endregion #include "../audio/audio.h" +#include "../Context.h" #include "../interface/widget.h" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -120,10 +121,11 @@ void window_error_open(rct_string_id title, rct_string_id message) window_error_widgets[WIDX_BACKGROUND].right = width; window_error_widgets[WIDX_BACKGROUND].bottom = height; - x = gCursorState.x - (width / 2); + const CursorState * state = context_get_cursor_state(); + x = state->x - (width / 2); x = clamp(0, x, gScreenWidth); - y = gCursorState.y + 26; + y = state->y + 26; y = max(22, y); maxY = gScreenHeight - height; if (y > maxY) { diff --git a/src/openrct2/windows/map_tooltip.c b/src/openrct2/windows/map_tooltip.c index ad7969db56..484b7f2244 100644 --- a/src/openrct2/windows/map_tooltip.c +++ b/src/openrct2/windows/map_tooltip.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../input.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -75,8 +76,9 @@ void window_map_tooltip_update_visibility() { sint32 cursorX, cursorY; - cursorX = gCursorState.x; - cursorY = gCursorState.y; + const CursorState * state = context_get_cursor_state(); + cursorX = state->x; + cursorY = state->y; // Check for cursor movement _cursorHoldDuration++; @@ -112,8 +114,9 @@ static void window_map_tooltip_open() width = 200; height = 44; - x = gCursorState.x - (width / 2); - y = gCursorState.y + 15; + const CursorState * state = context_get_cursor_state(); + x = state->x - (width / 2); + y = state->y + 15; w = window_find_by_class(WC_MAP_TOOLTIP); if (w == NULL) { diff --git a/src/openrct2/windows/options.c b/src/openrct2/windows/options.c index c52aeb1499..c55e2dd87e 100644 --- a/src/openrct2/windows/options.c +++ b/src/openrct2/windows/options.c @@ -25,6 +25,7 @@ #include "../audio/audio.h" #include "../audio/AudioMixer.h" #include "../config/Config.h" +#include "../Context.h" #include "../drawing/drawing.h" #include "../drawing/IDrawingEngine.h" #include "../interface/themes.h" @@ -402,6 +403,7 @@ static void window_options_update_height_markers(); #pragma region Events +static void window_options_close(rct_window *w); static void window_options_mouseup(rct_window *w, rct_widgetindex widgetIndex); static void window_options_mousedown(rct_widgetindex widgetIndex, rct_window*w, rct_widget* widget); static void window_options_dropdown(rct_window *w, rct_widgetindex widgetIndex, sint32 dropdownIndex); @@ -413,7 +415,7 @@ static void window_options_text_input(rct_window *w, rct_widgetindex widgetIndex static void window_options_tooltip(rct_window *w, rct_widgetindex widgetIndex, rct_string_id *stringid); static rct_window_event_list window_options_events = { - NULL, + window_options_close, window_options_mouseup, NULL, window_options_mousedown, @@ -565,6 +567,9 @@ static uint64 window_options_page_enabled_widgets[] = { #pragma endregion +static struct Resolution * _resolutions = NULL; +static sint32 _numResolutions = 0; + /** * * rct2: 0x006BAC5B @@ -586,6 +591,12 @@ void window_options_open() window_init_scroll_widgets(w); } +static void window_options_close(rct_window *w) +{ + free(_resolutions); + _resolutions = NULL; + _numResolutions = 0; +} /** * @@ -637,7 +648,7 @@ static void window_options_mouseup(rct_window *w, rct_widgetindex widgetIndex) gConfigGeneral.use_nn_at_integer_scales ^= 1; config_save_default(); gfx_invalidate_screen(); - platform_trigger_resize(); + context_trigger_resize(); break; } break; @@ -931,24 +942,24 @@ static void window_options_mousedown(rct_widgetindex widgetIndex, rct_window*w, switch (widgetIndex) { case WIDX_RESOLUTION_DROPDOWN: { - platform_update_fullscreen_resolutions(); + _numResolutions = context_get_resolutions(&_resolutions); sint32 selectedResolution = -1; - for (sint32 i = 0; i < gNumResolutions; i++) { - resolution_t *resolution = &gResolutions[i]; + for (sint32 i = 0; i < _numResolutions; i++) { + struct Resolution *resolution = &_resolutions[i]; gDropdownItemsFormat[i] = STR_DROPDOWN_MENU_LABEL; uint16 *args = (uint16*)&gDropdownItemsArgs[i]; args[0] = STR_RESOLUTION_X_BY_Y; - args[1] = resolution->width; - args[2] = resolution->height; + args[1] = resolution->Width; + args[2] = resolution->Height; - if (resolution->width == gConfigGeneral.fullscreen_width && resolution->height == gConfigGeneral.fullscreen_height) + if (resolution->Width == gConfigGeneral.fullscreen_width && resolution->Height == gConfigGeneral.fullscreen_height) selectedResolution = i; } - window_options_show_dropdown(w, widget, gNumResolutions); + window_options_show_dropdown(w, widget, _numResolutions); if (selectedResolution != -1 && selectedResolution < 32) { dropdown_set_checked(selectedResolution, true); @@ -987,14 +998,14 @@ static void window_options_mousedown(rct_widgetindex widgetIndex, rct_window*w, gConfigGeneral.window_scale += 0.25f; config_save_default(); gfx_invalidate_screen(); - platform_trigger_resize(); + context_trigger_resize(); break; case WIDX_SCALE_DOWN: gConfigGeneral.window_scale -= 0.25f; gConfigGeneral.window_scale = max(0.5f, gConfigGeneral.window_scale); config_save_default(); gfx_invalidate_screen(); - platform_trigger_resize(); + context_trigger_resize(); break; case WIDX_SCALE_QUALITY_DROPDOWN: gDropdownItemsFormat[0] = STR_DROPDOWN_MENU_LABEL; @@ -1259,13 +1270,13 @@ static void window_options_dropdown(rct_window *w, rct_widgetindex widgetIndex, switch (widgetIndex) { case WIDX_RESOLUTION_DROPDOWN: { - resolution_t *resolution = &gResolutions[dropdownIndex]; - if (resolution->width != gConfigGeneral.fullscreen_width || resolution->height != gConfigGeneral.fullscreen_height) { - gConfigGeneral.fullscreen_width = resolution->width; - gConfigGeneral.fullscreen_height = resolution->height; + struct Resolution *resolution = &_resolutions[dropdownIndex]; + if (resolution->Width != gConfigGeneral.fullscreen_width || resolution->Height != gConfigGeneral.fullscreen_height) { + gConfigGeneral.fullscreen_width = resolution->Width; + gConfigGeneral.fullscreen_height = resolution->Height; if (gConfigGeneral.fullscreen_mode == SDL_WINDOW_FULLSCREEN) - platform_set_fullscreen_mode(SDL_WINDOW_FULLSCREEN); + context_set_fullscreen_mode(SDL_WINDOW_FULLSCREEN); config_save_default(); gfx_invalidate_screen(); @@ -1274,7 +1285,7 @@ static void window_options_dropdown(rct_window *w, rct_widgetindex widgetIndex, break; case WIDX_FULLSCREEN_DROPDOWN: if (dropdownIndex != gConfigGeneral.fullscreen_mode){ - platform_set_fullscreen_mode(dropdownIndex); + context_set_fullscreen_mode(dropdownIndex); gConfigGeneral.fullscreen_mode = (uint8)dropdownIndex; config_save_default(); @@ -1301,7 +1312,7 @@ static void window_options_dropdown(rct_window *w, rct_widgetindex widgetIndex, gConfigGeneral.scale_quality = (uint8)dropdownIndex; config_save_default(); gfx_invalidate_screen(); - platform_trigger_resize(); + context_trigger_resize(); } break; } diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index b9b7f4a9b2..5744c192c9 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -17,6 +17,7 @@ #include "../audio/audio.h" #include "../cheats.h" #include "../config/Config.h" +#include "../Context.h" #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" @@ -3826,6 +3827,7 @@ void ride_construction_toolupdate_entrance_exit(sint32 screenX, sint32 screenY) */ void ride_construction_tooldown_construct(sint32 screenX, sint32 screenY) { + const CursorState * state = context_get_cursor_state(); sint32 trackType, trackDirection, rideIndex, edxRS16, x, y, z, properties, highestZ; rct_window *w; @@ -3923,7 +3925,7 @@ void ride_construction_tooldown_construct(sint32 screenX, sint32 screenY) zAttempts == 0 || z < 0 ) { - audio_play_sound_panned(SOUND_ERROR, gCursorState.x, x, y, z); + audio_play_sound_panned(SOUND_ERROR, state->x, x, y, z); w = window_find_by_class(WC_RIDE_CONSTRUCTION); if (w != NULL){ tool_set(w, WIDX_CONSTRUCT, TOOL_CROSSHAIR); @@ -3995,7 +3997,7 @@ void ride_construction_tooldown_construct(sint32 screenX, sint32 screenY) _currentTrackAlternative = saveCurrentTrackAlternative; _currentTrackLiftHill = saveCurrentTrackLiftHill; - audio_play_sound_panned(SOUND_ERROR, gCursorState.x, x, y, z); + audio_play_sound_panned(SOUND_ERROR, state->x, x, y, z); break; } else if (zAttempts >= 0) { z += 16; diff --git a/src/openrct2/windows/scenery.c b/src/openrct2/windows/scenery.c index 0a5d486a2d..3a8143dc76 100644 --- a/src/openrct2/windows/scenery.c +++ b/src/openrct2/windows/scenery.c @@ -15,6 +15,7 @@ #pragma endregion #include "../audio/audio.h" +#include "../Context.h" #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" @@ -728,13 +729,14 @@ static void window_scenery_event_07(rct_window *w) */ static void window_scenery_update(rct_window *w) { - rct_window *other = window_find_from_point(gCursorState.x, gCursorState.y); + const CursorState * state = context_get_cursor_state(); + rct_window *other = window_find_from_point(state->x, state->y); if (other == w) { - sint32 window_x = gCursorState.x - w->x + 26; - sint32 window_y = gCursorState.y - w->y; + sint32 window_x = state->x - w->x + 26; + sint32 window_y = state->y - w->y; if (window_y < 44 || window_x <= w->width) { - rct_widgetindex widgetIndex = window_find_widget_from_point(w, gCursorState.x, gCursorState.y); + rct_widgetindex widgetIndex = window_find_widget_from_point(w, state->x, state->y); if (widgetIndex >= WIDX_SCENERY_TAB_CONTENT_PANEL) { w->scenery.hover_counter++; if (w->scenery.hover_counter < 8) { diff --git a/src/openrct2/windows/text_input.c b/src/openrct2/windows/text_input.c index 118c179ddd..f71621c9a3 100644 --- a/src/openrct2/windows/text_input.c +++ b/src/openrct2/windows/text_input.c @@ -22,6 +22,7 @@ */ #include "../config/Config.h" +#include "../Context.h" #include "../platform/platform.h" #include "../interface/window.h" #include "../interface/widget.h" @@ -147,7 +148,7 @@ void window_text_input_open(rct_window* call_w, rct_widgetindex call_widget, rct calling_number = call_w->number; calling_widget = call_widget; - platform_start_text_input(text_input, maxLength); + gTextInput = context_start_text_input(text_input, maxLength); window_init_scroll_widgets(w); w->colours[0] = call_w->colours[0]; @@ -208,7 +209,7 @@ void window_text_input_raw_open(rct_window* call_w, rct_widgetindex call_widget, calling_number = call_w->number; calling_widget = call_widget; - platform_start_text_input(text_input, maxLength); + gTextInput = context_start_text_input(text_input, maxLength); window_init_scroll_widgets(w); w->colours[0] = call_w->colours[0]; @@ -227,7 +228,7 @@ static void window_text_input_mouseup(rct_window *w, rct_widgetindex widgetIndex switch (widgetIndex){ case WIDX_CANCEL: case WIDX_CLOSE: - platform_stop_text_input(); + context_stop_text_input(); // Pass back the text that has been entered. // ecx when zero means text input failed if (calling_w != NULL) @@ -235,7 +236,7 @@ static void window_text_input_mouseup(rct_window *w, rct_widgetindex widgetIndex window_close(w); break; case WIDX_OKAY: - platform_stop_text_input(); + context_stop_text_input(); // Pass back the text that has been entered. // ecx when none zero means text input success if (calling_w != NULL) @@ -285,19 +286,19 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) size_t string_length = get_string_size(wrap_pointer) - 1; - if (!cur_drawn && (gTextInput.selection_offset <= char_count + string_length)) { + if (!cur_drawn && (gTextInput->SelectionStart <= char_count + string_length)) { // Make a copy of the string for measuring the width. char temp_string[TEXT_INPUT_SIZE] = { 0 }; - memcpy(temp_string, wrap_pointer, gTextInput.selection_offset - char_count); + memcpy(temp_string, wrap_pointer, gTextInput->SelectionStart - char_count); cursorX = w->x + 13 + gfx_get_string_width(temp_string); cursorY = y; sint32 width = 6; - if (gTextInput.selection_offset < strlen(text_input)){ + if (gTextInput->SelectionStart < strlen(text_input)){ // Make a 1 utf8-character wide string for measuring the width // of the currently selected character. utf8 tmp[5] = { 0 }; // This is easier than setting temp_string[0..5] - uint32 codepoint = utf8_get_next(text_input + gTextInput.selection_offset, NULL); + uint32 codepoint = utf8_get_next(text_input + gTextInput->SelectionStart, NULL); utf8_write_codepoint(tmp, codepoint); width = max(gfx_get_string_width(tmp) - 2, 4); } @@ -325,9 +326,9 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) } // IME composition - if (gTextInputCompositionActive) { - draw_ime_composition(dpi, cursorX, cursorY); - } + // if (gTextInputCompositionActive) { + // draw_ime_composition(dpi, cursorX, cursorY); + // } } void window_text_input_key(rct_window* w, sint32 key) @@ -336,7 +337,7 @@ void window_text_input_key(rct_window* w, sint32 key) // If the return button is pressed stop text input if (new_char == '\r'){ - platform_stop_text_input(); + context_stop_text_input(); window_close(w); rct_window* calling_w = window_find_by_number(calling_class, calling_number); // Pass back the text that has been entered. @@ -367,7 +368,7 @@ static void window_text_input_close(rct_window *w) { // Make sure that we take it out of the text input // mode otherwise problems may occur. - platform_stop_text_input(); + context_stop_text_input(); } static void window_text_input_invalidate(rct_window *w) @@ -401,13 +402,13 @@ static void window_text_input_invalidate(rct_window *w) static void draw_ime_composition(rct_drawpixelinfo * dpi, int cursorX, int cursorY) { - int compositionWidth = gfx_get_string_width(gTextInputComposition); - int x = cursorX - (compositionWidth / 2); - int y = cursorY + 13; - int width = compositionWidth; - int height = 10; + // int compositionWidth = gfx_get_string_width(gTextInputComposition); + // int x = cursorX - (compositionWidth / 2); + // int y = cursorY + 13; + // int width = compositionWidth; + // int height = 10; - gfx_fill_rect(dpi, x - 1, y - 1, x + width + 1, y + height + 1, PALETTE_INDEX_12); - gfx_fill_rect(dpi, x, y, x + width, y + height, PALETTE_INDEX_0); - gfx_draw_string(dpi, gTextInputComposition, COLOUR_DARK_GREEN, x, y); + // gfx_fill_rect(dpi, x - 1, y - 1, x + width + 1, y + height + 1, PALETTE_INDEX_12); + // gfx_fill_rect(dpi, x, y, x + width, y + height, PALETTE_INDEX_0); + // gfx_draw_string(dpi, gTextInputComposition, COLOUR_DARK_GREEN, x, y); } From 7163973bd2dca445ed49cc2e1b4b6849ce50bb29 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 26 Mar 2017 21:04:14 +0100 Subject: [PATCH 139/670] Start moving code from OpenRCT2 to Context --- src/openrct2-ui/SDLException.h | 48 ++ src/openrct2-ui/UiContext.cpp | 38 +- .../drawing/engines/DrawingEngines.h | 6 +- .../drawing/engines/SoftwareDrawingEngine.cpp | 42 +- .../engines/opengl/OpenGLDrawingEngine.cpp | 13 +- src/openrct2-ui/libopenrct2ui.vcxproj | 1 + src/openrct2/Context.cpp | 506 +++++++++++++++++- src/openrct2/Context.h | 1 + src/openrct2/OpenRCT2.cpp | 504 ----------------- src/openrct2/OpenRCT2.h | 15 +- src/openrct2/cmdline/ConvertCommand.cpp | 10 +- src/openrct2/cmdline/RootCommands.cpp | 6 +- src/openrct2/drawing/NewDrawing.cpp | 2 +- src/openrct2/interface/screenshot.c | 6 +- src/openrct2/rct2.c | 2 +- src/openrct2/ui/UiContext.h | 6 +- 16 files changed, 621 insertions(+), 585 deletions(-) create mode 100644 src/openrct2-ui/SDLException.h diff --git a/src/openrct2-ui/SDLException.h b/src/openrct2-ui/SDLException.h new file mode 100644 index 0000000000..9567a106d8 --- /dev/null +++ b/src/openrct2-ui/SDLException.h @@ -0,0 +1,48 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include +#include + +/** + * An exception which wraps an SDL error. + */ +class SDLException : public std::runtime_error +{ +public: + explicit SDLException(const std::string& message) + : runtime_error(message.c_str()) + { + SDL_GetError(); + } + + explicit SDLException(const char * message) + : runtime_error(message) + { + } + + /** + * Throws an SDL exception with a message containing the given call information + * and the message given by SDL_GetError. + */ + static void Throw(const char * call) + { + std::string message = std::string(call) + ": " + std::string(SDL_GetError()); + throw SDLException(message); + } +}; diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 37e9b40043..58c03ef2de 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -26,6 +26,7 @@ #include #include "CursorRepository.h" #include "drawing/engines/DrawingEngines.h" +#include "SDLException.h" #include "TextComposition.h" #include "UiContext.h" @@ -70,7 +71,7 @@ private: CursorState _cursorState; uint32 _lastKeyPressed; const uint8 * _keysState; - uint8 * _keysPressed; + uint8 _keysPressed[256]; uint32 _lastGestureTimestamp; float _gestureRadius; @@ -78,15 +79,20 @@ public: UiContext(IPlatformUiContext * platformUiContext) : _platformUiContext(platformUiContext) { + if (SDL_Init(SDL_INIT_VIDEO) < 0) + { + SDLException::Throw("SDL_Init(SDL_INIT_VIDEO)"); + } } ~UiContext() override { CloseWindow(); + SDL_Quit(); } // Window - void * GetWindow() override + SDL_Window * GetWindow() override { return _window; } @@ -190,12 +196,12 @@ public: { switch ((sint32)type) { case DRAWING_ENGINE_SOFTWARE: - return CreateSoftwareDrawingEngine(); + return CreateSoftwareDrawingEngine(this); case DRAWING_ENGINE_SOFTWARE_WITH_HARDWARE_DISPLAY: - return CreateHardwareDisplayDrawingEngine(); + return CreateHardwareDisplayDrawingEngine(this); #ifndef DISABLE_OPENGL case DRAWING_ENGINE_OPENGL: - return CreateOpenGLDrawingEngine(); + return CreateOpenGLDrawingEngine(this); #endif default: return nullptr; @@ -434,26 +440,19 @@ public: OnResize(width, height); } -private: - void CreateWindow() + void CreateWindow() override { - if (SDL_Init(SDL_INIT_VIDEO) < 0) - { - log_fatal("SDL_Init %s", SDL_GetError()); - exit(-1); - } - SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, gConfigGeneral.minimize_fullscreen_focus_loss ? "1" : "0"); // TODO This should probably be called somewhere else. It has nothing to do with window creation and can be done as soon as // g1.dat is loaded. - sub_68371D(); + // sub_68371D(); // Get saved window size sint32 width = gConfigGeneral.window_width; sint32 height = gConfigGeneral.window_height; - if (width == -1) width = 640; - if (height == -1) height = 480; + if (width <= 0) width = 640; + if (height <= 0) height = 480; // Create window in window first rather than fullscreen so we have the display the window is on first uint32 flags = SDL_WINDOW_RESIZABLE; @@ -465,8 +464,7 @@ private: _window = SDL_CreateWindow(OPENRCT2_NAME, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, flags); if (_window == nullptr) { - log_fatal("SDL_CreateWindow failed %s", SDL_GetError()); - exit(-1); + SDLException::Throw("SDL_CreateWindow(...)"); } SDL_SetWindowGrab(_window, gConfigGeneral.trap_cursor ? SDL_TRUE : SDL_FALSE); @@ -487,13 +485,13 @@ private: TriggerResize(); } - void CloseWindow() + void CloseWindow() override { drawing_engine_dispose(); SDL_DestroyWindow(_window); - SDL_Quit(); } +private: void OnResize(sint32 width, sint32 height) { // Scale the native window size to the game's canvas size diff --git a/src/openrct2-ui/drawing/engines/DrawingEngines.h b/src/openrct2-ui/drawing/engines/DrawingEngines.h index 68aa8296bd..668ba596e7 100644 --- a/src/openrct2-ui/drawing/engines/DrawingEngines.h +++ b/src/openrct2-ui/drawing/engines/DrawingEngines.h @@ -27,10 +27,10 @@ namespace OpenRCT2 namespace Ui { - Drawing::IDrawingEngine * CreateSoftwareDrawingEngine(); - Drawing::IDrawingEngine * CreateHardwareDisplayDrawingEngine(); + Drawing::IDrawingEngine * CreateSoftwareDrawingEngine(IUiContext * uiContext); + Drawing::IDrawingEngine * CreateHardwareDisplayDrawingEngine(IUiContext * uiContext); #ifndef DISABLE_OPENGL - Drawing::IDrawingEngine * CreateOpenGLDrawingEngine(); + Drawing::IDrawingEngine * CreateOpenGLDrawingEngine(IUiContext * uiContext); #endif } } diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index 641994f6b4..710c945fec 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -41,6 +41,7 @@ extern "C" using namespace OpenRCT2; using namespace OpenRCT2::Drawing; +using namespace OpenRCT2::Ui; class SoftwareDrawingEngine; @@ -191,8 +192,10 @@ public: class SoftwareDrawingEngine final : public IDrawingEngine { private: - bool _hardwareDisplay; + IUiContext * const _uiContext; + bool const _hardwareDisplay; + SDL_Window * _window = nullptr; SDL_Surface * _surface = nullptr; SDL_Surface * _RGBASurface = nullptr; SDL_Palette * _palette = nullptr; @@ -227,9 +230,10 @@ private: SoftwareDrawingContext * _drawingContext; public: - explicit SoftwareDrawingEngine(bool hardwareDisplay) + explicit SoftwareDrawingEngine(IUiContext * uiContext, bool hardwareDisplay) + : _uiContext(uiContext), + _hardwareDisplay(hardwareDisplay) { - _hardwareDisplay = hardwareDisplay; _drawingContext = new SoftwareDrawingContext(this); #ifdef __ENABLE_LIGHTFX__ _lastLightFXenabled = (gConfigGeneral.enable_light_fx != 0); @@ -251,6 +255,7 @@ public: void Initialise(SDL_Window * window) override { + _window = window; if (_hardwareDisplay) { // Try to create the accelerated renderer. @@ -340,17 +345,14 @@ public: } else { - SDL_Surface * windowSurface = SDL_GetWindowSurface(gWindow); - if (windowSurface == nullptr) + SDL_Surface * windowSurface = SDL_GetWindowSurface(_window); + if (windowSurface != nullptr && _palette != nullptr) { - log_fatal("SDL_GetWindowSurface failed %s", SDL_GetError()); - exit(1); - } - - if (_palette != nullptr && SDL_SetPaletteColors(_palette, palette, 0, 256)) - { - log_fatal("SDL_SetPaletteColors failed %s", SDL_GetError()); - exit(1); + // log_fatal("SDL_GetWindowSurface failed %s", SDL_GetError()); + // exit(1); + // log_fatal("SDL_SetPaletteColors failed %s", SDL_GetError()); + // exit(1); + SDL_SetPaletteColors(_palette, palette, 0, 256); } } } @@ -688,7 +690,7 @@ private: // Copy the surface to the window if (gConfigGeneral.window_scale == 1 || gConfigGeneral.window_scale <= 0) { - SDL_Surface * windowSurface = SDL_GetWindowSurface(gWindow); + SDL_Surface * windowSurface = SDL_GetWindowSurface(_window); if (SDL_BlitSurface(_surface, nullptr, windowSurface, nullptr)) { log_fatal("SDL_BlitSurface %s", SDL_GetError()); @@ -706,13 +708,13 @@ private: // then scale to window size. Without changing to RGBA first, SDL complains // about blit configurations being incompatible. - if (SDL_BlitScaled(_RGBASurface, nullptr, SDL_GetWindowSurface(gWindow), nullptr)) + if (SDL_BlitScaled(_RGBASurface, nullptr, SDL_GetWindowSurface(_window), nullptr)) { log_fatal("SDL_BlitScaled %s", SDL_GetError()); exit(1); } } - if (SDL_UpdateWindowSurface(gWindow)) + if (SDL_UpdateWindowSurface(_window)) { log_fatal("SDL_UpdateWindowSurface %s", SDL_GetError()); exit(1); @@ -834,14 +836,14 @@ private: } }; -IDrawingEngine * OpenRCT2::Ui::CreateSoftwareDrawingEngine() +IDrawingEngine * OpenRCT2::Ui::CreateSoftwareDrawingEngine(IUiContext * uiContext) { - return new SoftwareDrawingEngine(false); + return new SoftwareDrawingEngine(uiContext, false); } -IDrawingEngine * OpenRCT2::Ui::CreateHardwareDisplayDrawingEngine() +IDrawingEngine * OpenRCT2::Ui::CreateHardwareDisplayDrawingEngine(IUiContext * uiContext) { - return new SoftwareDrawingEngine(true); + return new SoftwareDrawingEngine(uiContext, true); } SoftwareDrawingContext::SoftwareDrawingContext(SoftwareDrawingEngine * engine) diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index 7fecda0e9d..b515015beb 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -29,6 +29,7 @@ #include #include #include +#include extern "C" { @@ -225,8 +226,9 @@ public: class OpenGLDrawingEngine : public IDrawingEngine { private: - SDL_Window * _window = nullptr; - SDL_GLContext _context = nullptr; + IUiContext * const _uiContext = nullptr; + SDL_Window * _window = nullptr; + SDL_GLContext _context = nullptr; uint32 _width = 0; uint32 _height = 0; @@ -246,7 +248,8 @@ public: SDL_Color Palette[256]; vec4f GLPalette[256]; - OpenGLDrawingEngine() + OpenGLDrawingEngine(IUiContext * uiContext) + : _uiContext(uiContext) { _drawingContext = new OpenGLDrawingContext(this); } @@ -494,9 +497,9 @@ private: } }; -IDrawingEngine * OpenRCT2::Ui::CreateOpenGLDrawingEngine() +IDrawingEngine * OpenRCT2::Ui::CreateOpenGLDrawingEngine(IUiContext * uiContext) { - return new OpenGLDrawingEngine(); + return new OpenGLDrawingEngine(uiContext); } OpenGLDrawingContext::OpenGLDrawingContext(OpenGLDrawingEngine * engine) diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 15bdf61d77..ca3247308d 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -54,6 +54,7 @@ + diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index c84d8d2c8f..d64c649b32 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -15,11 +15,44 @@ #pragma endregion #include -#include "core/Memory.hpp" -#include "config/Config.h" +#include +#include #include "Context.h" -#include "OpenRCT2.h" #include "ui/UiContext.h" +#include "core/Console.hpp" +#include "core/File.h" +#include "core/FileStream.hpp" +#include "core/Guard.hpp" +#include "core/String.hpp" +#include "FileClassifier.h" +#include "network/network.h" +#include "object/ObjectRepository.h" +#include "OpenRCT2.h" +#include "ParkImporter.h" +#include "platform/crash.h" +#include "PlatformEnvironment.h" +#include "ride/TrackDesignRepository.h" +#include "scenario/ScenarioRepository.h" +#include "title/TitleScreen.h" +#include "title/TitleSequenceManager.h" +#include "Version.h" + +extern "C" +{ + #include "audio/audio.h" + #include "config/Config.h" + #include "editor.h" + #include "game.h" + #include "interface/chat.h" + #include "interface/themes.h" + #include "intro.h" + #include "localisation/localisation.h" + #include "network/http.h" + #include "object_list.h" + #include "rct1.h" + #include "rct2.h" + #include "rct2/interop.h" +} using namespace OpenRCT2; using namespace OpenRCT2::Ui; @@ -29,7 +62,25 @@ namespace OpenRCT2 class Context : public IContext { private: - IUiContext * const _uiContext; + // The game update inverval in milliseconds, (1000 / 40fps) = 25ms + constexpr static uint32 UPDATE_TIME_MS = 25; + + // Dependencies + IUiContext * const _uiContext = nullptr; + + // Services + IPlatformEnvironment * _env = nullptr; + IObjectRepository * _objectRepository = nullptr; + ITrackDesignRepository * _trackDesignRepository = nullptr; + IScenarioRepository * _scenarioRepository = nullptr; + + bool _isWindowMinimised = false; + uint32 _isWindowMinimisedLastCheckTick = 0; + uint32 _lastTick = 0; + uint32 _uncapTick = 0; + + /** If set, will end the OpenRCT2 game loop. Intentially private to this module so that the flag can not be set back to false. */ + bool _finished = false; public: // Singleton of Context. @@ -46,6 +97,16 @@ namespace OpenRCT2 ~Context() override { + network_close(); + http_dispose(); + language_close_all(); + rct2_dispose(); + config_release(); +#ifndef DISABLE_NETWORK + EVP_MD_CTX_destroy(gHashCTX); +#endif // DISABLE_NETWORK + rct2_interop_dispose(); + platform_free(); Instance = nullptr; } @@ -60,10 +121,435 @@ namespace OpenRCT2 int runGame = cmdline_run((const char * *)argv, argc); if (runGame == 1) { - openrct2_launch(); + Initialise(); + Launch(); } return gExitCode; } + + /** + * Causes the OpenRCT2 game loop to finish. + */ + void Finish() + { + _finished = true; + } + + private: + bool Initialise() + { +#ifndef DISABLE_NETWORK + gHashCTX = EVP_MD_CTX_create(); + Guard::Assert(gHashCTX != nullptr, "EVP_MD_CTX_create failed"); +#endif // DISABLE_NETWORK + + crash_init(); + + // Sets up the environment OpenRCT2 is running in, e.g. directory paths + _env = SetupEnvironment(); + if (_env == nullptr) + { + return false; + } + + if (!rct2_interop_setup_segment()) + { + log_fatal("Unable to load RCT2 data sector"); + return false; + } + + if (gConfigGeneral.last_run_version != nullptr && String::Equals(gConfigGeneral.last_run_version, OPENRCT2_VERSION)) + { + gOpenRCT2ShowChangelog = false; + } + else + { + gOpenRCT2ShowChangelog = true; + gConfigGeneral.last_run_version = String::Duplicate(OPENRCT2_VERSION); + config_save_default(); + } + + if (!gOpenRCT2Headless) + { + GetContext()->GetUiContext()->CreateWindow(); + } + + // TODO add configuration option to allow multiple instances + // if (!gOpenRCT2Headless && !platform_lock_single_instance()) { + // log_fatal("OpenRCT2 is already running."); + // return false; + // } + + _objectRepository = CreateObjectRepository(_env); + _trackDesignRepository = CreateTrackDesignRepository(_env); + _scenarioRepository = CreateScenarioRepository(_env); + + if (!language_open(gConfigGeneral.language)) + { + log_error("Failed to open configured language..."); + if (!language_open(LANGUAGE_ENGLISH_UK)) + { + log_fatal("Failed to open fallback language..."); + return false; + } + } + + // TODO Ideally we want to delay this until we show the title so that we can + // still open the game window and draw a progress screen for the creation + // of the object cache. + _objectRepository->LoadOrConstruct(); + + // TODO Like objects, this can take a while if there are a lot of track designs + // its also really something really we might want to do in the background + // as its not required until the player wants to place a new ride. + _trackDesignRepository->Scan(); + + _scenarioRepository->Scan(); + TitleSequenceManager::Scan(); + + if (!gOpenRCT2Headless) + { + audio_init(); + audio_populate_devices(); + } + + http_init(); + theme_manager_initialise(); + + rct2_interop_setup_hooks(); + + if (!rct2_init()) + { + return false; + } + + chat_init(); + + rct2_copy_original_user_files_over(); + return true; + } + + IPlatformEnvironment * SetupEnvironment() + { + utf8 userPath[MAX_PATH]; + platform_resolve_openrct_data_path(); + platform_resolve_user_data_path(); + platform_get_user_directory(userPath, NULL, sizeof(userPath)); + if (!platform_ensure_directory_exists(userPath)) + { + Console::Error::WriteLine("Could not create user directory (do you have write access to your documents folder?)"); + return nullptr; + } + platform_get_exe_path(gExePath, sizeof(gExePath)); + log_verbose("Setting exe path to %s", gExePath); + + config_set_defaults(); + if (!config_open_default()) + { + if (!config_find_or_browse_install_directory()) + { + gConfigGeneral.last_run_version = String::Duplicate(OPENRCT2_VERSION); + config_save_default(); + utf8 path[MAX_PATH]; + config_get_default_path(path, sizeof(path)); + Console::Error::WriteLine("An RCT2 install directory must be specified! Please edit \"game_path\" in %s.", path); + return nullptr; + } + config_save_default(); + } + + if (!rct2_init_directories()) + { + return nullptr; + } + if (!rct2_startup_checks()) + { + return nullptr; + } + + utf8 path[260]; + std::string basePaths[4]; + basePaths[(size_t)DIRBASE::RCT1] = String::ToStd(gConfigGeneral.rct1_path); + basePaths[(size_t)DIRBASE::RCT2] = String::ToStd(gConfigGeneral.rct2_path); + platform_get_openrct_data_path(path, sizeof(path)); + basePaths[(size_t)DIRBASE::OPENRCT2] = std::string(path); + platform_get_user_directory(path, nullptr, sizeof(path)); + basePaths[(size_t)DIRBASE::USER] = std::string(path); + + IPlatformEnvironment * env = CreatePlatformEnvironment(basePaths); + return env; + } + + /** + * Launches the game, after command line arguments have been parsed and processed. + */ + void Launch() + { + gIntroState = INTRO_STATE_NONE; + if ((gOpenRCT2StartupAction == STARTUP_ACTION_TITLE) && gConfigGeneral.play_intro) + { + gOpenRCT2StartupAction = STARTUP_ACTION_INTRO; + } + + switch (gOpenRCT2StartupAction) { + case STARTUP_ACTION_INTRO: + gIntroState = INTRO_STATE_PUBLISHER_BEGIN; + title_load(); + break; + case STARTUP_ACTION_TITLE: + title_load(); + break; + case STARTUP_ACTION_OPEN: + { + bool parkLoaded = false; + // A path that includes "://" is illegal with all common filesystems, so it is almost certainly a URL + // This way all cURL supported protocols, like http, ftp, scp and smb are automatically handled + if (strstr(gOpenRCT2StartupActionPath, "://") != nullptr) + { +#ifndef DISABLE_HTTP + // Download park and open it using its temporary filename + char tmpPath[MAX_PATH]; + if (!http_download_park(gOpenRCT2StartupActionPath, tmpPath)) + { + title_load(); + break; + } + + parkLoaded = OpenParkAutoDetectFormat(tmpPath); +#endif + } + else + { + parkLoaded = rct2_open_file(gOpenRCT2StartupActionPath); + } + + if (!parkLoaded) + { + Console::Error::WriteLine("Failed to load '%s'", gOpenRCT2StartupActionPath); + title_load(); + break; + } + + gScreenFlags = SCREEN_FLAGS_PLAYING; + +#ifndef DISABLE_NETWORK + if (gNetworkStart == NETWORK_MODE_SERVER) + { + if (gNetworkStartPort == 0) + { + gNetworkStartPort = gConfigNetwork.default_port; + } + + if (String::IsNullOrEmpty(gCustomPassword)) + { + network_set_password(gConfigNetwork.default_password); + } + else + { + network_set_password(gCustomPassword); + } + network_begin_server(gNetworkStartPort); + } +#endif // DISABLE_NETWORK + break; + } + case STARTUP_ACTION_EDIT: + if (String::SizeOf(gOpenRCT2StartupActionPath) == 0) + { + editor_load(); + } + else if (!editor_load_landscape(gOpenRCT2StartupActionPath)) + { + title_load(); + } + break; + } + +#ifndef DISABLE_NETWORK + if (gNetworkStart == NETWORK_MODE_CLIENT) + { + if (gNetworkStartPort == 0) + { + gNetworkStartPort = gConfigNetwork.default_port; + } + network_begin_client(gNetworkStartHost, gNetworkStartPort); + } +#endif // DISABLE_NETWORK + + RunGameLoop(); + } + + /** + * Run the main game loop until the finished flag is set. + */ + void RunGameLoop() + { + log_verbose("begin openrct2 loop"); + _finished = false; + do + { + if (ShouldRunVariableFrame()) + { + RunVariableFrame(); + } + else + { + RunFixedFrame(); + } + } while (!_finished); + log_verbose("finish openrct2 loop"); + } + + bool IsMinimised() + { + // Don't check if window is minimised too frequently (every second is fine) + if (_lastTick > _isWindowMinimisedLastCheckTick + 1000) + { + uint32 windowFlags = SDL_GetWindowFlags(gWindow); + _isWindowMinimised = (windowFlags & SDL_WINDOW_MINIMIZED) || + (windowFlags & SDL_WINDOW_HIDDEN); + } + return _isWindowMinimised; + } + + bool ShouldRunVariableFrame() + { + if (!gConfigGeneral.uncap_fps) return false; + if (gGameSpeed > 4) return false; + if (gOpenRCT2Headless) return false; + if (IsMinimised()) return false; + return true; + } + + void RunFixedFrame() + { + _uncapTick = 0; + uint32 currentTick = SDL_GetTicks(); + uint32 ticksElapsed = currentTick - _lastTick; + if (ticksElapsed < UPDATE_TIME_MS) + { + SDL_Delay(UPDATE_TIME_MS - ticksElapsed); + _lastTick += UPDATE_TIME_MS; + } + else + { + _lastTick = currentTick; + } + GetContext()->GetUiContext()->ProcessMessages(); + rct2_update(); + if (!_isWindowMinimised) + { + platform_draw(); + } + } + + void RunVariableFrame() + { + uint32 currentTick = SDL_GetTicks(); + if (_uncapTick == 0) + { + _uncapTick = currentTick; + sprite_position_tween_reset(); + } + + // Limit number of updates per loop (any long pauses or debugging can make this update for a very long time) + if (currentTick - _uncapTick > UPDATE_TIME_MS * 60) + { + _uncapTick = currentTick - UPDATE_TIME_MS - 1; + } + + GetContext()->GetUiContext()->ProcessMessages(); + + while (_uncapTick <= currentTick && currentTick - _uncapTick > UPDATE_TIME_MS) + { + // Get the original position of each sprite + sprite_position_tween_store_a(); + + // Update the game so the sprite positions update + rct2_update(); + + // Get the next position of each sprite + sprite_position_tween_store_b(); + + _uncapTick += UPDATE_TIME_MS; + } + + // Tween the position of each sprite from the last position to the new position based on the time between the last + // tick and the next tick. + float nudge = 1 - ((float)(currentTick - _uncapTick) / UPDATE_TIME_MS); + sprite_position_tween_all(nudge); + + platform_draw(); + + sprite_position_tween_restore(); + } + + bool OpenParkAutoDetectFormat(const utf8 * path) + { + ClassifiedFile info; + if (TryClassifyFile(path, &info)) + { + if (info.Type == FILE_TYPE::SAVED_GAME || + info.Type == FILE_TYPE::SCENARIO) + { + std::unique_ptr parkImporter; + if (info.Version <= 2) + { + parkImporter.reset(ParkImporter::CreateS4()); + } + else + { + parkImporter.reset(ParkImporter::CreateS6()); + } + + if (info.Type == FILE_TYPE::SAVED_GAME) + { + try + { + parkImporter->LoadSavedGame(path); + parkImporter->Import(); + game_fix_save_vars(); + sprite_position_tween_reset(); + gScreenAge = 0; + gLastAutoSaveUpdate = AUTOSAVE_PAUSE; + game_load_init(); + return true; + } + catch (const Exception &) + { + Console::Error::WriteLine("Error loading saved game."); + } + } + else + { + try + { + parkImporter->LoadScenario(path); + parkImporter->Import(); + game_fix_save_vars(); + sprite_position_tween_reset(); + gScreenAge = 0; + gLastAutoSaveUpdate = AUTOSAVE_PAUSE; + scenario_begin(); + return true; + } + catch (const Exception &) + { + Console::Error::WriteLine("Error loading scenario."); + } + } + } + else + { + Console::Error::WriteLine("Invalid file type."); + } + } + else + { + Console::Error::WriteLine("Unable to detect file type."); + } + return false; + } }; Context * Context::Instance = nullptr; @@ -86,6 +572,16 @@ namespace OpenRCT2 extern "C" { + void openrct2_write_full_version_info(utf8 * buffer, size_t bufferSize) + { + String::Set(buffer, bufferSize, Version::GetInfo().c_str()); + } + + void openrct2_finish() + { + GetContext()->Finish(); + } + void context_setcurrentcursor(sint32 cursor) { GetContext()->GetUiContext()->SetCursor((CURSOR_ID)cursor); diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 7a4ddb6ea6..02f3d59317 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -71,6 +71,7 @@ namespace OpenRCT2 virtual Ui::IUiContext * GetUiContext() abstract; virtual sint32 RunOpenRCT2(int argc, char * * argv) abstract; + virtual void Finish() abstract; }; IContext * CreateContext(); diff --git a/src/openrct2/OpenRCT2.cpp b/src/openrct2/OpenRCT2.cpp index 56657be733..de4bcc0110 100644 --- a/src/openrct2/OpenRCT2.cpp +++ b/src/openrct2/OpenRCT2.cpp @@ -14,49 +14,17 @@ *****************************************************************************/ #pragma endregion -#include -#include -#include "Context.h" -#include "ui/UiContext.h" #include "core/Console.hpp" #include "core/File.h" #include "core/FileStream.hpp" -#include "core/Guard.hpp" -#include "core/String.hpp" -#include "FileClassifier.h" -#include "network/network.h" -#include "object/ObjectRepository.h" #include "OpenRCT2.h" -#include "ParkImporter.h" -#include "platform/crash.h" -#include "PlatformEnvironment.h" -#include "ride/TrackDesignRepository.h" -#include "scenario/ScenarioRepository.h" -#include "title/TitleScreen.h" -#include "title/TitleSequenceManager.h" -#include "Version.h" extern "C" { #include "audio/audio.h" - #include "config/Config.h" - #include "editor.h" - #include "game.h" - #include "interface/chat.h" - #include "interface/themes.h" - #include "intro.h" - #include "localisation/localisation.h" - #include "network/http.h" - #include "object_list.h" #include "platform/platform.h" - #include "rct1.h" - #include "rct2.h" - #include "rct2/interop.h" } -// The game update interval in milliseconds, (1000 / 40fps) = 25ms -constexpr uint32 UPDATE_TIME_MS = 25; - extern "C" { sint32 gExitCode; @@ -78,252 +46,6 @@ extern "C" // OpenSSL's message digest context used for calculating sprite checksums EVP_MD_CTX * gHashCTX = nullptr; #endif // DISABLE_NETWORK -} - -namespace OpenRCT2 -{ - static IPlatformEnvironment * _env = nullptr; - static bool _isWindowMinimised; - static uint32 _isWindowMinimisedLastCheckTick; - static uint32 _lastTick; - static uint32 _uncapTick; - - /** If set, will end the OpenRCT2 game loop. Intentionally private to this module so that the flag can not be set back to false. */ - static bool _finished; - - static bool ShouldRunVariableFrame(); - static void RunGameLoop(); - static void RunFixedFrame(); - static void RunVariableFrame(); - - static bool OpenParkAutoDetectFormat(const utf8 * path); -} - -extern "C" -{ - void openrct2_write_full_version_info(utf8 * buffer, size_t bufferSize) - { - String::Set(buffer, bufferSize, gVersionInfoFull); - } - - static void openrct2_set_exe_path() - { - platform_get_exe_path(gExePath, sizeof(gExePath)); - log_verbose("Setting exe path to %s", gExePath); - } - - bool openrct2_initialise() - { -#ifndef DISABLE_NETWORK - gHashCTX = EVP_MD_CTX_create(); - Guard::Assert(gHashCTX != nullptr, "EVP_MD_CTX_create failed"); -#endif // DISABLE_NETWORK - - crash_init(); - - // Sets up the environment OpenRCT2 is running in, e.g. directory paths - OpenRCT2::_env = OpenRCT2::SetupEnvironment(); - if (OpenRCT2::_env == nullptr) - { - return false; - } - - if (!rct2_interop_setup_segment()) - { - log_fatal("Unable to load RCT2 data sector"); - return false; - } - - if (gConfigGeneral.last_run_version != nullptr && String::Equals(gConfigGeneral.last_run_version, OPENRCT2_VERSION)) - { - gOpenRCT2ShowChangelog = false; - } - else - { - gOpenRCT2ShowChangelog = true; - gConfigGeneral.last_run_version = String::Duplicate(OPENRCT2_VERSION); - config_save_default(); - } - - // TODO add configuration option to allow multiple instances - // if (!gOpenRCT2Headless && !platform_lock_single_instance()) { - // log_fatal("OpenRCT2 is already running."); - // return false; - // } - - IObjectRepository * objRepo = CreateObjectRepository(OpenRCT2::_env); - ITrackDesignRepository * tdRepo = CreateTrackDesignRepository(OpenRCT2::_env); - IScenarioRepository * scenarioRepo = CreateScenarioRepository(OpenRCT2::_env); - - if (!language_open(gConfigGeneral.language)) - { - log_error("Failed to open configured language..."); - if (!language_open(LANGUAGE_ENGLISH_UK)) - { - log_fatal("Failed to open fallback language..."); - return false; - } - } - - // TODO Ideally we want to delay this until we show the title so that we can - // still open the game window and draw a progress screen for the creation - // of the object cache. - objRepo->LoadOrConstruct(); - - // TODO Like objects, this can take a while if there are a lot of track designs - // it's also really something we might want to do in the background - // as it's not required until the player wants to place a new ride. - tdRepo->Scan(); - - scenarioRepo->Scan(); - TitleSequenceManager::Scan(); - - if (!gOpenRCT2Headless) - { - audio_init(); - audio_populate_devices(); - } - - http_init(); - theme_manager_initialise(); - - rct2_interop_setup_hooks(); - - if (!rct2_init()) - { - return false; - } - - chat_init(); - - rct2_copy_original_user_files_over(); - return true; - } - - /** - * Launches the game, after command line arguments have been parsed and processed. - */ - void openrct2_launch() - { - if (openrct2_initialise()) - { - gIntroState = INTRO_STATE_NONE; - if ((gOpenRCT2StartupAction == STARTUP_ACTION_TITLE) && gConfigGeneral.play_intro) - { - gOpenRCT2StartupAction = STARTUP_ACTION_INTRO; - } - - switch (gOpenRCT2StartupAction) { - case STARTUP_ACTION_INTRO: - gIntroState = INTRO_STATE_PUBLISHER_BEGIN; - title_load(); - break; - case STARTUP_ACTION_TITLE: - title_load(); - break; - case STARTUP_ACTION_OPEN: - { - bool parkLoaded = false; - // A path that includes "://" is illegal with all common filesystems, so it is almost certainly a URL - // This way all cURL supported protocols, like http, ftp, scp and smb are automatically handled - if (strstr(gOpenRCT2StartupActionPath, "://") != nullptr) - { -#ifndef DISABLE_HTTP - // Download park and open it using its temporary filename - char tmpPath[MAX_PATH]; - if (!http_download_park(gOpenRCT2StartupActionPath, tmpPath)) - { - title_load(); - break; - } - - parkLoaded = OpenRCT2::OpenParkAutoDetectFormat(tmpPath); -#endif - } - else - { - parkLoaded = rct2_open_file(gOpenRCT2StartupActionPath); - } - - if (!parkLoaded) - { - Console::Error::WriteLine("Failed to load '%s'", gOpenRCT2StartupActionPath); - title_load(); - break; - } - - gScreenFlags = SCREEN_FLAGS_PLAYING; - -#ifndef DISABLE_NETWORK - if (gNetworkStart == NETWORK_MODE_SERVER) - { - if (gNetworkStartPort == 0) - { - gNetworkStartPort = gConfigNetwork.default_port; - } - - if (String::IsNullOrEmpty(gCustomPassword)) - { - network_set_password(gConfigNetwork.default_password); - } - else - { - network_set_password(gCustomPassword); - } - network_begin_server(gNetworkStartPort); - } -#endif // DISABLE_NETWORK - break; - } - case STARTUP_ACTION_EDIT: - if (String::SizeOf(gOpenRCT2StartupActionPath) == 0) - { - editor_load(); - } - else if (!editor_load_landscape(gOpenRCT2StartupActionPath)) - { - title_load(); - } - break; - } - -#ifndef DISABLE_NETWORK - if (gNetworkStart == NETWORK_MODE_CLIENT) - { - if (gNetworkStartPort == 0) - { - gNetworkStartPort = gConfigNetwork.default_port; - } - network_begin_client(gNetworkStartHost, gNetworkStartPort); - } -#endif // DISABLE_NETWORK - - OpenRCT2::RunGameLoop(); - } - openrct2_dispose(); - } - - void openrct2_dispose() - { - network_close(); - http_dispose(); - language_close_all(); - rct2_dispose(); - config_release(); -#ifndef DISABLE_NETWORK - EVP_MD_CTX_destroy(gHashCTX); -#endif // DISABLE_NETWORK - rct2_interop_dispose(); - platform_free(); - } - - /** - * Causes the OpenRCT2 game loop to finish. - */ - void openrct2_finish() - { - OpenRCT2::_finished = true; - } bool check_file_path(sint32 pathId) { @@ -355,229 +77,3 @@ extern "C" return true; } } - -namespace OpenRCT2 -{ - IPlatformEnvironment * SetupEnvironment() - { - utf8 userPath[MAX_PATH]; - platform_resolve_openrct_data_path(); - platform_resolve_user_data_path(); - platform_get_user_directory(userPath, NULL, sizeof(userPath)); - if (!platform_ensure_directory_exists(userPath)) - { - Console::Error::WriteLine("Could not create user directory (do you have write access to your documents folder?)"); - return nullptr; - } - openrct2_set_exe_path(); - - config_set_defaults(); - if (!config_open_default()) - { - if (!config_find_or_browse_install_directory()) - { - gConfigGeneral.last_run_version = String::Duplicate(OPENRCT2_VERSION); - config_save_default(); - utf8 path[MAX_PATH]; - config_get_default_path(path, sizeof(path)); - Console::Error::WriteLine("An RCT2 install directory must be specified! Please edit \"game_path\" in %s.", path); - return nullptr; - } - config_save_default(); - } - - if (!rct2_init_directories()) - { - return nullptr; - } - if (!rct2_startup_checks()) - { - return nullptr; - } - - utf8 path[260]; - std::string basePaths[4]; - basePaths[(size_t)DIRBASE::RCT1] = String::ToStd(gConfigGeneral.rct1_path); - basePaths[(size_t)DIRBASE::RCT2] = String::ToStd(gConfigGeneral.rct2_path); - platform_get_openrct_data_path(path, sizeof(path)); - basePaths[(size_t)DIRBASE::OPENRCT2] = std::string(path); - platform_get_user_directory(path, nullptr, sizeof(path)); - basePaths[(size_t)DIRBASE::USER] = std::string(path); - - IPlatformEnvironment * env = CreatePlatformEnvironment(basePaths); - return env; - } - - /** - * Run the main game loop until the finished flag is set. - */ - static void RunGameLoop() - { - log_verbose("begin openrct2 loop"); - _finished = false; - do - { - if (ShouldRunVariableFrame()) - { - RunVariableFrame(); - } - else - { - RunFixedFrame(); - } - } - while (!_finished); - log_verbose("finish openrct2 loop"); - } - - static bool IsMinimised() - { - // Don't check if window is minimised too frequently (every second is fine) - if (_lastTick > _isWindowMinimisedLastCheckTick + 1000) - { - uint32 windowFlags = SDL_GetWindowFlags(gWindow); - _isWindowMinimised = (windowFlags & SDL_WINDOW_MINIMIZED) || - (windowFlags & SDL_WINDOW_HIDDEN); - } - return _isWindowMinimised; - } - - static bool ShouldRunVariableFrame() - { - if (!gConfigGeneral.uncap_fps) return false; - if (gGameSpeed > 4) return false; - if (gOpenRCT2Headless) return false; - if (IsMinimised()) return false; - return true; - } - - static void RunFixedFrame() - { - _uncapTick = 0; - uint32 currentTick = SDL_GetTicks(); - uint32 ticksElapsed = currentTick - _lastTick; - if (ticksElapsed < UPDATE_TIME_MS) - { - SDL_Delay(UPDATE_TIME_MS - ticksElapsed); - _lastTick += UPDATE_TIME_MS; - } - else - { - _lastTick = currentTick; - } - GetContext()->GetUiContext()->ProcessMessages(); - rct2_update(); - if (!_isWindowMinimised) - { - platform_draw(); - } - } - - static void RunVariableFrame() - { - uint32 currentTick = SDL_GetTicks(); - if (_uncapTick == 0) - { - _uncapTick = currentTick; - sprite_position_tween_reset(); - } - - // Limit number of updates per loop (any long pauses or debugging can make this update for a very long time) - if (currentTick - _uncapTick > UPDATE_TIME_MS * 60) - { - _uncapTick = currentTick - UPDATE_TIME_MS - 1; - } - - GetContext()->GetUiContext()->ProcessMessages(); - - while (_uncapTick <= currentTick && currentTick - _uncapTick > UPDATE_TIME_MS) - { - // Get the original position of each sprite - sprite_position_tween_store_a(); - - // Update the game so the sprite positions update - rct2_update(); - - // Get the next position of each sprite - sprite_position_tween_store_b(); - - _uncapTick += UPDATE_TIME_MS; - } - - // Tween the position of each sprite from the last position to the new position based on the time between the last - // tick and the next tick. - float nudge = 1 - ((float)(currentTick - _uncapTick) / UPDATE_TIME_MS); - sprite_position_tween_all(nudge); - - platform_draw(); - - sprite_position_tween_restore(); - } - - static bool OpenParkAutoDetectFormat(const utf8 * path) - { - ClassifiedFile info; - if (TryClassifyFile(path, &info)) - { - if (info.Type == FILE_TYPE::SAVED_GAME || - info.Type == FILE_TYPE::SCENARIO) - { - std::unique_ptr parkImporter; - if (info.Version <= 2) - { - parkImporter.reset(ParkImporter::CreateS4()); - } - else - { - parkImporter.reset(ParkImporter::CreateS6()); - } - - if (info.Type == FILE_TYPE::SAVED_GAME) - { - try - { - parkImporter->LoadSavedGame(path); - parkImporter->Import(); - game_fix_save_vars(); - sprite_position_tween_reset(); - gScreenAge = 0; - gLastAutoSaveUpdate = AUTOSAVE_PAUSE; - game_load_init(); - return true; - } - catch (const Exception &) - { - Console::Error::WriteLine("Error loading saved game."); - } - } - else - { - try - { - parkImporter->LoadScenario(path); - parkImporter->Import(); - game_fix_save_vars(); - sprite_position_tween_reset(); - gScreenAge = 0; - gLastAutoSaveUpdate = AUTOSAVE_PAUSE; - scenario_begin(); - return true; - } - catch (const Exception &) - { - Console::Error::WriteLine("Error loading scenario."); - } - } - } - else - { - Console::Error::WriteLine("Invalid file type."); - } - } - else - { - Console::Error::WriteLine("Unable to detect file type."); - } - return false; - } -} diff --git a/src/openrct2/OpenRCT2.h b/src/openrct2/OpenRCT2.h index ba45e17730..f1305c8c40 100644 --- a/src/openrct2/OpenRCT2.h +++ b/src/openrct2/OpenRCT2.h @@ -24,6 +24,7 @@ extern "C" { #endif #include "platform/platform.h" + #undef CreateWindow #ifdef __cplusplus } #endif @@ -40,17 +41,6 @@ enum STARTUP_ACTION STARTUP_ACTION_EDIT }; -#ifdef __cplusplus - -interface IPlatformEnvironment; - -namespace OpenRCT2 -{ - IPlatformEnvironment * SetupEnvironment(); -} - -#endif - #ifdef __cplusplus extern "C" { @@ -80,9 +70,6 @@ extern "C" #endif void openrct2_write_full_version_info(utf8 * buffer, size_t bufferSize); - bool openrct2_initialise(); - void openrct2_launch(); - void openrct2_dispose(); void openrct2_finish(); sint32 cmdline_run(const char * * argv, sint32 argc); diff --git a/src/openrct2/cmdline/ConvertCommand.cpp b/src/openrct2/cmdline/ConvertCommand.cpp index 6387a3e10b..c93c723407 100644 --- a/src/openrct2/cmdline/ConvertCommand.cpp +++ b/src/openrct2/cmdline/ConvertCommand.cpp @@ -103,11 +103,11 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator * enumerat WriteConvertFromAndToMessage(sourceFileType, destinationFileType); gOpenRCT2Headless = true; - if (!openrct2_initialise()) - { - Console::Error::WriteLine("Error while initialising OpenRCT2."); - return EXITCODE_FAIL; - } + // if (!openrct2_initialise()) + // { + // Console::Error::WriteLine("Error while initialising OpenRCT2."); + // return EXITCODE_FAIL; + // } try { diff --git a/src/openrct2/cmdline/RootCommands.cpp b/src/openrct2/cmdline/RootCommands.cpp index 1d64d017b8..1eb9bc722d 100644 --- a/src/openrct2/cmdline/RootCommands.cpp +++ b/src/openrct2/cmdline/RootCommands.cpp @@ -389,9 +389,9 @@ static exitcode_t HandleCommandScanObjects(CommandLineArgEnumerator * enumerator return result; } - IPlatformEnvironment * env = OpenRCT2::SetupEnvironment(); - IObjectRepository * objectRepository = CreateObjectRepository(env); - objectRepository->Construct(); + // IPlatformEnvironment * env = OpenRCT2::SetupEnvironment(); + // IObjectRepository * objectRepository = CreateObjectRepository(env); + // objectRepository->Construct(); return EXITCODE_OK; } diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 0ba3e5148a..1ad69e3a22 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -104,7 +104,7 @@ extern "C" { try { - drawingEngine->Initialise(gWindow); + drawingEngine->Initialise(uiContext->GetWindow()); drawingEngine->SetUncappedFrameRate(gConfigGeneral.uncap_fps == 1); _drawingEngine = drawingEngine; } diff --git a/src/openrct2/interface/screenshot.c b/src/openrct2/interface/screenshot.c index 30d517feb5..6661d11b8a 100644 --- a/src/openrct2/interface/screenshot.c +++ b/src/openrct2/interface/screenshot.c @@ -288,7 +288,7 @@ sint32 cmdline_for_screenshot(const char **argv, sint32 argc) } gOpenRCT2Headless = true; - if (openrct2_initialise()) { + // if (openrct2_initialise()) { drawing_engine_init(); rct2_open_file(inputPath); @@ -373,7 +373,7 @@ sint32 cmdline_for_screenshot(const char **argv, sint32 argc) free(dpi.bits); drawing_engine_dispose(); - } - openrct2_dispose(); + // } + // openrct2_dispose(); return 1; } diff --git a/src/openrct2/rct2.c b/src/openrct2/rct2.c index b24d470d6f..2fc34fdfd9 100644 --- a/src/openrct2/rct2.c +++ b/src/openrct2/rct2.c @@ -167,7 +167,7 @@ bool rct2_init() font_sprite_initialise_characters(); if (!gOpenRCT2Headless) { - platform_init(); + // platform_init(); audio_init_ride_sounds_and_info(); } viewport_init_all(); diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index e762dc2642..68678070e0 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -21,6 +21,8 @@ #include "../Context.h" #include "../interface/Cursors.h" +struct SDL_Window; + namespace OpenRCT2 { namespace Drawing @@ -68,7 +70,9 @@ namespace OpenRCT2 virtual ~IUiContext() = default; // Window - virtual void * GetWindow() abstract; + virtual void CreateWindow() abstract; + virtual void CloseWindow() abstract; + virtual SDL_Window * GetWindow() abstract; virtual sint32 GetWidth() abstract; virtual sint32 GetHeight() abstract; virtual void SetFullscreenMode(FULLSCREEN_MODE mode) abstract; From bd9839ff504b6db358ea58e55155ddcaa2923d9e Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 26 Mar 2017 21:42:07 +0100 Subject: [PATCH 140/670] Get the game working Mostly just needed to resolve screen size which is now retrieved via ui context. --- src/openrct2-ui/CursorRepository.cpp | 22 +++++------ src/openrct2-ui/CursorRepository.h | 4 +- src/openrct2-ui/UiContext.cpp | 15 +++---- .../drawing/engines/SoftwareDrawingEngine.cpp | 4 +- src/openrct2/Context.cpp | 10 +++++ src/openrct2/Context.h | 2 + src/openrct2/audio/audio.cpp | 6 ++- src/openrct2/drawing/NewDrawing.cpp | 4 +- src/openrct2/drawing/drawing.c | 3 +- src/openrct2/game.c | 3 +- src/openrct2/input.c | 12 +++--- src/openrct2/interface/chat.c | 4 +- src/openrct2/interface/console.c | 2 +- src/openrct2/interface/screenshot.c | 3 +- src/openrct2/interface/viewport.c | 9 +++-- src/openrct2/interface/window.c | 39 ++++++++++--------- src/openrct2/intro.c | 10 ++--- src/openrct2/management/news_item.c | 3 +- src/openrct2/peep/peep.c | 3 +- src/openrct2/rct2.c | 7 ++-- src/openrct2/rct2.h | 2 - src/openrct2/ride/ride.c | 5 ++- src/openrct2/ride/vehicle.c | 5 ++- src/openrct2/title/TitleScreen.cpp | 3 +- src/openrct2/title/TitleSequencePlayer.cpp | 22 ++++++----- src/openrct2/windows/changelog.c | 10 +++-- src/openrct2/windows/clear_scenery.c | 3 +- src/openrct2/windows/debug_paint.c | 7 ++-- src/openrct2/windows/dropdown.c | 22 +++++++---- src/openrct2/windows/editor_bottom_toolbar.c | 9 ++--- src/openrct2/windows/editor_main.c | 5 ++- src/openrct2/windows/error.c | 6 ++- src/openrct2/windows/game_bottom_toolbar.c | 13 ++++--- src/openrct2/windows/install_track.c | 7 +++- src/openrct2/windows/land.c | 3 +- src/openrct2/windows/land_rights.c | 3 +- src/openrct2/windows/main.c | 9 ++--- src/openrct2/windows/park.c | 5 ++- src/openrct2/windows/scenery.c | 4 +- src/openrct2/windows/title_exit.c | 3 +- src/openrct2/windows/title_menu.c | 5 ++- src/openrct2/windows/title_options.c | 7 ++-- src/openrct2/windows/tooltip.c | 7 +++- src/openrct2/windows/top_toolbar.c | 10 ++--- src/openrct2/windows/track_list.c | 7 +++- src/openrct2/windows/track_manage.c | 11 +++--- src/openrct2/windows/water.c | 3 +- 47 files changed, 208 insertions(+), 153 deletions(-) diff --git a/src/openrct2-ui/CursorRepository.cpp b/src/openrct2-ui/CursorRepository.cpp index 61b027c2b2..fc0a973e84 100644 --- a/src/openrct2-ui/CursorRepository.cpp +++ b/src/openrct2-ui/CursorRepository.cpp @@ -22,7 +22,17 @@ using namespace OpenRCT2::Ui; -CursorRepository::CursorRepository() +CursorRepository::~CursorRepository() +{ + for (size_t i = 0; i < CURSOR_COUNT; i++) + { + SDL_FreeCursor(_loadedCursors[i]); + _loadedCursors[i] = nullptr; + } + _currentCursor = CURSOR_UNDEFINED; +} + +void CursorRepository::LoadCursors() { // Using system cursors _loadedCursors[CURSOR_ARROW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW); @@ -42,16 +52,6 @@ CursorRepository::CursorRepository() SetCurrentCursor(CURSOR_ARROW); } -CursorRepository::~CursorRepository() -{ - for (size_t i = 0; i < CURSOR_COUNT; i++) - { - SDL_FreeCursor(_loadedCursors[i]); - _loadedCursors[i] = nullptr; - } - _currentCursor = CURSOR_UNDEFINED; -} - CURSOR_ID CursorRepository::GetCurrentCursor() { return _currentCursor; diff --git a/src/openrct2-ui/CursorRepository.h b/src/openrct2-ui/CursorRepository.h index c15faf4a95..9a54c5ad30 100644 --- a/src/openrct2-ui/CursorRepository.h +++ b/src/openrct2-ui/CursorRepository.h @@ -28,12 +28,12 @@ namespace OpenRCT2 constexpr static sint32 CURSOR_WIDTH = 32; constexpr static sint32 CURSOR_HEIGHT = 32; - SDL_Cursor * _loadedCursors[CURSOR_COUNT]; + SDL_Cursor * _loadedCursors[CURSOR_COUNT] = { nullptr }; CURSOR_ID _currentCursor = CURSOR_UNDEFINED; public: - CursorRepository(); ~CursorRepository(); + void LoadCursors(); CURSOR_ID GetCurrentCursor(); void SetCurrentCursor(CURSOR_ID cursorId); diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 58c03ef2de..9126c7eb69 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -83,6 +83,7 @@ public: { SDLException::Throw("SDL_Init(SDL_INIT_VIDEO)"); } + _cursorRepository.LoadCursors(); } ~UiContext() override @@ -331,13 +332,13 @@ public: // Apple sends touchscreen events for trackpads, so ignore these events on macOS #ifndef __MACOSX__ case SDL_FINGERMOTION: - _cursorState.x = (sint32)(e.tfinger.x * gScreenWidth); - _cursorState.y = (sint32)(e.tfinger.y * gScreenHeight); + _cursorState.x = (sint32)(e.tfinger.x * _width); + _cursorState.y = (sint32)(e.tfinger.y * _height); break; case SDL_FINGERDOWN: { - sint32 x = (sint32)(e.tfinger.x * gScreenWidth); - sint32 y = (sint32)(e.tfinger.y * gScreenHeight); + sint32 x = (sint32)(e.tfinger.x * _width); + sint32 y = (sint32)(e.tfinger.y * _height); _cursorState.touchIsDouble = (!_cursorState.touchIsDouble && e.tfinger.timestamp - _cursorState.touchDownTimestamp < TOUCH_DOUBLE_TIMEOUT); @@ -360,8 +361,8 @@ public: } case SDL_FINGERUP: { - sint32 x = (sint32)(e.tfinger.x * gScreenWidth); - sint32 y = (sint32)(e.tfinger.y * gScreenHeight); + sint32 x = (sint32)(e.tfinger.x * _width); + sint32 y = (sint32)(e.tfinger.y * _height); if (_cursorState.touchIsDouble) { @@ -393,7 +394,7 @@ public: // Zoom gesture constexpr sint32 tolerance = 128; - sint32 gesturePixels = (sint32)(_gestureRadius * gScreenWidth); + sint32 gesturePixels = (sint32)(_gestureRadius * _width); if (abs(gesturePixels) > tolerance) { _gestureRadius = 0; diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index 710c945fec..934bd751cb 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -655,8 +655,8 @@ private: // Determine region in pixels uint32 left = Math::Max(0, x * _dirtyGrid.BlockWidth); uint32 top = Math::Max(0, y * _dirtyGrid.BlockHeight); - uint32 right = Math::Min((uint32)gScreenWidth, left + (columns * _dirtyGrid.BlockWidth)); - uint32 bottom = Math::Min((uint32)gScreenHeight, top + (rows * _dirtyGrid.BlockHeight)); + uint32 right = Math::Min(_width, left + (columns * _dirtyGrid.BlockWidth)); + uint32 bottom = Math::Min(_height, top + (rows * _dirtyGrid.BlockHeight)); if (right <= left || bottom <= top) { return; diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index d64c649b32..f8065494ba 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -664,4 +664,14 @@ extern "C" Memory::CopyArray(*outResolutions, resolutions.data(), count); return count; } + + sint32 context_get_width() + { + return GetContext()->GetUiContext()->GetWidth(); + } + + sint32 context_get_height() + { + return GetContext()->GetUiContext()->GetHeight(); + } } diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 02f3d59317..219a52265f 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -100,6 +100,8 @@ extern "C" void context_trigger_resize(); void context_set_fullscreen_mode(sint32 mode); sint32 context_get_resolutions(struct Resolution * * outResolutions); + sint32 context_get_width(); + sint32 context_get_height(); #ifdef __cplusplus } diff --git a/src/openrct2/audio/audio.cpp b/src/openrct2/audio/audio.cpp index 2f88b8e5a9..1717c6fc54 100644 --- a/src/openrct2/audio/audio.cpp +++ b/src/openrct2/audio/audio.cpp @@ -14,17 +14,19 @@ *****************************************************************************/ #pragma endregion +#include "../config/Config.h" +#include "../Context.h" #include "../core/File.h" #include "../core/FileStream.hpp" #include "../core/Memory.hpp" #include "../core/Util.hpp" #include "../localisation/string_ids.h" #include "../OpenRCT2.h" +#include "../ui/UiContext.h" #include "AudioMixer.h" extern "C" { - #include "../config/Config.h" #include "../interface/viewport.h" #include "../intro.h" #include "../localisation/language.h" @@ -255,7 +257,7 @@ sint32 audio_play_sound(sint32 soundId, sint32 volume, sint32 pan) sint32 mixerPan = 0; if (pan != AUDIO_PLAY_AT_CENTRE) { sint32 x2 = pan << 16; - uint16 screenWidth = Math::Max(64, gScreenWidth); + uint16 screenWidth = Math::Max(64, OpenRCT2::GetContext()->GetUiContext()->GetWidth()); mixerPan = ((x2 / screenWidth) - 0x8000) >> 4; } diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 1ad69e3a22..31dc499dc0 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -139,7 +139,9 @@ extern "C" { drawing_engine_init(); } - _drawingEngine->Resize(gScreenWidth, gScreenHeight); + + IUiContext * uiContext = GetContext()->GetUiContext(); + _drawingEngine->Resize(uiContext->GetWidth(), uiContext->GetHeight()); } void drawing_engine_set_palette(SDL_Color * colours) diff --git a/src/openrct2/drawing/drawing.c b/src/openrct2/drawing/drawing.c index 0b9d727850..c5a6b2875b 100644 --- a/src/openrct2/drawing/drawing.c +++ b/src/openrct2/drawing/drawing.c @@ -15,6 +15,7 @@ #pragma endregion #include "../common.h" +#include "../Context.h" #include "../core/Guard.hpp" #include "../interface/window.h" #include "../localisation/localisation.h" @@ -546,7 +547,7 @@ void load_palette(){ */ void gfx_invalidate_screen() { - gfx_set_dirty_blocks(0, 0, gScreenWidth, gScreenHeight); + gfx_set_dirty_blocks(0, 0, context_get_width(), context_get_height()); } /** diff --git a/src/openrct2/game.c b/src/openrct2/game.c index 44884b798b..dcc2e839ee 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -17,6 +17,7 @@ #include "audio/audio.h" #include "cheats.h" #include "config/Config.h" +#include "Context.h" #include "editor.h" #include "game.h" #include "input.h" @@ -138,7 +139,7 @@ void game_create_windows() window_main_open(); window_top_toolbar_open(); window_game_bottom_toolbar_open(); - window_resize_gui(gScreenWidth, gScreenHeight); + window_resize_gui(context_get_width(), context_get_height()); } enum { diff --git a/src/openrct2/input.c b/src/openrct2/input.c index de806bf396..3a82b54037 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -138,8 +138,10 @@ void game_handle_input() if (_inputFlags & INPUT_FLAG_5) { game_handle_input_mouse(x, y, state); } else if (x != 0x80000000) { - x = clamp(0, x, gScreenWidth - 1); - y = clamp(0, y, gScreenHeight - 1); + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + x = clamp(0, x, screenWidth - 1); + y = clamp(0, y, screenHeight - 1); game_handle_input_mouse(x, y, state); process_mouse_over(x, y); @@ -470,7 +472,7 @@ static void input_window_resize_begin(rct_window *w, rct_widgetindex widgetIndex static void input_window_resize_continue(rct_window *w, sint32 x, sint32 y) { - if (y < (sint32)gScreenHeight - 2) { + if (y < (sint32)context_get_height() - 2) { sint32 dx, dy, targetWidth, targetHeight; dx = x - gInputDragLastX; dy = y - gInputDragLastY; @@ -1623,13 +1625,13 @@ void game_handle_edge_scroll() const CursorState * cursorState = context_get_cursor_state(); if (cursorState->x == 0) scrollX = -1; - else if (cursorState->x >= gScreenWidth - 1) + else if (cursorState->x >= context_get_width() - 1) scrollX = 1; // Scroll up / down if (cursorState->y == 0) scrollY = -1; - else if (cursorState->y >= gScreenHeight - 1) + else if (cursorState->y >= context_get_height() - 1) scrollY = 1; // Scroll viewport diff --git a/src/openrct2/interface/chat.c b/src/openrct2/interface/chat.c index c39afe0f95..f87b663616 100644 --- a/src/openrct2/interface/chat.c +++ b/src/openrct2/interface/chat.c @@ -84,9 +84,9 @@ void chat_draw(rct_drawpixelinfo * dpi) } _chatLeft = 10; - _chatRight = min((gScreenWidth - 10), CHAT_MAX_WINDOW_WIDTH); + _chatRight = min((context_get_width() - 10), CHAT_MAX_WINDOW_WIDTH); _chatWidth = _chatRight - _chatLeft; - _chatBottom = gScreenHeight - 45; + _chatBottom = context_get_height() - 45; _chatTop = _chatBottom - 10; char lineBuffer[CHAT_INPUT_SIZE + 10]; diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 8b1ff0c56f..3fd9da5bfc 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -127,7 +127,7 @@ void console_update() _consoleLeft = 0; _consoleTop = 0; - _consoleRight = gScreenWidth; + _consoleRight = context_get_width(); _consoleBottom = 322; if (gConsoleOpen) { diff --git a/src/openrct2/interface/screenshot.c b/src/openrct2/interface/screenshot.c index 6661d11b8a..ee6e677bce 100644 --- a/src/openrct2/interface/screenshot.c +++ b/src/openrct2/interface/screenshot.c @@ -16,6 +16,7 @@ #include "../audio/audio.h" #include "../config/Config.h" +#include "../Context.h" #include "../drawing/drawing.h" #include "../game.h" #include "../Imaging.h" @@ -46,7 +47,7 @@ void screenshot_check() screenshotIndex = screenshot_dump(); if (screenshotIndex != -1) { - audio_play_sound(SOUND_WINDOW_OPEN, 100, gScreenWidth / 2); + audio_play_sound(SOUND_WINDOW_OPEN, 100, context_get_width() / 2); } else { window_error_open(STR_SCREENSHOT_FAILED, STR_NONE); } diff --git a/src/openrct2/interface/viewport.c b/src/openrct2/interface/viewport.c index 58d129e2e3..6227ae75f1 100644 --- a/src/openrct2/interface/viewport.c +++ b/src/openrct2/interface/viewport.c @@ -15,6 +15,7 @@ #pragma endregion #include "../config/Config.h" +#include "../Context.h" #include "../drawing/drawing.h" #include "../game.h" #include "../input.h" @@ -424,8 +425,8 @@ static void viewport_move(sint16 x, sint16 y, rct_window* w, rct_viewport* viewp if (w->flags & WF_7){ sint32 left = max(viewport->x, 0); sint32 top = max(viewport->y, 0); - sint32 right = min(viewport->x + viewport->width, gScreenWidth); - sint32 bottom = min(viewport->y + viewport->height, gScreenHeight); + sint32 right = min(viewport->x + viewport->width, context_get_width()); + sint32 bottom = min(viewport->y + viewport->height, context_get_height()); if (left >= right) return; if (top >= bottom) return; @@ -447,7 +448,7 @@ static void viewport_move(sint16 x, sint16 y, rct_window* w, rct_viewport* viewp viewport->x = 0; } - sint32 eax = viewport->x + viewport->width - gScreenWidth; + sint32 eax = viewport->x + viewport->width - context_get_width(); if (eax > 0){ viewport->width -= eax; viewport->view_width -= eax * zoom; @@ -465,7 +466,7 @@ static void viewport_move(sint16 x, sint16 y, rct_window* w, rct_viewport* viewp viewport->y = 0; } - eax = viewport->y + viewport->height - gScreenHeight; + eax = viewport->y + viewport->height - context_get_height(); if (eax > 0){ viewport->height -= eax; viewport->view_height -= eax * zoom; diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index a153af4e24..75dfd10f12 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -500,8 +500,8 @@ rct_window *window_create(sint32 x, sint32 y, sint32 width, sint32 height, rct_w */ static bool sub_6EA8EC(sint32 x, sint32 y, sint32 width, sint32 height) { - uint16 screenWidth = gScreenWidth; - uint16 screenHeight = gScreenHeight; + uint16 screenWidth = context_get_width(); + uint16 screenHeight = context_get_height(); sint32 unk; unk = -(width / 4); @@ -527,8 +527,8 @@ static bool sub_6EA934(sint32 x, sint32 y, sint32 width, sint32 height) { if (x < 0) return false; if (y < 28) return false; - if (x + width > gScreenWidth) return false; - if (y + height > gScreenHeight) return false; + if (x + width > context_get_width()) return false; + if (y + height > context_get_height()) return false; return sub_6EA95D(x, y, width, height); } @@ -569,8 +569,8 @@ static bool sub_6EA95D(sint32 x, sint32 y, sint32 width, sint32 height) */ rct_window *window_create_auto_pos(sint32 width, sint32 height, rct_window_event_list *event_handlers, rct_windowclass cls, uint16 flags) { - uint16 screenWidth = gScreenWidth; - uint16 screenHeight = gScreenHeight; + uint16 screenWidth = context_get_width(); + uint16 screenHeight = context_get_height(); // TODO dead code, looks like it is cascading the new window offset from an existing window // we will have to re-implement this in our own way. @@ -579,11 +579,11 @@ rct_window *window_create_auto_pos(sint32 width, sint32 height, rct_window_event // cls &= ~0x80; // rct_window *w = window_find_by_number(0, 0); // if (w != NULL) { - // if (w->x > -60 && w->x < gScreenWidth - 20) { - // if (w->y < gScreenHeight - 20) { + // if (w->x > -60 && w->x < screenWidth - 20) { + // if (w->y < screenHeight - 20) { // sint32 x = w->x; - // if (w->x + width > gScreenWidth) - // x = gScreenWidth - 20 - width; + // if (w->x + width > screenWidth) + // x = screenWidth - 20 - width; // sint32 y = w->y; // return window_create(x + 10, y + 10, width, height, event_handlers, cls, flags); // } @@ -689,12 +689,13 @@ foundSpace: return window_create(x, y, width, height, event_handlers, cls, flags); } -rct_window *window_create_centred(sint32 width, sint32 height, rct_window_event_list *event_handlers, rct_windowclass cls, uint16 flags) +rct_window * window_create_centred(sint32 width, sint32 height, rct_window_event_list *event_handlers, rct_windowclass cls, uint16 flags) { - sint32 x, y; + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); - x = (gScreenWidth - width) / 2; - y = max(28, (gScreenHeight - height) / 2); + sint32 x = (screenWidth - width) / 2; + sint32 y = max(28, (screenHeight - height) / 2); return window_create(x, y, width, height, event_handlers, cls, flags); } @@ -1233,7 +1234,7 @@ void window_push_others_right(rct_window* window) continue; window_invalidate(w); - if (window->x + window->width + 13 >= gScreenWidth) + if (window->x + window->width + 13 >= context_get_width()) continue; uint16 push_amount = window->x + window->width - w->x + 3; w->x += push_amount; @@ -1268,7 +1269,7 @@ void window_push_others_below(rct_window *w1) continue; // Check if there is room to push it down - if (w1->y + w1->height + 80 >= gScreenHeight) + if (w1->y + w1->height + 80 >= context_get_height()) continue; // Invalidate the window's current area @@ -2402,7 +2403,7 @@ static void window_snap_right(rct_window *w, sint32 proximity) leftMost = min(leftMost, w2->x); } - screenWidth = gScreenWidth; + screenWidth = context_get_width(); if (screenWidth >= wLeftProximity && screenWidth <= wRightProximity) leftMost = min(leftMost, screenWidth); @@ -2435,7 +2436,7 @@ static void window_snap_bottom(rct_window *w, sint32 proximity) topMost = min(topMost, w2->y); } - screenHeight = gScreenHeight; + screenHeight = context_get_height(); if (screenHeight >= wTopProximity && screenHeight <= wBottomProximity) topMost = min(topMost, screenHeight); @@ -2448,7 +2449,7 @@ void window_move_and_snap(rct_window *w, sint32 newWindowX, sint32 newWindowY, s sint32 originalX = w->x; sint32 originalY = w->y; - newWindowY = clamp(29, newWindowY, gScreenHeight - 34); + newWindowY = clamp(29, newWindowY, context_get_height() - 34); if (snapProximity > 0) { w->x = newWindowX; diff --git a/src/openrct2/intro.c b/src/openrct2/intro.c index 5b3b7fcd07..abd28d8c1b 100644 --- a/src/openrct2/intro.c +++ b/src/openrct2/intro.c @@ -69,7 +69,7 @@ void intro_update() _introStateCounter += 5; // Check if logo is off the screen...ish - if (_introStateCounter > gScreenHeight - 120) { + if (_introStateCounter > context_get_height() - 120) { _introStateCounter = -116; gIntroState++; } @@ -85,7 +85,7 @@ void intro_update() _introStateCounter += 5; // Check if logo is almost scrolled to the bottom - if (!_chainLiftFinished && _introStateCounter >= gScreenHeight + 40 - 421) { + if (!_chainLiftFinished && _introStateCounter >= context_get_height() + 40 - 421) { _chainLiftFinished = true; // Stop the chain lift sound @@ -99,7 +99,7 @@ void intro_update() } // Check if logo is off the screen...ish - if (_introStateCounter >= gScreenHeight + 40) { + if (_introStateCounter >= context_get_height() + 40) { // Stop the track friction sound if (_soundChannel != NULL) { Mixer_Stop_Channel(_soundChannel); @@ -160,7 +160,7 @@ void intro_update() void intro_draw(rct_drawpixelinfo *dpi) { - sint32 screenWidth = gScreenWidth; + sint32 screenWidth = context_get_width(); switch (gIntroState) { case INTRO_STATE_DISCLAIMER_1: @@ -258,7 +258,7 @@ static void screen_intro_skip_part() static void screen_intro_draw_logo(rct_drawpixelinfo *dpi) { - sint32 screenWidth = gScreenWidth; + sint32 screenWidth = context_get_width(); sint32 imageWidth = 640; sint32 imageX = (screenWidth - imageWidth) / 2; diff --git a/src/openrct2/management/news_item.c b/src/openrct2/management/news_item.c index 121270034c..6726b2821b 100644 --- a/src/openrct2/management/news_item.c +++ b/src/openrct2/management/news_item.c @@ -15,6 +15,7 @@ #pragma endregion #include "../audio/audio.h" +#include "../Context.h" #include "../input.h" #include "../interface/window.h" #include "../localisation/date.h" @@ -97,7 +98,7 @@ static void news_item_tick_current() // Only play news item sound when in normal playing mode if (ticks == 1 && (gScreenFlags == SCREEN_FLAGS_PLAYING)) { // Play sound - audio_play_sound_panned(SOUND_NEWS_ITEM, gScreenWidth / 2, 0, 0, 0); + audio_play_sound_panned(SOUND_NEWS_ITEM, context_get_width() / 2, 0, 0, 0); } } diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index 1110a81a55..a92c51fe84 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -18,6 +18,7 @@ #include "../audio/AudioMixer.h" #include "../cheats.h" #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../input.h" #include "../interface/window.h" @@ -6997,7 +6998,7 @@ void peep_applause() } // Play applause noise - audio_play_sound_panned(SOUND_APPLAUSE, gScreenWidth / 2, 0, 0, 0); + audio_play_sound_panned(SOUND_APPLAUSE, context_get_width() / 2, 0, 0, 0); } /** diff --git a/src/openrct2/rct2.c b/src/openrct2/rct2.c index 2fc34fdfd9..196f5244bb 100644 --- a/src/openrct2/rct2.c +++ b/src/openrct2/rct2.c @@ -20,6 +20,7 @@ #include "audio/audio.h" #include "audio/AudioMixer.h" #include "config/Config.h" +#include "Context.h" #include "drawing/drawing.h" #include "drawing/lightfx.h" #include "editor.h" @@ -114,8 +115,6 @@ uint32 gCurrentDrawCount = 0; uint8 gScreenFlags; uint32 gScreenAge; uint8 gSavePromptMode; -sint32 gScreenWidth; -sint32 gScreenHeight; char gRCT2AddressAppPath[MAX_PATH]; char gRCT2AddressSavedGamesPath[MAX_PATH]; @@ -273,7 +272,7 @@ void rct2_draw(rct_drawpixelinfo *dpi) console_draw(dpi); if ((gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) && !gTitleHideVersionInfo) { - DrawOpenRCT2(dpi, 0, gScreenHeight - 20); + DrawOpenRCT2(dpi, 0, context_get_height() - 20); } if (gConfigGeneral.show_fps) { @@ -303,7 +302,7 @@ static void rct2_measure_fps() static void rct2_draw_fps(rct_drawpixelinfo *dpi) { - sint32 x = gScreenWidth / 2; + sint32 x = context_get_width() / 2; sint32 y = 2; // Measure FPS diff --git a/src/openrct2/rct2.h b/src/openrct2/rct2.h index 829fa00771..002ded8c29 100644 --- a/src/openrct2/rct2.h +++ b/src/openrct2/rct2.h @@ -161,8 +161,6 @@ extern uint32 gCurrentDrawCount; extern uint8 gScreenFlags; extern uint32 gScreenAge; extern uint8 gSavePromptMode; -extern sint32 gScreenWidth; -extern sint32 gScreenHeight; extern char gRCT2AddressAppPath[]; extern char gRCT2AddressSavedGamesPath[]; diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 8d5b12707b..0ccc6a02f8 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -19,6 +19,7 @@ #include "../cheats.h" #include "../common.h" #include "../config/Config.h" +#include "../Context.h" #include "../editor.h" #include "../game.h" #include "../input.h" @@ -3448,7 +3449,7 @@ sint32 ride_music_params_update(sint16 x, sint16 y, sint16 z, uint8 rideIndex, u } sint32 x2 = viewport->x + ((rotatedCoords.x - viewport->view_x) >> viewport->zoom); x2 *= 0x10000; - uint16 screenwidth = gScreenWidth; + uint16 screenwidth = context_get_width(); if (screenwidth < 64) { screenwidth = 64; } @@ -3456,7 +3457,7 @@ sint32 ride_music_params_update(sint16 x, sint16 y, sint16 z, uint8 rideIndex, u sint32 y2 = viewport->y + ((rotatedCoords.y - viewport->view_y) >> viewport->zoom); y2 *= 0x10000; - uint16 screenheight = gScreenHeight; + uint16 screenheight = context_get_height(); if (screenheight < 64) { screenheight = 64; } diff --git a/src/openrct2/ride/vehicle.c b/src/openrct2/ride/vehicle.c index aa074353a5..c0b68850ca 100644 --- a/src/openrct2/ride/vehicle.c +++ b/src/openrct2/ride/vehicle.c @@ -17,6 +17,7 @@ #include "../audio/audio.h" #include "../audio/AudioMixer.h" #include "../config/Config.h" +#include "../Context.h" #include "../editor.h" #include "../game.h" #include "../interface/viewport.h" @@ -701,7 +702,7 @@ static void vehicle_update_sound_params(rct_vehicle* vehicle) pan_x >>= g_music_tracking_viewport->zoom; pan_x += g_music_tracking_viewport->x; - uint16 screenwidth = gScreenWidth; + uint16 screenwidth = context_get_width(); if (screenwidth < 64) { screenwidth = 64; } @@ -711,7 +712,7 @@ static void vehicle_update_sound_params(rct_vehicle* vehicle) pan_y >>= g_music_tracking_viewport->zoom; pan_y += g_music_tracking_viewport->y; - uint16 screenheight = gScreenHeight; + uint16 screenheight = context_get_height(); if (screenheight < 64) { screenheight = 64; } diff --git a/src/openrct2/title/TitleScreen.cpp b/src/openrct2/title/TitleScreen.cpp index 91a58229c0..bee7457ead 100644 --- a/src/openrct2/title/TitleScreen.cpp +++ b/src/openrct2/title/TitleScreen.cpp @@ -15,6 +15,7 @@ #pragma endregion #include "../core/Console.hpp" +#include "../Context.h" #include "../network/network.h" #include "../OpenRCT2.h" #include "../scenario/ScenarioRepository.h" @@ -161,7 +162,7 @@ extern "C" window_title_exit_open(); window_title_options_open(); window_title_logo_open(); - window_resize_gui(gScreenWidth, gScreenHeight); + window_resize_gui(context_get_width(), context_get_height()); gTitleHideVersionInfo = false; } diff --git a/src/openrct2/title/TitleSequencePlayer.cpp b/src/openrct2/title/TitleSequencePlayer.cpp index c113fe55ce..29ec5db5fb 100644 --- a/src/openrct2/title/TitleSequencePlayer.cpp +++ b/src/openrct2/title/TitleSequencePlayer.cpp @@ -447,13 +447,13 @@ private: sint32 z = map_element_height(x, y); window_set_location(w, x, y, z); viewport_update_position(w); - } - // Save known tile position in case of window resize - _lastScreenWidth = gScreenWidth; - _lastScreenHeight = gScreenHeight; - _viewCentreLocation.x = x; - _viewCentreLocation.y = y; + // Save known tile position in case of window resize + _lastScreenWidth = w->width; + _lastScreenHeight = w->height; + _viewCentreLocation.x = x; + _viewCentreLocation.y = y; + } } /** @@ -461,10 +461,14 @@ private: */ void FixViewLocation() { - if (gScreenWidth != _lastScreenWidth || - gScreenHeight != _lastScreenHeight) + rct_window * w = window_get_main(); + if (w != nullptr) { - SetViewLocation(_viewCentreLocation.x, _viewCentreLocation.y); + if (w->width != _lastScreenWidth || + w->height != _lastScreenHeight) + { + SetViewLocation(_viewCentreLocation.x, _viewCentreLocation.y); + } } } }; diff --git a/src/openrct2/windows/changelog.c b/src/openrct2/windows/changelog.c index a5a0468180..57b8d0e178 100644 --- a/src/openrct2/windows/changelog.c +++ b/src/openrct2/windows/changelog.c @@ -14,6 +14,8 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" +#include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -107,8 +109,8 @@ rct_window *window_changelog_open() if (!window_changelog_read_file()) return NULL; - sint32 screenWidth = gScreenWidth; - sint32 screenHeight = gScreenHeight; + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); window = window_create_centred( screenWidth * 4 / 5, @@ -144,8 +146,8 @@ static void window_changelog_mouseup(rct_window *w, rct_widgetindex widgetIndex) static void window_changelog_resize(rct_window *w) { - sint32 screenWidth = gScreenWidth; - sint32 screenHeight = gScreenHeight; + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); w->max_width = (screenWidth * 4) / 5; w->max_height = (screenHeight * 4) / 5; diff --git a/src/openrct2/windows/clear_scenery.c b/src/openrct2/windows/clear_scenery.c index 65db08efd8..f9b3eb6c19 100644 --- a/src/openrct2/windows/clear_scenery.c +++ b/src/openrct2/windows/clear_scenery.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../input.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -104,7 +105,7 @@ void window_clear_scenery_open() if (window_find_by_class(WC_CLEAR_SCENERY) != NULL) return; - window = window_create(gScreenWidth - 98, 29, 98, 94, &window_clear_scenery_events, WC_CLEAR_SCENERY, 0); + window = window_create(context_get_width() - 98, 29, 98, 94, &window_clear_scenery_events, WC_CLEAR_SCENERY, 0); window->widgets = window_clear_scenery_widgets; window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_INCREMENT) | (1 << WIDX_DECREMENT) | (1 << WIDX_PREVIEW) | (1 << WIDX_SMALL_SCENERY) | (1 << WIDX_LARGE_SCENERY) | (1 << WIDX_FOOTPATH); diff --git a/src/openrct2/windows/debug_paint.c b/src/openrct2/windows/debug_paint.c index ebaf5e867e..7c3d434d0b 100644 --- a/src/openrct2/windows/debug_paint.c +++ b/src/openrct2/windows/debug_paint.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../input.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -81,15 +82,13 @@ static rct_window_event_list window_debug_paint_events = { void window_debug_paint_open() { - rct_window * window; - // Check if window is already open if (window_find_by_class(WC_DEBUG_PAINT) != NULL) return; - window = window_create( + rct_window * window = window_create( 16, - gScreenHeight - 16 - 33 - WINDOW_HEIGHT, + context_get_height() - 16 - 33 - WINDOW_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT, &window_debug_paint_events, diff --git a/src/openrct2/windows/dropdown.c b/src/openrct2/windows/dropdown.c index 666efb13c7..103218af36 100644 --- a/src/openrct2/windows/dropdown.c +++ b/src/openrct2/windows/dropdown.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../input.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -176,10 +177,12 @@ void window_dropdown_show_text_custom_width(sint32 x, sint32 y, sint32 extray, u width = _dropdown_item_width * _dropdown_num_columns + 3; sint32 height = _dropdown_item_height * _dropdown_num_rows + 3; - if (x + width > gScreenWidth) - x = max(0, gScreenWidth - width); - if (y + height > gScreenHeight) - y = max(0, gScreenHeight - height); + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + if (x + width > screenWidth) + x = max(0, screenWidth - width); + if (y + height > screenHeight) + y = max(0, screenHeight - height); window_dropdown_widgets[WIDX_BACKGROUND].bottom = (sint16)(_dropdown_item_height * num_items + 3); window_dropdown_widgets[WIDX_BACKGROUND].right = (sint16)(_dropdown_item_width + 3); @@ -245,10 +248,13 @@ void window_dropdown_show_image(sint32 x, sint32 y, sint32 extray, uint8 colour, // Calculate position and size width = _dropdown_item_width * _dropdown_num_columns + 3; height = _dropdown_item_height * _dropdown_num_rows + 3; - if (x + width > gScreenWidth) - x = max(0, gScreenWidth - width); - if (y + height > gScreenHeight) - y = max(0, gScreenHeight - height); + + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + if (x + width > screenWidth) + x = max(0, screenWidth - width); + if (y + height > screenHeight) + y = max(0, screenHeight - height); window_dropdown_widgets[WIDX_BACKGROUND].right = width; window_dropdown_widgets[WIDX_BACKGROUND].bottom = height; diff --git a/src/openrct2/windows/editor_bottom_toolbar.c b/src/openrct2/windows/editor_bottom_toolbar.c index 51f8b79efb..46a75d976e 100644 --- a/src/openrct2/windows/editor_bottom_toolbar.c +++ b/src/openrct2/windows/editor_bottom_toolbar.c @@ -16,6 +16,7 @@ #include "../audio/audio.h" #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../editor.h" #include "../input.h" @@ -135,10 +136,8 @@ static void sub_6DFED0(); */ void window_editor_bottom_toolbar_open() { - rct_window* window; - - window = window_create(0, gScreenHeight - 32, - gScreenWidth, 32, + rct_window * window = window_create(0, context_get_height() - 32, + context_get_width(), 32, &window_editor_bottom_toolbar_events, WC_BOTTOM_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND); window->widgets = window_editor_bottom_toolbar_widgets; @@ -371,7 +370,7 @@ void window_editor_bottom_toolbar_invalidate(rct_window *w) { colour_scheme_update_by_class(w, (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) ? WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR : WC_EDITOR_TRACK_BOTTOM_TOOLBAR); - uint16 screenWidth = gScreenWidth; + uint16 screenWidth = context_get_width(); window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].left = screenWidth - 200; window_editor_bottom_toolbar_widgets[WIDX_NEXT_IMAGE].right = screenWidth - 1; window_editor_bottom_toolbar_widgets[WIDX_NEXT_STEP_BUTTON].left = screenWidth - 198; diff --git a/src/openrct2/windows/editor_main.c b/src/openrct2/windows/editor_main.c index fd585e133c..d8397a43ba 100644 --- a/src/openrct2/windows/editor_main.c +++ b/src/openrct2/windows/editor_main.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -65,8 +66,8 @@ static rct_widget window_editor_main_widgets[] = { */ rct_window * window_editor_main_open() { - window_editor_main_widgets[0].right = gScreenWidth; - window_editor_main_widgets[0].bottom = gScreenHeight; + window_editor_main_widgets[0].right = context_get_width(); + window_editor_main_widgets[0].bottom = context_get_height(); rct_window *window = window_create(0, 0, window_editor_main_widgets[0].right, window_editor_main_widgets[0].bottom, &window_editor_main_events, WC_MAIN_WINDOW, WF_STICK_TO_BACK); window->widgets = window_editor_main_widgets; diff --git a/src/openrct2/windows/error.c b/src/openrct2/windows/error.c index 6c05b528d3..cc874b8693 100644 --- a/src/openrct2/windows/error.c +++ b/src/openrct2/windows/error.c @@ -121,13 +121,15 @@ void window_error_open(rct_string_id title, rct_string_id message) window_error_widgets[WIDX_BACKGROUND].right = width; window_error_widgets[WIDX_BACKGROUND].bottom = height; + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); const CursorState * state = context_get_cursor_state(); x = state->x - (width / 2); - x = clamp(0, x, gScreenWidth); + x = clamp(0, x, screenWidth); y = state->y + 26; y = max(22, y); - maxY = gScreenHeight - height; + maxY = screenHeight - height; if (y > maxY) { y = y - height - 40; y = min(y, maxY); diff --git a/src/openrct2/windows/game_bottom_toolbar.c b/src/openrct2/windows/game_bottom_toolbar.c index 734fb837fd..61ea4d855a 100644 --- a/src/openrct2/windows/game_bottom_toolbar.c +++ b/src/openrct2/windows/game_bottom_toolbar.c @@ -15,6 +15,7 @@ #pragma endregion #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../input.h" #include "../interface/widget.h" @@ -127,11 +128,11 @@ static void window_game_bottom_toolbar_invalidate_dirty_widgets(rct_window *w); */ void window_game_bottom_toolbar_open() { - rct_window* window; - - window = window_create( - 0, gScreenHeight - 32, - gScreenWidth, 32, + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + rct_window * window = window_create( + 0, screenHeight - 32, + screenWidth, 32, &window_game_bottom_toolbar_events, WC_BOTTOM_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND @@ -242,7 +243,7 @@ static void window_game_bottom_toolbar_invalidate(rct_window *w) NewsItem *newsItem; // Anchor the middle and right panel to the right - x = gScreenWidth; + x = context_get_width(); w->width = x; x--; window_game_bottom_toolbar_widgets[WIDX_RIGHT_OUTSET].right = x; diff --git a/src/openrct2/windows/install_track.c b/src/openrct2/windows/install_track.c index 7636d4233a..11ac600b76 100644 --- a/src/openrct2/windows/install_track.c +++ b/src/openrct2/windows/install_track.c @@ -15,6 +15,7 @@ #pragma endregion #include "../audio/audio.h" +#include "../Context.h" #include "../editor.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -125,8 +126,10 @@ void window_install_track_open(const utf8 *path) gTrackDesignSceneryToggle = false; _currentTrackPieceDirection = 2; - sint32 x = gScreenWidth / 2 - 201; - sint32 y = max(28, gScreenHeight / 2 - 200); + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + sint32 x = screenWidth / 2 - 201; + sint32 y = max(28, screenHeight / 2 - 200); rct_window *w = window_create(x, y, 402, 400, &window_install_track_events, WC_INSTALL_TRACK, 0); w->widgets = window_install_track_widgets; diff --git a/src/openrct2/windows/land.c b/src/openrct2/windows/land.c index 68acfbf88f..e56d6c614e 100644 --- a/src/openrct2/windows/land.c +++ b/src/openrct2/windows/land.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../input.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -126,7 +127,7 @@ void window_land_open() if (window_find_by_class(WC_LAND) != NULL) return; - window = window_create(gScreenWidth - 98, 29, 98, 160, &window_land_events, WC_LAND, 0); + window = window_create(context_get_width() - 98, 29, 98, 160, &window_land_events, WC_LAND, 0); window->widgets = window_land_widgets; window->enabled_widgets = (1 << WIDX_CLOSE) | diff --git a/src/openrct2/windows/land_rights.c b/src/openrct2/windows/land_rights.c index b888f1522d..f4ca519236 100644 --- a/src/openrct2/windows/land_rights.c +++ b/src/openrct2/windows/land_rights.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../game.h" #include "../input.h" #include "../interface/viewport.h" @@ -99,7 +100,7 @@ void window_land_rights_open() if (window_find_by_class(WC_LAND_RIGHTS) != NULL) return; - window = window_create(gScreenWidth - 98, 29, 98, 94, &window_land_rights_events, WC_LAND_RIGHTS, 0); + window = window_create(context_get_width() - 98, 29, 98, 94, &window_land_rights_events, WC_LAND_RIGHTS, 0); window->widgets = window_land_rights_widgets; window->enabled_widgets = (1 << WIDX_CLOSE) | (1 << WIDX_DECREMENT) | (1 << WIDX_INCREMENT) | (1 << WIDX_PREVIEW) | (1 << WIDX_BUY_LAND_RIGHTS) | (1 << WIDX_BUY_CONSTRUCTION_RIGHTS); diff --git a/src/openrct2/windows/main.c b/src/openrct2/windows/main.c index 908fd5b4c0..2f6e7dede1 100644 --- a/src/openrct2/windows/main.c +++ b/src/openrct2/windows/main.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../interface/viewport.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -64,11 +65,9 @@ static rct_window_event_list window_main_events = { */ void window_main_open() { - rct_window* window; - - window_main_widgets[0].right = gScreenWidth; - window_main_widgets[0].bottom = gScreenHeight; - window = window_create( + window_main_widgets[0].right = context_get_width(); + window_main_widgets[0].bottom = context_get_height(); + rct_window * window = window_create( 0, 0, window_main_widgets[0].right, window_main_widgets[0].bottom, &window_main_events, diff --git a/src/openrct2/windows/park.c b/src/openrct2/windows/park.c index d2a5b50ef9..646f643e72 100644 --- a/src/openrct2/windows/park.c +++ b/src/openrct2/windows/park.c @@ -15,6 +15,7 @@ #pragma endregion #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../localisation/date.h" #include "../localisation/localisation.h" @@ -1667,8 +1668,8 @@ void window_park_objective_open() window->hold_down_widgets = window_park_page_hold_down_widgets[WINDOW_PARK_PAGE_OBJECTIVE]; window->event_handlers = &window_park_objective_events; window_init_scroll_widgets(window); - window->x = gScreenWidth / 2 - 115; - window->y = gScreenHeight / 2 - 87; + window->x = context_get_width() / 2 - 115; + window->y = context_get_height() / 2 - 87; window_invalidate(window); } diff --git a/src/openrct2/windows/scenery.c b/src/openrct2/windows/scenery.c index 3a8143dc76..4969baa6c2 100644 --- a/src/openrct2/windows/scenery.c +++ b/src/openrct2/windows/scenery.c @@ -424,7 +424,7 @@ void window_scenery_open() init_scenery(); window = window_create( - gScreenWidth - WINDOW_SCENERY_WIDTH, + context_get_width() - WINDOW_SCENERY_WIDTH, 0x1D, WINDOW_SCENERY_WIDTH, WINDOW_SCENERY_HEIGHT, @@ -748,7 +748,7 @@ static void window_scenery_update(rct_window *w) } } else { sint32 windowHeight = min(463, w->scrolls[0].v_bottom + 62); - if (gScreenHeight < 600) + if (context_get_height() < 600) windowHeight = min(374, windowHeight); windowHeight = max(WINDOW_SCENERY_HEIGHT, windowHeight); diff --git a/src/openrct2/windows/title_exit.c b/src/openrct2/windows/title_exit.c index 96b4133482..4ed0482db8 100644 --- a/src/openrct2/windows/title_exit.c +++ b/src/openrct2/windows/title_exit.c @@ -15,6 +15,7 @@ #pragma endregion #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../sprites.h" #include "../localisation/localisation.h" @@ -75,7 +76,7 @@ void window_title_exit_open() rct_window* window; window = window_create( - gScreenWidth - 40, gScreenHeight - 64, + context_get_width() - 40, context_get_height() - 64, 40, 64, &window_title_exit_events, WC_TITLE_EXIT, diff --git a/src/openrct2/windows/title_menu.c b/src/openrct2/windows/title_menu.c index ea28d1c791..70eca7bdd8 100644 --- a/src/openrct2/windows/title_menu.c +++ b/src/openrct2/windows/title_menu.c @@ -15,6 +15,7 @@ #pragma endregion #include "../config/Config.h" +#include "../Context.h" #include "../editor.h" #include "../game.h" #include "../input.h" @@ -88,7 +89,7 @@ void window_title_menu_open() rct_window* window; window = window_create( - 0, gScreenHeight - 142, + 0, context_get_height() - 142, 0, 100, &window_title_menu_events, WC_TITLE_MENU, @@ -120,7 +121,7 @@ void window_title_menu_open() i++; } window->width = x; - window->x = (gScreenWidth - window->width) / 2; + window->x = (context_get_width() - window->width) / 2; window_init_scroll_widgets(window); } diff --git a/src/openrct2/windows/title_options.c b/src/openrct2/windows/title_options.c index 583ec59379..40af320e26 100644 --- a/src/openrct2/windows/title_options.c +++ b/src/openrct2/windows/title_options.c @@ -15,6 +15,7 @@ #pragma endregion #include "../config/Config.h" +#include "../Context.h" #include "../game.h" #include "../intro.h" #include "../localisation/localisation.h" @@ -70,10 +71,8 @@ static rct_window_event_list window_title_options_events = { */ void window_title_options_open() { - rct_window* window; - - window = window_create( - gScreenWidth - 80, 0, + rct_window * window = window_create( + context_get_width() - 80, 0, 80, 12, &window_title_options_events, WC_TITLE_OPTIONS, diff --git a/src/openrct2/windows/tooltip.c b/src/openrct2/windows/tooltip.c index 8cd8f35acc..975c1cb8bc 100644 --- a/src/openrct2/windows/tooltip.c +++ b/src/openrct2/windows/tooltip.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../drawing/drawing.h" #include "../localisation/localisation.h" #include "../input.h" @@ -110,12 +111,14 @@ void window_tooltip_show(rct_string_id id, sint32 x, sint32 y) memcpy(_tooltipText, buffer, sizeof(_tooltipText)); - x = clamp(0, x - (width / 2), gScreenWidth - width); + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + x = clamp(0, x - (width / 2), screenWidth - width); // TODO The cursor size will be relative to the window DPI. // The amount to offset the y should be adjusted. - sint32 max_y = gScreenHeight - height; + sint32 max_y = screenHeight - height; y += 26; // Normally, we'd display the tooltip 26 lower if (y > max_y) // If y is too large, the tooltip could be forced below the cursor if we'd just clamped y, diff --git a/src/openrct2/windows/top_toolbar.c b/src/openrct2/windows/top_toolbar.c index bbb0b8a133..51d7a246e9 100644 --- a/src/openrct2/windows/top_toolbar.c +++ b/src/openrct2/windows/top_toolbar.c @@ -17,6 +17,7 @@ #include "../audio/audio.h" #include "../cheats.h" #include "../config/Config.h" +#include "../Context.h" #include "../editor.h" #include "../game.h" #include "../input.h" @@ -290,11 +291,9 @@ static uint16 _unkF64F15; */ void window_top_toolbar_open() { - rct_window* window; - - window = window_create( + rct_window * window = window_create( 0, 0, - gScreenWidth, 28, + context_get_width(), 28, &window_top_toolbar_events, WC_TOP_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND @@ -763,8 +762,9 @@ static void window_top_toolbar_invalidate(rct_window *w) } // Align right hand side toolbar buttons + sint32 screenWidth = context_get_width(); firstAlignment = 1; - x = max(640, gScreenWidth); + x = max(640, screenWidth); for (sint32 i = 0; i < countof(right_aligned_widgets_order); ++i) { widgetIndex = right_aligned_widgets_order[i]; widget = &window_top_toolbar_widgets[widgetIndex]; diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 574fd0bf0f..4e44db18f0 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -16,6 +16,7 @@ #include "../audio/audio.h" #include "../config/Config.h" +#include "../Context.h" #include "../drawing/IDrawingEngine.h" #include "../editor.h" #include "../interface/widget.h" @@ -121,8 +122,10 @@ void window_track_list_open(ride_list_item item) sint32 x, y; if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) { - x = gScreenWidth / 2 - 300; - y = max(28, gScreenHeight / 2 - 200); + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + x = screenWidth / 2 - 300; + y = max(28, screenHeight / 2 - 200); } else { x = 0; y = 29; diff --git a/src/openrct2/windows/track_manage.c b/src/openrct2/windows/track_manage.c index b248a74dc5..ac9599a894 100644 --- a/src/openrct2/windows/track_manage.c +++ b/src/openrct2/windows/track_manage.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../game.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -252,13 +253,13 @@ static void window_track_manage_paint(rct_window *w, rct_drawpixelinfo *dpi) */ static void window_track_delete_prompt_open() { - rct_window *w; - window_close_by_class(WC_TRACK_DELETE_PROMPT); - w = window_create( - max(28, (gScreenWidth - 250) / 2), - (gScreenHeight - 44) / 2, + sint32 screenWidth = context_get_width(); + sint32 screenHeight = context_get_height(); + rct_window *w = window_create( + max(28, (screenWidth - 250) / 2), + (screenHeight - 44) / 2, 250, 74, &window_track_delete_prompt_events, diff --git a/src/openrct2/windows/water.c b/src/openrct2/windows/water.c index a4246ae32b..4871a2c7ca 100644 --- a/src/openrct2/windows/water.c +++ b/src/openrct2/windows/water.c @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include "../Context.h" #include "../input.h" #include "../interface/widget.h" #include "../interface/window.h" @@ -98,7 +99,7 @@ void window_water_open() return; window = window_create( - gScreenWidth - 76, + context_get_width() - 76, 29, 76, 77, From 175606ae52505f272de59097a8e3fd85dbc1c3fb Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 26 Mar 2017 23:00:28 +0100 Subject: [PATCH 141/670] Create new audio context interface --- src/openrct2-ui/audio/AudioContext.cpp | 50 +++++++++++++++++++++++++ src/openrct2-ui/libopenrct2ui.vcxproj | 1 + src/openrct2/audio/AudioContext.h | 52 ++++++++++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 src/openrct2-ui/audio/AudioContext.cpp create mode 100644 src/openrct2/audio/AudioContext.h diff --git a/src/openrct2-ui/audio/AudioContext.cpp b/src/openrct2-ui/audio/AudioContext.cpp new file mode 100644 index 0000000000..bc7d838940 --- /dev/null +++ b/src/openrct2-ui/audio/AudioContext.cpp @@ -0,0 +1,50 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include + +namespace OpenRCT2 { namespace Audio +{ + class AudioContext : public IAudioContext + { + public: + virtual ~AudioContext() + { + } + + void StartTitleMusic() override { } + + IAudioChannel * PlaySound(sint32 soundId, sint32 volume, sint32 pan) override { return nullptr; } + IAudioChannel * PlaySoundAtLocation(sint32 soundId, sint16 x, sint16 y, sint16 z) override { return nullptr; } + IAudioChannel * PlaySoundPanned(sint32 soundId, sint32 pan, sint16 x, sint16 y, sint16 z) override { return nullptr; } + + void ToggleAllSounds() override { } + void PauseSounds() override { } + void UnpauseSounds() override { } + + void StopAll() override { } + void StopCrowdSound() override { } + void StopRainSound() override { } + void StopRideMusic() override { } + void StopTitleMusic() override { } + void StopVehicleSounds() override { } + }; + + IAudioContext * CreateAudioContext() + { + return new AudioContext(); + } +} } diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index ca3247308d..a537a7195b 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -22,6 +22,7 @@ + diff --git a/src/openrct2/audio/AudioContext.h b/src/openrct2/audio/AudioContext.h new file mode 100644 index 0000000000..3f749baf79 --- /dev/null +++ b/src/openrct2/audio/AudioContext.h @@ -0,0 +1,52 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include "../common.h" + +namespace OpenRCT2 +{ + namespace Audio + { + interface IAudioChannel; + + /** + * Audio services for playing music and sound effects. + */ + interface IAudioContext + { + virtual ~IAudioContext() = default; + + virtual void StartTitleMusic() abstract; + + virtual IAudioChannel * PlaySound(sint32 soundId, sint32 volume, sint32 pan) abstract; + virtual IAudioChannel * PlaySoundAtLocation(sint32 soundId, sint16 x, sint16 y, sint16 z) abstract; + virtual IAudioChannel * PlaySoundPanned(sint32 soundId, sint32 pan, sint16 x, sint16 y, sint16 z) abstract; + + virtual void ToggleAllSounds() abstract; + virtual void PauseSounds() abstract; + virtual void UnpauseSounds() abstract; + + virtual void StopAll() abstract; + virtual void StopCrowdSound() abstract; + virtual void StopRainSound() abstract; + virtual void StopRideMusic() abstract; + virtual void StopTitleMusic() abstract; + virtual void StopVehicleSounds() abstract; + }; + } +} From d206d181f272500e59cda733ed66e651920f90aa Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 28 Mar 2017 19:58:15 +0100 Subject: [PATCH 142/670] Move audio code to UI project --- src/openrct2-dll/openrct2-dll.cpp | 8 +- src/openrct2-ui/UiContext.cpp | 2 +- src/openrct2-ui/UiContext.h | 2 +- src/openrct2-ui/audio/AudioChannel.cpp | 297 ++++++++ src/openrct2-ui/audio/AudioContext.cpp | 9 + src/openrct2-ui/audio/AudioContext.h | 44 ++ .../audio/AudioFormat.h | 57 +- src/openrct2-ui/audio/AudioMixer.cpp | 539 ++++++++++++++ src/openrct2-ui/audio/FileAudioSource.cpp | 210 ++++++ src/openrct2-ui/audio/MemoryAudioSource.cpp | 241 +++++++ src/openrct2-ui/libopenrct2ui.vcxproj | 6 + src/openrct2/Context.cpp | 20 +- src/openrct2/Context.h | 11 +- src/openrct2/audio/AudioChannel.cpp | 290 -------- src/openrct2/audio/AudioChannel.h | 96 +-- src/openrct2/audio/AudioContext.h | 12 + src/openrct2/audio/AudioMixer.cpp | 667 ++---------------- src/openrct2/audio/AudioMixer.h | 93 +-- src/openrct2/audio/AudioSource.h | 33 +- src/openrct2/audio/FileAudioSource.cpp | 204 ------ src/openrct2/audio/MemoryAudioSource.cpp | 245 ------- src/openrct2/audio/NullAudioSource.cpp | 40 +- src/openrct2/audio/audio.cpp | 11 +- src/openrct2/audio/audio.h | 16 +- src/openrct2/peep/peep.c | 28 +- src/openrct2/peep/peep.h | 1 + src/openrct2/platform/shared.c | 1 - 27 files changed, 1647 insertions(+), 1536 deletions(-) create mode 100644 src/openrct2-ui/audio/AudioChannel.cpp create mode 100644 src/openrct2-ui/audio/AudioContext.h rename src/{openrct2 => openrct2-ui}/audio/AudioFormat.h (50%) create mode 100644 src/openrct2-ui/audio/AudioMixer.cpp create mode 100644 src/openrct2-ui/audio/FileAudioSource.cpp create mode 100644 src/openrct2-ui/audio/MemoryAudioSource.cpp delete mode 100644 src/openrct2/audio/AudioChannel.cpp delete mode 100644 src/openrct2/audio/FileAudioSource.cpp delete mode 100644 src/openrct2/audio/MemoryAudioSource.cpp diff --git a/src/openrct2-dll/openrct2-dll.cpp b/src/openrct2-dll/openrct2-dll.cpp index c15683e233..83ca557473 100644 --- a/src/openrct2-dll/openrct2-dll.cpp +++ b/src/openrct2-dll/openrct2-dll.cpp @@ -20,12 +20,14 @@ #include #include #include +#include #include #include #include #include using namespace OpenRCT2; +using namespace OpenRCT2::Audio; using namespace OpenRCT2::Ui; #define DLLEXPORT extern "C" __declspec(dllexport) @@ -43,13 +45,15 @@ DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t * * argvW) return -1; } - IUiContext * uiContext = OpenRCT2::Ui::CreateContext(); - IContext * context = OpenRCT2::CreateContext(uiContext); + IAudioContext * audioContext = CreateAudioContext(); + IUiContext * uiContext = CreateUiContext(); + IContext * context = OpenRCT2::CreateContext(audioContext, uiContext); int exitCode = context->RunOpenRCT2(argc, argv); delete context; delete uiContext; + delete audioContext; FreeCommandLineArgs(argc, argv); return exitCode; diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 9126c7eb69..021ccfe29a 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -602,7 +602,7 @@ private: } }; -IUiContext * OpenRCT2::Ui::CreateContext() +IUiContext * OpenRCT2::Ui::CreateUiContext() { auto platformUiContext = std::unique_ptr(CreatePlatformUiContext()); return new UiContext(platformUiContext.get()); diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h index 7712bdf935..3d46d201bc 100644 --- a/src/openrct2-ui/UiContext.h +++ b/src/openrct2-ui/UiContext.h @@ -35,7 +35,7 @@ namespace OpenRCT2 virtual bool IsSteamOverlayAttached() abstract; }; - IUiContext * CreateContext(); + IUiContext * CreateUiContext(); IPlatformUiContext * CreatePlatformUiContext(); } } diff --git a/src/openrct2-ui/audio/AudioChannel.cpp b/src/openrct2-ui/audio/AudioChannel.cpp new file mode 100644 index 0000000000..ae2037a534 --- /dev/null +++ b/src/openrct2-ui/audio/AudioChannel.cpp @@ -0,0 +1,297 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** + * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. + * + * 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 + * + * 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. + * + * A full copy of the GNU General Public License can be found in licence.txt + *****************************************************************************/ +#pragma endregion + +#include +#include +#include +#include +#include +#include +#include +#include "AudioContext.h" +#include "AudioFormat.h" + +namespace OpenRCT2 { namespace Audio +{ + class AudioChannelImpl : public IAudioChannel + { + private: + IAudioSource * _source = nullptr; + SpeexResamplerState * _resampler = nullptr; + + sint32 _group = MIXER_GROUP_SOUND; + double _rate = 0; + uint64 _offset = 0; + sint32 _loop = 0; + + sint32 _volume = 1; + float _volume_l = 0.f; + float _volume_r = 0.f; + float _oldvolume_l = 0.f; + float _oldvolume_r = 0.f; + sint32 _oldvolume = 0; + float _pan = 0; + + bool _stopping = false; + bool _done = true; + bool _deleteondone = false; + bool _deletesourceondone = false; + + public: + AudioChannelImpl() + { + SetRate(1); + SetVolume(SDL_MIX_MAXVOLUME); + SetPan(0.5f); + } + + ~AudioChannelImpl() override + { + if (_resampler != nullptr) + { + speex_resampler_destroy(_resampler); + _resampler = nullptr; + } + if (_deletesourceondone) + { + delete _source; + } + } + + IAudioSource * GetSource() const override + { + return _source; + } + + SpeexResamplerState * GetResampler() const override + { + return _resampler; + } + + void SetResampler(SpeexResamplerState * value) override + { + _resampler = value; + } + + sint32 GetGroup() const override + { + return _group; + } + + void SetGroup(sint32 group) override + { + _group = group; + } + + double GetRate() const override + { + return _rate; + } + + void SetRate(double rate) override + { + _rate = Math::Max(0.001, rate); + } + + uint64 GetOffset() const override + { + return _offset; + } + + bool SetOffset(uint64 offset) override + { + if (_source != nullptr && offset < _source->GetLength()) + { + AudioFormat format = _source->GetFormat(); + sint32 samplesize = format.channels * format.BytesPerSample(); + _offset = (offset / samplesize) * samplesize; + return true; + } + return false; + } + + virtual sint32 GetLoop() const override + { + return _loop; + } + + virtual void SetLoop(sint32 value) override + { + _loop = value; + } + + sint32 GetVolume() const override + { + return _volume; + } + + float GetVolumeL() const override + { + return _volume_l; + } + + float GetVolumeR() const override + { + return _volume_r; + } + + float GetOldVolumeL() const override + { + return _oldvolume_l; + } + + float GetOldVolumeR() const override + { + return _oldvolume_r; + } + + sint32 GetOldVolume() const override + { + return _oldvolume; + } + + void SetVolume(sint32 volume) override + { + _volume = Math::Clamp(0, volume, SDL_MIX_MAXVOLUME); + } + + float GetPan() const override + { + return _pan; + } + + void SetPan(float pan) override + { + _pan = Math::Clamp(0.0f, pan, 1.0f); + double decibels = (std::abs(_pan - 0.5) * 2.0) * 100.0; + double attenuation = pow(10, decibels / 20.0); + if (_pan <= 0.5) + { + _volume_l = 1.0; + _volume_r = (float)(1.0 / attenuation); + } + else + { + _volume_r = 1.0; + _volume_l = (float)(1.0 / attenuation); + } + } + + bool IsStopping() const override + { + return _stopping; + } + + void SetStopping(bool value) override + { + _stopping = value; + } + + bool IsDone() const override + { + return _done; + } + + void SetDone(bool value) override + { + _done = value; + } + + bool DeleteOnDone() const override + { + return _deleteondone; + } + + void SetDeleteOnDone(bool value) override + { + _deleteondone = value; + } + + void SetDeleteSourceOnDone(bool value) override + { + _deletesourceondone = value; + } + + bool IsPlaying() const override + { + return !_done; + } + + void Play(IAudioSource * source, sint32 loop) override + { + _source = source; + _loop = loop; + _offset = 0; + _done = false; + } + + void UpdateOldVolume() override + { + _oldvolume = _volume; + _oldvolume_l = _volume_l; + _oldvolume_r = _volume_r; + } + + AudioFormat GetFormat() const override + { + AudioFormat result = { 0 }; + if (_source != nullptr) + { + result = _source->GetFormat(); + } + return result; + } + + size_t Read(void * dst, size_t len) override + { + size_t bytesRead = 0; + size_t bytesToRead = len; + while (bytesToRead > 0 && !_done) + { + size_t readLen = _source->Read(dst, _offset, bytesToRead); + if (readLen > 0) + { + dst = (void *)((uintptr_t)dst + readLen); + bytesToRead -= readLen; + bytesRead += readLen; + _offset += readLen; + } + if (_offset >= _source->GetLength()) + { + if (_loop == 0) + { + _done = true; + } + else if (_loop == MIXER_LOOP_INFINITE) + { + _offset = 0; + } + else + { + _loop--; + _offset = 0; + } + } + } + return bytesRead; + } + }; + + IAudioChannel * AudioChannel::Create() + { + return new (std::nothrow) AudioChannelImpl(); + } +} } diff --git a/src/openrct2-ui/audio/AudioContext.cpp b/src/openrct2-ui/audio/AudioContext.cpp index bc7d838940..bec4079fa6 100644 --- a/src/openrct2-ui/audio/AudioContext.cpp +++ b/src/openrct2-ui/audio/AudioContext.cpp @@ -25,6 +25,15 @@ namespace OpenRCT2 { namespace Audio { } + virtual void SetOutputDevice(const char * deviceName) override + { + } + + virtual IAudioSource * CreateStreamFromWAV(const std::string &path) override + { + return nullptr; + } + void StartTitleMusic() override { } IAudioChannel * PlaySound(sint32 soundId, sint32 volume, sint32 pan) override { return nullptr; } diff --git a/src/openrct2-ui/audio/AudioContext.h b/src/openrct2-ui/audio/AudioContext.h new file mode 100644 index 0000000000..b523e06edd --- /dev/null +++ b/src/openrct2-ui/audio/AudioContext.h @@ -0,0 +1,44 @@ + +#pragma once + +#include +#include + +namespace OpenRCT2 { namespace Audio +{ + struct AudioFormat; + interface IAudioSource; + +#pragma pack(push, 1) + struct WaveFormat + { + uint16 encoding; + uint16 channels; + uint32 frequency; + uint32 byterate; + uint16 blockalign; + uint16 bitspersample; + }; + assert_struct_size(WaveFormat, 16); + + struct WaveFormatEx + { + uint16 encoding; + uint16 channels; + uint32 frequency; + uint32 byterate; + uint16 blockalign; + uint16 bitspersample; + uint16 extrasize; + }; + assert_struct_size(WaveFormatEx, 18); +#pragma pack(pop) + + namespace AudioSource + { + IAudioSource * CreateMemoryFromCSS1(const std::string &path, size_t index, const AudioFormat * targetFormat = nullptr); + IAudioSource * CreateMemoryFromWAV(const std::string &path, const AudioFormat * targetFormat = nullptr); + IAudioSource * CreateStreamFromWAV(const std::string &path); + IAudioSource * CreateStreamFromWAV(SDL_RWops * rw); + } +} } diff --git a/src/openrct2/audio/AudioFormat.h b/src/openrct2-ui/audio/AudioFormat.h similarity index 50% rename from src/openrct2/audio/AudioFormat.h rename to src/openrct2-ui/audio/AudioFormat.h index 59f9d8bc08..fb31ab503d 100644 --- a/src/openrct2/audio/AudioFormat.h +++ b/src/openrct2-ui/audio/AudioFormat.h @@ -16,38 +16,41 @@ #pragma once -#include "../common.h" +#include #include -/** - * Represents the size, frequency and number of channels for - * an audio stream or buffer. - */ -struct AudioFormat +namespace OpenRCT2 { namespace Audio { - sint32 freq; - SDL_AudioFormat format; - sint32 channels; - - sint32 BytesPerSample() const + /** + * Represents the size, frequency and number of channels for + * an audio stream or buffer. + */ + struct AudioFormat { - return (SDL_AUDIO_BITSIZE(format)) / 8; + sint32 freq; + SDL_AudioFormat format; + sint32 channels; + + sint32 BytesPerSample() const + { + return (SDL_AUDIO_BITSIZE(format)) / 8; + } + + sint32 GetByteRate() const + { + return BytesPerSample() * channels; + } + }; + + inline bool operator ==(const AudioFormat& lhs, const AudioFormat& rhs) + { + return lhs.freq == rhs.freq && + lhs.format == rhs.format && + lhs.channels == rhs.channels; } - sint32 GetByteRate() const + inline bool operator !=(const AudioFormat& lhs, const AudioFormat& rhs) { - return BytesPerSample() * channels; + return !(lhs == rhs); } -}; - -inline bool operator ==(const AudioFormat& lhs, const AudioFormat& rhs) -{ - return lhs.freq == rhs.freq && - lhs.format == rhs.format && - lhs.channels == rhs.channels; -} - -inline bool operator !=(const AudioFormat& lhs, const AudioFormat& rhs) -{ - return !(lhs == rhs); -} +} } diff --git a/src/openrct2-ui/audio/AudioMixer.cpp b/src/openrct2-ui/audio/AudioMixer.cpp new file mode 100644 index 0000000000..075ac6a7b4 --- /dev/null +++ b/src/openrct2-ui/audio/AudioMixer.cpp @@ -0,0 +1,539 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** + * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. + * + * 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 + * + * 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. + * + * A full copy of the GNU General Public License can be found in licence.txt + *****************************************************************************/ +#pragma endregion + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "AudioContext.h" +#include "AudioFormat.h" + +extern "C" +{ + #include + #include + #include + #include + #include +} + +namespace OpenRCT2 { namespace Audio +{ + + struct Buffer + { + private: + void * _data = nullptr; + size_t _capacity = 0; + + public: + void * GetData() const { return _data; } + void * GetData() { return _data; } + size_t GetCapacity() const { return _capacity; } + + ~Buffer() + { + Free(); + } + + void Free() + { + Memory::Free(_data); + _data = nullptr; + _capacity = 0; + } + + void EnsureCapacity(size_t capacity) + { + if (_capacity < capacity) + { + _capacity = capacity; + _data = Memory::Reallocate(_data, capacity); + } + } + }; + + class AudioMixer final : public IAudioMixer + { + private: + IAudioSource * _nullSource = nullptr; + + SDL_AudioDeviceID _deviceId = 0; + AudioFormat _format = { 0 }; + std::list _channels; + float _volume = 1.0f; + float _adjustSoundVolume = 0.0f; + float _adjustMusicVolume = 0.0f; + uint8 _settingSoundVolume = 0xFF; + uint8 _settingMusicVolume = 0xFF; + + IAudioSource * _css1Sources[SOUND_MAXID] = { nullptr }; + IAudioSource * _musicSources[PATH_ID_END] = { nullptr }; + + Buffer _channelBuffer; + Buffer _convertBuffer; + Buffer _effectBuffer; + + public: + AudioMixer() + { + _nullSource = AudioSource::CreateNull(); + } + + ~AudioMixer() + { + Close(); + delete _nullSource; + } + + void Init(const char* device) override + { + Close(); + + SDL_AudioSpec want = { 0 }; + want.freq = 44100; + want.format = AUDIO_S16SYS; + want.channels = 2; + want.samples = 1024; + want.callback = [](void * arg, uint8 * dst, sint32 length) -> void + { + auto mixer = static_cast(arg); + mixer->GetNextAudioChunk(dst, (size_t)length); + }; + want.userdata = this; + + SDL_AudioSpec have; + _deviceId = SDL_OpenAudioDevice(device, 0, &want, &have, 0); + _format.format = have.format; + _format.channels = have.channels; + _format.freq = have.freq; + + LoadAllSounds(); + + SDL_PauseAudioDevice(_deviceId, 0); + } + + void Close() override + { + // Free channels + Lock(); + for (IAudioChannel * channel : _channels) + { + delete channel; + } + _channels.clear(); + Unlock(); + + SDL_CloseAudioDevice(_deviceId); + + // Free sources + for (size_t i = 0; i < Util::CountOf(_css1Sources); i++) + { + if (_css1Sources[i] != _nullSource) + { + SafeDelete(_css1Sources[i]); + } + } + for (size_t i = 0; i < Util::CountOf(_musicSources); i++) + { + if (_musicSources[i] != _nullSource) + { + SafeDelete(_musicSources[i]); + } + } + + // Free buffers + _channelBuffer.Free(); + _convertBuffer.Free(); + _effectBuffer.Free(); + } + + void Lock() override + { + SDL_LockAudioDevice(_deviceId); + } + + void Unlock() override + { + SDL_UnlockAudioDevice(_deviceId); + } + + IAudioChannel * Play(IAudioSource * source, sint32 loop, bool deleteondone, bool deletesourceondone) override + { + Lock(); + IAudioChannel * channel = AudioChannel::Create(); + if (channel != nullptr) + { + channel->Play(source, loop); + channel->SetDeleteOnDone(deleteondone); + channel->SetDeleteSourceOnDone(deletesourceondone); + _channels.push_back(channel); + } + Unlock(); + return channel; + } + + void Stop(IAudioChannel * channel) override + { + Lock(); + channel->SetStopping(true); + Unlock(); + } + + bool LoadMusic(size_t pathId) override + { + bool result = false; + if (pathId < Util::CountOf(_musicSources)) + { + IAudioSource * source = _musicSources[pathId]; + if (source == nullptr) + { + const utf8 * path = get_file_path((sint32)pathId); + source = AudioSource::CreateMemoryFromWAV(path, &_format); + if (source == nullptr) + { + source = _nullSource; + } + _musicSources[pathId] = source; + } + result = source != _nullSource; + } + return result; + } + + void SetVolume(float volume) override + { + _volume = volume; + } + + IAudioSource * GetSoundSource(sint32 id) override + { + return _css1Sources[id]; + } + + IAudioSource * GetMusicSource(sint32 id) override + { + return _musicSources[id]; + } + + private: + void LoadAllSounds() + { + const utf8 * css1Path = get_file_path(PATH_ID_CSS1); + for (size_t i = 0; i < Util::CountOf(_css1Sources); i++) + { + auto source = AudioSource::CreateMemoryFromCSS1(css1Path, i, &_format); + if (source == nullptr) + { + source = _nullSource; + } + _css1Sources[i] = source; + } + } + + void GetNextAudioChunk(uint8 * dst, size_t length) + { + UpdateAdjustedSound(); + + // Zero the output buffer + Memory::Set(dst, 0, length); + + // Mix channels onto output buffer + std::list::iterator it = _channels.begin(); + while (it != _channels.end()) + { + IAudioChannel * channel = *it; + + sint32 group = channel->GetGroup(); + if (group != MIXER_GROUP_SOUND || gConfigSound.sound_enabled) + { + MixChannel(channel, dst, length); + } + if ((channel->IsDone() && channel->DeleteOnDone()) || channel->IsStopping()) + { + delete channel; + it = _channels.erase(it); + } + else + { + it++; + } + } + } + + void UpdateAdjustedSound() + { + // Did the volume level get changed? Recalculate level in this case. + if (_settingSoundVolume != gConfigSound.sound_volume) + { + _settingSoundVolume = gConfigSound.sound_volume; + _adjustSoundVolume = powf(_settingSoundVolume / 100.f, 10.f / 6.f); + } + if (_settingMusicVolume != gConfigSound.ride_music_volume) + { + _settingMusicVolume = gConfigSound.ride_music_volume; + _adjustMusicVolume = powf(_settingMusicVolume / 100.f, 10.f / 6.f); + } + } + + void MixChannel(IAudioChannel * channel, uint8 * data, size_t length) + { + sint32 byteRate = _format.GetByteRate(); + sint32 numSamples = (sint32)(length / byteRate); + double rate = 1; + if (_format.format == AUDIO_S16SYS) + { + rate = channel->GetRate(); + } + + bool mustConvert = false; + SDL_AudioCVT cvt; + cvt.len_ratio = 1; + AudioFormat streamformat = channel->GetFormat(); + if (streamformat != _format) + { + if (SDL_BuildAudioCVT(&cvt, streamformat.format, streamformat.channels, streamformat.freq, _format.format, _format.channels, _format.freq) == -1) + { + // Unable to convert channel data + return; + } + mustConvert = true; + } + + // Read raw PCM from channel + sint32 readSamples = (sint32)(numSamples * rate); + size_t readLength = (size_t)(readSamples / cvt.len_ratio) * byteRate; + _channelBuffer.EnsureCapacity(readLength); + size_t bytesRead = channel->Read(_channelBuffer.GetData(), readLength); + + // Convert data to required format if necessary + void * buffer = nullptr; + size_t bufferLen = 0; + if (mustConvert) + { + if (Convert(&cvt, _channelBuffer.GetData(), bytesRead)) + { + buffer = cvt.buf; + bufferLen = cvt.len_cvt; + } + else + { + return; + } + } + else + { + buffer = _channelBuffer.GetData(); + bufferLen = bytesRead; + } + + // Apply effects + if (rate != 1) + { + sint32 srcSamples = (sint32)(bufferLen / byteRate); + sint32 dstSamples = numSamples; + bufferLen = ApplyResample(channel, buffer, srcSamples, dstSamples); + buffer = _effectBuffer.GetData(); + } + + // Apply panning and volume + ApplyPan(channel, buffer, bufferLen, byteRate); + sint32 mixVolume = ApplyVolume(channel, buffer, bufferLen); + + // Finally mix on to destination buffer + size_t dstLength = Math::Min(length, bufferLen); + SDL_MixAudioFormat(data, (const uint8 *)buffer, _format.format, (uint32)dstLength, mixVolume); + + channel->UpdateOldVolume(); + } + + /** + * Resample the given buffer into _effectBuffer. + * Assumes that srcBuffer is the same format as _format. + */ + size_t ApplyResample(IAudioChannel * channel, const void * srcBuffer, sint32 srcSamples, sint32 dstSamples) + { + sint32 byteRate = _format.GetByteRate(); + + // Create resampler + SpeexResamplerState * resampler = channel->GetResampler(); + if (resampler == nullptr) + { + resampler = speex_resampler_init(_format.channels, _format.freq, _format.freq, 0, 0); + channel->SetResampler(resampler); + } + speex_resampler_set_rate(resampler, srcSamples, dstSamples); + + // Ensure destination buffer is large enough + size_t effectBufferReqLen = dstSamples * byteRate; + _effectBuffer.EnsureCapacity(effectBufferReqLen); + + uint32 inLen = srcSamples; + uint32 outLen = dstSamples; + speex_resampler_process_interleaved_int( + resampler, + (const spx_int16_t *)srcBuffer, + &inLen, + (spx_int16_t *)_effectBuffer.GetData(), + &outLen); + + return outLen * byteRate; + } + + void ApplyPan(const IAudioChannel * channel, void * buffer, size_t len, size_t sampleSize) + { + if (channel->GetPan() != 0.5f && _format.channels == 2) + { + switch (_format.format) { + case AUDIO_S16SYS: + EffectPanS16(channel, (sint16 *)buffer, (sint32)(len / sampleSize)); + break; + case AUDIO_U8: + EffectPanU8(channel, (uint8 *)buffer, (sint32)(len / sampleSize)); + break; + } + } + } + + sint32 ApplyVolume(const IAudioChannel * channel, void * buffer, size_t len) + { + float volumeAdjust = _volume; + volumeAdjust *= (gConfigSound.master_volume / 100.0f); + switch (channel->GetGroup()) { + case MIXER_GROUP_SOUND: + volumeAdjust *= _adjustSoundVolume; + + // Cap sound volume on title screen so music is more audible + if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) + { + volumeAdjust = Math::Min(volumeAdjust, 0.75f); + } + break; + case MIXER_GROUP_RIDE_MUSIC: + volumeAdjust *= _adjustMusicVolume; + break; + } + + sint32 startVolume = (sint32)(channel->GetOldVolume() * volumeAdjust); + sint32 endVolume = (sint32)(channel->GetVolume() * volumeAdjust); + if (channel->IsStopping()) + { + endVolume = 0; + } + + sint32 mixVolume = (sint32)(channel->GetVolume() * volumeAdjust); + if (startVolume != endVolume) + { + // Set to max since we are adjusting the volume ourselves + mixVolume = SDL_MIX_MAXVOLUME; + + // Fade between volume levels to smooth out sound and minimize clicks from sudden volume changes + sint32 fadeLength = (sint32)len / _format.BytesPerSample(); + switch (_format.format) { + case AUDIO_S16SYS: + EffectFadeS16((sint16 *)buffer, fadeLength, startVolume, endVolume); + break; + case AUDIO_U8: + EffectFadeU8((uint8 *)buffer, fadeLength, startVolume, endVolume); + break; + } + } + return mixVolume; + } + + static void EffectPanS16(const IAudioChannel * channel, sint16 * data, sint32 length) + { + const float dt = 1.0f / (length * 2); + float volumeL = channel->GetOldVolumeL(); + float volumeR = channel->GetOldVolumeR(); + const float d_left = dt * (channel->GetVolumeL() - channel->GetOldVolumeL()); + const float d_right = dt * (channel->GetVolumeR() - channel->GetOldVolumeR()); + + for (sint32 i = 0; i < length * 2; i += 2) + { + data[i] = (sint16)(data[i] * volumeL); + data[i + 1] = (sint16)(data[i + 1] * volumeR); + volumeL += d_left; + volumeR += d_right; + } + } + + static void EffectPanU8(const IAudioChannel * channel, uint8 * data, sint32 length) + { + float volumeL = channel->GetVolumeL(); + float volumeR = channel->GetVolumeR(); + float oldVolumeL = channel->GetOldVolumeL(); + float oldVolumeR = channel->GetOldVolumeR(); + + for (sint32 i = 0; i < length * 2; i += 2) + { + float t = (float)i / (length * 2); + data[i] = (uint8)(data[i] * ((1.0 - t) * oldVolumeL + t * volumeL)); + data[i + 1] = (uint8)(data[i + 1] * ((1.0 - t) * oldVolumeR + t * volumeR)); + } + } + + static void EffectFadeS16(sint16 * data, sint32 length, sint32 startvolume, sint32 endvolume) + { + float startvolume_f = (float)startvolume / SDL_MIX_MAXVOLUME; + float endvolume_f = (float)endvolume / SDL_MIX_MAXVOLUME; + for (sint32 i = 0; i < length; i++) + { + float t = (float)i / length; + data[i] = (sint16)(data[i] * ((1 - t) * startvolume_f + t * endvolume_f)); + } + } + + static void EffectFadeU8(uint8* data, sint32 length, sint32 startvolume, sint32 endvolume) + { + float startvolume_f = (float)startvolume / SDL_MIX_MAXVOLUME; + float endvolume_f = (float)endvolume / SDL_MIX_MAXVOLUME; + for (sint32 i = 0; i < length; i++) + { + float t = (float)i / length; + data[i] = (uint8)(data[i] * ((1 - t) * startvolume_f + t * endvolume_f)); + } + } + + bool Convert(SDL_AudioCVT * cvt, const void * src, size_t len) + { + // tofix: there seems to be an issue with converting audio using SDL_ConvertAudio in the callback vs preconverted, can cause pops and static depending on sample rate and channels + bool result = false; + if (len != 0 && cvt->len_mult != 0) + { + size_t reqConvertBufferCapacity = len * cvt->len_mult; + _convertBuffer.EnsureCapacity(reqConvertBufferCapacity); + Memory::Copy(_convertBuffer.GetData(), src, len); + + cvt->len = (sint32)len; + cvt->buf = (uint8 *)_convertBuffer.GetData(); + if (SDL_ConvertAudio(cvt) >= 0) + { + result = true; + } + } + return result; + } + }; +} } diff --git a/src/openrct2-ui/audio/FileAudioSource.cpp b/src/openrct2-ui/audio/FileAudioSource.cpp new file mode 100644 index 0000000000..70ce35f0d1 --- /dev/null +++ b/src/openrct2-ui/audio/FileAudioSource.cpp @@ -0,0 +1,210 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** + * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. + * + * 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 + * + * 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. + * + * A full copy of the GNU General Public License can be found in licence.txt + *****************************************************************************/ +#pragma endregion + +#include +#include +#include +#include +#include "AudioContext.h" +#include "AudioFormat.h" + +namespace OpenRCT2 { namespace Audio +{ + /** + * An audio source where raw PCM data is streamed directly from + * a file. + */ + class FileAudioSource final : public IAudioSource + { + private: + AudioFormat _format = { 0 }; + SDL_RWops * _rw = nullptr; + uint64 _dataBegin = 0; + uint64 _dataLength = 0; + + public: + ~FileAudioSource() + { + Unload(); + } + + uint64 GetLength() override + { + return _dataLength; + } + + AudioFormat GetFormat() override + { + return _format; + } + + size_t Read(void * dst, uint64 offset, size_t len) override + { + size_t bytesRead = 0; + sint64 currentPosition = SDL_RWtell(_rw); + if (currentPosition != -1) + { + size_t bytesToRead = (size_t)Math::Min(len, _dataLength - offset); + sint64 dataOffset = _dataBegin + offset; + if (currentPosition != dataOffset) + { + sint64 newPosition = SDL_RWseek(_rw, dataOffset, SEEK_SET); + if (newPosition == -1) + { + return 0; + } + } + bytesRead = SDL_RWread(_rw, dst, 1, bytesToRead); + } + return bytesRead; + } + + bool LoadWAV(SDL_RWops * rw) + { + const uint32 DATA = 0x61746164; + const uint32 FMT = 0x20746D66; + const uint32 RIFF = 0x46464952; + const uint32 WAVE = 0x45564157; + const uint16 pcmformat = 0x0001; + + Unload(); + + if (rw == nullptr) + { + return false; + } + _rw = rw; + + uint32 chunkId = SDL_ReadLE32(rw); + if (chunkId != RIFF) + { + log_verbose("Not a WAV file"); + return false; + } + + // Read and discard chunk size + SDL_ReadLE32(rw); + uint32 chunkFormat = SDL_ReadLE32(rw); + if (chunkFormat != WAVE) + { + log_verbose("Not in WAVE format"); + return false; + } + + uint32 fmtChunkSize = FindChunk(rw, FMT); + if (!fmtChunkSize) + { + log_verbose("Could not find FMT chunk"); + return false; + } + + uint64 chunkStart = SDL_RWtell(rw); + + WaveFormat waveFormat; + SDL_RWread(rw, &waveFormat, sizeof(waveFormat), 1); + SDL_RWseek(rw, chunkStart + fmtChunkSize, RW_SEEK_SET); + if (waveFormat.encoding != pcmformat) { + log_verbose("Not in proper format"); + return false; + } + + _format.freq = waveFormat.frequency; + switch (waveFormat.bitspersample) { + case 8: + _format.format = AUDIO_U8; + break; + case 16: + _format.format = AUDIO_S16LSB; + break; + default: + log_verbose("Invalid bits per sample"); + return false; + break; + } + _format.channels = waveFormat.channels; + + uint32 dataChunkSize = FindChunk(rw, DATA); + if (dataChunkSize == 0) + { + log_verbose("Could not find DATA chunk"); + return false; + } + + _dataLength = dataChunkSize; + _dataBegin = SDL_RWtell(rw); + return true; + } + + private: + uint32 FindChunk(SDL_RWops * rw, uint32 wantedId) + { + uint32 subchunkId = SDL_ReadLE32(rw); + uint32 subchunkSize = SDL_ReadLE32(rw); + if (subchunkId == wantedId) + { + return subchunkSize; + } + const uint32 FACT = 0x74636166; + const uint32 LIST = 0x5453494c; + const uint32 BEXT = 0x74786562; + const uint32 JUNK = 0x4B4E554A; + while (subchunkId == FACT || subchunkId == LIST || subchunkId == BEXT || subchunkId == JUNK) + { + SDL_RWseek(rw, subchunkSize, RW_SEEK_CUR); + subchunkId = SDL_ReadLE32(rw); + subchunkSize = SDL_ReadLE32(rw); + if (subchunkId == wantedId) + { + return subchunkSize; + } + } + return 0; + } + + void Unload() + { + if (_rw != nullptr) + { + SDL_RWclose(_rw); + _rw = nullptr; + } + _dataBegin = 0; + _dataLength = 0; + } + }; + + IAudioSource * AudioSource::CreateStreamFromWAV(const std::string &path) + { + IAudioSource * source = nullptr; + SDL_RWops* rw = SDL_RWFromFile(path.c_str(), "rb"); + if (rw != nullptr) + { + return AudioSource::CreateStreamFromWAV(rw); + } + return source; + } + + IAudioSource * AudioSource::CreateStreamFromWAV(SDL_RWops * rw) + { + auto source = new FileAudioSource(); + if (!source->LoadWAV(rw)) + { + delete source; + source = nullptr; + } + return source; + } +} } diff --git a/src/openrct2-ui/audio/MemoryAudioSource.cpp b/src/openrct2-ui/audio/MemoryAudioSource.cpp new file mode 100644 index 0000000000..efe3d6cc3d --- /dev/null +++ b/src/openrct2-ui/audio/MemoryAudioSource.cpp @@ -0,0 +1,241 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** + * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. + * + * 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 + * + * 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. + * + * A full copy of the GNU General Public License can be found in licence.txt + *****************************************************************************/ +#pragma endregion + +#include +#include +#include +#include +#include +#include +#include "AudioContext.h" +#include "AudioFormat.h" + +namespace OpenRCT2 { namespace Audio +{ + /** + * An audio source where raw PCM data is initially loaded into RAM from + * a file and then streamed. + */ + class MemoryAudioSource final : public IAudioSource + { + private: + AudioFormat _format = { 0 }; + uint8 * _data = nullptr; + size_t _length = 0; + bool _isSDLWav = false; + + public: + ~MemoryAudioSource() + { + Unload(); + } + + uint64 GetLength() override + { + return _length; + } + + AudioFormat GetFormat() override + { + return _format; + } + + size_t Read(void * dst, uint64 offset, size_t len) override + { + size_t bytesToRead = 0; + if (offset < _length) + { + bytesToRead = (size_t)Math::Min(len, _length - offset); + Memory::Copy(dst, _data + offset, bytesToRead); + } + return bytesToRead; + } + + bool LoadWAV(const utf8 * path) + { + log_verbose("MemoryAudioSource::LoadWAV(%s)", path); + + Unload(); + + bool result = false; + SDL_RWops * rw = SDL_RWFromFile(path, "rb"); + if (rw != nullptr) + { + SDL_AudioSpec audiospec = { 0 }; + uint32 audioLen; + SDL_AudioSpec * spec = SDL_LoadWAV_RW(rw, false, &audiospec, &_data, &audioLen); + if (spec != nullptr) + { + _format.freq = spec->freq; + _format.format = spec->format; + _format.channels = spec->channels; + _length = audioLen; + _isSDLWav = true; + result = true; + } + else + { + log_verbose("Error loading %s, unsupported WAV format", path); + } + SDL_RWclose(rw); + } + else + { + log_verbose("Error loading %s", path); + } + return result; + } + + bool LoadCSS1(const utf8 * path, size_t index) + { + log_verbose("MemoryAudioSource::LoadCSS1(%s, %d)", path, index); + + Unload(); + + bool result = false; + SDL_RWops * rw = SDL_RWFromFile(path, "rb"); + if (rw != nullptr) + { + uint32 numSounds; + SDL_RWread(rw, &numSounds, sizeof(numSounds), 1); + if (index < numSounds) + { + SDL_RWseek(rw, index * 4, RW_SEEK_CUR); + + uint32 pcmOffset; + SDL_RWread(rw, &pcmOffset, sizeof(pcmOffset), 1); + SDL_RWseek(rw, pcmOffset, RW_SEEK_SET); + + uint32 pcmSize; + SDL_RWread(rw, &pcmSize, sizeof(pcmSize), 1); + _length = pcmSize; + + WaveFormatEx waveFormat; + SDL_RWread(rw, &waveFormat, sizeof(waveFormat), 1); + _format.freq = waveFormat.frequency; + _format.format = AUDIO_S16LSB; + _format.channels = waveFormat.channels; + + _data = new (std::nothrow) uint8[_length]; + if (_data != nullptr) + { + SDL_RWread(rw, _data, _length, 1); + result = true; + } + else + { + log_verbose("Unable to allocate data"); + } + } + SDL_RWclose(rw); + } + else + { + log_verbose("Unable to load %s", path); + } + return result; + } + + bool Convert(const AudioFormat * format) + { + if (*format != _format) + { + SDL_AudioCVT cvt; + if (SDL_BuildAudioCVT(&cvt, _format.format, _format.channels, _format.freq, format->format, format->channels, format->freq) >= 0) + { + cvt.len = (sint32)_length; + cvt.buf = new uint8[cvt.len * cvt.len_mult]; + Memory::Copy(cvt.buf, _data, _length); + if (SDL_ConvertAudio(&cvt) >= 0) + { + Unload(); + _data = cvt.buf; + _length = cvt.len_cvt; + _format = *format; + return true; + } + else + { + delete[] cvt.buf; + } + } + } + return false; + } + + private: + void Unload() + { + if (_data != nullptr) + { + if (_isSDLWav) + { + SDL_FreeWAV(_data); + } + else + { + delete[] _data; + } + _data = nullptr; + } + _isSDLWav = false; + _length = 0; + } + }; + + IAudioSource * AudioSource::CreateMemoryFromCSS1(const std::string &path, size_t index, const AudioFormat * targetFormat) + { + auto source = new MemoryAudioSource(); + if (source->LoadCSS1(path.c_str(), index)) + { + if (targetFormat != nullptr) + { + if (!source->Convert(targetFormat)) + { + delete source; + source = nullptr; + } + } + } + else + { + delete source; + source = nullptr; + } + return source; + } + + IAudioSource * AudioSource::CreateMemoryFromWAV(const std::string &path, const AudioFormat * targetFormat) + { + auto source = new MemoryAudioSource(); + if (source->LoadWAV(path.c_str())) + { + if (targetFormat != nullptr) + { + if (!source->Convert(targetFormat)) + { + SafeDelete(source); + } + } + } + else + { + delete source; + source = nullptr; + } + return source; + } +} } diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index a537a7195b..709b590cbc 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -22,7 +22,11 @@ + + + + @@ -42,6 +46,8 @@ + + diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index f8065494ba..2670be1938 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -55,6 +55,7 @@ extern "C" } using namespace OpenRCT2; +using namespace OpenRCT2::Audio; using namespace OpenRCT2::Ui; namespace OpenRCT2 @@ -66,7 +67,8 @@ namespace OpenRCT2 constexpr static uint32 UPDATE_TIME_MS = 25; // Dependencies - IUiContext * const _uiContext = nullptr; + IAudioContext * const _audioContext = nullptr; + IUiContext * const _uiContext = nullptr; // Services IPlatformEnvironment * _env = nullptr; @@ -89,8 +91,9 @@ namespace OpenRCT2 static Context * Instance; public: - Context(IUiContext * uiContext) - : _uiContext(uiContext) + Context(IAudioContext * audioContext, IUiContext * uiContext) + : _audioContext(audioContext), + _uiContext(uiContext) { Instance = this; } @@ -110,6 +113,11 @@ namespace OpenRCT2 Instance = nullptr; } + IAudioContext * GetAudioContext() override + { + return _audioContext; + } + IUiContext * GetUiContext() override { return _uiContext; @@ -556,12 +564,12 @@ namespace OpenRCT2 IContext * CreateContext() { - return new Context(nullptr); + return new Context(nullptr, nullptr); } - IContext * CreateContext(IUiContext * uiContext) + IContext * CreateContext(Audio::IAudioContext * audioContext, IUiContext * uiContext) { - return new Context(uiContext); + return new Context(audioContext, uiContext); } IContext * GetContext() diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 219a52265f..a238343370 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -57,6 +57,11 @@ enum namespace OpenRCT2 { + namespace Audio + { + interface IAudioContext; + } + namespace Ui { interface IUiContext; @@ -69,13 +74,15 @@ namespace OpenRCT2 { virtual ~IContext() = default; - virtual Ui::IUiContext * GetUiContext() abstract; + virtual Audio::IAudioContext * GetAudioContext() abstract; + virtual Ui::IUiContext * GetUiContext() abstract; + virtual sint32 RunOpenRCT2(int argc, char * * argv) abstract; virtual void Finish() abstract; }; IContext * CreateContext(); - IContext * CreateContext(Ui::IUiContext * uiContext); + IContext * CreateContext(Audio::IAudioContext * audioContext, Ui::IUiContext * uiContext); IContext * GetContext(); } diff --git a/src/openrct2/audio/AudioChannel.cpp b/src/openrct2/audio/AudioChannel.cpp deleted file mode 100644 index 1faac86448..0000000000 --- a/src/openrct2/audio/AudioChannel.cpp +++ /dev/null @@ -1,290 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#include -#include -#include "../core/Math.hpp" -#include "AudioChannel.h" -#include "AudioSource.h" - -class AudioChannelImpl : public IAudioChannel -{ -private: - IAudioSource * _source = nullptr; - SpeexResamplerState * _resampler = nullptr; - - sint32 _group = MIXER_GROUP_SOUND; - double _rate = 0; - uint64 _offset = 0; - sint32 _loop = 0; - - sint32 _volume = 1; - float _volume_l = 0.f; - float _volume_r = 0.f; - float _oldvolume_l = 0.f; - float _oldvolume_r = 0.f; - sint32 _oldvolume = 0; - float _pan = 0; - - bool _stopping = false; - bool _done = true; - bool _deleteondone = false; - bool _deletesourceondone = false; - -public: - AudioChannelImpl() - { - SetRate(1); - SetVolume(SDL_MIX_MAXVOLUME); - SetPan(0.5f); - } - - ~AudioChannelImpl() override - { - if (_resampler != nullptr) - { - speex_resampler_destroy(_resampler); - _resampler = nullptr; - } - if (_deletesourceondone) - { - delete _source; - } - } - - IAudioSource * GetSource() const override - { - return _source; - } - - SpeexResamplerState * GetResampler() const override - { - return _resampler; - } - - void SetResampler(SpeexResamplerState * value) override - { - _resampler = value; - } - - sint32 GetGroup() const override - { - return _group; - } - - void SetGroup(sint32 group) override - { - _group = group; - } - - double GetRate() const override - { - return _rate; - } - - void SetRate(double rate) override - { - _rate = Math::Max(0.001, rate); - } - - uint64 GetOffset() const override - { - return _offset; - } - - bool SetOffset(uint64 offset) override - { - if (_source != nullptr && offset < _source->GetLength()) - { - AudioFormat format = _source->GetFormat(); - sint32 samplesize = format.channels * format.BytesPerSample(); - _offset = (offset / samplesize) * samplesize; - return true; - } - return false; - } - - virtual sint32 GetLoop() const override - { - return _loop; - } - - virtual void SetLoop(sint32 value) override - { - _loop = value; - } - - sint32 GetVolume() const override - { - return _volume; - } - - float GetVolumeL() const override - { - return _volume_l; - } - - float GetVolumeR() const override - { - return _volume_r; - } - - float GetOldVolumeL() const override - { - return _oldvolume_l; - } - - float GetOldVolumeR() const override - { - return _oldvolume_r; - } - - sint32 GetOldVolume() const override - { - return _oldvolume; - } - - void SetVolume(sint32 volume) override - { - _volume = Math::Clamp(0, volume, SDL_MIX_MAXVOLUME); - } - - float GetPan() const override - { - return _pan; - } - - void SetPan(float pan) override - { - _pan = Math::Clamp(0.0f, pan, 1.0f); - double decibels = (std::abs(_pan - 0.5) * 2.0) * 100.0; - double attenuation = pow(10, decibels / 20.0); - if (_pan <= 0.5) - { - _volume_l = 1.0; - _volume_r = (float)(1.0 / attenuation); - } - else - { - _volume_r = 1.0; - _volume_l = (float)(1.0 / attenuation); - } - } - - bool IsStopping() const override - { - return _stopping; - } - - void SetStopping(bool value) override - { - _stopping = value; - } - - bool IsDone() const override - { - return _done; - } - - void SetDone(bool value) override - { - _done = value; - } - - bool DeleteOnDone() const override - { - return _deleteondone; - } - - void SetDeleteOnDone(bool value) override - { - _deleteondone = value; - } - - void SetDeleteSourceOnDone(bool value) override - { - _deletesourceondone = value; - } - - bool IsPlaying() const override - { - return !_done; - } - - void Play(IAudioSource * source, sint32 loop) override - { - _source = source; - _loop = loop; - _offset = 0; - _done = false; - } - - void UpdateOldVolume() override - { - _oldvolume = _volume; - _oldvolume_l = _volume_l; - _oldvolume_r = _volume_r; - } - - AudioFormat GetFormat() const override - { - AudioFormat result = { 0 }; - if (_source != nullptr) - { - result = _source->GetFormat(); - } - return result; - } - - size_t Read(void * dst, size_t len) override - { - size_t bytesRead = 0; - size_t bytesToRead = len; - while (bytesToRead > 0 && !_done) - { - size_t readLen = _source->Read(dst, _offset, bytesToRead); - if (readLen > 0) - { - dst = (void *)((uintptr_t)dst + readLen); - bytesToRead -= readLen; - bytesRead += readLen; - _offset += readLen; - } - if (_offset >= _source->GetLength()) - { - if (_loop == 0) - { - _done = true; - } - else if (_loop == MIXER_LOOP_INFINITE) - { - _offset = 0; - } - else - { - _loop--; - _offset = 0; - } - } - } - return bytesRead; - } -}; - -IAudioChannel * AudioChannel::Create() -{ - return new (std::nothrow) AudioChannelImpl(); -} diff --git a/src/openrct2/audio/AudioChannel.h b/src/openrct2/audio/AudioChannel.h index b185bf1382..3c1c2ef3df 100644 --- a/src/openrct2/audio/AudioChannel.h +++ b/src/openrct2/audio/AudioChannel.h @@ -16,70 +16,70 @@ #pragma once -#include #include "../common.h" -#include "AudioFormat.h" -#include "AudioMixer.h" -interface IAudioSource; - -/** - * Represents an audio channel that represents an audio source - * and a number of properties such as volume, pan and loop information. - */ -interface IAudioChannel +namespace OpenRCT2 { namespace Audio { - virtual ~IAudioChannel() = default; + interface IAudioSource; - virtual IAudioSource * GetSource() const abstract; + /** + * Represents an audio channel that represents an audio source + * and a number of properties such as volume, pan and loop information. + */ + interface IAudioChannel + { + virtual ~IAudioChannel() = default; - virtual SpeexResamplerState * GetResampler() const abstract; - virtual void SetResampler(SpeexResamplerState * value) abstract; + virtual IAudioSource * GetSource() const abstract; - virtual sint32 GetGroup() const abstract; - virtual void SetGroup(sint32 group) abstract; + // virtual SpeexResamplerState * GetResampler() const abstract; + // virtual void SetResampler(SpeexResamplerState * value) abstract; - virtual double GetRate() const abstract; - virtual void SetRate(double rate) abstract; + virtual sint32 GetGroup() const abstract; + virtual void SetGroup(sint32 group) abstract; - virtual uint64 GetOffset() const abstract; - virtual bool SetOffset(uint64 offset) abstract; + virtual double GetRate() const abstract; + virtual void SetRate(double rate) abstract; - virtual sint32 GetLoop() const abstract; - virtual void SetLoop(sint32 value) abstract; + virtual uint64 GetOffset() const abstract; + virtual bool SetOffset(uint64 offset) abstract; - virtual sint32 GetVolume() const abstract; - virtual float GetVolumeL() const abstract; - virtual float GetVolumeR() const abstract; - virtual float GetOldVolumeL() const abstract; - virtual float GetOldVolumeR() const abstract; - virtual sint32 GetOldVolume() const abstract; - virtual void SetVolume(sint32 volume) abstract; + virtual sint32 GetLoop() const abstract; + virtual void SetLoop(sint32 value) abstract; - virtual float GetPan() const abstract; - virtual void SetPan(float pan) abstract; + virtual sint32 GetVolume() const abstract; + virtual float GetVolumeL() const abstract; + virtual float GetVolumeR() const abstract; + virtual float GetOldVolumeL() const abstract; + virtual float GetOldVolumeR() const abstract; + virtual sint32 GetOldVolume() const abstract; + virtual void SetVolume(sint32 volume) abstract; - virtual bool IsStopping() const abstract; - virtual void SetStopping(bool value) abstract; + virtual float GetPan() const abstract; + virtual void SetPan(float pan) abstract; - virtual bool IsDone() const abstract; - virtual void SetDone(bool value) abstract; + virtual bool IsStopping() const abstract; + virtual void SetStopping(bool value) abstract; - virtual bool DeleteOnDone() const abstract; - virtual void SetDeleteOnDone(bool value) abstract; + virtual bool IsDone() const abstract; + virtual void SetDone(bool value) abstract; - virtual void SetDeleteSourceOnDone(bool value) abstract; + virtual bool DeleteOnDone() const abstract; + virtual void SetDeleteOnDone(bool value) abstract; - virtual bool IsPlaying() const abstract; + virtual void SetDeleteSourceOnDone(bool value) abstract; - virtual void Play(IAudioSource * source, sint32 loop = MIXER_LOOP_NONE) abstract; - virtual void UpdateOldVolume() abstract; + virtual bool IsPlaying() const abstract; - virtual AudioFormat GetFormat() const abstract; - virtual size_t Read(void * dst, size_t len) abstract; -}; + virtual void Play(IAudioSource * source, sint32 loop = 0) abstract; + virtual void UpdateOldVolume() abstract; -namespace AudioChannel -{ - IAudioChannel * Create(); -} + // virtual AudioFormat GetFormat() const abstract; + virtual size_t Read(void * dst, size_t len) abstract; + }; + + namespace AudioChannel + { + IAudioChannel * Create(); + } +} } diff --git a/src/openrct2/audio/AudioContext.h b/src/openrct2/audio/AudioContext.h index 3f749baf79..45f5ad10d7 100644 --- a/src/openrct2/audio/AudioContext.h +++ b/src/openrct2/audio/AudioContext.h @@ -16,6 +16,7 @@ #pragma once +#include #include "../common.h" namespace OpenRCT2 @@ -23,6 +24,8 @@ namespace OpenRCT2 namespace Audio { interface IAudioChannel; + interface IAudioMixer; + interface IAudioSource; /** * Audio services for playing music and sound effects. @@ -31,6 +34,13 @@ namespace OpenRCT2 { virtual ~IAudioContext() = default; + virtual IAudioMixer * GetMixer() abstract; + + virtual void SetOutputDevice(const char * deviceName) abstract; + + virtual IAudioSource * CreateStreamFromWAV(const std::string &path) abstract; + + virtual void StartTitleMusic() abstract; virtual IAudioChannel * PlaySound(sint32 soundId, sint32 volume, sint32 pan) abstract; @@ -48,5 +58,7 @@ namespace OpenRCT2 virtual void StopTitleMusic() abstract; virtual void StopVehicleSounds() abstract; }; + + IAudioContext * CreateAudioContext(); } } diff --git a/src/openrct2/audio/AudioMixer.cpp b/src/openrct2/audio/AudioMixer.cpp index 72453547ed..7fcbe7355e 100644 --- a/src/openrct2/audio/AudioMixer.cpp +++ b/src/openrct2/audio/AudioMixer.cpp @@ -1,549 +1,53 @@ #pragma region Copyright (c) 2014-2016 OpenRCT2 Developers /***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ #pragma endregion -#include -#include "../core/Guard.hpp" -#include "../core/Math.hpp" -#include "../core/Memory.hpp" -#include "../core/Util.hpp" +#include "../config/Config.h" +#include "../Context.h" +#include "audio.h" #include "AudioChannel.h" +#include "AudioContext.h" #include "AudioMixer.h" #include "AudioSource.h" extern "C" { - #include "../config/Config.h" - #include "../localisation/localisation.h" - #include "../OpenRCT2.h" - #include "../platform/platform.h" #include "../rct2.h" - #include "audio.h" } -IAudioMixer * gMixer; +#define SDL_MIX_MAXVOLUME 128 -struct Buffer +using namespace OpenRCT2; +using namespace OpenRCT2::Audio; + +static IAudioMixer * GetMixer() { -private: - void * _data = nullptr; - size_t _capacity = 0; - -public: - void * GetData() const { return _data; } - void * GetData() { return _data; } - size_t GetCapacity() const { return _capacity; } - - ~Buffer() - { - Free(); - } - - void Free() - { - Memory::Free(_data); - _data = nullptr; - _capacity = 0; - } - - void EnsureCapacity(size_t capacity) - { - if (_capacity < capacity) - { - _capacity = capacity; - _data = Memory::Reallocate(_data, capacity); - } - } -}; - -class AudioMixer final : public IAudioMixer -{ -private: - IAudioSource * _nullSource = nullptr; - - SDL_AudioDeviceID _deviceId = 0; - AudioFormat _format = { 0 }; - std::list _channels; - float _volume = 1.0f; - float _adjustSoundVolume = 0.0f; - float _adjustMusicVolume = 0.0f; - uint8 _settingSoundVolume = 0xFF; - uint8 _settingMusicVolume = 0xFF; - - IAudioSource * _css1Sources[SOUND_MAXID] = { nullptr }; - IAudioSource * _musicSources[PATH_ID_END] = { nullptr }; - - Buffer _channelBuffer; - Buffer _convertBuffer; - Buffer _effectBuffer; - -public: - AudioMixer() - { - _nullSource = AudioSource::CreateNull(); - } - - ~AudioMixer() - { - Close(); - delete _nullSource; - } - - void Init(const char* device) override - { - Close(); - - SDL_AudioSpec want = { 0 }; - want.freq = 44100; - want.format = AUDIO_S16SYS; - want.channels = 2; - want.samples = 1024; - want.callback = [](void * arg, uint8 * dst, sint32 length) -> void - { - auto mixer = static_cast(arg); - mixer->GetNextAudioChunk(dst, (size_t)length); - }; - want.userdata = this; - - SDL_AudioSpec have; - _deviceId = SDL_OpenAudioDevice(device, 0, &want, &have, 0); - _format.format = have.format; - _format.channels = have.channels; - _format.freq = have.freq; - - LoadAllSounds(); - - SDL_PauseAudioDevice(_deviceId, 0); - } - - void Close() override - { - // Free channels - Lock(); - for (IAudioChannel * channel : _channels) - { - delete channel; - } - _channels.clear(); - Unlock(); - - SDL_CloseAudioDevice(_deviceId); - - // Free sources - for (size_t i = 0; i < Util::CountOf(_css1Sources); i++) - { - if (_css1Sources[i] != _nullSource) - { - SafeDelete(_css1Sources[i]); - } - } - for (size_t i = 0; i < Util::CountOf(_musicSources); i++) - { - if (_musicSources[i] != _nullSource) - { - SafeDelete(_musicSources[i]); - } - } - - // Free buffers - _channelBuffer.Free(); - _convertBuffer.Free(); - _effectBuffer.Free(); - } - - void Lock() override - { - SDL_LockAudioDevice(_deviceId); - } - - void Unlock() override - { - SDL_UnlockAudioDevice(_deviceId); - } - - IAudioChannel * Play(IAudioSource * source, sint32 loop, bool deleteondone, bool deletesourceondone) override - { - Lock(); - IAudioChannel * channel = AudioChannel::Create(); - if (channel != nullptr) - { - channel->Play(source, loop); - channel->SetDeleteOnDone(deleteondone); - channel->SetDeleteSourceOnDone(deletesourceondone); - _channels.push_back(channel); - } - Unlock(); - return channel; - } - - void Stop(IAudioChannel * channel) override - { - Lock(); - channel->SetStopping(true); - Unlock(); - } - - bool LoadMusic(size_t pathId) override - { - bool result = false; - if (pathId < Util::CountOf(_musicSources)) - { - IAudioSource * source = _musicSources[pathId]; - if (source == nullptr) - { - const utf8 * path = get_file_path((sint32)pathId); - source = AudioSource::CreateMemoryFromWAV(path, &_format); - if (source == nullptr) - { - source = _nullSource; - } - _musicSources[pathId] = source; - } - result = source != _nullSource; - } - return result; - } - - void SetVolume(float volume) override - { - _volume = volume; - } - - IAudioSource * GetSoundSource(sint32 id) override - { - return _css1Sources[id]; - } - - IAudioSource * GetMusicSource(sint32 id) override - { - return _musicSources[id]; - } - -private: - void LoadAllSounds() - { - const utf8 * css1Path = get_file_path(PATH_ID_CSS1); - for (size_t i = 0; i < Util::CountOf(_css1Sources); i++) - { - auto source = AudioSource::CreateMemoryFromCSS1(css1Path, i, &_format); - if (source == nullptr) - { - source = _nullSource; - } - _css1Sources[i] = source; - } - } - - void GetNextAudioChunk(uint8 * dst, size_t length) - { - UpdateAdjustedSound(); - - // Zero the output buffer - Memory::Set(dst, 0, length); - - // Mix channels onto output buffer - std::list::iterator it = _channels.begin(); - while (it != _channels.end()) - { - IAudioChannel * channel = *it; - - sint32 group = channel->GetGroup(); - if (group != MIXER_GROUP_SOUND || gConfigSound.sound_enabled) - { - MixChannel(channel, dst, length); - } - if ((channel->IsDone() && channel->DeleteOnDone()) || channel->IsStopping()) - { - delete channel; - it = _channels.erase(it); - } - else - { - it++; - } - } - } - - void UpdateAdjustedSound() - { - // Did the volume level get changed? Recalculate level in this case. - if (_settingSoundVolume != gConfigSound.sound_volume) - { - _settingSoundVolume = gConfigSound.sound_volume; - _adjustSoundVolume = powf(_settingSoundVolume / 100.f, 10.f / 6.f); - } - if (_settingMusicVolume != gConfigSound.ride_music_volume) - { - _settingMusicVolume = gConfigSound.ride_music_volume; - _adjustMusicVolume = powf(_settingMusicVolume / 100.f, 10.f / 6.f); - } - } - - void MixChannel(IAudioChannel * channel, uint8 * data, size_t length) - { - sint32 byteRate = _format.GetByteRate(); - sint32 numSamples = (sint32)(length / byteRate); - double rate = 1; - if (_format.format == AUDIO_S16SYS) - { - rate = channel->GetRate(); - } - - bool mustConvert = false; - SDL_AudioCVT cvt; - cvt.len_ratio = 1; - AudioFormat streamformat = channel->GetFormat(); - if (streamformat != _format) - { - if (SDL_BuildAudioCVT(&cvt, streamformat.format, streamformat.channels, streamformat.freq, _format.format, _format.channels, _format.freq) == -1) - { - // Unable to convert channel data - return; - } - mustConvert = true; - } - - // Read raw PCM from channel - sint32 readSamples = (sint32)(numSamples * rate); - size_t readLength = (size_t)(readSamples / cvt.len_ratio) * byteRate; - _channelBuffer.EnsureCapacity(readLength); - size_t bytesRead = channel->Read(_channelBuffer.GetData(), readLength); - - // Convert data to required format if necessary - void * buffer = nullptr; - size_t bufferLen = 0; - if (mustConvert) - { - if (Convert(&cvt, _channelBuffer.GetData(), bytesRead)) - { - buffer = cvt.buf; - bufferLen = cvt.len_cvt; - } - else - { - return; - } - } - else - { - buffer = _channelBuffer.GetData(); - bufferLen = bytesRead; - } - - // Apply effects - if (rate != 1) - { - sint32 srcSamples = (sint32)(bufferLen / byteRate); - sint32 dstSamples = numSamples; - bufferLen = ApplyResample(channel, buffer, srcSamples, dstSamples); - buffer = _effectBuffer.GetData(); - } - - // Apply panning and volume - ApplyPan(channel, buffer, bufferLen, byteRate); - sint32 mixVolume = ApplyVolume(channel, buffer, bufferLen); - - // Finally mix on to destination buffer - size_t dstLength = Math::Min(length, bufferLen); - SDL_MixAudioFormat(data, (const uint8 *)buffer, _format.format, (uint32)dstLength, mixVolume); - - channel->UpdateOldVolume(); - } - - /** - * Resample the given buffer into _effectBuffer. - * Assumes that srcBuffer is the same format as _format. - */ - size_t ApplyResample(IAudioChannel * channel, const void * srcBuffer, sint32 srcSamples, sint32 dstSamples) - { - sint32 byteRate = _format.GetByteRate(); - - // Create resampler - SpeexResamplerState * resampler = channel->GetResampler(); - if (resampler == nullptr) - { - resampler = speex_resampler_init(_format.channels, _format.freq, _format.freq, 0, 0); - channel->SetResampler(resampler); - } - speex_resampler_set_rate(resampler, srcSamples, dstSamples); - - // Ensure destination buffer is large enough - size_t effectBufferReqLen = dstSamples * byteRate; - _effectBuffer.EnsureCapacity(effectBufferReqLen); - - uint32 inLen = srcSamples; - uint32 outLen = dstSamples; - speex_resampler_process_interleaved_int( - resampler, - (const spx_int16_t *)srcBuffer, - &inLen, - (spx_int16_t *)_effectBuffer.GetData(), - &outLen); - - return outLen * byteRate; - } - - void ApplyPan(const IAudioChannel * channel, void * buffer, size_t len, size_t sampleSize) - { - if (channel->GetPan() != 0.5f && _format.channels == 2) - { - switch (_format.format) { - case AUDIO_S16SYS: - EffectPanS16(channel, (sint16 *)buffer, (sint32)(len / sampleSize)); - break; - case AUDIO_U8: - EffectPanU8(channel, (uint8 *)buffer, (sint32)(len / sampleSize)); - break; - } - } - } - - sint32 ApplyVolume(const IAudioChannel * channel, void * buffer, size_t len) - { - float volumeAdjust = _volume; - volumeAdjust *= (gConfigSound.master_volume / 100.0f); - switch (channel->GetGroup()) { - case MIXER_GROUP_SOUND: - volumeAdjust *= _adjustSoundVolume; - - // Cap sound volume on title screen so music is more audible - if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) - { - volumeAdjust = Math::Min(volumeAdjust, 0.75f); - } - break; - case MIXER_GROUP_RIDE_MUSIC: - volumeAdjust *= _adjustMusicVolume; - break; - } - - sint32 startVolume = (sint32)(channel->GetOldVolume() * volumeAdjust); - sint32 endVolume = (sint32)(channel->GetVolume() * volumeAdjust); - if (channel->IsStopping()) - { - endVolume = 0; - } - - sint32 mixVolume = (sint32)(channel->GetVolume() * volumeAdjust); - if (startVolume != endVolume) - { - // Set to max since we are adjusting the volume ourselves - mixVolume = SDL_MIX_MAXVOLUME; - - // Fade between volume levels to smooth out sound and minimize clicks from sudden volume changes - sint32 fadeLength = (sint32)len / _format.BytesPerSample(); - switch (_format.format) { - case AUDIO_S16SYS: - EffectFadeS16((sint16 *)buffer, fadeLength, startVolume, endVolume); - break; - case AUDIO_U8: - EffectFadeU8((uint8 *)buffer, fadeLength, startVolume, endVolume); - break; - } - } - return mixVolume; - } - - static void EffectPanS16(const IAudioChannel * channel, sint16 * data, sint32 length) - { - const float dt = 1.0f / (length * 2); - float volumeL = channel->GetOldVolumeL(); - float volumeR = channel->GetOldVolumeR(); - const float d_left = dt * (channel->GetVolumeL() - channel->GetOldVolumeL()); - const float d_right = dt * (channel->GetVolumeR() - channel->GetOldVolumeR()); - - for (sint32 i = 0; i < length * 2; i += 2) - { - data[i] = (sint16)(data[i] * volumeL); - data[i + 1] = (sint16)(data[i + 1] * volumeR); - volumeL += d_left; - volumeR += d_right; - } - } - - static void EffectPanU8(const IAudioChannel * channel, uint8 * data, sint32 length) - { - float volumeL = channel->GetVolumeL(); - float volumeR = channel->GetVolumeR(); - float oldVolumeL = channel->GetOldVolumeL(); - float oldVolumeR = channel->GetOldVolumeR(); - - for (sint32 i = 0; i < length * 2; i += 2) - { - float t = (float)i / (length * 2); - data[i] = (uint8)(data[i] * ((1.0 - t) * oldVolumeL + t * volumeL)); - data[i + 1] = (uint8)(data[i + 1] * ((1.0 - t) * oldVolumeR + t * volumeR)); - } - } - - static void EffectFadeS16(sint16 * data, sint32 length, sint32 startvolume, sint32 endvolume) - { - float startvolume_f = (float)startvolume / SDL_MIX_MAXVOLUME; - float endvolume_f = (float)endvolume / SDL_MIX_MAXVOLUME; - for (sint32 i = 0; i < length; i++) - { - float t = (float)i / length; - data[i] = (sint16)(data[i] * ((1 - t) * startvolume_f + t * endvolume_f)); - } - } - - static void EffectFadeU8(uint8* data, sint32 length, sint32 startvolume, sint32 endvolume) - { - float startvolume_f = (float)startvolume / SDL_MIX_MAXVOLUME; - float endvolume_f = (float)endvolume / SDL_MIX_MAXVOLUME; - for (sint32 i = 0; i < length; i++) - { - float t = (float)i / length; - data[i] = (uint8)(data[i] * ((1 - t) * startvolume_f + t * endvolume_f)); - } - } - - bool Convert(SDL_AudioCVT * cvt, const void * src, size_t len) - { - // tofix: there seems to be an issue with converting audio using SDL_ConvertAudio in the callback vs preconverted, can cause pops and static depending on sample rate and channels - bool result = false; - if (len != 0 && cvt->len_mult != 0) - { - size_t reqConvertBufferCapacity = len * cvt->len_mult; - _convertBuffer.EnsureCapacity(reqConvertBufferCapacity); - Memory::Copy(_convertBuffer.GetData(), src, len); - - cvt->len = (sint32)len; - cvt->buf = (uint8 *)_convertBuffer.GetData(); - if (SDL_ConvertAudio(cvt) >= 0) - { - result = true; - } - } - return result; - } -}; + IAudioContext * audioContext = GetContext()->GetAudioContext(); + return audioContext->GetMixer(); +} void Mixer_Init(const char * device) { - if (!gOpenRCT2Headless) - { - gMixer = new AudioMixer(); - gMixer->Init(device); - } + IAudioContext * audioContext = GetContext()->GetAudioContext(); + audioContext->SetOutputDevice(device); } void * Mixer_Play_Effect(size_t id, sint32 loop, sint32 volume, float pan, double rate, sint32 deleteondone) { IAudioChannel * channel = nullptr; - if (!gOpenRCT2Headless && gConfigSound.sound_enabled) + if (gConfigSound.sound_enabled) { if (id >= SOUND_MAXID) { @@ -551,7 +55,7 @@ void * Mixer_Play_Effect(size_t id, sint32 loop, sint32 volume, float pan, doubl } else { - IAudioMixer * mixer = gMixer; + IAudioMixer * mixer = GetMixer(); mixer->Lock(); IAudioSource * source = mixer->GetSoundSource((sint32)id); channel = mixer->Play(source, loop, deleteondone != 0, false); @@ -569,131 +73,95 @@ void * Mixer_Play_Effect(size_t id, sint32 loop, sint32 volume, float pan, doubl void Mixer_Stop_Channel(void * channel) { - if (!gOpenRCT2Headless) - { - gMixer->Stop(static_cast(channel)); - } + GetMixer()->Stop(static_cast(channel)); } void Mixer_Channel_Volume(void * channel, sint32 volume) { - if (!gOpenRCT2Headless) - { - gMixer->Lock(); - static_cast(channel)->SetVolume(volume); - gMixer->Unlock(); - } + IAudioMixer * audioMixer = GetMixer(); + audioMixer->Lock(); + static_cast(channel)->SetVolume(volume); + audioMixer->Unlock(); } void Mixer_Channel_Pan(void * channel, float pan) { - if (!gOpenRCT2Headless) - { - gMixer->Lock(); - static_cast(channel)->SetPan(pan); - gMixer->Unlock(); - } + IAudioMixer * audioMixer = GetMixer(); + audioMixer->Lock(); + static_cast(channel)->SetPan(pan); + audioMixer->Unlock(); } void Mixer_Channel_Rate(void* channel, double rate) { - if (!gOpenRCT2Headless) - { - gMixer->Lock(); - static_cast(channel)->SetRate(rate); - gMixer->Unlock(); - } + IAudioMixer * audioMixer = GetMixer(); + audioMixer->Lock(); + static_cast(channel)->SetRate(rate); + audioMixer->Unlock(); } sint32 Mixer_Channel_IsPlaying(void * channel) { - bool isPlaying = false; - if (!gOpenRCT2Headless) - { - isPlaying = static_cast(channel)->IsPlaying(); - } - return isPlaying; + return static_cast(channel)->IsPlaying(); } uint64 Mixer_Channel_GetOffset(void * channel) { - uint64 offset = 0; - if (!gOpenRCT2Headless) - { - offset = static_cast(channel)->GetOffset(); - } - return offset; + return static_cast(channel)->GetOffset(); } sint32 Mixer_Channel_SetOffset(void * channel, uint64 offset) { - sint32 result = 0; - if (!gOpenRCT2Headless) - { - result = static_cast(channel)->SetOffset(offset); - } - return result; + return static_cast(channel)->SetOffset(offset); } void Mixer_Channel_SetGroup(void * channel, sint32 group) { - if (!gOpenRCT2Headless) - { - static_cast(channel)->SetGroup(group); - } + static_cast(channel)->SetGroup(group); } void * Mixer_Play_Music(sint32 pathId, sint32 loop, sint32 streaming) { IAudioChannel * channel = nullptr; - if (!gOpenRCT2Headless) + IAudioMixer * mixer = GetMixer(); + if (streaming) { - IAudioMixer * mixer = gMixer; - if (streaming) - { - const utf8 * filename = get_file_path(pathId); + const utf8 * path = get_file_path(pathId); - SDL_RWops* rw = SDL_RWFromFile(filename, "rb"); - if (rw != nullptr) + IAudioContext * audioContext = GetContext()->GetAudioContext(); + IAudioSource * source = audioContext->CreateStreamFromWAV(path); + if (source != nullptr) + { + channel = mixer->Play(source, loop, false, true); + if (channel == nullptr) { - auto source = AudioSource::CreateStreamFromWAV(rw); - if (source != nullptr) - { - channel = mixer->Play(source, loop, false, true); - if (channel == nullptr) - { - delete source; - } - } + delete source; } } - else + } + else + { + if (mixer->LoadMusic(pathId)) { - if (mixer->LoadMusic(pathId)) - { - IAudioSource * source = mixer->GetMusicSource(pathId); - channel = mixer->Play(source, MIXER_LOOP_INFINITE, false, false); - } - } - if (channel != nullptr) - { - channel->SetGroup(MIXER_GROUP_RIDE_MUSIC); + IAudioSource * source = mixer->GetMusicSource(pathId); + channel = mixer->Play(source, MIXER_LOOP_INFINITE, false, false); } } + if (channel != nullptr) + { + channel->SetGroup(MIXER_GROUP_RIDE_MUSIC); + } return channel; } void Mixer_SetVolume(float volume) { - if (!gOpenRCT2Headless) - { - gMixer->SetVolume(volume); - } + GetMixer()->SetVolume(volume); } sint32 DStoMixerVolume(sint32 volume) { - return (sint32)(SDL_MIX_MAXVOLUME * (SDL_pow(10, (float)volume / 2000))); + return (sint32)(SDL_MIX_MAXVOLUME * (std::pow(10.0f, (float)volume / 2000))); } float DStoMixerPan(sint32 pan) @@ -705,4 +173,3 @@ double DStoMixerRate(sint32 frequency) { return (double)frequency / 22050; } - diff --git a/src/openrct2/audio/AudioMixer.h b/src/openrct2/audio/AudioMixer.h index 085e911795..51c65d3db3 100644 --- a/src/openrct2/audio/AudioMixer.h +++ b/src/openrct2/audio/AudioMixer.h @@ -14,8 +14,7 @@ *****************************************************************************/ #pragma endregion -#ifndef _MIXER_H_ -#define _MIXER_H_ +#pragma once #include "../common.h" @@ -31,59 +30,61 @@ enum MIXER_GROUP #ifdef __cplusplus -interface IAudioSource; -interface IAudioChannel; - -/** - * Provides an audio stream by mixing multiple audio channels together. - */ -interface IAudioMixer +namespace OpenRCT2 { namespace Audio { - virtual ~IAudioMixer() = default; + interface IAudioSource; + interface IAudioChannel; - virtual void Init(const char * device) abstract; - virtual void Close() abstract; - virtual void Lock() abstract; - virtual void Unlock() abstract; - virtual IAudioChannel * Play(IAudioSource * source, sint32 loop, bool deleteondone, bool deletesourceondone) abstract; - virtual void Stop(IAudioChannel * channel) abstract; - virtual bool LoadMusic(size_t pathid) abstract; - virtual void SetVolume(float volume) abstract; + /** + * Provides an audio stream by mixing multiple audio channels together. + */ + interface IAudioMixer + { + virtual ~IAudioMixer() = default; - virtual IAudioSource * GetSoundSource(sint32 id) abstract; - virtual IAudioSource * GetMusicSource(sint32 id) abstract; -}; + virtual void Init(const char * device) abstract; + virtual void Close() abstract; + virtual void Lock() abstract; + virtual void Unlock() abstract; + virtual IAudioChannel * Play(IAudioSource * source, sint32 loop, bool deleteondone, bool deletesourceondone) abstract; + virtual void Stop(IAudioChannel * channel) abstract; + virtual bool LoadMusic(size_t pathid) abstract; + virtual void SetVolume(float volume) abstract; + virtual IAudioSource * GetSoundSource(sint32 id) abstract; + virtual IAudioSource * GetMusicSource(sint32 id) abstract; + }; +} } + +#endif + +#ifdef __cplusplus extern "C" { #endif + #ifndef DSBPAN_LEFT + #define DSBPAN_LEFT -10000 + #endif + #ifndef DSBPAN_RIGHT + #define DSBPAN_RIGHT 10000 + #endif -#ifndef DSBPAN_LEFT -#define DSBPAN_LEFT -10000 -#endif -#ifndef DSBPAN_RIGHT -#define DSBPAN_RIGHT 10000 -#endif - -void Mixer_Init(const char* device); -void* Mixer_Play_Effect(size_t id, sint32 loop, sint32 volume, float pan, double rate, sint32 deleteondone); -void Mixer_Stop_Channel(void* channel); -void Mixer_Channel_Volume(void* channel, sint32 volume); -void Mixer_Channel_Pan(void* channel, float pan); -void Mixer_Channel_Rate(void* channel, double rate); -sint32 Mixer_Channel_IsPlaying(void* channel); -uint64 Mixer_Channel_GetOffset(void* channel); -sint32 Mixer_Channel_SetOffset(void* channel, uint64 offset); -void Mixer_Channel_SetGroup(void* channel, sint32 group); -void* Mixer_Play_Music(sint32 pathId, sint32 loop, sint32 streaming); -void Mixer_SetVolume(float volume); - -sint32 DStoMixerVolume(sint32 volume); -float DStoMixerPan(sint32 pan); -double DStoMixerRate(sint32 frequency); + void Mixer_Init(const char * device); + void* Mixer_Play_Effect(size_t id, sint32 loop, sint32 volume, float pan, double rate, sint32 deleteondone); + void Mixer_Stop_Channel(void* channel); + void Mixer_Channel_Volume(void* channel, sint32 volume); + void Mixer_Channel_Pan(void* channel, float pan); + void Mixer_Channel_Rate(void* channel, double rate); + sint32 Mixer_Channel_IsPlaying(void* channel); + uint64 Mixer_Channel_GetOffset(void* channel); + sint32 Mixer_Channel_SetOffset(void* channel, uint64 offset); + void Mixer_Channel_SetGroup(void* channel, sint32 group); + void* Mixer_Play_Music(sint32 pathId, sint32 loop, sint32 streaming); + void Mixer_SetVolume(float volume); + sint32 DStoMixerVolume(sint32 volume); + float DStoMixerPan(sint32 pan); + double DStoMixerRate(sint32 frequency); #ifdef __cplusplus } #endif - -#endif diff --git a/src/openrct2/audio/AudioSource.h b/src/openrct2/audio/AudioSource.h index 879424507f..3cdcb193df 100644 --- a/src/openrct2/audio/AudioSource.h +++ b/src/openrct2/audio/AudioSource.h @@ -17,25 +17,24 @@ #pragma once #include "../common.h" -#include "AudioFormat.h" #include "AudioMixer.h" -/** - * Represents a readable source of audio PCM data. - */ -interface IAudioSource +namespace OpenRCT2 { namespace Audio { - virtual ~IAudioSource() = default; + /** + * Represents a readable source of audio PCM data. + */ + interface IAudioSource + { + virtual ~IAudioSource() = default; - virtual uint64 GetLength() abstract; - virtual AudioFormat GetFormat() abstract; - virtual size_t Read(void * dst, uint64 offset, size_t len) abstract; -}; + virtual uint64 GetLength() abstract; + // virtual AudioFormat GetFormat() abstract; + virtual size_t Read(void * dst, uint64 offset, size_t len) abstract; + }; -namespace AudioSource -{ - IAudioSource * CreateNull(); - IAudioSource * CreateMemoryFromCSS1(const utf8 * path, size_t index, const AudioFormat * targetFormat = nullptr); - IAudioSource * CreateMemoryFromWAV(const utf8 * path, const AudioFormat * targetFormat = nullptr); - IAudioSource * CreateStreamFromWAV(SDL_RWops * rw); -} + namespace AudioSource + { + IAudioSource * CreateNull(); + } +} } diff --git a/src/openrct2/audio/FileAudioSource.cpp b/src/openrct2/audio/FileAudioSource.cpp deleted file mode 100644 index 5441fe063f..0000000000 --- a/src/openrct2/audio/FileAudioSource.cpp +++ /dev/null @@ -1,204 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#include "../core/Math.hpp" -#include "AudioSource.h" - -#pragma pack(push, 1) - struct WaveFormat - { - uint16 encoding; - uint16 channels; - uint32 frequency; - uint32 byterate; - uint16 blockalign; - uint16 bitspersample; - }; - assert_struct_size(WaveFormat, 16); -#pragma pack(pop) - -/** - * An audio source where raw PCM data is streamed directly from - * a file. - */ -class FileAudioSource final : public IAudioSource -{ -private: - AudioFormat _format = { 0 }; - SDL_RWops * _rw = nullptr; - uint64 _dataBegin = 0; - uint64 _dataLength = 0; - -public: - ~FileAudioSource() - { - Unload(); - } - - uint64 GetLength() override - { - return _dataLength; - } - - AudioFormat GetFormat() override - { - return _format; - } - - size_t Read(void * dst, uint64 offset, size_t len) override - { - size_t bytesRead = 0; - sint64 currentPosition = SDL_RWtell(_rw); - if (currentPosition != -1) - { - size_t bytesToRead = (size_t)Math::Min(len, _dataLength - offset); - sint64 dataOffset = _dataBegin + offset; - if (currentPosition != dataOffset) - { - sint64 newPosition = SDL_RWseek(_rw, dataOffset, SEEK_SET); - if (newPosition == -1) - { - return 0; - } - } - bytesRead = SDL_RWread(_rw, dst, 1, bytesToRead); - } - return bytesRead; - } - - bool LoadWAV(SDL_RWops * rw) - { - const uint32 DATA = 0x61746164; - const uint32 FMT = 0x20746D66; - const uint32 RIFF = 0x46464952; - const uint32 WAVE = 0x45564157; - const uint16 pcmformat = 0x0001; - - Unload(); - - if (rw == nullptr) - { - return false; - } - _rw = rw; - - uint32 chunkId = SDL_ReadLE32(rw); - if (chunkId != RIFF) - { - log_verbose("Not a WAV file"); - return false; - } - - // Read and discard chunk size - SDL_ReadLE32(rw); - uint32 chunkFormat = SDL_ReadLE32(rw); - if (chunkFormat != WAVE) - { - log_verbose("Not in WAVE format"); - return false; - } - - uint32 fmtChunkSize = FindChunk(rw, FMT); - if (!fmtChunkSize) - { - log_verbose("Could not find FMT chunk"); - return false; - } - - uint64 chunkStart = SDL_RWtell(rw); - - WaveFormat waveFormat; - SDL_RWread(rw, &waveFormat, sizeof(waveFormat), 1); - SDL_RWseek(rw, chunkStart + fmtChunkSize, RW_SEEK_SET); - if (waveFormat.encoding != pcmformat) { - log_verbose("Not in proper format"); - return false; - } - - _format.freq = waveFormat.frequency; - switch (waveFormat.bitspersample) { - case 8: - _format.format = AUDIO_U8; - break; - case 16: - _format.format = AUDIO_S16LSB; - break; - default: - log_verbose("Invalid bits per sample"); - return false; - break; - } - _format.channels = waveFormat.channels; - - uint32 dataChunkSize = FindChunk(rw, DATA); - if (dataChunkSize == 0) - { - log_verbose("Could not find DATA chunk"); - return false; - } - - _dataLength = dataChunkSize; - _dataBegin = SDL_RWtell(rw); - return true; - } - -private: - uint32 FindChunk(SDL_RWops * rw, uint32 wantedId) - { - uint32 subchunkId = SDL_ReadLE32(rw); - uint32 subchunkSize = SDL_ReadLE32(rw); - if (subchunkId == wantedId) - { - return subchunkSize; - } - const uint32 FACT = 0x74636166; - const uint32 LIST = 0x5453494c; - const uint32 BEXT = 0x74786562; - const uint32 JUNK = 0x4B4E554A; - while (subchunkId == FACT || subchunkId == LIST || subchunkId == BEXT || subchunkId == JUNK) - { - SDL_RWseek(rw, subchunkSize, RW_SEEK_CUR); - subchunkId = SDL_ReadLE32(rw); - subchunkSize = SDL_ReadLE32(rw); - if (subchunkId == wantedId) - { - return subchunkSize; - } - } - return 0; - } - - void Unload() - { - if (_rw != nullptr) - { - SDL_RWclose(_rw); - _rw = nullptr; - } - _dataBegin = 0; - _dataLength = 0; - } -}; - -IAudioSource * AudioSource::CreateStreamFromWAV(SDL_RWops * rw) -{ - auto source = new FileAudioSource(); - if (!source->LoadWAV(rw)) - { - SafeDelete(source); - } - return source; -} diff --git a/src/openrct2/audio/MemoryAudioSource.cpp b/src/openrct2/audio/MemoryAudioSource.cpp deleted file mode 100644 index 18a2099e18..0000000000 --- a/src/openrct2/audio/MemoryAudioSource.cpp +++ /dev/null @@ -1,245 +0,0 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers -/***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ -#pragma endregion - -#include "../core/Math.hpp" -#include "../core/Memory.hpp" -#include "AudioMixer.h" -#include "AudioSource.h" - -#pragma pack(push, 1) - struct WaveFormatEx - { - uint16 encoding; - uint16 channels; - uint32 frequency; - uint32 byterate; - uint16 blockalign; - uint16 bitspersample; - uint16 extrasize; - }; - assert_struct_size(WaveFormatEx, 18); -#pragma pack(pop) - -/** - * An audio source where raw PCM data is initially loaded into RAM from - * a file and then streamed. - */ -class MemoryAudioSource final : public IAudioSource -{ -private: - AudioFormat _format = { 0 }; - uint8 * _data = nullptr; - size_t _length = 0; - bool _isSDLWav = false; - -public: - ~MemoryAudioSource() - { - Unload(); - } - - uint64 GetLength() override - { - return _length; - } - - AudioFormat GetFormat() override - { - return _format; - } - - size_t Read(void * dst, uint64 offset, size_t len) override - { - size_t bytesToRead = 0; - if (offset < _length) - { - bytesToRead = (size_t)Math::Min(len, _length - offset); - Memory::Copy(dst, _data + offset, bytesToRead); - } - return bytesToRead; - } - - bool LoadWAV(const utf8 * path) - { - log_verbose("MemoryAudioSource::LoadWAV(%s)", path); - - Unload(); - - bool result = false; - SDL_RWops * rw = SDL_RWFromFile(path, "rb"); - if (rw != nullptr) - { - SDL_AudioSpec audiospec = { 0 }; - uint32 audioLen; - SDL_AudioSpec * spec = SDL_LoadWAV_RW(rw, false, &audiospec, &_data, &audioLen); - if (spec != nullptr) - { - _format.freq = spec->freq; - _format.format = spec->format; - _format.channels = spec->channels; - _length = audioLen; - _isSDLWav = true; - result = true; - } - else - { - log_verbose("Error loading %s, unsupported WAV format", path); - } - SDL_RWclose(rw); - } - else - { - log_verbose("Error loading %s", path); - } - return result; - } - - bool LoadCSS1(const utf8 * path, size_t index) - { - log_verbose("MemoryAudioSource::LoadCSS1(%s, %d)", path, index); - - Unload(); - - bool result = false; - SDL_RWops * rw = SDL_RWFromFile(path, "rb"); - if (rw != nullptr) - { - uint32 numSounds; - SDL_RWread(rw, &numSounds, sizeof(numSounds), 1); - if (index < numSounds) - { - SDL_RWseek(rw, index * 4, RW_SEEK_CUR); - - uint32 pcmOffset; - SDL_RWread(rw, &pcmOffset, sizeof(pcmOffset), 1); - SDL_RWseek(rw, pcmOffset, RW_SEEK_SET); - - uint32 pcmSize; - SDL_RWread(rw, &pcmSize, sizeof(pcmSize), 1); - _length = pcmSize; - - WaveFormatEx waveFormat; - SDL_RWread(rw, &waveFormat, sizeof(waveFormat), 1); - _format.freq = waveFormat.frequency; - _format.format = AUDIO_S16LSB; - _format.channels = waveFormat.channels; - - _data = new (std::nothrow) uint8[_length]; - if (_data != nullptr) - { - SDL_RWread(rw, _data, _length, 1); - result = true; - } - else - { - log_verbose("Unable to allocate data"); - } - } - SDL_RWclose(rw); - } - else - { - log_verbose("Unable to load %s", path); - } - return result; - } - - bool Convert(const AudioFormat * format) - { - if (*format != _format) - { - SDL_AudioCVT cvt; - if (SDL_BuildAudioCVT(&cvt, _format.format, _format.channels, _format.freq, format->format, format->channels, format->freq) >= 0) - { - cvt.len = (sint32)_length; - cvt.buf = new uint8[cvt.len * cvt.len_mult]; - Memory::Copy(cvt.buf, _data, _length); - if (SDL_ConvertAudio(&cvt) >= 0) - { - Unload(); - _data = cvt.buf; - _length = cvt.len_cvt; - _format = *format; - return true; - } - else - { - delete[] cvt.buf; - } - } - } - return false; - } - -private: - void Unload() - { - if (_data != nullptr) - { - if (_isSDLWav) - { - SDL_FreeWAV(_data); - } - else - { - delete[] _data; - } - _data = nullptr; - } - _isSDLWav = false; - _length = 0; - } -}; - -IAudioSource * AudioSource::CreateMemoryFromCSS1(const utf8 * path, size_t index, const AudioFormat * targetFormat) -{ - auto source = new MemoryAudioSource(); - if (source->LoadCSS1(path, index)) - { - if (targetFormat != nullptr) - { - if (!source->Convert(targetFormat)) - { - SafeDelete(source); - } - } - } - else - { - SafeDelete(source); - } - return source; -} - -IAudioSource * AudioSource::CreateMemoryFromWAV(const utf8 * path, const AudioFormat * targetFormat) -{ - auto source = new MemoryAudioSource(); - if (source->LoadWAV(path)) - { - if (targetFormat != nullptr) - { - if (!source->Convert(targetFormat)) - { - SafeDelete(source); - } - } - } - else - { - SafeDelete(source); - } - return source; -} diff --git a/src/openrct2/audio/NullAudioSource.cpp b/src/openrct2/audio/NullAudioSource.cpp index 8edd5adbb4..92112459d2 100644 --- a/src/openrct2/audio/NullAudioSource.cpp +++ b/src/openrct2/audio/NullAudioSource.cpp @@ -16,29 +16,27 @@ #include "AudioSource.h" -/** - * An audio source representing silence. - */ -class NullAudioSource : public IAudioSource +namespace OpenRCT2 { namespace Audio { -public: - uint64 GetLength() override + /** + * An audio source representing silence. + */ + class NullAudioSource : public IAudioSource { - return 0; - } + public: + uint64 GetLength() override + { + return 0; + } - AudioFormat GetFormat() override + size_t Read(void * dst, uint64 offset, size_t len) override + { + return 0; + } + }; + + IAudioSource * AudioSource::CreateNull() { - return { 0 }; + return new NullAudioSource(); } - - size_t Read(void * dst, uint64 offset, size_t len) override - { - return 0; - } -}; - -IAudioSource * AudioSource::CreateNull() -{ - return new NullAudioSource(); -} +} } diff --git a/src/openrct2/audio/audio.cpp b/src/openrct2/audio/audio.cpp index 1717c6fc54..8b034aab63 100644 --- a/src/openrct2/audio/audio.cpp +++ b/src/openrct2/audio/audio.cpp @@ -318,15 +318,10 @@ void audio_stop_all_music_and_sounds() audio_stop_title_music(); audio_stop_vehicle_sounds(); audio_stop_ride_music(); - audio_stop_crowd_sound(); + peep_stop_crowd_noise(); audio_stop_rain_sound(); } -void audio_stop_crowd_sound() -{ - audio_stop_channel(&gCrowdSoundChannel); -} - void audio_stop_title_music() { audio_stop_channel(&gTitleMusicChannel); @@ -393,7 +388,7 @@ void audio_init_ride_sounds(sint32 device) void audio_close() { - audio_stop_crowd_sound(); + peep_stop_crowd_noise(); audio_stop_title_music(); audio_stop_ride_music(); audio_stop_rain_sound(); @@ -414,7 +409,7 @@ void audio_pause_sounds() gGameSoundsOff = true; audio_stop_vehicle_sounds(); audio_stop_ride_music(); - audio_stop_crowd_sound(); + peep_stop_crowd_noise(); audio_stop_rain_sound(); } diff --git a/src/openrct2/audio/audio.h b/src/openrct2/audio/audio.h index 86e3c9fcd1..0e96de0265 100644 --- a/src/openrct2/audio/audio.h +++ b/src/openrct2/audio/audio.h @@ -14,12 +14,16 @@ *****************************************************************************/ #pragma endregion -#ifndef _AUDIO_H_ -#define _AUDIO_H_ +#pragma once #include "../common.h" #include "../world/sprite.h" +#ifdef __cplusplus +extern "C" +{ +#endif + #define AUDIO_DEVICE_NAME_SIZE 256 #define AUDIO_MAX_RIDE_MUSIC 2 #define AUDIO_MAX_VEHICLE_SOUNDS 14 @@ -163,7 +167,6 @@ typedef enum RCT2_SOUND { extern audio_device *gAudioDevices; extern sint32 gAudioDeviceCount; extern sint32 gAudioCurrentDevice; -extern void *gCrowdSoundChannel; extern bool gGameSoundsOff; extern void *gRainSoundChannel; extern rct_ride_music gRideMusicList[AUDIO_MAX_RIDE_MUSIC]; @@ -247,11 +250,6 @@ void audio_quit(); */ void audio_start_title_music(); /** -* Stops the crowd sound effect from playing. -* rct2: 0x006BD07F -*/ -void audio_stop_crowd_sound(); -/** * Stops the rain sound effect from playing. */ void audio_stop_rain_sound(); @@ -283,4 +281,6 @@ void audio_unpause_sounds(); void audio_stop_all_music_and_sounds(); +#ifdef __cplusplus +} #endif diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index a92c51fe84..f4e9bc39a0 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -118,6 +118,8 @@ enum { F1EE18_RIDE_ENTRANCE = 1 << 3, }; +static void * _crowdSoundChannel = NULL; + static void sub_68F41A(rct_peep *peep, sint32 index); static void peep_update(rct_peep *peep); static sint32 peep_has_empty_container(rct_peep* peep); @@ -6888,6 +6890,14 @@ void peep_problem_warnings_update() } } +void peep_stop_crowd_noise() +{ + if (_crowdSoundChannel != NULL) { + Mixer_Stop_Channel(_crowdSoundChannel); + _crowdSoundChannel = NULL; + } +} + /** * * rct2: 0x006BD18A @@ -6938,9 +6948,9 @@ void peep_update_crowd_noise() visiblePeeps = (visiblePeeps / 2) - 6; if (visiblePeeps < 0) { // Mute crowd noise - if (gCrowdSoundChannel) { - Mixer_Stop_Channel(gCrowdSoundChannel); - gCrowdSoundChannel = 0; + if (_crowdSoundChannel != NULL) { + Mixer_Stop_Channel(_crowdSoundChannel); + _crowdSoundChannel = NULL; } } else { sint32 volume; @@ -6952,14 +6962,14 @@ void peep_update_crowd_noise() volume = (((207360000 - volume) >> viewport->zoom) - 207360000) / 65536 - 150; // Load and play crowd noise if needed and set volume - if (!gCrowdSoundChannel) { - gCrowdSoundChannel = Mixer_Play_Music(PATH_ID_CSS2, MIXER_LOOP_INFINITE, false); - if (gCrowdSoundChannel) { - Mixer_Channel_SetGroup(gCrowdSoundChannel, MIXER_GROUP_SOUND); + if (_crowdSoundChannel == NULL) { + _crowdSoundChannel = Mixer_Play_Music(PATH_ID_CSS2, MIXER_LOOP_INFINITE, false); + if (_crowdSoundChannel != NULL) { + Mixer_Channel_SetGroup(_crowdSoundChannel, MIXER_GROUP_SOUND); } } - if (gCrowdSoundChannel) { - Mixer_Channel_Volume(gCrowdSoundChannel, DStoMixerVolume(volume)); + if (_crowdSoundChannel != NULL) { + Mixer_Channel_Volume(_crowdSoundChannel, DStoMixerVolume(volume)); } } } diff --git a/src/openrct2/peep/peep.h b/src/openrct2/peep/peep.h index 44eb172549..280ec6906f 100644 --- a/src/openrct2/peep/peep.h +++ b/src/openrct2/peep/peep.h @@ -717,6 +717,7 @@ sint32 peep_get_staff_count(); sint32 peep_can_be_picked_up(rct_peep* peep); void peep_update_all(); void peep_problem_warnings_update(); +void peep_stop_crowd_noise(); void peep_update_crowd_noise(); void peep_update_days_in_queue(); void peep_applause(); diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 62ab7fcfb4..00cf819890 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -17,7 +17,6 @@ #include #include #include "../audio/audio.h" -#include "../audio/AudioMixer.h" #include "../config/Config.h" #include "../Context.h" #include "../drawing/drawing.h" From e426c70bbcd65cce177ccafe68a69258ece13e1c Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 17:46:02 +0100 Subject: [PATCH 143/670] Get moved audio code linking --- src/openrct2-ui/audio/AudioChannel.cpp | 8 +++--- src/openrct2-ui/audio/AudioContext.cpp | 19 ++++++++++--- src/openrct2-ui/audio/AudioContext.h | 31 +++++++++++++++++++-- src/openrct2-ui/audio/AudioMixer.cpp | 29 ++++++++++--------- src/openrct2-ui/audio/FileAudioSource.cpp | 6 ++-- src/openrct2-ui/audio/MemoryAudioSource.cpp | 6 ++-- src/openrct2/audio/AudioChannel.h | 9 ------ src/openrct2/audio/AudioSource.h | 2 +- src/openrct2/audio/NullAudioSource.cpp | 2 +- 9 files changed, 72 insertions(+), 40 deletions(-) diff --git a/src/openrct2-ui/audio/AudioChannel.cpp b/src/openrct2-ui/audio/AudioChannel.cpp index ae2037a534..f92cfab767 100644 --- a/src/openrct2-ui/audio/AudioChannel.cpp +++ b/src/openrct2-ui/audio/AudioChannel.cpp @@ -26,10 +26,10 @@ namespace OpenRCT2 { namespace Audio { - class AudioChannelImpl : public IAudioChannel + class AudioChannelImpl : public ISDLAudioChannel { private: - IAudioSource * _source = nullptr; + ISDLAudioSource * _source = nullptr; SpeexResamplerState * _resampler = nullptr; sint32 _group = MIXER_GROUP_SOUND; @@ -232,7 +232,7 @@ namespace OpenRCT2 { namespace Audio void Play(IAudioSource * source, sint32 loop) override { - _source = source; + _source = static_cast(source); _loop = loop; _offset = 0; _done = false; @@ -290,7 +290,7 @@ namespace OpenRCT2 { namespace Audio } }; - IAudioChannel * AudioChannel::Create() + ISDLAudioChannel * AudioChannel::Create() { return new (std::nothrow) AudioChannelImpl(); } diff --git a/src/openrct2-ui/audio/AudioContext.cpp b/src/openrct2-ui/audio/AudioContext.cpp index bec4079fa6..3487732507 100644 --- a/src/openrct2-ui/audio/AudioContext.cpp +++ b/src/openrct2-ui/audio/AudioContext.cpp @@ -15,23 +15,34 @@ #pragma endregion #include +#include "AudioContext.h" namespace OpenRCT2 { namespace Audio { class AudioContext : public IAudioContext { + private: + IAudioMixer * _audioMixer; + public: - virtual ~AudioContext() + AudioContext() { + _audioMixer = AudioMixer::Create(); } - virtual void SetOutputDevice(const char * deviceName) override + IAudioMixer * GetMixer() override { + return _audioMixer; } - virtual IAudioSource * CreateStreamFromWAV(const std::string &path) override + void SetOutputDevice(const char * deviceName) override { - return nullptr; + _audioMixer->Init(deviceName); + } + + IAudioSource * CreateStreamFromWAV(const std::string &path) override + { + return AudioSource::CreateStreamFromWAV(path); } void StartTitleMusic() override { } diff --git a/src/openrct2-ui/audio/AudioContext.h b/src/openrct2-ui/audio/AudioContext.h index b523e06edd..8f5e83bd35 100644 --- a/src/openrct2-ui/audio/AudioContext.h +++ b/src/openrct2-ui/audio/AudioContext.h @@ -3,11 +3,16 @@ #include #include +#include +#include + +struct SDL_RWops; +struct SpeexResamplerState_; +typedef struct SpeexResamplerState_ SpeexResamplerState; namespace OpenRCT2 { namespace Audio { - struct AudioFormat; - interface IAudioSource; + struct AudioFormat; #pragma pack(push, 1) struct WaveFormat @@ -34,6 +39,18 @@ namespace OpenRCT2 { namespace Audio assert_struct_size(WaveFormatEx, 18); #pragma pack(pop) + interface ISDLAudioSource : public IAudioSource + { + virtual AudioFormat GetFormat() const abstract; + }; + + interface ISDLAudioChannel : public IAudioChannel + { + virtual AudioFormat GetFormat() const abstract; + virtual SpeexResamplerState * GetResampler() const abstract; + virtual void SetResampler(SpeexResamplerState * value) abstract; + }; + namespace AudioSource { IAudioSource * CreateMemoryFromCSS1(const std::string &path, size_t index, const AudioFormat * targetFormat = nullptr); @@ -41,4 +58,14 @@ namespace OpenRCT2 { namespace Audio IAudioSource * CreateStreamFromWAV(const std::string &path); IAudioSource * CreateStreamFromWAV(SDL_RWops * rw); } + + namespace AudioChannel + { + ISDLAudioChannel * Create(); + } + + namespace AudioMixer + { + IAudioMixer * Create(); + } } } diff --git a/src/openrct2-ui/audio/AudioMixer.cpp b/src/openrct2-ui/audio/AudioMixer.cpp index 075ac6a7b4..897d83a903 100644 --- a/src/openrct2-ui/audio/AudioMixer.cpp +++ b/src/openrct2-ui/audio/AudioMixer.cpp @@ -40,7 +40,6 @@ extern "C" namespace OpenRCT2 { namespace Audio { - struct Buffer { private: @@ -74,14 +73,14 @@ namespace OpenRCT2 { namespace Audio } }; - class AudioMixer final : public IAudioMixer + class AudioMixerImpl final : public IAudioMixer { private: IAudioSource * _nullSource = nullptr; SDL_AudioDeviceID _deviceId = 0; AudioFormat _format = { 0 }; - std::list _channels; + std::list _channels; float _volume = 1.0f; float _adjustSoundVolume = 0.0f; float _adjustMusicVolume = 0.0f; @@ -96,18 +95,18 @@ namespace OpenRCT2 { namespace Audio Buffer _effectBuffer; public: - AudioMixer() + AudioMixerImpl() { _nullSource = AudioSource::CreateNull(); } - ~AudioMixer() + ~AudioMixerImpl() { Close(); delete _nullSource; } - void Init(const char* device) override + void Init(const char * device) override { Close(); @@ -118,7 +117,7 @@ namespace OpenRCT2 { namespace Audio want.samples = 1024; want.callback = [](void * arg, uint8 * dst, sint32 length) -> void { - auto mixer = static_cast(arg); + auto mixer = static_cast(arg); mixer->GetNextAudioChunk(dst, (size_t)length); }; want.userdata = this; @@ -182,7 +181,7 @@ namespace OpenRCT2 { namespace Audio IAudioChannel * Play(IAudioSource * source, sint32 loop, bool deleteondone, bool deletesourceondone) override { Lock(); - IAudioChannel * channel = AudioChannel::Create(); + ISDLAudioChannel * channel = AudioChannel::Create(); if (channel != nullptr) { channel->Play(source, loop); @@ -260,11 +259,10 @@ namespace OpenRCT2 { namespace Audio Memory::Set(dst, 0, length); // Mix channels onto output buffer - std::list::iterator it = _channels.begin(); + auto it = _channels.begin(); while (it != _channels.end()) { - IAudioChannel * channel = *it; - + auto channel = *it; sint32 group = channel->GetGroup(); if (group != MIXER_GROUP_SOUND || gConfigSound.sound_enabled) { @@ -297,7 +295,7 @@ namespace OpenRCT2 { namespace Audio } } - void MixChannel(IAudioChannel * channel, uint8 * data, size_t length) + void MixChannel(ISDLAudioChannel * channel, uint8 * data, size_t length) { sint32 byteRate = _format.GetByteRate(); sint32 numSamples = (sint32)(length / byteRate); @@ -372,7 +370,7 @@ namespace OpenRCT2 { namespace Audio * Resample the given buffer into _effectBuffer. * Assumes that srcBuffer is the same format as _format. */ - size_t ApplyResample(IAudioChannel * channel, const void * srcBuffer, sint32 srcSamples, sint32 dstSamples) + size_t ApplyResample(ISDLAudioChannel * channel, const void * srcBuffer, sint32 srcSamples, sint32 dstSamples) { sint32 byteRate = _format.GetByteRate(); @@ -536,4 +534,9 @@ namespace OpenRCT2 { namespace Audio return result; } }; + + IAudioMixer * AudioMixer::Create() + { + return new AudioMixerImpl(); + } } } diff --git a/src/openrct2-ui/audio/FileAudioSource.cpp b/src/openrct2-ui/audio/FileAudioSource.cpp index 70ce35f0d1..498e26aabd 100644 --- a/src/openrct2-ui/audio/FileAudioSource.cpp +++ b/src/openrct2-ui/audio/FileAudioSource.cpp @@ -27,7 +27,7 @@ namespace OpenRCT2 { namespace Audio * An audio source where raw PCM data is streamed directly from * a file. */ - class FileAudioSource final : public IAudioSource + class FileAudioSource final : public ISDLAudioSource { private: AudioFormat _format = { 0 }; @@ -41,12 +41,12 @@ namespace OpenRCT2 { namespace Audio Unload(); } - uint64 GetLength() override + uint64 GetLength() const override { return _dataLength; } - AudioFormat GetFormat() override + AudioFormat GetFormat() const override { return _format; } diff --git a/src/openrct2-ui/audio/MemoryAudioSource.cpp b/src/openrct2-ui/audio/MemoryAudioSource.cpp index efe3d6cc3d..2fbb152b95 100644 --- a/src/openrct2-ui/audio/MemoryAudioSource.cpp +++ b/src/openrct2-ui/audio/MemoryAudioSource.cpp @@ -29,7 +29,7 @@ namespace OpenRCT2 { namespace Audio * An audio source where raw PCM data is initially loaded into RAM from * a file and then streamed. */ - class MemoryAudioSource final : public IAudioSource + class MemoryAudioSource final : public ISDLAudioSource { private: AudioFormat _format = { 0 }; @@ -43,12 +43,12 @@ namespace OpenRCT2 { namespace Audio Unload(); } - uint64 GetLength() override + uint64 GetLength() const override { return _length; } - AudioFormat GetFormat() override + AudioFormat GetFormat() const override { return _format; } diff --git a/src/openrct2/audio/AudioChannel.h b/src/openrct2/audio/AudioChannel.h index 3c1c2ef3df..f5ed6f3998 100644 --- a/src/openrct2/audio/AudioChannel.h +++ b/src/openrct2/audio/AudioChannel.h @@ -32,9 +32,6 @@ namespace OpenRCT2 { namespace Audio virtual IAudioSource * GetSource() const abstract; - // virtual SpeexResamplerState * GetResampler() const abstract; - // virtual void SetResampler(SpeexResamplerState * value) abstract; - virtual sint32 GetGroup() const abstract; virtual void SetGroup(sint32 group) abstract; @@ -74,12 +71,6 @@ namespace OpenRCT2 { namespace Audio virtual void Play(IAudioSource * source, sint32 loop = 0) abstract; virtual void UpdateOldVolume() abstract; - // virtual AudioFormat GetFormat() const abstract; virtual size_t Read(void * dst, size_t len) abstract; }; - - namespace AudioChannel - { - IAudioChannel * Create(); - } } } diff --git a/src/openrct2/audio/AudioSource.h b/src/openrct2/audio/AudioSource.h index 3cdcb193df..52d067d0a0 100644 --- a/src/openrct2/audio/AudioSource.h +++ b/src/openrct2/audio/AudioSource.h @@ -28,7 +28,7 @@ namespace OpenRCT2 { namespace Audio { virtual ~IAudioSource() = default; - virtual uint64 GetLength() abstract; + virtual uint64 GetLength() const abstract; // virtual AudioFormat GetFormat() abstract; virtual size_t Read(void * dst, uint64 offset, size_t len) abstract; }; diff --git a/src/openrct2/audio/NullAudioSource.cpp b/src/openrct2/audio/NullAudioSource.cpp index 92112459d2..4a615ad05d 100644 --- a/src/openrct2/audio/NullAudioSource.cpp +++ b/src/openrct2/audio/NullAudioSource.cpp @@ -24,7 +24,7 @@ namespace OpenRCT2 { namespace Audio class NullAudioSource : public IAudioSource { public: - uint64 GetLength() override + uint64 GetLength() const override { return 0; } From 0440c3deeae067da54bba0c807cc0588f491d55c Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 18:44:19 +0100 Subject: [PATCH 144/670] Clean up audio.cpp --- src/openrct2-dll/openrct2-dll.cpp | 3 +- src/openrct2-ui/UiContext.cpp | 2 +- src/openrct2-ui/audio/AudioContext.cpp | 34 +- src/openrct2-ui/audio/AudioContext.h | 5 +- src/openrct2/audio/AudioContext.h | 6 +- src/openrct2/audio/AudioMixer.cpp | 6 +- src/openrct2/audio/audio.cpp | 646 +++++++++--------- src/openrct2/audio/audio.h | 296 ++++---- src/openrct2/input.c | 4 +- src/openrct2/interface/window.c | 2 +- src/openrct2/management/news_item.c | 2 +- src/openrct2/peep/peep.c | 2 +- src/openrct2/ride/ride.h | 3 +- .../windows/editor_object_selection.c | 2 +- src/openrct2/windows/error.c | 2 +- src/openrct2/windows/new_ride.c | 2 +- src/openrct2/windows/news.c | 4 +- src/openrct2/windows/ride_construction.c | 4 +- src/openrct2/windows/scenery.c | 2 +- src/openrct2/windows/title_scenarioselect.c | 2 +- src/openrct2/windows/track_list.c | 2 +- 21 files changed, 536 insertions(+), 495 deletions(-) diff --git a/src/openrct2-dll/openrct2-dll.cpp b/src/openrct2-dll/openrct2-dll.cpp index 83ca557473..162e47d9c5 100644 --- a/src/openrct2-dll/openrct2-dll.cpp +++ b/src/openrct2-dll/openrct2-dll.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include using namespace OpenRCT2; @@ -47,7 +48,7 @@ DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t * * argvW) IAudioContext * audioContext = CreateAudioContext(); IUiContext * uiContext = CreateUiContext(); - IContext * context = OpenRCT2::CreateContext(audioContext, uiContext); + IContext * context = CreateContext(audioContext, uiContext); int exitCode = context->RunOpenRCT2(argc, argv); diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 021ccfe29a..caf3c2a2cc 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -89,7 +89,7 @@ public: ~UiContext() override { CloseWindow(); - SDL_Quit(); + SDL_QuitSubSystem(SDL_INIT_VIDEO); } // Window diff --git a/src/openrct2-ui/audio/AudioContext.cpp b/src/openrct2-ui/audio/AudioContext.cpp index 3487732507..bf66fd90d8 100644 --- a/src/openrct2-ui/audio/AudioContext.cpp +++ b/src/openrct2-ui/audio/AudioContext.cpp @@ -14,7 +14,11 @@ *****************************************************************************/ #pragma endregion +#include +#include #include +#include +#include "../SDLException.h" #include "AudioContext.h" namespace OpenRCT2 { namespace Audio @@ -27,17 +31,43 @@ namespace OpenRCT2 { namespace Audio public: AudioContext() { + if (SDL_Init(SDL_INIT_AUDIO) < 0) + { + SDLException::Throw("SDL_Init(SDL_INIT_AUDIO)"); + } _audioMixer = AudioMixer::Create(); } + ~AudioContext() override + { + SDL_QuitSubSystem(SDL_INIT_AUDIO); + } + IAudioMixer * GetMixer() override { return _audioMixer; } - void SetOutputDevice(const char * deviceName) override + std::vector GetOutputDevices() override { - _audioMixer->Init(deviceName); + std::vector devices; + sint32 numDevices = SDL_GetNumAudioDevices(SDL_FALSE); + for (sint32 i = 0; i < numDevices; i++) + { + std::string deviceName = String::ToStd(SDL_GetAudioDeviceName(i, SDL_FALSE)); + devices.push_back(deviceName); + } + return devices; + } + + void SetOutputDevice(const std::string &deviceName) override + { + const char * szDeviceName = nullptr; + if (!deviceName.empty()) + { + szDeviceName = deviceName.c_str(); + } + _audioMixer->Init(szDeviceName); } IAudioSource * CreateStreamFromWAV(const std::string &path) override diff --git a/src/openrct2-ui/audio/AudioContext.h b/src/openrct2-ui/audio/AudioContext.h index 8f5e83bd35..38c2f917c1 100644 --- a/src/openrct2-ui/audio/AudioContext.h +++ b/src/openrct2-ui/audio/AudioContext.h @@ -12,7 +12,8 @@ typedef struct SpeexResamplerState_ SpeexResamplerState; namespace OpenRCT2 { namespace Audio { - struct AudioFormat; + struct AudioFormat; + interface IAudioContext; #pragma pack(push, 1) struct WaveFormat @@ -68,4 +69,6 @@ namespace OpenRCT2 { namespace Audio { IAudioMixer * Create(); } + + IAudioContext * CreateAudioContext(); } } diff --git a/src/openrct2/audio/AudioContext.h b/src/openrct2/audio/AudioContext.h index 45f5ad10d7..bf13391c00 100644 --- a/src/openrct2/audio/AudioContext.h +++ b/src/openrct2/audio/AudioContext.h @@ -17,6 +17,7 @@ #pragma once #include +#include #include "../common.h" namespace OpenRCT2 @@ -36,7 +37,8 @@ namespace OpenRCT2 virtual IAudioMixer * GetMixer() abstract; - virtual void SetOutputDevice(const char * deviceName) abstract; + virtual std::vector GetOutputDevices() abstract; + virtual void SetOutputDevice(const std::string &deviceName) abstract; virtual IAudioSource * CreateStreamFromWAV(const std::string &path) abstract; @@ -58,7 +60,5 @@ namespace OpenRCT2 virtual void StopTitleMusic() abstract; virtual void StopVehicleSounds() abstract; }; - - IAudioContext * CreateAudioContext(); } } diff --git a/src/openrct2/audio/AudioMixer.cpp b/src/openrct2/audio/AudioMixer.cpp index 7fcbe7355e..1a5d0b6ee3 100644 --- a/src/openrct2/audio/AudioMixer.cpp +++ b/src/openrct2/audio/AudioMixer.cpp @@ -41,7 +41,11 @@ static IAudioMixer * GetMixer() void Mixer_Init(const char * device) { IAudioContext * audioContext = GetContext()->GetAudioContext(); - audioContext->SetOutputDevice(device); + if (device == nullptr) + { + device = ""; + } + audioContext->SetOutputDevice(std::string(device)); } void * Mixer_Play_Effect(size_t id, sint32 loop, sint32 volume, float pan, double rate, sint32 deleteondone) diff --git a/src/openrct2/audio/audio.cpp b/src/openrct2/audio/audio.cpp index 8b034aab63..fa0f8babee 100644 --- a/src/openrct2/audio/audio.cpp +++ b/src/openrct2/audio/audio.cpp @@ -16,193 +16,197 @@ #include "../config/Config.h" #include "../Context.h" +#include "../core/Collections.hpp" #include "../core/File.h" #include "../core/FileStream.hpp" #include "../core/Memory.hpp" +#include "../core/String.hpp" #include "../core/Util.hpp" #include "../localisation/string_ids.h" #include "../OpenRCT2.h" #include "../ui/UiContext.h" +#include "audio.h" +#include "AudioContext.h" #include "AudioMixer.h" extern "C" { - #include "../interface/viewport.h" - #include "../intro.h" - #include "../localisation/language.h" - #include "../util/util.h" - #include "audio.h" + #include "../interface/viewport.h" + #include "../intro.h" + #include "../localisation/language.h" + #include "../ride/ride.h" + #include "../util/util.h" } -typedef struct rct_audio_params { - bool in_range; - sint32 volume; - sint32 pan; -} rct_audio_params; +using namespace OpenRCT2::Audio; -audio_device *gAudioDevices = NULL; -sint32 gAudioDeviceCount; -sint32 gAudioCurrentDevice = -1; -void *gCrowdSoundChannel = 0; -bool gGameSoundsOff = false; -void *gRainSoundChannel = 0; -rct_ride_music gRideMusicList[AUDIO_MAX_RIDE_MUSIC]; -rct_ride_music_params gRideMusicParamsList[6]; -rct_ride_music_params *gRideMusicParamsListEnd; -void *gTitleMusicChannel = 0; -rct_vehicle_sound gVehicleSoundList[AUDIO_MAX_VEHICLE_SOUNDS]; -rct_vehicle_sound_params gVehicleSoundParamsList[AUDIO_MAX_VEHICLE_SOUNDS]; -rct_vehicle_sound_params *gVehicleSoundParamsListEnd; -sint32 gVolumeAdjustZoom = 0; - -sint32 _volumeAdjust[SOUND_MAXID] = { - 0, // SOUND_LIFT_1 - 0, // SOUND_TRACK_FRICTION_1 - 0, // SOUND_LIFT_2 - 0, // SOUND_SCREAM_1 - 0, // SOUND_CLICK_1 - 0, // SOUND_CLICK_2 - 0, // SOUND_PLACE_ITEM - 0, // SOUND_SCREAM_2 - 0, // SOUND_SCREAM_3 - 0, // SOUND_SCREAM_4 - 0, // SOUND_SCREAM_5 - 0, // SOUND_SCREAM_6 - 0, // SOUND_LIFT_3 - -400, // SOUND_PURCHASE - 0, // SOUND_CRASH - 0, // SOUND_LAYING_OUT_WATER - 0, // SOUND_WATER_1 - 0, // SOUND_WATER_2 - 0, // SOUND_TRAIN_WHISTLE - 0, // SOUND_TRAIN_CHUGGING - -1000, // SOUND_WATER_SPLASH - 0, // SOUND_HAMMERING - -800, // SOUND_RIDE_LAUNCH_1 - -1700, // SOUND_RIDE_LAUNCH_2 - -700, // SOUND_COUGH_1 - -700, // SOUND_COUGH_2 - -700, // SOUND_COUGH_3 - -700, // SOUND_COUGH_4 - 0, // SOUND_RAIN_1 - 0, // SOUND_THUNDER_1 - 0, // SOUND_THUNDER_2 - 0, // SOUND_RAIN_2 - 0, // SOUND_RAIN_3 - 0, // SOUND_BALLOON_POP - -700, // SOUND_MECHANIC_FIX - 0, // SOUND_SCREAM_7 - -2500, // SOUND_TOILET_FLUSH original value: -1000 - 0, // SOUND_CLICK_3 - 0, // SOUND_QUACK - 0, // SOUND_NEWS_ITEM - 0, // SOUND_WINDOW_OPEN - -900, // SOUND_LAUGH_1 - -900, // SOUND_LAUGH_2 - -900, // SOUND_LAUGH_3 - 0, // SOUND_APPLAUSE - -600, // SOUND_HAUNTED_HOUSE_SCARE - -700, // SOUND_HAUNTED_HOUSE_SCREAM_1 - -700, // SOUND_HAUNTED_HOUSE_SCREAM_2 - -2550, // SOUND_48 - -2900, // SOUND_49 - 0, // SOUND_ERROR - -3400, // SOUND_51 - 0, // SOUND_LIFT_4 - 0, // SOUND_LIFT_5 - 0, // SOUND_TRACK_FRICTION_2 - 0, // SOUND_LIFT_6 - 0, // SOUND_LIFT_7 - 0, // SOUND_TRACK_FRICTION_3 - 0, // SOUND_SCREAM_8 - 0, // SOUND_TRAM - -2000, // SOUND_DOOR_OPEN - -2700, // SOUND_DOOR_CLOSE - -700 // SOUND_62 +struct AudioParams +{ + bool in_range; + sint32 volume; + sint32 pan; }; -rct_audio_params audio_get_params_from_location(sint32 soundId, const rct_xyz16 *location); -void audio_stop_channel(void **channel); +audio_device * gAudioDevices = nullptr; +sint32 gAudioDeviceCount; +sint32 gAudioCurrentDevice = -1; + +bool gGameSoundsOff = false; +sint32 gVolumeAdjustZoom = 0; + +void * gTitleMusicChannel = nullptr; +void * gRainSoundChannel = nullptr; + +rct_ride_music gRideMusicList[AUDIO_MAX_RIDE_MUSIC]; +rct_ride_music_params gRideMusicParamsList[6]; +rct_ride_music_params * gRideMusicParamsListEnd; + +rct_vehicle_sound gVehicleSoundList[AUDIO_MAX_VEHICLE_SOUNDS]; +rct_vehicle_sound_params gVehicleSoundParamsList[AUDIO_MAX_VEHICLE_SOUNDS]; +rct_vehicle_sound_params * gVehicleSoundParamsListEnd; + +static sint32 SoundVolumeAdjust[SOUND_MAXID] = +{ + 0, // SOUND_LIFT_1 + 0, // SOUND_TRACK_FRICTION_1 + 0, // SOUND_LIFT_2 + 0, // SOUND_SCREAM_1 + 0, // SOUND_CLICK_1 + 0, // SOUND_CLICK_2 + 0, // SOUND_PLACE_ITEM + 0, // SOUND_SCREAM_2 + 0, // SOUND_SCREAM_3 + 0, // SOUND_SCREAM_4 + 0, // SOUND_SCREAM_5 + 0, // SOUND_SCREAM_6 + 0, // SOUND_LIFT_3 + -400, // SOUND_PURCHASE + 0, // SOUND_CRASH + 0, // SOUND_LAYING_OUT_WATER + 0, // SOUND_WATER_1 + 0, // SOUND_WATER_2 + 0, // SOUND_TRAIN_WHISTLE + 0, // SOUND_TRAIN_CHUGGING + -1000, // SOUND_WATER_SPLASH + 0, // SOUND_HAMMERING + -800, // SOUND_RIDE_LAUNCH_1 + -1700, // SOUND_RIDE_LAUNCH_2 + -700, // SOUND_COUGH_1 + -700, // SOUND_COUGH_2 + -700, // SOUND_COUGH_3 + -700, // SOUND_COUGH_4 + 0, // SOUND_RAIN_1 + 0, // SOUND_THUNDER_1 + 0, // SOUND_THUNDER_2 + 0, // SOUND_RAIN_2 + 0, // SOUND_RAIN_3 + 0, // SOUND_BALLOON_POP + -700, // SOUND_MECHANIC_FIX + 0, // SOUND_SCREAM_7 + -2500, // SOUND_TOILET_FLUSH original value: -1000 + 0, // SOUND_CLICK_3 + 0, // SOUND_QUACK + 0, // SOUND_NEWS_ITEM + 0, // SOUND_WINDOW_OPEN + -900, // SOUND_LAUGH_1 + -900, // SOUND_LAUGH_2 + -900, // SOUND_LAUGH_3 + 0, // SOUND_APPLAUSE + -600, // SOUND_HAUNTED_HOUSE_SCARE + -700, // SOUND_HAUNTED_HOUSE_SCREAM_1 + -700, // SOUND_HAUNTED_HOUSE_SCREAM_2 + -2550, // SOUND_48 + -2900, // SOUND_49 + 0, // SOUND_ERROR + -3400, // SOUND_51 + 0, // SOUND_LIFT_4 + 0, // SOUND_LIFT_5 + 0, // SOUND_TRACK_FRICTION_2 + 0, // SOUND_LIFT_6 + 0, // SOUND_LIFT_7 + 0, // SOUND_TRACK_FRICTION_3 + 0, // SOUND_SCREAM_8 + 0, // SOUND_TRAM + -2000, // SOUND_DOOR_OPEN + -2700, // SOUND_DOOR_CLOSE + -700 // SOUND_62 +}; + +AudioParams audio_get_params_from_location(sint32 soundId, const rct_xyz16 *location); void audio_init() { - sint32 result = SDL_Init(SDL_INIT_AUDIO); - if (result < 0) { - log_error("SDL_Init %s", SDL_GetError()); - return; - } + if (str_is_null_or_empty(gConfigSound.device)) + { + Mixer_Init(NULL); + gAudioCurrentDevice = 0; + } + else + { + Mixer_Init(gConfigSound.device); - if (str_is_null_or_empty(gConfigSound.device)) { - Mixer_Init(NULL); - gAudioCurrentDevice = 0; - } else { - Mixer_Init(gConfigSound.device); - for (sint32 i = 0; i < gAudioDeviceCount; i++) { - if (strcmp(gAudioDevices[i].name, gConfigSound.device) == 0) { - gAudioCurrentDevice = i; - } - } - } -} - -void audio_quit() -{ - SDL_QuitSubSystem(SDL_INIT_AUDIO); + audio_populate_devices(); + for (sint32 i = 0; i < gAudioDeviceCount; i++) + { + if (String::Equals(gAudioDevices[i].name, gConfigSound.device)) + { + gAudioCurrentDevice = i; + } + } + } } void audio_populate_devices() { - if (gAudioDevices != NULL) - free(gAudioDevices); + if (gAudioDevices != nullptr) + { + Memory::Free(gAudioDevices); + gAudioDevices = nullptr; + } - gAudioDeviceCount = SDL_GetNumAudioDevices(SDL_FALSE); - if (gAudioDeviceCount <= 0) - return; + IAudioContext * audioContext = OpenRCT2::GetContext()->GetAudioContext(); + std::vector devices = audioContext->GetOutputDevices(); - audio_device * systemAudioDevices = Memory::AllocateArray(gAudioDeviceCount); - for (sint32 i = 0; i < gAudioDeviceCount; i++) { - const char *utf8Name = SDL_GetAudioDeviceName(i, SDL_FALSE); - if (utf8Name == NULL) - utf8Name = language_get_string(STR_OPTIONS_SOUND_VALUE_UNKNOWN); + // Replace blanks with localised unknown string + for (size_t i = 0; i < devices.size(); i++) + { + if (devices[i].empty()) + { + devices[i] = language_get_string(STR_OPTIONS_SOUND_VALUE_DEFAULT); + } + } - safe_strcpy(systemAudioDevices[i].name, utf8Name, AUDIO_DEVICE_NAME_SIZE); - } #ifndef __LINUX__ - gAudioDeviceCount++; - gAudioDevices = Memory::AllocateArray(gAudioDeviceCount); - safe_strcpy(gAudioDevices[0].name, language_get_string(STR_OPTIONS_SOUND_VALUE_DEFAULT), AUDIO_DEVICE_NAME_SIZE); - Memory::CopyArray(&gAudioDevices[1], systemAudioDevices, gAudioDeviceCount - 1); -#else - gAudioDevices = Memory::AllocateArray(gAudioDeviceCount); - Memory::CopyArray(gAudioDevices, systemAudioDevices, gAudioDeviceCount); -#endif // __LINUX__ + // The first device is always system default on Windows and macOS + std::string defaultDevice = language_get_string(STR_OPTIONS_SOUND_VALUE_DEFAULT); + devices.insert(devices.begin(), defaultDevice); +#endif - free(systemAudioDevices); -} - -sint32 audio_play_sound_panned(sint32 soundId, sint32 pan, sint16 x, sint16 y, sint16 z) -{ - if (pan == AUDIO_PLAY_AT_LOCATION) - return audio_play_sound_at_location(soundId, x, y, z); - - return audio_play_sound(soundId, 0, pan); + gAudioDeviceCount = (sint32)devices.size(); + gAudioDevices = Memory::AllocateArray(gAudioDeviceCount); + for (sint32 i = 0; i < gAudioDeviceCount; i++) + { + auto device = &gAudioDevices[i]; + String::Set(device->name, sizeof(device->name), devices[i].c_str()); + } } sint32 audio_play_sound_at_location(sint32 soundId, sint16 x, sint16 y, sint16 z) { - if (gGameSoundsOff) - return 0; + if (gGameSoundsOff) + return 0; - rct_xyz16 location; - location.x = x; - location.y = y; - location.z = z; + rct_xyz16 location; + location.x = x; + location.y = y; + location.z = z; - rct_audio_params params = audio_get_params_from_location(soundId, &location); - if (!params.in_range) - return soundId; - - return audio_play_sound(soundId, params.volume, params.pan); + AudioParams params = audio_get_params_from_location(soundId, &location); + if (params.in_range) + { + soundId = audio_play_sound(soundId, params.volume, params.pan); + } + return soundId; } /** @@ -211,229 +215,249 @@ sint32 audio_play_sound_at_location(sint32 soundId, sint16 x, sint16 y, sint16 z * @param location The location at which the sound effect is to be played. * @return The audio parameters to be used when playing this sound effect. */ -rct_audio_params audio_get_params_from_location(sint32 soundId, const rct_xyz16 *location) +AudioParams audio_get_params_from_location(sint32 soundId, const rct_xyz16 *location) { - sint32 volumeDown = 0; - rct_audio_params params; - params.in_range = true; - params.volume = 0; - params.pan = 0; + sint32 volumeDown = 0; + AudioParams params; + params.in_range = true; + params.volume = 0; + params.pan = 0; - rct_map_element *element = map_get_surface_element_at(location->x / 32, location->y / 32); - if (element && (element->base_height * 8) - 5 > location->z) - volumeDown = 10; + rct_map_element * element = map_get_surface_element_at(location->x >> 5, location->y >> 5); + if (element && (element->base_height * 8) - 5 > location->z) + { + volumeDown = 10; + } - uint8 rotation = get_current_rotation(); - rct_xy16 pos2 = coordinate_3d_to_2d(location, rotation); - rct_window *window = gWindowNextSlot; - while (true) { - window--; - if (window < g_window_list) - break; + uint8 rotation = get_current_rotation(); + rct_xy16 pos2 = coordinate_3d_to_2d(location, rotation); + rct_window * window = gWindowNextSlot; + while (true) + { + window--; + if (window < g_window_list) + { + break; + } - rct_viewport *viewport = window->viewport; - if (!viewport || !(viewport->flags & VIEWPORT_FLAG_SOUND_ON)) - continue; + rct_viewport * viewport = window->viewport; + if (viewport != nullptr && (viewport->flags & VIEWPORT_FLAG_SOUND_ON)) + { + sint16 vy = pos2.y - viewport->view_y; + sint16 vx = pos2.x - viewport->view_x; + params.pan = viewport->x + (vx >> viewport->zoom); + params.volume = SoundVolumeAdjust[soundId] + ((-1024 * viewport->zoom - 1) << volumeDown) + 1; - sint16 vy = pos2.y - viewport->view_y; - sint16 vx = pos2.x - viewport->view_x; - params.pan = viewport->x + (vx >> viewport->zoom); - params.volume = _volumeAdjust[soundId] + ((-1024 * viewport->zoom - 1) << volumeDown) + 1; + if (vy < 0 || vy >= viewport->view_height || vx < 0 || vx >= viewport->view_width || params.volume < -10000) + { + params.in_range = false; + return params; + } + } + } - if (vy < 0 || vy >= viewport->view_height || vx < 0 || vx >= viewport->view_width || params.volume < -10000) { - params.in_range = false; - return params; - } - } - - return params; + return params; } sint32 audio_play_sound(sint32 soundId, sint32 volume, sint32 pan) { - if (gGameSoundsOff) - return 0; + if (gGameSoundsOff) + return 0; - sint32 mixerPan = 0; - if (pan != AUDIO_PLAY_AT_CENTRE) { - sint32 x2 = pan << 16; - uint16 screenWidth = Math::Max(64, OpenRCT2::GetContext()->GetUiContext()->GetWidth()); - mixerPan = ((x2 / screenWidth) - 0x8000) >> 4; - } + sint32 mixerPan = 0; + if (pan != AUDIO_PLAY_AT_CENTRE) + { + sint32 x2 = pan << 16; + uint16 screenWidth = Math::Max(64, OpenRCT2::GetContext()->GetUiContext()->GetWidth()); + mixerPan = ((x2 / screenWidth) - 0x8000) >> 4; + } - Mixer_Play_Effect(soundId, MIXER_LOOP_NONE, DStoMixerVolume(volume), DStoMixerPan(mixerPan), 1, 1); - return 0; + Mixer_Play_Effect(soundId, MIXER_LOOP_NONE, DStoMixerVolume(volume), DStoMixerPan(mixerPan), 1, 1); + return 0; } void audio_start_title_music() { - if (gGameSoundsOff || !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) || gIntroState != INTRO_STATE_NONE) { - audio_stop_title_music(); - return; - } + if (gGameSoundsOff || !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) || gIntroState != INTRO_STATE_NONE) + { + audio_stop_title_music(); + return; + } - if (gTitleMusicChannel) - return; + if (gTitleMusicChannel != nullptr) + { + return; + } - sint32 pathId; - switch (gConfigSound.title_music) { - case 1: - pathId = PATH_ID_CSS50; - break; - case 2: - pathId = PATH_ID_CSS17; - break; - case 3: - if (util_rand() & 1) - pathId = PATH_ID_CSS50; - else - pathId = PATH_ID_CSS17; - break; - default: - return; - } + sint32 pathId; + switch (gConfigSound.title_music) { + case 1: + pathId = PATH_ID_CSS50; + break; + case 2: + pathId = PATH_ID_CSS17; + break; + case 3: + pathId = (util_rand() & 1) ? PATH_ID_CSS50 : + PATH_ID_CSS17; + break; + default: + return; + } - gTitleMusicChannel = Mixer_Play_Music(pathId, MIXER_LOOP_INFINITE, true); - if (gTitleMusicChannel != NULL) { - Mixer_Channel_SetGroup(gTitleMusicChannel, MIXER_GROUP_TITLE_MUSIC); - } + gTitleMusicChannel = Mixer_Play_Music(pathId, MIXER_LOOP_INFINITE, true); + if (gTitleMusicChannel != nullptr) + { + Mixer_Channel_SetGroup(gTitleMusicChannel, MIXER_GROUP_TITLE_MUSIC); + } } void audio_stop_ride_music() { - for (sint32 i = 0; i < AUDIO_MAX_RIDE_MUSIC; i++) { - rct_ride_music *rideMusic = &gRideMusicList[i]; - if (rideMusic->ride_id == (uint8)-1) - continue; - - if (rideMusic->sound_channel) - Mixer_Stop_Channel(rideMusic->sound_channel); - - rideMusic->ride_id = -1; - } + for (sint32 i = 0; i < AUDIO_MAX_RIDE_MUSIC; i++) + { + rct_ride_music * rideMusic = &gRideMusicList[i]; + if (rideMusic->ride_id != RIDE_ID_NULL) + { + rideMusic->ride_id = RIDE_ID_NULL; + if (rideMusic->sound_channel != nullptr) + { + Mixer_Stop_Channel(rideMusic->sound_channel); + } + } + } } void audio_stop_all_music_and_sounds() { - audio_stop_title_music(); - audio_stop_vehicle_sounds(); - audio_stop_ride_music(); - peep_stop_crowd_noise(); - audio_stop_rain_sound(); + audio_stop_title_music(); + audio_stop_vehicle_sounds(); + audio_stop_ride_music(); + peep_stop_crowd_noise(); + audio_stop_rain_sound(); } void audio_stop_title_music() { - audio_stop_channel(&gTitleMusicChannel); + if (gTitleMusicChannel != nullptr) + { + Mixer_Stop_Channel(gTitleMusicChannel); + gTitleMusicChannel = nullptr; + } } void audio_stop_rain_sound() { - audio_stop_channel(&gRainSoundChannel); -} - -/** -* Stops the specified audio channel from playing. -* @param channel The channel to stop. -*/ -void audio_stop_channel(void **channel) -{ - if (!*channel) - return; - - Mixer_Stop_Channel(*channel); - *channel = 0; + if (gRainSoundChannel != nullptr) + { + Mixer_Stop_Channel(gRainSoundChannel); + gRainSoundChannel = nullptr; + } } void audio_init_ride_sounds_and_info() { - sint32 deviceNum = 0; - audio_init_ride_sounds(deviceNum); + sint32 deviceNum = 0; + audio_init_ride_sounds(deviceNum); - for (size_t m = 0; m < Util::CountOf(gRideMusicInfoList); m++) { - rct_ride_music_info *rideMusicInfo = gRideMusicInfoList[m]; - const utf8 *path = get_file_path(rideMusicInfo->path_id); - if (File::Exists(path)) - { - try - { - auto fs = FileStream(path, FILE_MODE_OPEN); - uint32 head = fs.ReadValue(); - if (head == 0x78787878) { - rideMusicInfo->length = 0; - } - } - catch (const Exception &) - { - } - } - } + for (size_t m = 0; m < Util::CountOf(gRideMusicInfoList); m++) + { + rct_ride_music_info *rideMusicInfo = gRideMusicInfoList[m]; + const utf8 *path = get_file_path(rideMusicInfo->path_id); + if (File::Exists(path)) + { + try + { + auto fs = FileStream(path, FILE_MODE_OPEN); + uint32 head = fs.ReadValue(); + if (head == 0x78787878) + { + rideMusicInfo->length = 0; + } + } + catch (const Exception &) + { + } + } + } } void audio_init_ride_sounds(sint32 device) { - audio_close(); - for (sint32 i = 0; i < AUDIO_MAX_VEHICLE_SOUNDS; i++) { - rct_vehicle_sound *vehicleSound = &gVehicleSoundList[i]; - vehicleSound->id = -1; - } + audio_close(); + for (sint32 i = 0; i < AUDIO_MAX_VEHICLE_SOUNDS; i++) + { + rct_vehicle_sound * vehicleSound = &gVehicleSoundList[i]; + vehicleSound->id = 0xFFFF; + } - gAudioCurrentDevice = device; - config_save_default(); - for (sint32 i = 0; i < AUDIO_MAX_RIDE_MUSIC; i++) { - rct_ride_music *rideMusic = &gRideMusicList[i]; - rideMusic->ride_id = -1; - } + gAudioCurrentDevice = device; + config_save_default(); + for (sint32 i = 0; i < AUDIO_MAX_RIDE_MUSIC; i++) + { + rct_ride_music * rideMusic = &gRideMusicList[i]; + rideMusic->ride_id = RIDE_ID_NULL; + } } void audio_close() { - peep_stop_crowd_noise(); - audio_stop_title_music(); - audio_stop_ride_music(); - audio_stop_rain_sound(); - gAudioCurrentDevice = -1; + peep_stop_crowd_noise(); + audio_stop_title_music(); + audio_stop_ride_music(); + audio_stop_rain_sound(); + gAudioCurrentDevice = -1; } void audio_toggle_all_sounds() { - if (gGameSoundsOff) { - audio_unpause_sounds(); - } else { - audio_pause_sounds(); - } + gConfigSound.sound_enabled = !gConfigSound.sound_enabled; + if (gConfigSound.sound_enabled) + { + audio_unpause_sounds(); + } + else + { + audio_stop_title_music(); + audio_pause_sounds(); + } } void audio_pause_sounds() { - gGameSoundsOff = true; - audio_stop_vehicle_sounds(); - audio_stop_ride_music(); - peep_stop_crowd_noise(); - audio_stop_rain_sound(); + gGameSoundsOff = true; + audio_stop_vehicle_sounds(); + audio_stop_ride_music(); + peep_stop_crowd_noise(); + audio_stop_rain_sound(); } void audio_unpause_sounds() { - gGameSoundsOff = false; + gGameSoundsOff = false; } void audio_stop_vehicle_sounds() { - if (gOpenRCT2Headless || gAudioCurrentDevice == -1) - return; + if (gAudioCurrentDevice == -1) + { + return; + } - for (size_t i = 0; i < Util::CountOf(gVehicleSoundList); i++) { - rct_vehicle_sound *vehicleSound = &gVehicleSoundList[i]; - if (vehicleSound->id == 0xFFFF) - continue; - - if (vehicleSound->sound1_id != 0xFFFF) - Mixer_Stop_Channel(vehicleSound->sound1_channel); - - if (vehicleSound->sound2_id != 0xFFFF) - Mixer_Stop_Channel(vehicleSound->sound2_channel); - - vehicleSound->id = 0xFFFF; - } + for (size_t i = 0; i < Util::CountOf(gVehicleSoundList); i++) + { + rct_vehicle_sound * vehicleSound = &gVehicleSoundList[i]; + if (vehicleSound->id != 0xFFFF) + { + vehicleSound->id = 0xFFFF; + if (vehicleSound->sound1_id != 0xFFFF) + { + Mixer_Stop_Channel(vehicleSound->sound1_channel); + } + if (vehicleSound->sound2_id != 0xFFFF) + { + Mixer_Stop_Channel(vehicleSound->sound2_channel); + } + } + } } diff --git a/src/openrct2/audio/audio.h b/src/openrct2/audio/audio.h index 0e96de0265..537b33d324 100644 --- a/src/openrct2/audio/audio.h +++ b/src/openrct2/audio/audio.h @@ -17,167 +17,164 @@ #pragma once #include "../common.h" -#include "../world/sprite.h" #ifdef __cplusplus extern "C" { #endif -#define AUDIO_DEVICE_NAME_SIZE 256 -#define AUDIO_MAX_RIDE_MUSIC 2 -#define AUDIO_MAX_VEHICLE_SOUNDS 14 -#define NUM_DEFAULT_MUSIC_TRACKS 46 -#define AUDIO_PLAY_AT_CENTRE 0x8000 -#define AUDIO_PLAY_AT_LOCATION 0x8001 +#define AUDIO_DEVICE_NAME_SIZE 256 +#define AUDIO_MAX_RIDE_MUSIC 2 +#define AUDIO_MAX_VEHICLE_SOUNDS 14 +#define NUM_DEFAULT_MUSIC_TRACKS 46 +#define AUDIO_PLAY_AT_CENTRE 0x8000 +#define AUDIO_PLAY_AT_LOCATION 0x8001 -typedef struct audio_device { - char name[AUDIO_DEVICE_NAME_SIZE]; +typedef struct audio_device +{ + char name[AUDIO_DEVICE_NAME_SIZE]; } audio_device; -#pragma pack(push, 1) - -typedef struct rct_ride_music { - uint8 ride_id; - uint8 tune_id; - sint16 volume; - sint16 pan; - uint16 frequency; - void* sound_channel; +typedef struct rct_ride_music +{ + uint8 ride_id; + uint8 tune_id; + sint16 volume; + sint16 pan; + uint16 frequency; + void* sound_channel; } rct_ride_music; -#ifdef PLATFORM_32BIT -assert_struct_size(rct_ride_music, 12); -#endif -typedef struct rct_ride_music_info { - uint32 length; - uint32 offset; - uint8 path_id; - uint8 var_9; +typedef struct rct_ride_music_info +{ + uint32 length; + uint32 offset; + uint8 path_id; + uint8 var_9; } rct_ride_music_info; -assert_struct_size(rct_ride_music_info, 10); -typedef struct rct_ride_music_params { - uint8 ride_id; - uint8 tune_id; - sint32 offset; - sint16 volume; - sint16 pan; - uint16 frequency; +typedef struct rct_ride_music_params +{ + uint8 ride_id; + uint8 tune_id; + sint32 offset; + sint16 volume; + sint16 pan; + uint16 frequency; } rct_ride_music_params; -assert_struct_size(rct_ride_music_params, 12); -typedef struct rct_vehicle_sound { - uint16 id; - sint16 volume; - uint16 sound1_id; - sint16 sound1_volume; - sint16 sound1_pan; - uint16 sound1_freq; - uint16 sound2_id; - sint16 sound2_volume; - sint16 sound2_pan; - uint16 sound2_freq; - void* sound1_channel; - void* sound2_channel; +typedef struct rct_vehicle_sound +{ + uint16 id; + sint16 volume; + uint16 sound1_id; + sint16 sound1_volume; + sint16 sound1_pan; + uint16 sound1_freq; + uint16 sound2_id; + sint16 sound2_volume; + sint16 sound2_pan; + uint16 sound2_freq; + void* sound1_channel; + void* sound2_channel; } rct_vehicle_sound; -#ifdef PLATFORM_32BIT -assert_struct_size(rct_vehicle_sound, 28); -#endif -typedef struct rct_vehicle_sound_params { - uint16 id; - sint16 pan_x; - sint16 pan_y; - uint16 frequency; - sint16 volume; - uint16 var_A; +typedef struct rct_vehicle_sound_params +{ + uint16 id; + sint16 pan_x; + sint16 pan_y; + uint16 frequency; + sint16 volume; + uint16 var_A; } rct_vehicle_sound_params; -assert_struct_size(rct_vehicle_sound_params, 12); -#pragma pack(pop) - -typedef enum RCT2_SOUND { - SOUND_LIFT_1 = 0, - SOUND_TRACK_FRICTION_1 = 1, - SOUND_LIFT_2 = 2, - SOUND_SCREAM_1 = 3, - SOUND_CLICK_1 = 4, - SOUND_CLICK_2 = 5, - SOUND_PLACE_ITEM = 6, - SOUND_SCREAM_2 = 7, - SOUND_SCREAM_3 = 8, - SOUND_SCREAM_4 = 9, - SOUND_SCREAM_5 = 10, - SOUND_SCREAM_6 = 11, - SOUND_LIFT_3 = 12, - SOUND_PURCHASE = 13, - SOUND_CRASH = 14, - SOUND_LAYING_OUT_WATER = 15, - SOUND_WATER_1 = 16, - SOUND_WATER_2 = 17, - SOUND_TRAIN_WHISTLE = 18, - SOUND_TRAIN_CHUGGING = 19, - SOUND_WATER_SPLASH = 20, - SOUND_HAMMERING = 21, - SOUND_RIDE_LAUNCH_1 = 22, - SOUND_RIDE_LAUNCH_2 = 23, - SOUND_COUGH_1 = 24, - SOUND_COUGH_2 = 25, - SOUND_COUGH_3 = 26, - SOUND_COUGH_4 = 27, - SOUND_RAIN_1 = 28, - SOUND_THUNDER_1 = 29, - SOUND_THUNDER_2 = 30, - SOUND_RAIN_2 = 31, - SOUND_RAIN_3 = 32, - SOUND_BALLOON_POP = 33, - SOUND_MECHANIC_FIX = 34, - SOUND_SCREAM_7 = 35, - SOUND_TOILET_FLUSH = 36, - SOUND_CLICK_3 = 37, - SOUND_QUACK = 38, - SOUND_NEWS_ITEM = 39, - SOUND_WINDOW_OPEN = 40, - SOUND_LAUGH_1 = 41, - SOUND_LAUGH_2 = 42, - SOUND_LAUGH_3 = 43, - SOUND_APPLAUSE = 44, - SOUND_HAUNTED_HOUSE_SCARE = 45, - SOUND_HAUNTED_HOUSE_SCREAM_1 = 46, - SOUND_HAUNTED_HOUSE_SCREAM_2 = 47, - SOUND_48 = 48, - SOUND_49 = 49, - SOUND_ERROR = 50, - SOUND_51 = 51, - SOUND_LIFT_4 = 52, - SOUND_LIFT_5 = 53, - SOUND_TRACK_FRICTION_2 = 54, - SOUND_LIFT_6 = 55, - SOUND_LIFT_7 = 56, - SOUND_TRACK_FRICTION_3 = 57, - SOUND_SCREAM_8 = 58, - SOUND_TRAM = 59, - SOUND_DOOR_OPEN = 60, - SOUND_DOOR_CLOSE = 61, - SOUND_62 = 62, - SOUND_MAXID +typedef enum RCT2_SOUND +{ + SOUND_LIFT_1, + SOUND_TRACK_FRICTION_1, + SOUND_LIFT_2, + SOUND_SCREAM_1, + SOUND_CLICK_1, + SOUND_CLICK_2, + SOUND_PLACE_ITEM, + SOUND_SCREAM_2, + SOUND_SCREAM_3, + SOUND_SCREAM_4, + SOUND_SCREAM_5, + SOUND_SCREAM_6, + SOUND_LIFT_3, + SOUND_PURCHASE, + SOUND_CRASH, + SOUND_LAYING_OUT_WATER, + SOUND_WATER_1, + SOUND_WATER_2, + SOUND_TRAIN_WHISTLE, + SOUND_TRAIN_CHUGGING, + SOUND_WATER_SPLASH, + SOUND_HAMMERING, + SOUND_RIDE_LAUNCH_1, + SOUND_RIDE_LAUNCH_2, + SOUND_COUGH_1, + SOUND_COUGH_2, + SOUND_COUGH_3, + SOUND_COUGH_4, + SOUND_RAIN_1, + SOUND_THUNDER_1, + SOUND_THUNDER_2, + SOUND_RAIN_2, + SOUND_RAIN_3, + SOUND_BALLOON_POP, + SOUND_MECHANIC_FIX, + SOUND_SCREAM_7, + SOUND_TOILET_FLUSH, + SOUND_CLICK_3, + SOUND_QUACK, + SOUND_NEWS_ITEM, + SOUND_WINDOW_OPEN, + SOUND_LAUGH_1, + SOUND_LAUGH_2, + SOUND_LAUGH_3, + SOUND_APPLAUSE, + SOUND_HAUNTED_HOUSE_SCARE, + SOUND_HAUNTED_HOUSE_SCREAM_1, + SOUND_HAUNTED_HOUSE_SCREAM_2, + SOUND_48, + SOUND_49, + SOUND_ERROR, + SOUND_51, + SOUND_LIFT_4, + SOUND_LIFT_5, + SOUND_TRACK_FRICTION_2, + SOUND_LIFT_6, + SOUND_LIFT_7, + SOUND_TRACK_FRICTION_3, + SOUND_SCREAM_8, + SOUND_TRAM, + SOUND_DOOR_OPEN, + SOUND_DOOR_CLOSE, + SOUND_62, + SOUND_MAXID } RCT2_SOUND; -extern audio_device *gAudioDevices; -extern sint32 gAudioDeviceCount; -extern sint32 gAudioCurrentDevice; -extern bool gGameSoundsOff; -extern void *gRainSoundChannel; -extern rct_ride_music gRideMusicList[AUDIO_MAX_RIDE_MUSIC]; -extern rct_ride_music_info *gRideMusicInfoList[NUM_DEFAULT_MUSIC_TRACKS]; -extern rct_ride_music_params gRideMusicParamsList[6]; -extern rct_ride_music_params *gRideMusicParamsListEnd; -extern void *gTitleMusicChannel; -extern rct_vehicle_sound gVehicleSoundList[AUDIO_MAX_VEHICLE_SOUNDS]; -extern rct_vehicle_sound_params gVehicleSoundParamsList[AUDIO_MAX_VEHICLE_SOUNDS]; -extern rct_vehicle_sound_params *gVehicleSoundParamsListEnd; -extern sint32 gVolumeAdjustZoom; +extern audio_device * gAudioDevices; +extern sint32 gAudioDeviceCount; +extern sint32 gAudioCurrentDevice; + +extern bool gGameSoundsOff; +extern sint32 gVolumeAdjustZoom; + +extern void * gTitleMusicChannel; +extern void * gRainSoundChannel; + +extern rct_ride_music gRideMusicList[AUDIO_MAX_RIDE_MUSIC]; +extern rct_ride_music_info * gRideMusicInfoList[NUM_DEFAULT_MUSIC_TRACKS]; +extern rct_ride_music_params gRideMusicParamsList[6]; +extern rct_ride_music_params * gRideMusicParamsListEnd; + +extern rct_vehicle_sound gVehicleSoundList[AUDIO_MAX_VEHICLE_SOUNDS]; +extern rct_vehicle_sound_params gVehicleSoundParamsList[AUDIO_MAX_VEHICLE_SOUNDS]; +extern rct_vehicle_sound_params * gVehicleSoundParamsListEnd; /** * Deregisters the audio device. @@ -222,29 +219,10 @@ sint32 audio_play_sound(sint32 soundId, sint32 volume, sint32 pan); */ sint32 audio_play_sound_at_location(sint32 soundId, sint16 x, sint16 y, sint16 z); /** -* rct2: 0x006BB76E -* @deprecated Use audio_play_sound_at_location or audio_play_sound instead. -* Plays the specified sound effect at a location specified by the pan parameter. -* @param soundId (eax) The sound effect to play. -* @param pan (ebx) If set to AUDIO_PLAY_AT_LOCATION, play the sound at the specified location; if set to AUDIO_PLAY_AT_CENTRE, -* play the sound at the centre of the viewport; if set to anything else, use the value of pan as a relative position to the -* centre of the viewport. -* @param x (cx) The x coordinate of the location. -* @param y (dx) The y coordinate of the location. -* @param z (bp) The z coordinate of the location. -* @return 0 if the sound was not out of range; otherwise, soundId. -*/ -sint32 audio_play_sound_panned(sint32 soundId, sint32 pan, sint16 x, sint16 y, sint16 z); -/** * Populates the gAudioDevices array with the available audio devices. */ void audio_populate_devices(); /** -* Terminates the audio subsystem. -* This appears to be unused. -*/ -void audio_quit(); -/** * Starts playing the title music. * rct2: 0x006BD0F8 */ diff --git a/src/openrct2/input.c b/src/openrct2/input.c index 3a82b54037..2673b885bc 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -1017,7 +1017,7 @@ static void input_widget_left(sint32 x, sint32 y, rct_window *w, rct_widgetindex break; default: if (widget_is_enabled(w, widgetIndex) && !widget_is_disabled(w, widgetIndex)) { - audio_play_sound_panned(SOUND_CLICK_1, w->x + (widget->left + widget->right) / 2, 0, 0, 0); + audio_play_sound(SOUND_CLICK_1, 0, w->x + ((widget->left + widget->right) / 2)); // Set new cursor down widget gPressedWidget.window_classification = windowClass; @@ -1271,7 +1271,7 @@ void input_state_widget_pressed(sint32 x, sint32 y, sint32 state, rct_widgetinde break; sint32 mid_point_x = (widget->left + widget->right) / 2 + w->x; - audio_play_sound_panned(5, mid_point_x, 0, 0, 0); + audio_play_sound(SOUND_CLICK_2, 0, mid_point_x); if (cursor_w_class != w->classification || cursor_w_number != w->number || widgetIndex != cursor_widgetIndex) break; diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 75dfd10f12..97824b2a85 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -456,7 +456,7 @@ rct_window *window_create(sint32 x, sint32 y, sint32 width, sint32 height, rct_w // Play sounds and flash the window if (!(flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT))){ w->flags |= WF_WHITE_BORDER_MASK; - audio_play_sound_panned(SOUND_WINDOW_OPEN, x + (width / 2), 0, 0, 0); + audio_play_sound(SOUND_WINDOW_OPEN, 0, x + (width / 2)); } w->number = 0; diff --git a/src/openrct2/management/news_item.c b/src/openrct2/management/news_item.c index 6726b2821b..85ffbec1cd 100644 --- a/src/openrct2/management/news_item.c +++ b/src/openrct2/management/news_item.c @@ -98,7 +98,7 @@ static void news_item_tick_current() // Only play news item sound when in normal playing mode if (ticks == 1 && (gScreenFlags == SCREEN_FLAGS_PLAYING)) { // Play sound - audio_play_sound_panned(SOUND_NEWS_ITEM, context_get_width() / 2, 0, 0, 0); + audio_play_sound(SOUND_NEWS_ITEM, 0, context_get_width() / 2); } } diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index f4e9bc39a0..22769e79bd 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -7008,7 +7008,7 @@ void peep_applause() } // Play applause noise - audio_play_sound_panned(SOUND_APPLAUSE, context_get_width() / 2, 0, 0, 0); + audio_play_sound(SOUND_APPLAUSE, 0, context_get_width() / 2); } /** diff --git a/src/openrct2/ride/ride.h b/src/openrct2/ride/ride.h index 8909ac1c2c..605ba53df6 100644 --- a/src/openrct2/ride/ride.h +++ b/src/openrct2/ride/ride.h @@ -900,7 +900,8 @@ typedef struct rct_ride_properties { extern const rct_ride_properties RideProperties[RIDE_TYPE_COUNT]; -#define MAX_RIDES 255 +#define MAX_RIDES 255 +#define RIDE_ID_NULL 255 #define RIDE_MODE_COUNT 37 diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index dee737a89f..ab6dd26fa3 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -1004,7 +1004,7 @@ static void window_editor_object_selection_scroll_mousedown(rct_window *w, sint3 window_invalidate(w); const CursorState * state = context_get_cursor_state(); - audio_play_sound_panned(SOUND_CLICK_1, state->x, 0, 0, 0); + audio_play_sound(SOUND_CLICK_1, 0, state->x); if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) { diff --git a/src/openrct2/windows/error.c b/src/openrct2/windows/error.c index cc874b8693..3c980207db 100644 --- a/src/openrct2/windows/error.c +++ b/src/openrct2/windows/error.c @@ -139,7 +139,7 @@ void window_error_open(rct_string_id title, rct_string_id message) w->widgets = window_error_widgets; w->error.var_480 = 0; if (!gDisableErrorWindowSound) { - audio_play_sound_panned(SOUND_ERROR, 0, w->x + (w->width / 2), 0, 0); + audio_play_sound(SOUND_ERROR, 0, w->x + (w->width / 2)); } } diff --git a/src/openrct2/windows/new_ride.c b/src/openrct2/windows/new_ride.c index 2fdffcd9f6..7859426b9b 100644 --- a/src/openrct2/windows/new_ride.c +++ b/src/openrct2/windows/new_ride.c @@ -695,7 +695,7 @@ static void window_new_ride_scrollmousedown(rct_window *w, sint32 scrollIndex, s _windowNewRideHighlightedItem[_windowNewRideCurrentTab] = item; w->new_ride.selected_ride_id = item.ride_type_and_entry; - audio_play_sound_panned(SOUND_CLICK_1, w->x + (w->width / 2), 0, 0, 0); + audio_play_sound(SOUND_CLICK_1, 0, w->x + (w->width / 2)); w->new_ride.selected_ride_countdown = 8; window_invalidate(w); } diff --git a/src/openrct2/windows/news.c b/src/openrct2/windows/news.c index ac2cd2ad3d..eca56716b5 100644 --- a/src/openrct2/windows/news.c +++ b/src/openrct2/windows/news.c @@ -145,7 +145,7 @@ static void window_news_update(rct_window *w) return; window_invalidate(w); - audio_play_sound_panned(SOUND_CLICK_2, w->x + (w->width / 2), 0, 0, 0); + audio_play_sound(SOUND_CLICK_2, 0, w->x + (w->width / 2)); j = w->news.var_480; w->news.var_480 = -1; @@ -237,7 +237,7 @@ static void window_news_scrollmousedown(rct_window *w, sint32 scrollIndex, sint3 w->news.var_482 = buttonIndex; w->news.var_484 = 4; window_invalidate(w); - audio_play_sound_panned(SOUND_CLICK_1, w->x + (w->width / 2), 0, 0, 0); + audio_play_sound(SOUND_CLICK_1, 0, w->x + (w->width / 2)); } } diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index 5744c192c9..ed1432499b 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -3925,7 +3925,7 @@ void ride_construction_tooldown_construct(sint32 screenX, sint32 screenY) zAttempts == 0 || z < 0 ) { - audio_play_sound_panned(SOUND_ERROR, state->x, x, y, z); + audio_play_sound(SOUND_ERROR, 0, state->x); w = window_find_by_class(WC_RIDE_CONSTRUCTION); if (w != NULL){ tool_set(w, WIDX_CONSTRUCT, TOOL_CROSSHAIR); @@ -3997,7 +3997,7 @@ void ride_construction_tooldown_construct(sint32 screenX, sint32 screenY) _currentTrackAlternative = saveCurrentTrackAlternative; _currentTrackLiftHill = saveCurrentTrackLiftHill; - audio_play_sound_panned(SOUND_ERROR, state->x, x, y, z); + audio_play_sound(SOUND_ERROR, 0, state->x); break; } else if (zAttempts >= 0) { z += 16; diff --git a/src/openrct2/windows/scenery.c b/src/openrct2/windows/scenery.c index 4969baa6c2..2e11b4094c 100644 --- a/src/openrct2/windows/scenery.c +++ b/src/openrct2/windows/scenery.c @@ -843,7 +843,7 @@ void window_scenery_scrollmousedown(rct_window *w, sint32 scrollIndex, sint32 x, gWindowSceneryPaintEnabled &= 0xFE; gWindowSceneryEyedropperEnabled = false; - audio_play_sound_panned(4, (w->width >> 1) + w->x, 0, 0, 0); + audio_play_sound(4, 0, w->x + (w->width / 2)); w->scenery.hover_counter = -16; gSceneryPlaceCost = MONEY32_UNDEFINED; window_invalidate(w); diff --git a/src/openrct2/windows/title_scenarioselect.c b/src/openrct2/windows/title_scenarioselect.c index f9eb5c3b48..42b95539ee 100644 --- a/src/openrct2/windows/title_scenarioselect.c +++ b/src/openrct2/windows/title_scenarioselect.c @@ -286,7 +286,7 @@ static void window_scenarioselect_scrollmousedown(rct_window *w, sint32 scrollIn case LIST_ITEM_TYPE_SCENARIO: y -= 24; if (y < 0 && !listItem->scenario.is_locked) { - audio_play_sound_panned(SOUND_CLICK_1, w->width / 2 + w->x, 0, 0, 0); + audio_play_sound(SOUND_CLICK_1, 0, w->x + (w->width / 2)); _callback(listItem->scenario.scenario->path); } break; diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 4e44db18f0..89bd81afe3 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -193,7 +193,7 @@ static void window_track_list_select(rct_window *w, sint32 index) return; } - audio_play_sound_panned(SOUND_CLICK_1, w->x + (w->width / 2), 0, 0, 0); + audio_play_sound(SOUND_CLICK_1, 0, w->x + (w->width / 2)); if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) { if (index == 0) { window_close(w); From a020a9fbef9a92674857f8d9716d6f2e6e54d0bb Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 29 Mar 2017 19:37:56 +0100 Subject: [PATCH 145/670] Fix premature deletion of platform context --- src/openrct2-ui/UiContext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index caf3c2a2cc..19c9997b14 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -76,8 +76,8 @@ private: float _gestureRadius; public: - UiContext(IPlatformUiContext * platformUiContext) - : _platformUiContext(platformUiContext) + UiContext() + : _platformUiContext(CreatePlatformUiContext()) { if (SDL_Init(SDL_INIT_VIDEO) < 0) { @@ -90,6 +90,7 @@ public: { CloseWindow(); SDL_QuitSubSystem(SDL_INIT_VIDEO); + delete _platformUiContext; } // Window @@ -604,6 +605,5 @@ private: IUiContext * OpenRCT2::Ui::CreateUiContext() { - auto platformUiContext = std::unique_ptr(CreatePlatformUiContext()); - return new UiContext(platformUiContext.get()); + return new UiContext(); } From 3fcd42fe2bf547ea8495020f5786098a1627b9bf Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 1 Apr 2017 13:38:52 +0100 Subject: [PATCH 146/670] Move more window code to UiContext --- src/openrct2-ui/UiContext.Linux.cpp | 179 ++++++++++++++++++++++++++ src/openrct2-ui/UiContext.Win32.cpp | 14 +- src/openrct2-ui/UiContext.cpp | 42 +++++- src/openrct2-ui/UiContext.h | 2 + src/openrct2-ui/libopenrct2ui.vcxproj | 1 + src/openrct2/Context.cpp | 24 ++-- src/openrct2/Context.h | 2 + src/openrct2/config/Config.cpp | 13 +- src/openrct2/core/String.cpp | 24 ++++ src/openrct2/core/String.hpp | 6 +- src/openrct2/drawing/sprite.cpp | 13 +- src/openrct2/input.c | 4 +- src/openrct2/platform/Platform2.cpp | 32 +++++ src/openrct2/platform/Platform2.h | 24 ++++ src/openrct2/platform/linux.c | 92 ------------- src/openrct2/platform/platform.h | 3 - src/openrct2/platform/posix.c | 6 - src/openrct2/platform/shared.c | 1 - src/openrct2/platform/windows.c | 34 +---- src/openrct2/ui/UiContext.h | 4 + src/openrct2/windows/options.c | 2 +- 21 files changed, 357 insertions(+), 165 deletions(-) create mode 100644 src/openrct2-ui/UiContext.Linux.cpp create mode 100644 src/openrct2/platform/Platform2.cpp create mode 100644 src/openrct2/platform/Platform2.h diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp new file mode 100644 index 0000000000..a23cf050ac --- /dev/null +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -0,0 +1,179 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#ifdef __linux__ + +#include +#include +#include +#include "UiContext.h" + +namespace OpenRCT2 { namespace Ui +{ + enum class DIALOG_TYPE + { + NONE, + KDIALOG, + ZENITY, + }; + + class LinuxContext : public IPlatformUiContext + { + private: + + public: + LinuxContext() + { + } + + void SetWindowIcon(SDL_Window * window) override + { + } + + bool IsSteamOverlayAttached() override + { + // See http://syprog.blogspot.ru/2011/12/listing-loaded-shared-objects-in-linux.html + struct lmap + { + void * base_address; + char * path; + void * unused; + lmap * next; + lmap * prev; + }; + + struct dummy + { + void * pointers[3]; + dummy * ptr; + }; + + bool result = false; + void * processHandle = dlopen(nullptr, RTLD_NOW); + if (processHandle != nullptr) + { + dummy * p = ((dummy *)processHandle)->ptr; + lmap * pl = (lmap *)p->ptr; + while (pl != nullptr) + { + if (strstr(pl->path, "gameoverlayrenderer.so") != nullptr) + { + result = true; + break; + } + pl = pl->next; + } + dlclose(processHandle); + } + return result; + } + + void ShowMessageBox(SDL_Window * window, const std::string &message) override + { + log_verbose(message.c_str()); + + std::string executablePath; + DIALOG_TYPE dtype = GetDialogApp(&executablePath); + + switch (dtype) { + case DIALOG_TYPE::KDIALOG: + { + std::string cmd = String::Format("%s --title \"OpenRCT2\" --msgbox \"%s\"", executablePath.c_str(), message.c_str()); + Execute(cmd); + break; + } + case DIALOG_TYPE::ZENITY: + { + std::string cmd = String::Format("%s --title=\"OpenRCT2\" --info --text=\"%s\"", executablePath.c_str(), message.c_str()); + Execute(cmd); + break; + } + default: + SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, "OpenRCT2", message.c_str(), window); + break; + } + } + + private: + static DIALOG_TYPE GetDialogApp(std::string * executablePath) + { + // Prefer zenity as it offers more required features, e.g., overwrite + // confirmation and selecting only existing files + if (Execute("which zenity", executablePath) == 0) + { + return DIALOG_TYPE::ZENITY; + } + if (Execute("which kdialog", executablePath)) + { + return DIALOG_TYPE::KDIALOG; + } + return DIALOG_TYPE::NONE; + } + + static sint32 Execute(const std::string &command, std::string * output = nullptr) + { + log_verbose("executing \"%s\"...\n", command.c_str()); + FILE * fpipe = popen(command.c_str(), "r"); + if (fpipe == nullptr) + { + return -1; + } + + if (output != nullptr) + { + // Read output into buffer + std::vector outputBuffer; + char buffer[1024]; + size_t readBytes; + while ((readBytes = fread(buffer, 1, sizeof(buffer), fpipe)) > 0) + { + outputBuffer.insert(outputBuffer.begin(), buffer, buffer + readBytes); + } + + // Trim line breaks + size_t outputLength = outputBuffer.size(); + for (size_t i = outputBuffer.size() - 1; i >= 0; i--) + { + if (outputBuffer[i] == '\n') + { + outputLength = i; + } + else + { + break; + } + } + + // Convert to string + *output = std::string(outputBuffer.data(), outputLength); + } + else + { + fflush(fpipe); + } + + // Return exit code + return pclose(fpipe); + } + }; + + IPlatformUiContext * CreatePlatformUiContext() + { + return new LinuxContext(); + } +} } + +#endif // __linux__ diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp index 55d0a6efd7..e3f8ea942a 100644 --- a/src/openrct2-ui/UiContext.Win32.cpp +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -14,19 +14,20 @@ *****************************************************************************/ #pragma endregion +#ifdef _WIN32 + #define WIN32_LEAN_AND_MEAN #include #include #include #include +#include #include "UiContext.h" // Native resource IDs #include "../../../resources/resource.h" -#ifdef __WINDOWS__ - namespace OpenRCT2 { namespace Ui { class Win32Context : public IPlatformUiContext @@ -61,6 +62,13 @@ namespace OpenRCT2 { namespace Ui return (GetModuleHandleA("GameOverlayRenderer.dll") != nullptr); } + void ShowMessageBox(SDL_Window * window, const std::string &message) override + { + HWND hwnd = GetHWND(window); + std::wstring messageW = String::ToUtf16(message); + MessageBoxW(hwnd, messageW.c_str(), L"OpenRCT2", MB_OK); + } + private: HWND GetHWND(SDL_Window * window) { @@ -96,4 +104,4 @@ namespace OpenRCT2 { namespace Ui } } } -#endif // __WINDOWS__ +#endif // _WIN32 diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 19c9997b14..1adca08a8b 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -15,13 +15,16 @@ #pragma endregion #include +#include #include #include #include #include #include #include +#include #include +#include #include #include #include "CursorRepository.h" @@ -60,6 +63,8 @@ private: SDL_Window * _window = nullptr; sint32 _width = 0; sint32 _height = 0; + uint32 _windowFlags = 0; + uint32 _windowFlagsLastCheckTick = 0; bool _resolutionsAllowAnyAspectRatio = false; std::vector _fsResolutions; @@ -147,6 +152,19 @@ public: return _fsResolutions; } + bool HasFocus() override + { + uint32 windowFlags = GetWindowFlags(); + return (windowFlags & SDL_WINDOW_INPUT_FOCUS); + } + + bool IsMinimised() override + { + uint32 windowFlags = GetWindowFlags(); + return (windowFlags & SDL_WINDOW_MINIMIZED) || + (windowFlags & SDL_WINDOW_HIDDEN); + } + bool IsSteamOverlayActive() override { return _steamOverlayActive; @@ -193,6 +211,11 @@ public: SDL_WarpMouseInWindow(nullptr, x, y); } + void SetCursorTrap(bool value) override + { + SDL_SetWindowGrab(_window, value ? SDL_TRUE : SDL_FALSE); + } + // Drawing IDrawingEngine * CreateDrawingEngine(DRAWING_ENGINE_TYPE type) override { @@ -469,8 +492,8 @@ public: SDLException::Throw("SDL_CreateWindow(...)"); } - SDL_SetWindowGrab(_window, gConfigGeneral.trap_cursor ? SDL_TRUE : SDL_FALSE); SDL_SetWindowMinimumSize(_window, 720, 480); + SetCursorTrap(gConfigGeneral.trap_cursor); _platformUiContext->SetWindowIcon(_window); #ifdef __MACOSX__ macos_disallow_automatic_window_tabbing(); @@ -493,6 +516,11 @@ public: SDL_DestroyWindow(_window); } + void ShowMessageBox(const std::string &message) override + { + _platformUiContext->ShowMessageBox(_window, message); + } + private: void OnResize(sint32 width, sint32 height) { @@ -601,6 +629,18 @@ private: } return result; } + + uint32 GetWindowFlags() + { + // Don't check if window is minimised too frequently (every second is fine) + uint32 tick = Platform::GetTicks(); + if (tick > _windowFlagsLastCheckTick + 1000) + { + _windowFlags = SDL_GetWindowFlags(_window); + _windowFlagsLastCheckTick = tick; + } + return _windowFlags; + } }; IUiContext * OpenRCT2::Ui::CreateUiContext() diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h index 3d46d201bc..7293491e55 100644 --- a/src/openrct2-ui/UiContext.h +++ b/src/openrct2-ui/UiContext.h @@ -16,6 +16,7 @@ #pragma once +#include #include struct SDL_Window; @@ -33,6 +34,7 @@ namespace OpenRCT2 virtual ~IPlatformUiContext() = default; virtual void SetWindowIcon(SDL_Window * window) abstract; virtual bool IsSteamOverlayAttached() abstract; + virtual void ShowMessageBox(SDL_Window * window, const std::string &message) abstract; }; IUiContext * CreateUiContext(); diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 709b590cbc..37bce8edc8 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -43,6 +43,7 @@ + diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 2670be1938..c0db8be37b 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -408,24 +408,12 @@ namespace OpenRCT2 log_verbose("finish openrct2 loop"); } - bool IsMinimised() - { - // Don't check if window is minimised too frequently (every second is fine) - if (_lastTick > _isWindowMinimisedLastCheckTick + 1000) - { - uint32 windowFlags = SDL_GetWindowFlags(gWindow); - _isWindowMinimised = (windowFlags & SDL_WINDOW_MINIMIZED) || - (windowFlags & SDL_WINDOW_HIDDEN); - } - return _isWindowMinimised; - } - bool ShouldRunVariableFrame() { if (!gConfigGeneral.uncap_fps) return false; if (gGameSpeed > 4) return false; if (gOpenRCT2Headless) return false; - if (IsMinimised()) return false; + if (_uiContext->IsMinimised()) return false; return true; } @@ -682,4 +670,14 @@ extern "C" { return GetContext()->GetUiContext()->GetHeight(); } + + bool context_has_focus() + { + return GetContext()->GetUiContext()->HasFocus(); + } + + void context_set_cursor_trap(bool value) + { + GetContext()->GetUiContext()->SetCursorTrap(value); + } } diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index a238343370..a8baea5968 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -109,6 +109,8 @@ extern "C" sint32 context_get_resolutions(struct Resolution * * outResolutions); sint32 context_get_width(); sint32 context_get_height(); + bool context_has_focus(); + void context_set_cursor_trap(bool value); #ifdef __cplusplus } diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index c1ba09ccc5..ab7c0ba5f8 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -15,6 +15,7 @@ #pragma endregion #include +#include "../Context.h" #include "../core/Console.hpp" #include "../core/Exception.hpp" #include "../core/FileStream.hpp" @@ -25,6 +26,7 @@ #include "../interface/window.h" #include "../network/network.h" #include "../OpenRCT2.h" +#include "../ui/UiContext.h" #include "Config.h" #include "IniReader.hpp" #include "IniWriter.hpp" @@ -38,6 +40,9 @@ extern "C" #include "../scenario/scenario.h" } +using namespace OpenRCT2; +using namespace OpenRCT2::Ui; + namespace Config { #pragma region Enums @@ -688,7 +693,8 @@ extern "C" } while (1) { - platform_show_messagebox("OpenRCT2 needs files from the original RollerCoaster Tycoon 2 in order to work. Please select the directory where you installed RollerCoaster Tycoon 2."); + IUiContext * uiContext = GetContext()->GetUiContext(); + uiContext->ShowMessageBox("OpenRCT2 needs files from the original RollerCoaster Tycoon 2 in order to work. Please select the directory where you installed RollerCoaster Tycoon 2."); utf8 * installPath = platform_open_directory_browser("Please select your RCT2 directory"); if (installPath == nullptr) { @@ -703,9 +709,8 @@ extern "C" return true; } - utf8 message[MAX_PATH]; - snprintf(message, MAX_PATH, "Could not find %s" PATH_SEPARATOR "Data" PATH_SEPARATOR "g1.dat at this path", installPath); - platform_show_messagebox(message); + std::string message = String::StdFormat("Could not find %s" PATH_SEPARATOR "Data" PATH_SEPARATOR "g1.dat at this path", installPath); + uiContext->ShowMessageBox(message); } } return true; diff --git a/src/openrct2/core/String.cpp b/src/openrct2/core/String.cpp index d896b2588b..7976ae1b6f 100644 --- a/src/openrct2/core/String.cpp +++ b/src/openrct2/core/String.cpp @@ -47,6 +47,30 @@ namespace String return returnValue; } + std::string ToUtf8(const std::wstring &s) + { + std::string result; + utf8 * cstr = widechar_to_utf8(s.c_str()); + if (cstr != nullptr) + { + result = std::string(cstr); + } + free(cstr); + return result; + } + + std::wstring ToUtf16(const std::string &s) + { + std::wstring result; + wchar_t * wcstr = utf8_to_widechar(s.c_str()); + if (wcstr != nullptr) + { + result = std::wstring(wcstr); + } + free(wcstr); + return result; + } + bool IsNullOrEmpty(const utf8 * str) { return str == nullptr || str[0] == '\0'; diff --git a/src/openrct2/core/String.hpp b/src/openrct2/core/String.hpp index 6261bfa81e..a02423fc32 100644 --- a/src/openrct2/core/String.hpp +++ b/src/openrct2/core/String.hpp @@ -24,8 +24,10 @@ namespace String { constexpr const utf8 * Empty = ""; - std::string ToStd(const utf8 * str); - std::string StdFormat(const utf8 * format, ...); + std::string ToStd(const utf8 * str); + std::string StdFormat(const utf8 * format, ...); + std::string ToUtf8(const std::wstring &s); + std::wstring ToUtf16(const std::string &s); bool IsNullOrEmpty(const utf8 * str); sint32 Compare(const std::string &a, const std::string &b, bool ignoreCase = false); diff --git a/src/openrct2/drawing/sprite.cpp b/src/openrct2/drawing/sprite.cpp index 9add114156..6a19d55121 100644 --- a/src/openrct2/drawing/sprite.cpp +++ b/src/openrct2/drawing/sprite.cpp @@ -16,21 +16,26 @@ #include #include "../common.h" +#include "../config/Config.h" +#include "../Context.h" #include "../core/File.h" #include "../core/FileStream.hpp" #include "../core/Memory.hpp" #include "../core/Util.hpp" #include "../OpenRCT2.h" #include "../sprites.h" +#include "../ui/UiContext.h" extern "C" { - #include "../config/Config.h" #include "../rct2/addresses.h" #include "../util/util.h" #include "drawing.h" } +using namespace OpenRCT2; +using namespace OpenRCT2::Ui; + extern "C" { static void * _g1Buffer = nullptr; @@ -116,7 +121,8 @@ extern "C" log_fatal("Unable to load g1 graphics"); if (!gOpenRCT2Headless) { - platform_show_messagebox("Unable to load g1.dat. Your RollerCoaster Tycoon 2 path may be incorrectly set."); + IUiContext * uiContext = GetContext()->GetUiContext(); + uiContext->ShowMessageBox("Unable to load g1.dat. Your RollerCoaster Tycoon 2 path may be incorrectly set."); } return false; } @@ -174,7 +180,8 @@ extern "C" log_fatal("Unable to load g2 graphics"); if (!gOpenRCT2Headless) { - platform_show_messagebox("Unable to load g2.dat"); + IUiContext * uiContext = GetContext()->GetUiContext(); + uiContext->ShowMessageBox("Unable to load g2.dat"); } } return false; diff --git a/src/openrct2/input.c b/src/openrct2/input.c index 2673b885bc..cf6f483450 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -1613,9 +1613,7 @@ void game_handle_edge_scroll() return; if (mainWindow->viewport == NULL) return; - - uint32 window_flags = SDL_GetWindowFlags(gWindow); - if ((window_flags & SDL_WINDOW_INPUT_FOCUS) == 0) + if (!context_has_focus()) return; scrollX = 0; diff --git a/src/openrct2/platform/Platform2.cpp b/src/openrct2/platform/Platform2.cpp new file mode 100644 index 0000000000..0be0800034 --- /dev/null +++ b/src/openrct2/platform/Platform2.cpp @@ -0,0 +1,32 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include "Platform2.h" + +extern "C" +{ + #include "platform.h" +} + +namespace Platform +{ + uint32 GetTicks() + { + return platform_get_ticks(); + } +} diff --git a/src/openrct2/platform/Platform2.h b/src/openrct2/platform/Platform2.h new file mode 100644 index 0000000000..41299ea1fe --- /dev/null +++ b/src/openrct2/platform/Platform2.h @@ -0,0 +1,24 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#pragma once + +#include "../common.h" + +namespace Platform +{ + uint32 GetTicks(); +} diff --git a/src/openrct2/platform/linux.c b/src/openrct2/platform/linux.c index 4a3be91bc9..8c28e0a215 100644 --- a/src/openrct2/platform/linux.c +++ b/src/openrct2/platform/linux.c @@ -39,19 +39,6 @@ #include "../util/util.h" #include "platform.h" -// See http://syprog.blogspot.ru/2011/12/listing-loaded-shared-objects-in-linux.html -struct lmap { - void* base_address; - char* path; - void* unused; - struct lmap *next, *prev; -}; - -struct dummy { - void* pointers[3]; - struct dummy* ptr; -}; - typedef enum { DT_NONE, DT_KDIALOG, DT_ZENITY } dialog_type; void platform_get_exe_path(utf8 *outPath, size_t outSize) @@ -86,26 +73,6 @@ void platform_get_exe_path(utf8 *outPath, size_t outSize) safe_strcpy(outPath, exePath, outSize); } -bool platform_check_steam_overlay_attached() { - void* processHandle = dlopen(NULL, RTLD_NOW); - - struct dummy* p = (struct dummy*) processHandle; - p = p->ptr; - - struct lmap* pl = (struct lmap*) p->ptr; - - while (pl != NULL) { - if (strstr(pl->path, "gameoverlayrenderer.so") != NULL) { - dlclose(processHandle); - return true; - } - pl = pl->next; - } - dlclose(processHandle); - - return false; -} - /** * Default directory fallback is: * - (command line argument) @@ -287,38 +254,6 @@ static void execute_cmd(char *command, sint32 *exit_value, char *buf, size_t *bu pclose(f); } -static dialog_type get_dialog_app(char *cmd, size_t *cmd_size) { - sint32 exit_value; - size_t size; - dialog_type dtype; - - /* - * prefer zenity as it offers more required features, e.g., overwrite - * confirmation and selecting only existing files - */ - - dtype = DT_ZENITY; - size = *cmd_size; - execute_cmd("which zenity", &exit_value, cmd, &size); - - if (exit_value != 0) { - dtype = DT_KDIALOG; - size = *cmd_size; - execute_cmd("which kdialog", &exit_value, cmd, &size); - - if (exit_value != 0) { - log_error("no dialog (zenity or kdialog) found\n"); - return DT_NONE; - } - } - - cmd[size-1] = '\0'; - - *cmd_size = size; - - return dtype; -} - bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, size_t outSize) { sint32 exit_value; char executable[MAX_PATH]; @@ -498,33 +433,6 @@ utf8 *platform_open_directory_browser(const utf8 *title) { return return_value; } -void platform_show_messagebox(const char * message) { - size_t size; - dialog_type dtype; - char cmd[OPENRCT2_MAX_COMMAND_LENGTH]; - char executable[MAX_PATH]; - - log_verbose(message); - - size = OPENRCT2_MAX_COMMAND_LENGTH; - dtype = get_dialog_app(executable, &size); - - switch (dtype) { - case DT_KDIALOG: - snprintf(cmd, OPENRCT2_MAX_COMMAND_LENGTH, "%s --title \"OpenRCT2\" --msgbox \"%s\"", executable, message); - break; - case DT_ZENITY: - snprintf(cmd, OPENRCT2_MAX_COMMAND_LENGTH, "%s --title=\"OpenRCT2\" --info --text=\"%s\"", executable, message); - break; - default: - SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_WARNING, "OpenRCT2", message, gWindow); - return; - } - - size = OPENRCT2_MAX_COMMAND_LENGTH; - execute_cmd(cmd, 0, 0, 0); -} - #ifndef NO_TTF bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size) { diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index 3c5516b6e2..23007b4cc7 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -99,7 +99,6 @@ typedef struct file_dialog_desc { } filters[8]; } file_dialog_desc; -extern SDL_Window *gWindow; extern SDL_Color gPalette[256]; // Platform shared definitions @@ -147,7 +146,6 @@ void platform_resolve_openrct_data_path(); void platform_get_openrct_data_path(utf8 *outPath, size_t outSize); void platform_get_user_directory(utf8 *outPath, const utf8 *subDirectory, size_t outSize); utf8* platform_get_username(); -void platform_show_messagebox(const utf8 * message); bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, size_t outSize); utf8 *platform_open_directory_browser(const utf8 *title); uint8 platform_get_locale_currency(); @@ -177,7 +175,6 @@ void core_init(); #undef GetMessage sint32 windows_get_registry_install_info(rct2_install_info *installInfo, char *source, char *font, uint8 charset); - HWND windows_get_window_handle(); void platform_setup_file_associations(); void platform_remove_file_associations(); bool platform_setup_uri_protocol(); diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 7f41b447fd..18bbc1d0bb 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -858,10 +858,4 @@ utf8* platform_get_username() { } } -void platform_init_window_icon() -{ - // TODO Create a surface with the window icon - // SDL_SetWindowIcon(gWindow, iconSurface) -} - #endif diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 00cf819890..fe722e34ab 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -49,7 +49,6 @@ typedef void(*update_palette_func)(const uint8*, sint32, sint32); -SDL_Window *gWindow = NULL; SDL_Renderer *gRenderer = NULL; SDL_Texture *gBufferTexture = NULL; SDL_PixelFormat *gBufferTextureFormat = NULL; diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index d139fe59d8..79b77baab4 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -584,11 +584,6 @@ void platform_get_user_directory(utf8 *outPath, const utf8 *subDirectory, size_t } } -void platform_show_messagebox(const utf8 * message) -{ - MessageBoxA(windows_get_window_handle(), message, "OpenRCT2", MB_OK); -} - /** * * rct2: 0x004080EA @@ -610,7 +605,7 @@ bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, // Set open file name options memset(&openFileName, 0, sizeof(OPENFILENAMEW)); openFileName.lStructSize = sizeof(OPENFILENAMEW); - openFileName.hwndOwner = windows_get_window_handle(); + openFileName.hwndOwner = NULL; // windows_get_window_handle(); openFileName.nMaxFile = MAX_PATH; openFileName.lpstrTitle = utf8_to_widechar(desc->title); openFileName.lpstrInitialDir = utf8_to_widechar(desc->initial_directory); @@ -777,33 +772,6 @@ sint32 windows_get_registry_install_info(rct2_install_info *installInfo, char *s return 1; } -HWND windows_get_window_handle() -{ - SDL_SysWMinfo wmInfo; - - if (gWindow == NULL) - return NULL; - - SDL_VERSION(&wmInfo.version); - if (SDL_GetWindowWMInfo(gWindow, &wmInfo) != SDL_TRUE) { - log_error("SDL_GetWindowWMInfo failed %s", SDL_GetError()); - exit(-1); - } - HWND handle = wmInfo.info.win.window; - #ifdef __MINGW32__ - assert(sizeof(HWND) == sizeof(uint32)); - uint8 A = (uint32)handle & 0xff000000 >> 24; - uint8 B = (uint32)handle & 0xff0000 >> 16; - uint8 C = (uint32)handle & 0xff00 >> 8; - uint8 D = (uint32)handle & 0xff; - HWND result = (HWND)(D << 24 | A << 16 | B << 8 | C); - log_warning("twisting bits of handle, a workaround for mingw/sdl bug"); - #else - HWND result = handle; - #endif // __MINGW32__ - return result; -} - uint16 platform_get_locale_language() { CHAR langCode[4]; diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 68678070e0..49d7e00c4e 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -77,9 +77,12 @@ namespace OpenRCT2 virtual sint32 GetHeight() abstract; virtual void SetFullscreenMode(FULLSCREEN_MODE mode) abstract; virtual std::vector GetFullscreenResolutions() abstract; + virtual bool HasFocus() abstract; + virtual bool IsMinimised() abstract; virtual bool IsSteamOverlayActive() abstract; virtual void ProcessMessages() abstract; virtual void TriggerResize() abstract; + virtual void ShowMessageBox(const std::string &message) abstract; // Input virtual const CursorState * GetCursorState() abstract; @@ -88,6 +91,7 @@ namespace OpenRCT2 virtual void SetCursorVisible(bool value) abstract; virtual void GetCursorPosition(sint32 * x, sint32 * y) abstract; virtual void SetCursorPosition(sint32 x, sint32 y) abstract; + virtual void SetCursorTrap(bool value) abstract; virtual const uint8 * GetKeysState() abstract; virtual const uint8 * GetKeysPressed() abstract; diff --git a/src/openrct2/windows/options.c b/src/openrct2/windows/options.c index c55e2dd87e..31edbf81e8 100644 --- a/src/openrct2/windows/options.c +++ b/src/openrct2/windows/options.c @@ -740,7 +740,7 @@ static void window_options_mouseup(rct_window *w, rct_widgetindex widgetIndex) case WIDX_TRAP_CURSOR: gConfigGeneral.trap_cursor ^= 1; config_save_default(); - SDL_SetWindowGrab(gWindow, gConfigGeneral.trap_cursor ? SDL_TRUE : SDL_FALSE); + context_set_cursor_trap(gConfigGeneral.trap_cursor); window_invalidate(w); break; case WIDX_ZOOM_TO_CURSOR: From cf0dcb4753b8e4a4cedf77c35138e939ddab0ab7 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 1 Apr 2017 17:27:39 +0100 Subject: [PATCH 147/670] Refactor file / directory dialogs to UiContext --- src/openrct2-ui/UiContext.Linux.cpp | 159 ++++++++++++++++++++- src/openrct2-ui/UiContext.Win32.cpp | 128 ++++++++++++++++- src/openrct2-ui/UiContext.cpp | 10 ++ src/openrct2-ui/UiContext.h | 8 +- src/openrct2/Context.cpp | 25 ++++ src/openrct2/platform/linux.c | 213 ---------------------------- src/openrct2/platform/windows.c | 145 ------------------- src/openrct2/ui/UiContext.h | 26 +++- 8 files changed, 348 insertions(+), 366 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index a23cf050ac..43febb6b74 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -16,11 +16,14 @@ #ifdef __linux__ +#include #include -#include #include +#include #include "UiContext.h" +#include + namespace OpenRCT2 { namespace Ui { enum class DIALOG_TYPE @@ -107,6 +110,100 @@ namespace OpenRCT2 { namespace Ui } } + std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc &desc) override + { + std::string result; + std::string executablePath; + DIALOG_TYPE dtype = GetDialogApp(&executablePath); + switch (dtype) { + case DIALOG_TYPE::KDIALOG: + { + std::string action = + (desc.Type == FILE_DIALOG_TYPE::OPEN) ? "--getopenfilename" : + "--getsavefilename"; + std::string filter = GetKDialogFilterString(desc.Filters); + std::string cmd = String::StdFormat("%s --title '%s' %s '%s/' ~ '%s'", executablePath, desc.Title, action, desc.InitialDirectory, filter); + std::string output; + if (Execute(cmd, &output) != 0) + { + result = output; + } + break; + } + case DIALOG_TYPE::ZENITY: + { + std::string action = "--file-selection"; + std::string flags; + if (desc.Type == FILE_DIALOG_TYPE::SAVE) + { + flags = "--confirm-overwrite --save"; + } + std::string filters = GetZenityFilterString(desc.Filters); + std::string cmd = String::StdFormat("%s %s --filename='%s/' %s --title='%s' / %s", executablePath, action, desc.InitialDirectory, flags, desc.Title, filters); + std::string output; + if (Execute(cmd, &output) != 0) + { + result = output; + } + break; + } + default: + log_error("KDialog or Zenity not installed."); + break; + } + + log_verbose("filename = %s", result.c_str()); + + if (desc.Type == FILE_DIALOG_TYPE::OPEN && access(result, F_OK) == -1) + { + std::string msg = String::StdFormat("\"%s\" not found: %s, please choose another file\n", result.c_str(), strerror(errno)); + ShowMessageBox(window, msg); + return ShowFileDialog(window, desc); + } + else if (desc.Type == FILE_DIALOG_TYPE::SAVE && access(result, F_OK) != -1 && dtype == DIALOG_TYPE::KDIALOG) + { + std::string cmd = String::StdFormat("%s --yesno \"Overwrite %s?\"", executablePath, result.c_str()); + if (Execute(cmd) != 0) + { + result = std::string(); + } + } + return result; + } + + std::string ShowDirectoryDialog(SDL_Window * window, const std::string &title) override + { + std::string result; + std::string executablePath; + DIALOG_TYPE dtype = GetDialogApp(&executablePath); + switch (dtype) { + case DIALOG_TYPE::KDIALOG: + { + std::string output; + std::string cmd = String::Format("%s --title '%s' --getexistingdirectory /", executablePath.c_str(), title); + if (Execute(cmd, &output) == 0) + { + result = output; + } + break; + } + case DIALOG_TYPE::ZENITY: + { + std::string output; + std::string cmd = String::Format("%s --title='%s' --file-selection --directory /", executablePath.c_str(), title); + if (Execute(cmd, &output) == 0) + { + result = output; + } + break; + } + default: + log_error("KDialog or Zenity not installed."); + break; + } + return result; + } + private: static DIALOG_TYPE GetDialogApp(std::string * executablePath) { @@ -168,6 +265,66 @@ namespace OpenRCT2 { namespace Ui // Return exit code return pclose(fpipe); } + + static std::string GetKDialogFilterString(const std::vector filters) + { + std::stringstream filtersb; + bool first = true; + for (const auto &filter : filters) + { + // KDialog wants filters space-delimited and we don't expect ';' anywhere else + std::string pattern = filter.Pattern; + for (sint32 i = 0; i < pattern.size(); i++) + { + if (pattern[i] == ';') + { + pattern[i] = ' '; + } + } + + if (first) + { + filtersb << String::StdFormat("%s | %s", pattern.c_str(), filter.Name.c_str()); + first = false; + } + else + { + filtersb << String::StdFormat("\\n%s | %s", pattern.c_str(), filter.Name.c_str()); + } + } + return filtersb.str(); + } + + static std::string GetZenityFilterString(const std::vector filters) + { + // Zenity seems to be case sensitive, while KDialog isn't + std::stringstream filtersb; + bool first = true; + for (const auto &filter : filters) + { + filtersb << " --file-filter='" << filter.Name << " | "; + for (char c : filter.Pattern) + { + if (c == ';') + { + filtersb << ' '; + } + else if (isalpha(c)) + { + filtersb << '[' + << toupper(c) + << tolower(c) + << ']'; + } + else + { + filtersb << c; + } + } + filtersb << "'"; + } + return filtersb.str(); + } }; IPlatformUiContext * CreatePlatformUiContext() diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp index e3f8ea942a..78f266e8bf 100644 --- a/src/openrct2-ui/UiContext.Win32.cpp +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -16,18 +16,38 @@ #ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN - +#include #include +#include +#include +#include +#include +#include "UiContext.h" + +#undef interface #include +#include #include #include -#include -#include "UiContext.h" // Native resource IDs #include "../../../resources/resource.h" +static std::wstring SHGetPathFromIDListLongPath(LPCITEMIDLIST pidl) +{ + std::wstring pszPath(MAX_PATH, 0); + while (!SHGetPathFromIDListEx(pidl, &pszPath[0], (DWORD)pszPath.size(), 0)) + { + if (pszPath.size() >= SHRT_MAX) + { + // Clearly not succeeding at all, bail + return std::wstring(); + } + pszPath.resize(pszPath.size() * 2); + } + return pszPath; +} + namespace OpenRCT2 { namespace Ui { class Win32Context : public IPlatformUiContext @@ -69,6 +89,93 @@ namespace OpenRCT2 { namespace Ui MessageBoxW(hwnd, messageW.c_str(), L"OpenRCT2", MB_OK); } + std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc &desc) override + { + std::wstring wcFilename = String::ToUtf16(desc.DefaultFilename); + wcFilename.resize(Math::Max(wcFilename.size(), MAX_PATH)); + + std::wstring wcTitle = String::ToUtf16(desc.Title); + std::wstring wcInitialDirectory = String::ToUtf16(desc.InitialDirectory); + std::wstring wcFilters = GetFilterString(desc.Filters); + + // Set open file name options + OPENFILENAMEW openFileName = { 0 }; + openFileName.lStructSize = sizeof(OPENFILENAMEW); + openFileName.hwndOwner = GetHWND(window); + openFileName.lpstrTitle = wcTitle.c_str(); + openFileName.lpstrInitialDir = wcInitialDirectory.c_str(); + openFileName.lpstrFilter = wcFilters.c_str(); + openFileName.lpstrFile = &wcFilename[0]; + openFileName.nMaxFile = (DWORD)wcFilename.size(); + + // Open dialog + BOOL dialogResult = FALSE; + DWORD commonFlags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_NOCHANGEDIR; + if (desc.Type == FILE_DIALOG_TYPE::OPEN) + { + openFileName.Flags = commonFlags | OFN_NONETWORKBUTTON | OFN_FILEMUSTEXIST; + dialogResult = GetOpenFileNameW(&openFileName); + } + else if (desc.Type == FILE_DIALOG_TYPE::SAVE) + { + openFileName.Flags = commonFlags | OFN_CREATEPROMPT | OFN_OVERWRITEPROMPT; + dialogResult = GetSaveFileNameW(&openFileName); + } + + std::string resultFilename; + if (dialogResult) + { + resultFilename = String::ToUtf8(openFileName.lpstrFile); + + // If there is no extension, append the pattern + std::string resultExtension = Path::GetExtension(resultFilename); + if (resultExtension.empty()) + { + sint32 filterIndex = openFileName.nFilterIndex - 1; + + assert(filterIndex >= 0); + assert(filterIndex < desc.Filters.size()); + + std::string pattern = desc.Filters[filterIndex].Pattern; + std::string patternExtension = Path::GetExtension(pattern); + if (!patternExtension.empty()) + { + resultFilename += patternExtension; + } + } + } + return resultFilename; + } + + std::string ShowDirectoryDialog(SDL_Window * window, const std::string &title) override + { + std::string result; + + // Initialize COM and get a pointer to the shell memory allocator + LPMALLOC lpMalloc; + if (SUCCEEDED(CoInitializeEx(0, COINIT_APARTMENTTHREADED)) && + SUCCEEDED(SHGetMalloc(&lpMalloc))) + { + std::wstring titleW = String::ToUtf16(title); + BROWSEINFOW bi = { 0 }; + bi.hwndOwner = GetHWND(window); + bi.lpszTitle = titleW.c_str(); + bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_NONEWFOLDERBUTTON; + + LPITEMIDLIST pidl = SHBrowseForFolderW(&bi); + if (pidl != nullptr) + { + result = String::ToUtf8(SHGetPathFromIDListLongPath(pidl)); + } + } + else + { + log_error("Error opening directory browse window"); + } + CoUninitialize(); + return result; + } + private: HWND GetHWND(SDL_Window * window) { @@ -96,6 +203,19 @@ namespace OpenRCT2 { namespace Ui } return result; } + + static std::wstring GetFilterString(const std::vector filters) + { + std::wstringstream filtersb; + for (auto filter : filters) + { + filtersb << String::ToUtf16(filter.Name) + << '\0' + << String::ToUtf16(filter.Pattern) + << '\0'; + } + return filtersb.str(); + } }; IPlatformUiContext * CreatePlatformUiContext() diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 1adca08a8b..495e5597a3 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -521,6 +521,16 @@ public: _platformUiContext->ShowMessageBox(_window, message); } + std::string ShowFileDialog(const FileDialogDesc &desc) override + { + return _platformUiContext->ShowFileDialog(_window, desc); + } + + std::string ShowDirectoryDialog(const std::string &title) override + { + return _platformUiContext->ShowDirectoryDialog(_window, title); + } + private: void OnResize(sint32 width, sint32 height) { diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h index 7293491e55..f713d76596 100644 --- a/src/openrct2-ui/UiContext.h +++ b/src/openrct2-ui/UiContext.h @@ -27,14 +27,18 @@ namespace OpenRCT2 namespace Ui { - interface IUiContext; + struct FileDialogDesc; + interface IUiContext; interface IPlatformUiContext { virtual ~IPlatformUiContext() = default; virtual void SetWindowIcon(SDL_Window * window) abstract; virtual bool IsSteamOverlayAttached() abstract; - virtual void ShowMessageBox(SDL_Window * window, const std::string &message) abstract; + + virtual void ShowMessageBox(SDL_Window * window, const std::string &message) abstract; + virtual std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc &desc) abstract; + virtual std::string ShowDirectoryDialog(SDL_Window * window, const std::string &title) abstract; }; IUiContext * CreateUiContext(); diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index c0db8be37b..244749363b 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -680,4 +680,29 @@ extern "C" { GetContext()->GetUiContext()->SetCursorTrap(value); } + + bool platform_open_common_file_dialog(utf8 * outFilename, file_dialog_desc * desc, size_t outSize) + { + FileDialogDesc desc2; + desc2.Type = (FILE_DIALOG_TYPE)desc->type; + desc2.Title = String::ToStd(desc->title); + desc2.InitialDirectory = String::ToStd(desc->initial_directory); + desc2.DefaultFilename = String::ToStd(desc->default_filename); + for (const auto &filter : desc->filters) + { + if (filter.name != nullptr) + { + desc2.Filters.push_back({ String::ToStd(filter.name), String::ToStd(filter.pattern) }); + } + } + std::string result = GetContext()->GetUiContext()->ShowFileDialog(desc2); + String::Set(outFilename, outSize, result.c_str()); + return !result.empty(); + } + + utf8 * platform_open_directory_browser(const utf8 * title) + { + std::string result = GetContext()->GetUiContext()->ShowDirectoryDialog(title); + return String::Duplicate(result.c_str()); + } } diff --git a/src/openrct2/platform/linux.c b/src/openrct2/platform/linux.c index 8c28e0a215..f6da9bf162 100644 --- a/src/openrct2/platform/linux.c +++ b/src/openrct2/platform/linux.c @@ -39,8 +39,6 @@ #include "../util/util.h" #include "platform.h" -typedef enum { DT_NONE, DT_KDIALOG, DT_ZENITY } dialog_type; - void platform_get_exe_path(utf8 *outPath, size_t outSize) { char exePath[MAX_PATH]; @@ -222,217 +220,6 @@ uint8 platform_get_locale_measurement_format(){ return MEASUREMENT_FORMAT_METRIC; } -static void execute_cmd(char *command, sint32 *exit_value, char *buf, size_t *buf_size) { - FILE *f; - size_t n_chars; - - log_verbose("executing \"%s\"...\n", command); - f = popen(command, "r"); - - if (buf && buf_size) { - n_chars = fread(buf, 1, *buf_size, f); - - // some commands may return a new-line terminated result, trim that - if (n_chars > 0 && buf[n_chars - 1] == '\n') { - buf[n_chars - 1] = '\0'; - } - // make sure string is null-terminated - if (n_chars == *buf_size) { - n_chars--; - } - buf[n_chars] = '\0'; - - // account for null terminator - *buf_size = n_chars + 1; - } else { - fflush(f); - } - - if (exit_value) - *exit_value = pclose(f); - else - pclose(f); -} - -bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, size_t outSize) { - sint32 exit_value; - char executable[MAX_PATH]; - char cmd[OPENRCT2_MAX_COMMAND_LENGTH]; - char result[OPENRCT2_MAX_COMMAND_LENGTH]; - size_t size; - dialog_type dtype; - char *action = NULL; - char *flags = NULL; - char filter[OPENRCT2_MAX_COMMAND_LENGTH] = { 0 }; - char filterPatternRegex[64]; - - size = OPENRCT2_MAX_COMMAND_LENGTH; - dtype = get_dialog_app(executable, &size); - - switch (dtype) { - case DT_KDIALOG: - switch (desc->type) { - case FD_OPEN: - action = "--getopenfilename"; - break; - case FD_SAVE: - action = "--getsavefilename"; - break; - } - - { - bool first = true; - for (sint32 j = 0; j < countof(desc->filters); j++) { - if (desc->filters[j].pattern && desc->filters[j].name) { - char filterTemp[100] = { 0 }; - if (first) { - snprintf(filterTemp, countof(filterTemp), "%s | %s", desc->filters[j].pattern, desc->filters[j].name); - first = false; - } else { - snprintf(filterTemp, countof(filterTemp), "\\n%s | %s", desc->filters[j].pattern, desc->filters[j].name); - } - safe_strcat(filter, filterTemp, countof(filter)); - } - } - char filterTemp[100] = { 0 }; - if (first) { - snprintf(filterTemp, countof(filterTemp), "*|%s", (char *)language_get_string(STR_ALL_FILES)); - } else { - snprintf(filterTemp, countof(filterTemp), "\\n*|%s", (char *)language_get_string(STR_ALL_FILES)); - } - safe_strcat(filter, filterTemp, countof(filter)); - - // kdialog wants filters space-delimited and we don't expect ';' anywhere else, - // this is much easier and quicker to do than being overly careful about replacing - // it only where truly needed. - sint32 filterSize = strlen(filter); - for (sint32 i = 0; i < filterSize + 3; i++) { - if (filter[i] == ';') { - filter[i] = ' '; - } - } - } - - snprintf(cmd, OPENRCT2_MAX_COMMAND_LENGTH, "%s --title '%s' %s '%s/' ~ '%s'", executable, desc->title, action, desc->initial_directory, filter); - break; - case DT_ZENITY: - action = "--file-selection"; - switch (desc->type) { - case FD_SAVE: - flags = "--confirm-overwrite --save"; - break; - case FD_OPEN: - flags = ""; - break; - } - - // Zenity seems to be case sensitive, while Kdialog isn't. - for (sint32 j = 0; j < countof(desc->filters); j++) { - if (desc->filters[j].pattern && desc->filters[j].name) { - sint32 regexIterator = 0; - for(sint32 i = 0; i <= strlen(desc->filters[j].pattern); i++) { - if (isalpha(desc->filters[j].pattern[i])) { - filterPatternRegex[regexIterator+0] = '['; - filterPatternRegex[regexIterator+1] = (char)toupper(desc->filters[j].pattern[i]); - filterPatternRegex[regexIterator+2] = (char)tolower(desc->filters[j].pattern[i]); - filterPatternRegex[regexIterator+3] = ']'; - regexIterator += 3; - } - else if(desc->filters[j].pattern[i] == ';') { - filterPatternRegex[regexIterator] = ' '; - } - else { - filterPatternRegex[regexIterator] = (char)desc->filters[j].pattern[i]; - } - regexIterator++; - } - filterPatternRegex[regexIterator+1] = 0; - - char filterTemp[100] = { 0 }; - snprintf(filterTemp, countof(filterTemp), " --file-filter='%s | %s'", desc->filters[j].name, filterPatternRegex); - safe_strcat(filter, filterTemp, countof(filter)); - } - } - char filterTemp[100] = { 0 }; - snprintf(filterTemp, countof(filterTemp), " --file-filter='%s | *'", (char *)language_get_string(STR_ALL_FILES)); - safe_strcat(filter, filterTemp, countof(filter)); - - snprintf(cmd, OPENRCT2_MAX_COMMAND_LENGTH, "%s %s --filename='%s/' %s --title='%s' / %s", executable, action, desc->initial_directory, flags, desc->title, filter); - break; - default: return 0; - } - - size = OPENRCT2_MAX_COMMAND_LENGTH; - execute_cmd(cmd, &exit_value, result, &size); - - if (exit_value != 0) { - return 0; - } - - result[size-1] = '\0'; - log_verbose("filename = %s", result); - - if (desc->type == FD_OPEN && access(result, F_OK) == -1) { - char msg[OPENRCT2_MAX_COMMAND_LENGTH]; - - snprintf(msg, OPENRCT2_MAX_COMMAND_LENGTH, "\"%s\" not found: %s, please choose another file\n", result, strerror(errno)); - platform_show_messagebox(msg); - - return platform_open_common_file_dialog(outFilename, desc, outSize); - } else - if (desc->type == FD_SAVE && access(result, F_OK) != -1 && dtype == DT_KDIALOG) { - snprintf(cmd, OPENRCT2_MAX_COMMAND_LENGTH, "%s --yesno \"Overwrite %s?\"", executable, result); - - size = OPENRCT2_MAX_COMMAND_LENGTH; - execute_cmd(cmd, &exit_value, 0, 0); - - if (exit_value != 0) { - return 0; - } - } - - safe_strcpy(outFilename, result, outSize); - - return 1; -} - -utf8 *platform_open_directory_browser(const utf8 *title) { - size_t size; - dialog_type dtype; - sint32 exit_value; - char cmd[OPENRCT2_MAX_COMMAND_LENGTH]; - char executable[MAX_PATH]; - char result[OPENRCT2_MAX_COMMAND_LENGTH]; - char *return_value; - - size = MAX_PATH; - dtype = get_dialog_app(executable, &size); - - switch (dtype) { - case DT_KDIALOG: - snprintf(cmd, OPENRCT2_MAX_COMMAND_LENGTH, "%s --title '%s' --getexistingdirectory /", executable, title); - break; - case DT_ZENITY: - snprintf(cmd, OPENRCT2_MAX_COMMAND_LENGTH, "%s --title='%s' --file-selection --directory /", executable, title); - break; - default: return 0; - } - - size = OPENRCT2_MAX_COMMAND_LENGTH; - execute_cmd(cmd, &exit_value, result, &size); - - if (exit_value != 0) { - return NULL; - } - - assert(size - 1 < countof(result)); - result[size-1] = '\0'; - - return_value = _strdup(result); - - return return_value; -} - #ifndef NO_TTF bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size) { diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 79b77baab4..4d3a6c32be 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -584,151 +584,6 @@ void platform_get_user_directory(utf8 *outPath, const utf8 *subDirectory, size_t } } -/** - * - * rct2: 0x004080EA - */ -bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, size_t outSize) -{ - OPENFILENAMEW openFileName; - wchar_t wcFilename[MAX_PATH]; - - // Copy default filename to result filename buffer - if (desc->default_filename == NULL) { - wcFilename[0] = 0; - } else { - wchar_t *wcDefaultFilename = utf8_to_widechar(desc->default_filename); - lstrcpyW(wcFilename, wcDefaultFilename); - free(wcDefaultFilename); - } - - // Set open file name options - memset(&openFileName, 0, sizeof(OPENFILENAMEW)); - openFileName.lStructSize = sizeof(OPENFILENAMEW); - openFileName.hwndOwner = NULL; // windows_get_window_handle(); - openFileName.nMaxFile = MAX_PATH; - openFileName.lpstrTitle = utf8_to_widechar(desc->title); - openFileName.lpstrInitialDir = utf8_to_widechar(desc->initial_directory); - openFileName.lpstrFile = wcFilename; - - utf8 filters[256]; - utf8 *ch = filters; - for (sint32 i = 0; i < countof(desc->filters); i++) { - if (desc->filters[i].name != NULL) { - safe_strcpy(ch, desc->filters[i].name, sizeof(filters) - (ch - filters)); - ch = strchr(ch, 0) + 1; - safe_strcpy(ch, desc->filters[i].pattern, sizeof(filters) - (ch - filters)); - ch = strchr(ch, 0) + 1; - } - } - assert(ch != filters); - *ch = 0; - - // HACK: Replace all null terminators with 0x01 so that we convert the entire string - size_t fullLength = (size_t)(ch - filters); - for (size_t i = 0; i < fullLength; i++) { - if (filters[i] == '\0') { - filters[i] = 1; - } - } - wchar_t *wcFilter = utf8_to_widechar(filters); - fullLength = lstrlenW(wcFilter); - for (size_t i = 0; i < fullLength; i++) { - if (wcFilter[i] == 1) { - wcFilter[i] = '\0'; - } - } - - openFileName.lpstrFilter = wcFilter; - - // Open dialog - BOOL result = false; - DWORD commonFlags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_NOCHANGEDIR; - if (desc->type == FD_OPEN) { - openFileName.Flags = commonFlags | OFN_NONETWORKBUTTON | OFN_FILEMUSTEXIST; - result = GetOpenFileNameW(&openFileName); - } else if (desc->type == FD_SAVE) { - openFileName.Flags = commonFlags | OFN_CREATEPROMPT | OFN_OVERWRITEPROMPT; - result = GetSaveFileNameW(&openFileName); - } - - // Clean up - free((void*)openFileName.lpstrTitle); - free((void*)openFileName.lpstrInitialDir); - free((void*)openFileName.lpstrFilter); - - if (result) { - utf8 *resultFilename = widechar_to_utf8(openFileName.lpstrFile); - safe_strcpy(outFilename, resultFilename, outSize); - free(resultFilename); - - // If there is no extension, append the pattern - const utf8 *outFilenameExtension = path_get_extension(outFilename); - if (str_is_null_or_empty(outFilenameExtension)) { - sint32 filterIndex = openFileName.nFilterIndex - 1; - - assert(filterIndex >= 0); - assert(filterIndex < countof(desc->filters)); - - const utf8 *pattern = desc->filters[filterIndex].pattern; - const utf8 *patternExtension = path_get_extension(pattern); - if (!str_is_null_or_empty(patternExtension)) { - safe_strcat(outFilename, patternExtension, outSize); - } - } - } - - return result; -} - -utf8 *platform_open_directory_browser(const utf8 *title) -{ - BROWSEINFOW bi; - wchar_t pszBuffer[MAX_PATH], wctitle[256]; - LPITEMIDLIST pidl; - LPMALLOC lpMalloc; - - MultiByteToWideChar(CP_UTF8, 0, title, -1, wctitle, countof(wctitle)); - - // Initialize COM - if (FAILED(CoInitializeEx(0, COINIT_APARTMENTTHREADED))) { - CoUninitialize(); - - log_error("Error opening directory browse window"); - return 0; - } - - // Get a pointer to the shell memory allocator - if (FAILED(SHGetMalloc(&lpMalloc))) { - CoUninitialize(); - - log_error("Error opening directory browse window"); - return 0; - } - - bi.hwndOwner = NULL; - bi.pidlRoot = NULL; - bi.pszDisplayName = pszBuffer; - bi.lpszTitle = wctitle; - bi.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS; - bi.lpfn = NULL; - bi.lParam = 0; - - utf8 *outPath = NULL; - - if ((pidl = SHBrowseForFolderW(&bi)) != NULL) { - // Copy the path directory to the buffer - if (SHGetPathFromIDListW(pidl, pszBuffer)) { - // Store pszBuffer (and the path) in the outPath - sint32 outPathCapacity = lstrlenW(pszBuffer) * 4 + 1; - outPath = (utf8*)malloc(outPathCapacity); - WideCharToMultiByte(CP_UTF8, 0, pszBuffer, countof(pszBuffer), outPath, outPathCapacity, NULL, NULL); - } - } - CoUninitialize(); - return outPath; -} - /** * * rct2: 0x00407978 diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 49d7e00c4e..48079a2f92 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -62,6 +62,27 @@ namespace OpenRCT2 return !(lhs == rhs); } + enum class FILE_DIALOG_TYPE + { + OPEN, + SAVE, + }; + + struct FileDialogDesc + { + struct Filter + { + std::string Name; // E.g. "Image Files" + std::string Pattern; // E.g. "*.png;*.jpg;*.gif" + }; + + FILE_DIALOG_TYPE Type = FILE_DIALOG_TYPE::OPEN; + std::string Title; + std::string InitialDirectory; + std::string DefaultFilename; + std::vector Filters; + }; + /** * Represents the window or screen that OpenRCT2 is presented on. */ @@ -82,7 +103,10 @@ namespace OpenRCT2 virtual bool IsSteamOverlayActive() abstract; virtual void ProcessMessages() abstract; virtual void TriggerResize() abstract; - virtual void ShowMessageBox(const std::string &message) abstract; + + virtual void ShowMessageBox(const std::string &message) abstract; + virtual std::string ShowFileDialog(const FileDialogDesc &desc) abstract; + virtual std::string ShowDirectoryDialog(const std::string &title) abstract; // Input virtual const CursorState * GetCursorState() abstract; From 08ae74293d69fe20cf51b98740fdd1d99335e3be Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 1 Apr 2017 19:50:07 +0100 Subject: [PATCH 148/670] Remove a few more SDL calls from core library --- src/openrct2/Context.cpp | 6 +++--- src/openrct2/peep/staff.c | 8 +++++++- src/openrct2/platform/shared.c | 6 ------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 244749363b..be0c330b48 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -420,11 +420,11 @@ namespace OpenRCT2 void RunFixedFrame() { _uncapTick = 0; - uint32 currentTick = SDL_GetTicks(); + uint32 currentTick = platform_get_ticks(); uint32 ticksElapsed = currentTick - _lastTick; if (ticksElapsed < UPDATE_TIME_MS) { - SDL_Delay(UPDATE_TIME_MS - ticksElapsed); + platform_sleep(UPDATE_TIME_MS - ticksElapsed); _lastTick += UPDATE_TIME_MS; } else @@ -441,7 +441,7 @@ namespace OpenRCT2 void RunVariableFrame() { - uint32 currentTick = SDL_GetTicks(); + uint32 currentTick = platform_get_ticks(); if (_uncapTick == 0) { _uncapTick = currentTick; diff --git a/src/openrct2/peep/staff.c b/src/openrct2/peep/staff.c index 1fcc42e2f2..566b699f68 100644 --- a/src/openrct2/peep/staff.c +++ b/src/openrct2/peep/staff.c @@ -15,7 +15,9 @@ #pragma endregion #include "../config/Config.h" +#include "../Context.h" #include "../game.h" +#include "../input.h" #include "../interface/viewport.h" #include "../localisation/date.h" #include "../localisation/localisation.h" @@ -546,7 +548,11 @@ uint16 hire_new_staff_member(uint8 staffType) command_y = command_z = esi = new_sprite_index = ebp = 0; command_x = 0x8000; - sint32 autoposition = gConfigGeneral.auto_staff_placement == ((SDL_GetModState() & KMOD_SHIFT) == 0); + sint32 autoposition = gConfigGeneral.auto_staff_placement; + if (gInputPlaceObjectModifier & PLACE_OBJECT_MODIFIER_SHIFT_Z) { + autoposition = autoposition ^ 1; + } + ebx = autoposition << 16 | staffType << 8 | GAME_COMMAND_FLAG_APPLY; game_command_callback = game_command_callback_hire_new_staff_member; diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index fe722e34ab..5fc8094a8e 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -55,12 +55,6 @@ SDL_PixelFormat *gBufferTextureFormat = NULL; SDL_Color gPalette[256]; uint32 gPaletteHWMapped[256]; -bool gSteamOverlayActive = false; - -static const sint32 _fullscreen_modes[] = { 0, SDL_WINDOW_FULLSCREEN, SDL_WINDOW_FULLSCREEN_DESKTOP }; -static uint32 _lastGestureTimestamp; -static float _gestureRadius; - void platform_draw() { if (!gOpenRCT2Headless) { From d45a50274c37b451669dc806870f16fa409eb667 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 1 Apr 2017 19:57:30 +0100 Subject: [PATCH 149/670] Replace SDL with normal fopen in cmdline_sprite.c --- src/openrct2/cmdline_sprite.c | 56 ++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 3f8deffef4..9d2588c416 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -20,8 +20,8 @@ #include "cmdline_sprite.h" #include "drawing/drawing.h" #include "Imaging.h" +#include "localisation/localisation.h" #include "OpenRCT2.h" -#include "platform/platform.h" #include "util/util.h" #define MODE_DEFAULT 0 @@ -61,6 +61,22 @@ rct_sprite_file_header spriteFileHeader; rct_g1_element *spriteFileEntries; uint8 *spriteFileData; +#ifdef _WIN32 + +static FILE * fopen_utf8(const char * path, const char * mode) +{ + wchar_t * pathW = utf8_to_widechar(path); + wchar_t * modeW = utf8_to_widechar(mode); + FILE * file = _wfopen(pathW, modeW); + free(pathW); + free(modeW); + return file; +} + +#define fopen fopen_utf8 + +#endif + static void sprite_file_load_palette(sint32 spriteIndex) { rct_g1_element *g1 = &spriteFileEntries[spriteIndex]; @@ -90,14 +106,12 @@ static void sprite_entries_make_relative() static bool sprite_file_open(const utf8 *path) { - SDL_RWops *file; - - file = SDL_RWFromFile(path, "rb"); + FILE * file = fopen(path, "rb"); if (file == NULL) return false; - if (SDL_RWread(file, &spriteFileHeader, sizeof(rct_sprite_file_header), 1) != 1) { - SDL_RWclose(file); + if (fread(&spriteFileHeader, sizeof(rct_sprite_file_header), 1, file) != 1) { + fclose(file); return false; } @@ -105,21 +119,21 @@ static bool sprite_file_open(const utf8 *path) sint32 openEntryTableSize = spriteFileHeader.num_entries * sizeof(rct_g1_element_32bit); rct_g1_element_32bit * openElements = (rct_g1_element_32bit *)malloc(openEntryTableSize); if (openElements == NULL) { - SDL_RWclose(file); + fclose(file); return false; } - if (SDL_RWread(file, openElements, openEntryTableSize, 1) != 1) { + if (fread(openElements, openEntryTableSize, 1, file) != 1) { free(openElements); - SDL_RWclose(file); + fclose(file); return false; } spriteFileData = malloc(spriteFileHeader.total_size); - if (SDL_RWread(file, spriteFileData, spriteFileHeader.total_size, 1) != 1) { + if (fread(spriteFileData, spriteFileHeader.total_size, 1, file) != 1) { free(spriteFileData); free(openElements); - SDL_RWclose(file); + fclose(file); return false; } @@ -141,18 +155,18 @@ static bool sprite_file_open(const utf8 *path) free(openElements); } - SDL_RWclose(file); + fclose(file); return true; } static bool sprite_file_save(const char *path) { - SDL_RWops *file = SDL_RWFromFile(path, "wb"); + FILE * file = fopen(path, "wb"); if (file == NULL) return false; - if (SDL_RWwrite(file, &spriteFileHeader, sizeof(rct_sprite_file_header), 1) != 1) { - SDL_RWclose(file); + if (fwrite(&spriteFileHeader, sizeof(rct_sprite_file_header), 1, file) != 1) { + fclose(file); return false; } @@ -160,7 +174,7 @@ static bool sprite_file_save(const char *path) sint32 saveEntryTableSize = spriteFileHeader.num_entries * sizeof(rct_g1_element_32bit); rct_g1_element_32bit * saveElements = (rct_g1_element_32bit *)malloc(saveEntryTableSize); if (saveElements == NULL) { - SDL_RWclose(file); + fclose(file); return false; } @@ -177,20 +191,20 @@ static bool sprite_file_save(const char *path) outElement->zoomed_offset = inElement->zoomed_offset; } - if (SDL_RWwrite(file, saveElements, saveEntryTableSize, 1) != 1) { + if (fwrite(saveElements, saveEntryTableSize, 1, file) != 1) { free(saveElements); - SDL_RWclose(file); + fclose(file); return false; } free(saveElements); - if (SDL_RWwrite(file, spriteFileData, spriteFileHeader.total_size, 1) != 1) { - SDL_RWclose(file); + if (fwrite(spriteFileData, spriteFileHeader.total_size, 1, file) != 1) { + fclose(file); return false; } } - SDL_RWclose(file); + fclose(file); return true; } From e2a71896634e6221bb22dc7c7304318b966b0de3 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 2 Apr 2017 10:42:43 +0100 Subject: [PATCH 150/670] Do not use SDL_Colour for gPalette --- .../drawing/engines/SoftwareDrawingEngine.cpp | 17 +++++++------ .../engines/opengl/OpenGLDrawingEngine.cpp | 7 ++++-- src/openrct2/drawing/IDrawingEngine.h | 10 ++++---- src/openrct2/drawing/NewDrawing.cpp | 2 +- src/openrct2/drawing/NewDrawing.h | 4 +-- src/openrct2/drawing/drawing.h | 1 + src/openrct2/interface/screenshot.c | 8 +----- src/openrct2/network/NetworkConnection.cpp | 1 - src/openrct2/platform/platform.h | 2 -- src/openrct2/platform/shared.c | 25 +++++++------------ 10 files changed, 33 insertions(+), 44 deletions(-) diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index 934bd751cb..95541b089f 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -320,7 +320,7 @@ public: } } - void SetPalette(SDL_Color * palette) override + void SetPalette(const rct_palette_entry * palette) override { if (_sdlRenderer != nullptr) { @@ -328,7 +328,7 @@ public: { for (sint32 i = 0; i < 256; i++) { - _paletteHWMapped[i] = SDL_MapRGB(_screenTextureFormat, palette[i].r, palette[i].g, palette[i].b); + _paletteHWMapped[i] = SDL_MapRGB(_screenTextureFormat, palette[i].red, palette[i].green, palette[i].blue); } #ifdef __ENABLE_LIGHTFX__ @@ -348,11 +348,14 @@ public: SDL_Surface * windowSurface = SDL_GetWindowSurface(_window); if (windowSurface != nullptr && _palette != nullptr) { - // log_fatal("SDL_GetWindowSurface failed %s", SDL_GetError()); - // exit(1); - // log_fatal("SDL_SetPaletteColors failed %s", SDL_GetError()); - // exit(1); - SDL_SetPaletteColors(_palette, palette, 0, 256); + SDL_Colour colours[256]; + for (sint32 i = 0; i < 256; i++) { + colours[i].r = palette[i].red; + colours[i].g = palette[i].green; + colours[i].b = palette[i].blue; + colours[i].a = palette[i].alpha; + } + SDL_SetPaletteColors(_palette, colours, 0, 256); } } } diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index b515015beb..aec997f5a4 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -304,11 +304,14 @@ public: _drawingContext->Resize(width, height); } - void SetPalette(SDL_Color * palette) override + void SetPalette(const rct_palette_entry * palette) override { for (sint32 i = 0; i < 256; i++) { - SDL_Color colour = palette[i]; + SDL_Color colour; + colour.r = palette[i].red; + colour.g = palette[i].green; + colour.b = palette[i].blue; colour.a = i == 0 ? 0 : 255; Palette[i] = colour; diff --git a/src/openrct2/drawing/IDrawingEngine.h b/src/openrct2/drawing/IDrawingEngine.h index a791acc222..9ed9d61a7e 100644 --- a/src/openrct2/drawing/IDrawingEngine.h +++ b/src/openrct2/drawing/IDrawingEngine.h @@ -18,8 +18,6 @@ #include "../common.h" -#include - enum DRAWING_ENGINE { DRAWING_ENGINE_NONE = -1, @@ -42,6 +40,8 @@ enum DRAWING_ENGINE_FLAGS #ifdef __cplusplus struct rct_drawpixelinfo; +struct rct_palette_entry; +struct SDL_Window; namespace OpenRCT2 { namespace Drawing { @@ -51,9 +51,9 @@ namespace OpenRCT2 { namespace Drawing { virtual ~IDrawingEngine() { } - virtual void Initialise(SDL_Window * window) abstract; - virtual void Resize(uint32 width, uint32 height) abstract; - virtual void SetPalette(SDL_Color * colours) abstract; + virtual void Initialise(SDL_Window * window) abstract; + virtual void Resize(uint32 width, uint32 height) abstract; + virtual void SetPalette(const rct_palette_entry * colours) abstract; virtual void SetUncappedFrameRate(bool uncapped) abstract; diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 31dc499dc0..c7d8629f76 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -144,7 +144,7 @@ extern "C" _drawingEngine->Resize(uiContext->GetWidth(), uiContext->GetHeight()); } - void drawing_engine_set_palette(SDL_Color * colours) + void drawing_engine_set_palette(const rct_palette_entry * colours) { if (_drawingEngine != nullptr) { diff --git a/src/openrct2/drawing/NewDrawing.h b/src/openrct2/drawing/NewDrawing.h index 9470026a1d..e37eb2fd5b 100644 --- a/src/openrct2/drawing/NewDrawing.h +++ b/src/openrct2/drawing/NewDrawing.h @@ -16,8 +16,6 @@ #pragma once -#include - #ifdef __cplusplus extern "C" { @@ -32,7 +30,7 @@ sint32 drawing_engine_get_type(); bool drawing_engine_requires_restart(sint32 srcEngine, sint32 dstEngine); void drawing_engine_init(); void drawing_engine_resize(); -void drawing_engine_set_palette(SDL_Color * colours); +void drawing_engine_set_palette(const rct_palette_entry * colours); void drawing_engine_draw(); void drawing_engine_copy_rect(sint32 x, sint32 y, sint32 width, sint32 height, sint32 dx, sint32 dy); void drawing_engine_dispose(); diff --git a/src/openrct2/drawing/drawing.h b/src/openrct2/drawing/drawing.h index 9088238c3c..362584c60d 100644 --- a/src/openrct2/drawing/drawing.h +++ b/src/openrct2/drawing/drawing.h @@ -253,6 +253,7 @@ typedef struct rct_palette { extern sint16 gCurrentFontSpriteBase; extern uint16 gCurrentFontFlags; +extern rct_palette_entry gPalette[256]; extern uint8 gGamePalette[256 * 4]; extern uint32 gPaletteEffectFrame; extern const FILTER_PALETTE_ID GlassPaletteIds[COLOUR_COUNT]; diff --git a/src/openrct2/interface/screenshot.c b/src/openrct2/interface/screenshot.c index ee6e677bce..19f5fd383b 100644 --- a/src/openrct2/interface/screenshot.c +++ b/src/openrct2/interface/screenshot.c @@ -59,13 +59,7 @@ void screenshot_check() static void screenshot_get_rendered_palette(rct_palette* palette) { for (sint32 i = 0; i < 256; i++) { - const SDL_Color *renderedEntry = &gPalette[i]; - rct_palette_entry *entry = &palette->entries[i]; - - entry->red = renderedEntry->r; - entry->green = renderedEntry->g; - entry->blue = renderedEntry->b; - entry->alpha = renderedEntry->a; + palette->entries[i] = gPalette[i]; } } diff --git a/src/openrct2/network/NetworkConnection.cpp b/src/openrct2/network/NetworkConnection.cpp index 54fa4904aa..811d0d139f 100644 --- a/src/openrct2/network/NetworkConnection.cpp +++ b/src/openrct2/network/NetworkConnection.cpp @@ -19,7 +19,6 @@ #include "network.h" #include "NetworkConnection.h" #include "../core/String.hpp" -#include extern "C" { diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index 23007b4cc7..bbdf1c26b7 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -99,8 +99,6 @@ typedef struct file_dialog_desc { } filters[8]; } file_dialog_desc; -extern SDL_Color gPalette[256]; - // Platform shared definitions void platform_init(); void platform_draw(); diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 5fc8094a8e..e545285ecb 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -49,11 +49,7 @@ typedef void(*update_palette_func)(const uint8*, sint32, sint32); -SDL_Renderer *gRenderer = NULL; -SDL_Texture *gBufferTexture = NULL; -SDL_PixelFormat *gBufferTextureFormat = NULL; -SDL_Color gPalette[256]; -uint32 gPaletteHWMapped[256]; +rct_palette_entry gPalette[256]; void platform_draw() { @@ -110,14 +106,11 @@ void platform_update_palette(const uint8* colours, sint32 start_index, sint32 nu } } - gPalette[i].r = r; - gPalette[i].g = g; - gPalette[i].b = b; - gPalette[i].a = 0; + gPalette[i].red = r; + gPalette[i].green = g; + gPalette[i].blue = b; + gPalette[i].alpha = 0; colours += 4; - if (gBufferTextureFormat != NULL) { - gPaletteHWMapped[i] = SDL_MapRGB(gBufferTextureFormat, gPalette[i].r, gPalette[i].g, gPalette[i].b); - } } if (!gOpenRCT2Headless) { @@ -133,10 +126,10 @@ void platform_init() // Set the highest palette entry to white. // This fixes a bug with the TT:rainbow road due to the // image not using the correct white palette entry. - gPalette[255].a = 0; - gPalette[255].r = 255; - gPalette[255].g = 255; - gPalette[255].b = 255; + gPalette[255].alpha = 0; + gPalette[255].red = 255; + gPalette[255].green = 255; + gPalette[255].blue = 255; } sint32 platform_scancode_to_rct_keycode(sint32 sdl_key) From fc19b57c0980fcabc05fd602f34ca68352dc6c00 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 6 May 2017 19:17:46 +0100 Subject: [PATCH 151/670] Fix build after rebase --- src/openrct2/Context.cpp | 2 +- src/openrct2/windows/scenery.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index be0c330b48..b6bf62263c 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -570,7 +570,7 @@ extern "C" { void openrct2_write_full_version_info(utf8 * buffer, size_t bufferSize) { - String::Set(buffer, bufferSize, Version::GetInfo().c_str()); + String::Set(buffer, bufferSize, gVersionInfoFull); } void openrct2_finish() diff --git a/src/openrct2/windows/scenery.c b/src/openrct2/windows/scenery.c index 2e11b4094c..fb7a14cd2d 100644 --- a/src/openrct2/windows/scenery.c +++ b/src/openrct2/windows/scenery.c @@ -1257,7 +1257,7 @@ bool window_scenery_set_selected_item(sint32 sceneryId) gWindowSceneryActiveTabIndex = tabIndex; gWindowSceneryTabSelections[tabIndex] = sceneryId; - audio_play_sound_panned(4, (w->width >> 1) + w->x, 0, 0, 0); + audio_play_sound(SOUND_CLICK_1, 0, context_get_width() / 2); w->scenery.hover_counter = -16; gSceneryPlaceCost = MONEY32_UNDEFINED; window_invalidate(w); From 50197f04eda411d1d0b514cfc05326810bd35212 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 6 May 2017 21:33:23 +0100 Subject: [PATCH 152/670] Fix boolean warning --- src/openrct2-ui/UiContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 495e5597a3..3ff009bc37 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -155,7 +155,7 @@ public: bool HasFocus() override { uint32 windowFlags = GetWindowFlags(); - return (windowFlags & SDL_WINDOW_INPUT_FOCUS); + return (windowFlags & SDL_WINDOW_INPUT_FOCUS) != 0; } bool IsMinimised() override From e133585727e17051830ac6a683813777ac85d292 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 6 May 2017 21:44:30 +0100 Subject: [PATCH 153/670] Fix 32-bit build --- src/openrct2-ui/UiContext.Win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp index 78f266e8bf..0c4e63519e 100644 --- a/src/openrct2-ui/UiContext.Win32.cpp +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -134,7 +134,7 @@ namespace OpenRCT2 { namespace Ui sint32 filterIndex = openFileName.nFilterIndex - 1; assert(filterIndex >= 0); - assert(filterIndex < desc.Filters.size()); + assert(filterIndex < (sint32)desc.Filters.size()); std::string pattern = desc.Filters[filterIndex].Pattern; std::string patternExtension = Path::GetExtension(pattern); From 423028dac9bc0f6b7b0fa5d19f32ffeb8a740ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 6 May 2017 22:53:51 +0200 Subject: [PATCH 154/670] Fix some warnings with clang and GCC --- src/openrct2/Context.cpp | 3 +-- src/openrct2/platform/Platform2.cpp | 2 -- src/openrct2/windows/text_input.c | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index b6bf62263c..c7f22b6c84 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -77,7 +77,6 @@ namespace OpenRCT2 IScenarioRepository * _scenarioRepository = nullptr; bool _isWindowMinimised = false; - uint32 _isWindowMinimisedLastCheckTick = 0; uint32 _lastTick = 0; uint32 _uncapTick = 0; @@ -138,7 +137,7 @@ namespace OpenRCT2 /** * Causes the OpenRCT2 game loop to finish. */ - void Finish() + void Finish() override { _finished = true; } diff --git a/src/openrct2/platform/Platform2.cpp b/src/openrct2/platform/Platform2.cpp index 0be0800034..da7ae58f59 100644 --- a/src/openrct2/platform/Platform2.cpp +++ b/src/openrct2/platform/Platform2.cpp @@ -14,8 +14,6 @@ *****************************************************************************/ #pragma endregion -#pragma once - #include "Platform2.h" extern "C" diff --git a/src/openrct2/windows/text_input.c b/src/openrct2/windows/text_input.c index f71621c9a3..d5a8804195 100644 --- a/src/openrct2/windows/text_input.c +++ b/src/openrct2/windows/text_input.c @@ -280,7 +280,7 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) size_t char_count = 0; uint8 cur_drawn = 0; - sint32 cursorX = 0, cursorY = 0; + sint32 cursorX = 0; for (sint32 line = 0; line <= no_lines; line++) { gfx_draw_string(dpi, wrap_pointer, w->colours[1], w->x + 12, y); @@ -291,7 +291,6 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) char temp_string[TEXT_INPUT_SIZE] = { 0 }; memcpy(temp_string, wrap_pointer, gTextInput->SelectionStart - char_count); cursorX = w->x + 13 + gfx_get_string_width(temp_string); - cursorY = y; sint32 width = 6; if (gTextInput->SelectionStart < strlen(text_input)){ @@ -322,7 +321,6 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) if (!cur_drawn) { cursorX = gLastDrawStringX; - cursorY = y - 10; } // IME composition From 98d59ccaa341bbe4bb95900d51f4978042c9efa4 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 6 May 2017 22:48:55 +0100 Subject: [PATCH 155/670] Fix Linux build errors --- src/openrct2-ui/TextComposition.h | 2 +- src/openrct2-ui/Ui.cpp | 10 ++++++++-- src/openrct2-ui/UiContext.Linux.cpp | 8 ++++---- src/openrct2/OpenRCT2.cpp | 1 + src/openrct2/platform/posix.c | 17 ----------------- src/openrct2/ui/UiContext.h | 1 + 6 files changed, 15 insertions(+), 24 deletions(-) diff --git a/src/openrct2-ui/TextComposition.h b/src/openrct2-ui/TextComposition.h index af08a34dc3..e342723eca 100644 --- a/src/openrct2-ui/TextComposition.h +++ b/src/openrct2-ui/TextComposition.h @@ -39,7 +39,7 @@ namespace OpenRCT2 public: bool IsActive(); - TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize); + TextInputSession * Start(utf8 * buffer, size_t bufferSize); void Stop(); void HandleMessage(const SDL_Event * e); diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp index 4475594fb4..f8939fe0ef 100644 --- a/src/openrct2-ui/Ui.cpp +++ b/src/openrct2-ui/Ui.cpp @@ -16,10 +16,14 @@ #ifndef _MSC_VER +#include #include +#include +#include "audio/AudioContext.h" #include "UiContext.h" using namespace OpenRCT2; +using namespace OpenRCT2::Audio; using namespace OpenRCT2::Ui; /** @@ -28,8 +32,10 @@ using namespace OpenRCT2::Ui; int main(int argc, char * * argv) { // Run OpenRCT2 with a UI context - IContext * context = CreateContext(); - IUiContext * uiContext = CreateContext(context); + + IAudioContext * audioContext = CreateAudioContext(); + IUiContext * uiContext = CreateUiContext(); + IContext * context = CreateContext(audioContext, uiContext); int exitCode = context->RunOpenRCT2(argc, argv); delete uiContext; delete context; diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 43febb6b74..a854fae9a1 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -16,6 +16,7 @@ #ifdef __linux__ +#include #include #include #include @@ -154,13 +155,13 @@ namespace OpenRCT2 { namespace Ui log_verbose("filename = %s", result.c_str()); - if (desc.Type == FILE_DIALOG_TYPE::OPEN && access(result, F_OK) == -1) + if (desc.Type == FILE_DIALOG_TYPE::OPEN && access(result.c_str(), F_OK) == -1) { std::string msg = String::StdFormat("\"%s\" not found: %s, please choose another file\n", result.c_str(), strerror(errno)); ShowMessageBox(window, msg); return ShowFileDialog(window, desc); } - else if (desc.Type == FILE_DIALOG_TYPE::SAVE && access(result, F_OK) != -1 && dtype == DIALOG_TYPE::KDIALOG) + else if (desc.Type == FILE_DIALOG_TYPE::SAVE && access(result.c_str(), F_OK) != -1 && dtype == DIALOG_TYPE::KDIALOG) { std::string cmd = String::StdFormat("%s --yesno \"Overwrite %s?\"", executablePath, result.c_str()); if (Execute(cmd) != 0) @@ -274,7 +275,7 @@ namespace OpenRCT2 { namespace Ui { // KDialog wants filters space-delimited and we don't expect ';' anywhere else std::string pattern = filter.Pattern; - for (sint32 i = 0; i < pattern.size(); i++) + for (size_t i = 0; i < pattern.size(); i++) { if (pattern[i] == ';') { @@ -299,7 +300,6 @@ namespace OpenRCT2 { namespace Ui { // Zenity seems to be case sensitive, while KDialog isn't std::stringstream filtersb; - bool first = true; for (const auto &filter : filters) { filtersb << " --file-filter='" << filter.Name << " | "; diff --git a/src/openrct2/OpenRCT2.cpp b/src/openrct2/OpenRCT2.cpp index de4bcc0110..7edbdeb157 100644 --- a/src/openrct2/OpenRCT2.cpp +++ b/src/openrct2/OpenRCT2.cpp @@ -23,6 +23,7 @@ extern "C" { #include "audio/audio.h" #include "platform/platform.h" + #include "rct2.h" } extern "C" diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 18bbc1d0bb..4b8e572c00 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -46,23 +46,6 @@ utf8 _userDataDirectoryPath[MAX_PATH] = { 0 }; utf8 _openrctDataDirectoryPath[MAX_PATH] = { 0 }; -/** - * The main entry point for non-Windows platforms. - */ -sint32 main(sint32 argc, const char **argv) -{ - core_init(); - - sint32 exitCode = cmdline_run(argv, argc); - if (exitCode == 1) - { - openrct2_launch(); - exitCode = gExitCode; - } - - return exitCode; -} - void platform_get_date_utc(rct2_date *out_date) { assert(out_date != NULL); diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 48079a2f92..5a49cad541 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -16,6 +16,7 @@ #pragma once +#include #include #include "../common.h" #include "../Context.h" From e670a386baeedeb52e2deb696b63767f01fc0fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 7 May 2017 08:55:34 +0200 Subject: [PATCH 156/670] Add cmath include to AudioMixer for std::pow --- src/openrct2/audio/AudioMixer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/audio/AudioMixer.cpp b/src/openrct2/audio/AudioMixer.cpp index 1a5d0b6ee3..3594c4a151 100644 --- a/src/openrct2/audio/AudioMixer.cpp +++ b/src/openrct2/audio/AudioMixer.cpp @@ -14,6 +14,7 @@ *****************************************************************************/ #pragma endregion +#include #include "../config/Config.h" #include "../Context.h" #include "audio.h" From 23a314d4ba66541bfc2076988807a18964c160bf Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 17:28:33 +0100 Subject: [PATCH 157/670] Convert tabs to spaces for test cmakelists --- test/tests/CMakeLists.txt | 94 +++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/test/tests/CMakeLists.txt b/test/tests/CMakeLists.txt index 763fa706f7..8c52e76031 100644 --- a/test/tests/CMakeLists.txt +++ b/test/tests/CMakeLists.txt @@ -4,13 +4,13 @@ cmake_minimum_required(VERSION 2.6) INCLUDE(ExternalProject) ExternalProject_Add( - googletest-distribution - URL https://github.com/google/googletest/archive/release-1.8.0.tar.gz - URL_HASH SHA1=e7e646a6204638fe8e87e165292b8dd9cd4c36ed - TIMEOUT 10 - CONFIGURE_COMMAND "" - BUILD_COMMAND "" - INSTALL_COMMAND "" + googletest-distribution + URL https://github.com/google/googletest/archive/release-1.8.0.tar.gz + URL_HASH SHA1=e7e646a6204638fe8e87e165292b8dd9cd4c36ed + TIMEOUT 10 + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" ) # Specify include dir @@ -18,19 +18,19 @@ ExternalProject_Get_Property(googletest-distribution SOURCE_DIR) set(GOOGLETEST_DISTRIB_SOURCE_DIR "${SOURCE_DIR}") ExternalProject_Add( - googletest - DEPENDS googletest-distribution - DOWNLOAD_COMMAND "" - SOURCE_DIR "${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest" - CMAKE_ARGS "-DCMAKE_CXX_FLAGS=${TARGET_M}" - BUILD_BYPRODUCTS "googletest-prefix/src/googletest-build/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}" - BUILD_BYPRODUCTS "googletest-prefix/src/googletest-build/${CMAKE_STATIC_LIBRARY_PREFIX}gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX}" - # Disable install step - INSTALL_COMMAND "" - # Wrap download, configure and build steps in a script to log output - LOG_DOWNLOAD ON - LOG_CONFIGURE ON - LOG_BUILD ON) + googletest + DEPENDS googletest-distribution + DOWNLOAD_COMMAND "" + SOURCE_DIR "${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest" + CMAKE_ARGS "-DCMAKE_CXX_FLAGS=${TARGET_M}" + BUILD_BYPRODUCTS "googletest-prefix/src/googletest-build/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}" + BUILD_BYPRODUCTS "googletest-prefix/src/googletest-build/${CMAKE_STATIC_LIBRARY_PREFIX}gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX}" + # Disable install step + INSTALL_COMMAND "" + # Wrap download, configure and build steps in a script to log output + LOG_DOWNLOAD ON + LOG_CONFIGURE ON + LOG_BUILD ON) # Specify include dir @@ -57,16 +57,16 @@ set(GTEST_LIBRARIES gtest gtest_main pthread) # Some most common files required in tests set(COMMON_TEST_SOURCES - "../../src/openrct2/core/Console.cpp" - "../../src/openrct2/core/Diagnostics.cpp" - "../../src/openrct2/core/Guard.cpp" - "../../src/openrct2/core/String.cpp" - "../../src/openrct2/diagnostic.c" - "../../src/openrct2/localisation/format_codes.c" - "../../src/openrct2/localisation/utf8.c" - "../../src/openrct2/util/util.c" - "../../src/openrct2/Version.cpp" - ) + "../../src/openrct2/core/Console.cpp" + "../../src/openrct2/core/Diagnostics.cpp" + "../../src/openrct2/core/Guard.cpp" + "../../src/openrct2/core/String.cpp" + "../../src/openrct2/diagnostic.c" + "../../src/openrct2/localisation/format_codes.c" + "../../src/openrct2/localisation/utf8.c" + "../../src/openrct2/util/util.c" + "../../src/openrct2/Version.cpp" + ) # Create a re-usable library to save some compilation time add_library(test-common STATIC ${COMMON_TEST_SOURCES}) @@ -76,41 +76,41 @@ add_library(test-common STATIC ${COMMON_TEST_SOURCES}) # sawyercoding test set(SAWYERCODING_TEST_SOURCES - "sawyercoding_test.cpp" - "../../src/openrct2/diagnostic.c" - "../../src/openrct2/util/sawyercoding.c" - "../../src/openrct2/localisation/utf8.c" - ) + "sawyercoding_test.cpp" + "../../src/openrct2/diagnostic.c" + "../../src/openrct2/util/sawyercoding.c" + "../../src/openrct2/localisation/utf8.c" + ) add_executable(test_sawyercoding ${SAWYERCODING_TEST_SOURCES}) target_link_libraries(test_sawyercoding ${GTEST_LIBRARIES}) add_test(NAME sawyercoding COMMAND test_sawyercoding) # LanguagePack test set(LANGUAGEPACK_TEST_SOURCES - "LanguagePackTest.cpp" - "../../src/openrct2/localisation/LanguagePack.cpp" - ) + "LanguagePackTest.cpp" + "../../src/openrct2/localisation/LanguagePack.cpp" + ) add_executable(test_languagepack ${LANGUAGEPACK_TEST_SOURCES}) target_link_libraries(test_languagepack ${GTEST_LIBRARIES} test-common dl z SDL2) add_test(NAME languagepack COMMAND test_languagepack) # INI test set(INI_TEST_SOURCES - "IniWriterTest.cpp" - "IniReaderTest.cpp" - "../../src/openrct2/config/IniReader.cpp" - "../../src/openrct2/config/IniWriter.cpp" - "../../src/openrct2/core/IStream.cpp" - "../../src/openrct2/core/MemoryStream.cpp" - ) + "IniWriterTest.cpp" + "IniReaderTest.cpp" + "../../src/openrct2/config/IniReader.cpp" + "../../src/openrct2/config/IniWriter.cpp" + "../../src/openrct2/core/IStream.cpp" + "../../src/openrct2/core/MemoryStream.cpp" + ) add_executable(test_ini ${INI_TEST_SOURCES}) target_link_libraries(test_ini ${GTEST_LIBRARIES} test-common dl z) add_test(NAME ini COMMAND test_ini) # String test set(STRING_TEST_SOURCES - "StringTest.cpp" - ) + "StringTest.cpp" + ) add_executable(test_string ${STRING_TEST_SOURCES}) target_link_libraries(test_string ${GTEST_LIBRARIES} test-common dl z) add_test(NAME string COMMAND test_string) From 1f8f354e49b0fa47bd8d1c1e7bca633809acec06 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 17:35:15 +0100 Subject: [PATCH 158/670] Update root cmake and enable tests --- CMakeLists.txt | 473 +++----------------------------------- src/CMakeLists.txt | 59 ----- test/tests/CMakeLists.txt | 46 ++-- 3 files changed, 51 insertions(+), 527 deletions(-) delete mode 100644 src/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f1d03669d..0a906d7931 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,484 +1,67 @@ +# CMAKE project for openrct2 cmake_minimum_required(VERSION 2.6) - -# -# Execute these commands in this directory: -# -# 1. mkdir build/; cd build/ -# -# 2. Choose compiler: -# Build with native toolchain: -# cmake -DCMAKE_BUILD_TYPE=Debug .. -# -# Build with mingw: -# cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=Debug .. -# -# 3. make -# - - -# project title -set (PROJECT openrct2) -# OpenRCT2 resource directory -set (ORCT2_RESOURCE_DIR ${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/) - -project(${PROJECT}) - if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif() -add_definitions(-DORCT2_RESOURCE_DIR="${ORCT2_RESOURCE_DIR}") -add_definitions(-DHAVE_CONFIG_H) -add_definitions(-DCURL_STATICLIB) +set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}") -# Define current git branch. +option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") +option(CLI_ONLY "CLI only build of OpenRCT2") +option(WITH_TESTS "Build tests") + +# Define current git branch execute_process( COMMAND git rev-parse --abbrev-ref HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${ROOT_DIR} OUTPUT_VARIABLE OPENRCT2_BRANCH OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET ) add_definitions(-DOPENRCT2_BRANCH="${OPENRCT2_BRANCH}") -# Define commit hash. +# Define commit hash execute_process( COMMAND git rev-parse HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${ROOT_DIR} OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1 OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET ) add_definitions(-DOPENRCT2_COMMIT_SHA1="${OPENRCT2_COMMIT_SHA1}") -# Define short commit hash. +# Define short commit hash execute_process( COMMAND git rev-parse --short HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${ROOT_DIR} OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1_SHORT OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET ) + # Tagged builds are not meant to display commit info if (NOT OPENRCT2_COMMIT_SHA1_SHORT STREQUAL "HEAD") add_definitions(-DOPENRCT2_COMMIT_SHA1_SHORT="${OPENRCT2_COMMIT_SHA1_SHORT}") endif() -# Convenience functions to set compiler flags only if available -include(CheckCCompilerFlag) -include(CheckCXXCompilerFlag) - -function(ADD_CHECK_C_COMPILER_FLAG - _CFLAGS - _CACHE_VAR - _FLAG - ) - - CHECK_C_COMPILER_FLAG("${_FLAG}" "${_CACHE_VAR}") - if(${_CACHE_VAR}) - # message(STATUS "Using CFLAG: ${_FLAG}") - set(${_CFLAGS} "${${_CFLAGS}} ${_FLAG}" PARENT_SCOPE) - else() - message(STATUS "Unsupported CFLAG: ${_FLAG}") - endif() -endfunction() - -function(ADD_CHECK_CXX_COMPILER_FLAG - _CXXFLAGS - _CACHE_VAR - _FLAG - ) - - CHECK_CXX_COMPILER_FLAG("${_FLAG}" "${_CACHE_VAR}") - if(${_CACHE_VAR}) - # message(STATUS "Using CXXFLAG: ${_FLAG}") - set(${_CXXFLAGS} "${${_CXXFLAGS}} ${_FLAG}" PARENT_SCOPE) - else() - message(STATUS "Unsupported CXXFLAG: ${_FLAG}") - endif() -endfunction() - -# pkg-config -INCLUDE(FindPkgConfig) - -# Needed for linking with non-broken OpenSSL on Apple platforms -if (APPLE) - set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/openssl/lib/pkgconfig") -endif (APPLE) - -# Options - -option(DISABLE_HTTP_TWITCH "Disable HTTP and Twitch support.") -option(DISABLE_NETWORK "Disable multiplayer functionality. Mainly for testing.") -option(STATIC "Create a static build.") -option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags") -option(DISABLE_OPENGL "Disable OpenGL support.") -option(DISABLE_RCT2 "Build a standalone version, without using code and data segments from vanilla. On by default." ON) -option(USE_MMAP "Use mmap to try loading rct2's data segment into memory.") -option(WITH_TESTS "Build tests") -option(DISABLE_TTF "Disable support for TTF provided by SDL2_ttf.") -option(ENABLE_LIGHTFX "Enable lighting effects." ON) - -set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wno-unknown-pragmas -Wno-unused-function -Wno-missing-braces ") -set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-comment -Wshadow -Wmissing-declarations -Wnonnull") - -# macOS builds fail on the use of tmpnam otherwise (#4959) -if(APPLE) - set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-error=deprecated-declarations -Wno-error=objc-method-access") -endif() - -# On mingw all code is already PIC, this will avoid compiler error on redefining this option -if(NOT MINGW) - set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fPIC") -endif() - -if (NOT DISABLE_RCT2) - set (FORCE32 ON) - message("DISABLE_RCT2 implies FORCE32") -endif() - -if (DISABLE_HTTP_TWITCH) - add_definitions(-DDISABLE_HTTP -DDISABLE_TWITCH) -endif (DISABLE_HTTP_TWITCH) - -if (DISABLE_TTF) - add_definitions(-DNO_TTF) -endif (DISABLE_TTF) - -if (ENABLE_LIGHTFX) - add_definitions(-D__ENABLE_LIGHTFX__) -endif (ENABLE_LIGHTFX) - -# Launchpad turns on -Wdate-time for compilers that support it, this shouldn't break our build -ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_WRITE_STRINGS -Wno-error=date-time) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_WRITE_STRINGS -Wno-error=date-time) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_NULL_DEREFERENCE -Wnull-dereference) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_FINAL_TYPES -Wsuggest-final-types) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_FINAL_METHODS -Wsuggest-final-methods) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_OVERRIDE -Wsuggest-override) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_DUPLICATED_COND -Wduplicated-cond) -if (MINGW) - ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_OVERRIDE -Wno-error=redundant-decls) -endif () -# Items below are not supported by ICC -ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_REDUNDANT_DECLS -Wredundant-decls) -ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_IGNORED_QUALIFIERS -Wignored-qualifiers) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_REDUNDANT_DECLS -Wredundant-decls) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_IGNORED_QUALIFIERS -Wignored-qualifiers) - -# -Wstrict-overflow is only active when -fstrict-overflow is enabled, but -fstrict-overflow -# is enabled on -O2, -O3, -Os. This should help catch bugs locally before they reach Travis -# As of 2a435bf -Wstrict-overflow=1 passes, but higher values do not. -set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-overflow") -ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_STRICT_OVERFLOW -Wstrict-overflow=1) -ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_STRICT_OVERFLOW -Wstrict-overflow=1) - -if (FORCE32) - set(TARGET_M "-m32") -endif() - -if (FORCE32) - set(OBJ_FORMAT "elf32-i386") - set(LINKER_SCRIPT "ld_script_i386.xc") -endif () - -if (DISABLE_OPENGL) - add_definitions(-DDISABLE_OPENGL) -else (DISABLE_OPENGL) - # Makes OpenGL function get queried in run-time rather than linked-in - add_definitions(-DOPENGL_NO_LINK) -endif (DISABLE_OPENGL) - -if (USE_MMAP) - add_definitions(-DUSE_MMAP) -endif (USE_MMAP) - -if (DISABLE_NETWORK) - add_definitions(-DDISABLE_NETWORK) -else (DISABLE_NETWORK) - if (WIN32) - SET(NETWORKLIBS ${NETWORKLIBS} ws2_32) - endif (WIN32) - # If you are on macOS, CMake might try using system-provided OpenSSL. - # This is too old and will not work. - PKG_CHECK_MODULES(SSL REQUIRED openssl>=1.0.0) -endif (DISABLE_NETWORK) - -if (DISABLE_RCT2) - add_definitions(-DNO_RCT2) -endif (DISABLE_RCT2) - -# Start of library checks - -PKG_CHECK_MODULES(PNG libpng>=1.6) -if (NOT PNG_FOUND) - PKG_CHECK_MODULES(PNG libpng16) -endif (NOT PNG_FOUND) -if (NOT PNG_FOUND) - PKG_CHECK_MODULES(PNG libpng>=1.2) -endif (NOT PNG_FOUND) -if (NOT PNG_FOUND) - PKG_CHECK_MODULES(PNG REQUIRED libpng12) -endif (NOT PNG_FOUND) - -PKG_CHECK_MODULES(ZLIB REQUIRED zlib) -PKG_CHECK_MODULES(JANSSON REQUIRED jansson>=2.5) - -# Handle creating the rct2 text and data files on macOS and Linux -# See details in src/openrct2/rct2/interop.c:rct2_interop_setup_segment for how the values -# were derived. -if ((NOT DISABLE_RCT2) AND UNIX) - add_custom_command( - OUTPUT openrct2_text - COMMAND dd if="${CMAKE_CURRENT_SOURCE_DIR}/openrct2.exe" of="${CMAKE_BINARY_DIR}/openrct2_text" bs=4096 skip=1 count=1187 - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/openrct2.exe - ) - add_custom_command( - OUTPUT openrct2_data - COMMAND dd if="${CMAKE_CURRENT_SOURCE_DIR}/openrct2.exe" of="${CMAKE_BINARY_DIR}/openrct2_data" bs=4096 skip=1188 count=318 - COMMAND dd if=/dev/zero of="${CMAKE_BINARY_DIR}/openrct2_data" bs=4096 seek=318 count=2630 conv=notrunc - COMMAND dd if="${CMAKE_CURRENT_SOURCE_DIR}/openrct2.exe" of="${CMAKE_BINARY_DIR}/openrct2_data" bs=4096 skip=1506 seek=2948 count=1 conv=notrunc - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/openrct2.exe - ) - add_custom_target(segfiles DEPENDS openrct2_text openrct2_data) - if (NOT USE_MMAP) - if (APPLE) - set(RCT2_SEGMENT_LINKER_FLAGS "-sectcreate rct2_text __text ${CMAKE_BINARY_DIR}/openrct2_text -sectcreate rct2_data __data ${CMAKE_BINARY_DIR}/openrct2_data -segaddr rct2_data 0x8a4000 -segprot rct2_data rwx rwx -segaddr rct2_text 0x401000 -segprot rct2_text rwx rwx -segaddr __TEXT 0x2000000 -read_only_relocs suppress") - else (APPLE) - # For Linux we have to use objcopy to wrap regular binaries into a linkable - # format. We use specific section names which are then referenced in a - # bespoke linker script so they can be placed at predefined VMAs. - add_custom_command( - OUTPUT openrct2_text_section.o - COMMAND objcopy --input binary --output ${OBJ_FORMAT} --binary-architecture i386 openrct2_text openrct2_text_section.o --rename-section .data=.rct2_text,contents,alloc,load,readonly,code - DEPENDS segfiles - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - ) - add_custom_command( - OUTPUT openrct2_data_section.o - COMMAND objcopy --input binary --output ${OBJ_FORMAT} --binary-architecture i386 openrct2_data openrct2_data_section.o --rename-section .data=.rct2_data,contents,alloc,load,readonly,data - DEPENDS segfiles - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - ) - add_custom_target(linkable_sections DEPENDS openrct2_text_section.o openrct2_data_section.o) - SET_SOURCE_FILES_PROPERTIES( - openrct2_text_section.o openrct2_data_section.o - PROPERTIES - EXTERNAL_OBJECT true - GENERATED true - ) - # can't use GLOB here, as the files don't exist yet at cmake-time - set(RCT2_SECTIONS "${CMAKE_BINARY_DIR}/openrct2_data_section.o" "${CMAKE_BINARY_DIR}/openrct2_text_section.o") - set(RCT2_SEGMENT_LINKER_FLAGS "-Wl,-T,\"${CMAKE_CURRENT_SOURCE_DIR}/distribution/linux/${LINKER_SCRIPT}\"") - endif (APPLE) - endif (NOT USE_MMAP) -elseif (USE_MMAP) - # No dd here, can't extract data segment - message(WARNING "Sorry, your platform is not supported, you have to extract data segment manually") -endif ((NOT DISABLE_RCT2) AND UNIX) -set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG=${DEBUG_LEVEL}") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG=${DEBUG_LEVEL}") - -# include lib -include_directories("lib/") -# add source files -file(GLOB_RECURSE ORCT2_SOURCES "src/openrct2/*.c" "src/openrct2/*.cpp" "src/openrct2/*.h" "src/openrct2/*.hpp") -if (APPLE) - file(GLOB_RECURSE ORCT2_MM_SOURCES "src/openrct2/*.m") - set_source_files_properties(${ORCT2_MM_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c -fmodules") -endif (APPLE) - - -if (APPLE AND NOT USE_MMAP) - set(PIE_FLAG "-fno-pie") +# Include sub-projects +include("${ROOT_DIR}/src/openrct2/CMakeLists.txt" NO_POLICY_SCOPE) +if (CLI_ONLY) + include("${ROOT_DIR}/src/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) else () - set(PIE_FLAG "-fpie") + include("${ROOT_DIR}/src/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE) endif () -# set necessary flags to compile code as is -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_M} -std=gnu11 ${COMMON_COMPILE_OPTIONS} -Wimplicit") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TARGET_M} -std=gnu++14 ${COMMON_COMPILE_OPTIONS} -Wnon-virtual-dtor") -set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${TARGET_M}") -set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_SHARED_LINKER_FLAGS} ${PIE_FLAG}") - -if (MINGW) - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++") -endif () - -option(WITH_BREAKPAD "Enable breakpad") -if (WITH_BREAKPAD) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_BREAKPAD") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_BREAKPAD") - set(BREAKPAD_DIR "/home/janisozaur/workspace/breakpad/src") - set(BREAKPAD_INCLUDE_DIR "${BREAKPAD_DIR}/src") - set(BREAKPAD_LIBRARY_DIR "${BREAKPAD_DIR}/src/client/linux") - set(BREAKPAD_LIBS breakpad_client pthread) -endif (WITH_BREAKPAD) - -PKG_CHECK_MODULES(LIBZIP REQUIRED libzip>=1.0) -# find and include SDL2 -PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) -if (NOT DISABLE_TTF) - PKG_CHECK_MODULES(SDL2_TTF REQUIRED SDL2_ttf) -endif (NOT DISABLE_TTF) - -if (STATIC) - if (NOT DISABLE_TTF) - # FreeType is required by SDL2_ttf, but not wired up properly in package - PKG_CHECK_MODULES(FREETYPE REQUIRED freetype2) - endif (NOT DISABLE_TTF) - SET(SDL2LIBS ${SDL2_STATIC_LIBRARIES} ${SDL2_TTF_STATIC_LIBRARIES} ${FREETYPE_STATIC_LIBRARIES}) -else (STATIC) - SET(SDL2LIBS ${SDL2_LIBRARIES} ${SDL2_TTF_LIBRARIES}) -endif (STATIC) - -if (STATIC) - set(STATIC_START "-static") - SET(REQUIREDLIBS ${PNG_STATIC_LIBRARIES} ${JANSSON_STATIC_LIBRARIES} ${ZLIB_STATIC_LIBRARIES} ${SSL_STATIC_LIBRARIES} ${LIBZIP_STATIC_LIBRARIES}) -else (STATIC) - SET(REQUIREDLIBS ${PNG_LIBRARIES} ${JANSSON_LIBRARIES} ${ZLIB_LIBRARIES} ${SSL_LIBRARIES} ${LIBZIP_LIBRARIES}) -endif (STATIC) - -if (NOT DISABLE_OPENGL) - if (WIN32) - # Curl depends on openssl and ws2 in mingw builds, but is not wired up in pkg-config - set(GLLIBS opengl32) - # mingw complains about "%zu" not being a valid format specifier for printf, unless we - # tell it that it is - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__USE_MINGW_ANSI_STDIO=1") - elseif (APPLE) - # GL doesn't work nicely with macOS, while find_package doesn't work with multiarch on Ubuntu. - find_package(OpenGL REQUIRED) - set(GLLIBS ${OPENGL_LIBRARY}) - else (WIN32) - PKG_CHECK_MODULES(GL REQUIRED gl) - set(GLLIBS ${GL_LIBRARIES}) - endif (WIN32) -endif (NOT DISABLE_OPENGL) - -if (NOT DISABLE_HTTP_TWITCH) - PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl) - if (WIN32) - # Curl depends on openssl and ws2 in mingw builds, but is not wired up in pkg-config - set(WSLIBS ws2_32) - endif (WIN32) - if (STATIC) - SET(HTTPLIBS ${LIBCURL_STATIC_LIBRARIES} ${WSLIBS}) - else (STATIC) - SET(HTTPLIBS ${LIBCURL_LIBRARIES} ${WSLIBS}) - endif (STATIC) -endif (NOT DISABLE_HTTP_TWITCH) - -PKG_CHECK_MODULES(SPEEX REQUIRED speexdsp) - -if (UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "BSD") - # Include libdl for dlopen - set(DLLIB dl) -endif () - -# libzip library has issues with some of the enabled warning, include it as system library -INCLUDE_DIRECTORIES(SYSTEM ${LIBZIP_INCLUDE_DIRS}) -INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS} ${LIBCURL_INCLUDE_DIRS} ${JANSSON_INCLUDE_DIRS} ${SPEEX_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${BREAKPAD_INCLUDE_DIR} ${SSL_INCLUDE_DIRS}) - -LINK_DIRECTORIES(${SDL2_LIBRARY_DIRS} ${JANSSON_LIBRARY_DIRS} ${LIBCURL_LIBRARY_DIRS} ${PNG_LIBRARY_DIRS} ${ZLIB_LIBRARY_DIRS} ${BREAKPAD_LIBRARY_DIR} ${SSL_LIBRARY_DIRS} ${LIBZIP_LIBRARY_DIRS}) - -if (NOT DISABLE_RCT2) - # Disable optimizations for addresses.c for all compilers, to allow optimized - # builds without need for -fno-omit-frame-pointer - set_source_files_properties(src/openrct2/addresses.c PROPERTIES COMPILE_FLAGS -O0) -endif (NOT DISABLE_RCT2) - -if (WIN32) - # build as library for now, replace with add_executable - if (USE_MMAP OR DISABLE_RCT2) - add_executable(${PROJECT} ${ORCT2_SOURCES} ${SPEEX_SOURCES}) - else () - add_library(${PROJECT} SHARED ${ORCT2_SOURCES} ${SPEEX_SOURCES}) - endif () -else (WIN32) - add_executable(${PROJECT} ${ORCT2_SOURCES} ${ORCT2_MM_SOURCES} ${RCT2_SECTIONS}) - if (NOT DISABLE_RCT2) - add_dependencies(${PROJECT} segfiles) - if (NOT APPLE AND NOT USE_MMAP) - add_dependencies(${PROJECT} linkable_sections) - endif () - set_target_properties(${PROJECT} PROPERTIES LINK_FLAGS ${RCT2_SEGMENT_LINKER_FLAGS}) - endif (NOT DISABLE_RCT2) - add_custom_command( - OUTPUT g2.dat - COMMAND ./openrct2 sprite build ${CMAKE_BINARY_DIR}/g2.dat ${CMAKE_CURRENT_SOURCE_DIR}/resources/g2/sprites.json - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} - ) - add_custom_target(g2 DEPENDS ${PROJECT} g2.dat) -endif (WIN32) - -if (UNIX AND NOT APPLE AND NOT DISABLE_TTF) - # FontConfig for TrueType fonts. - PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) - INCLUDE_DIRECTORIES(${FONTCONFIG_INCLUDE_DIRS}) - TARGET_LINK_LIBRARIES(${PROJECT} ${FONTCONFIG_LIBRARIES}) -endif (UNIX AND NOT APPLE AND NOT DISABLE_TTF) - - -# install into ${CMAKE_INSTALL_PREFIX}/bin/ -#install (TARGETS ${PROJECT} DESTINATION bin) - -# libopenrct2.dll -> openrct2.dll -set_target_properties(${PROJECT} PROPERTIES PREFIX "") -set_target_properties(${PROJECT} PROPERTIES COMPILE_FLAGS "-Wundef") - -# Link shared libs first -TARGET_LINK_LIBRARIES(${PROJECT} pthread ${GLLIBS}) -# if creating a static binary, precede libraries with -static, then name all the libs -TARGET_LINK_LIBRARIES(${PROJECT} ${STATIC_START} ${SDL2LIBS} ${HTTPLIBS} ${NETWORKLIBS} ${SPEEX_LIBRARIES} ${DLLIB} ${REQUIREDLIBS} ${BREAKPAD_LIBS}) - -if (APPLE OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD") - FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c) - TARGET_LINK_LIBRARIES(${PROJECT} ${ICONV_LIBRARIES}) -endif () - -# Don't recurse, grab all *.txt and *.md files -file(GLOB DOC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/distribution/*.txt") -list(APPEND DOC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/contributors.md" "${CMAKE_CURRENT_SOURCE_DIR}/licence.txt") - -# CMake does not allow specifying a dependency chain which includes built-in -# targets, like `install`, so we have to trick it and execute dependency ourselves. -install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_CURRENT_BINARY_DIR}\" --target g2)") -install(CODE "file(DOWNLOAD https://github.com/OpenRCT2/title-sequences/releases/download/v0.0.5/title-sequence-v0.0.5.zip \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip EXPECTED_HASH SHA1=79ffb2585d12abcbfce205d7696e3472a504b005 SHOW_PROGRESS)") -install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/ \"${CMAKE_COMMAND}\" -E tar xvf title-sequences.zip)") -install(CODE "file(REMOVE \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip)") -install(TARGETS ${PROJECT} RUNTIME DESTINATION bin) -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION share/${PROJECT}) -install(DIRECTORY data/ DESTINATION share/${PROJECT}) -install(FILES ${DOC_FILES} DESTINATION share/doc/${PROJECT}) - -install(FILES resources/logo/icon_x16.png DESTINATION share/icons/hicolor/16x16/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x32.png DESTINATION share/icons/hicolor/32x32/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x64.png DESTINATION share/icons/hicolor/64x64/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x128.png DESTINATION share/icons/hicolor/128x128/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x256.png DESTINATION share/icons/hicolor/256x256/apps RENAME openrct2.png) -install(FILES resources/logo/icon_flag.svg DESTINATION share/icons/hicolor/scalable/apps RENAME openrct2.svg) -install(FILES distribution/linux/openrct2.desktop DESTINATION share/applications) +# g2 +add_custom_command( + OUTPUT g2.dat + COMMAND ./openrct2 sprite build ${CMAKE_BINARY_DIR}/g2.dat ${ROOT_DIR}/resources/g2/sprites.json + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} +) +add_custom_target(g2 DEPENDS ${PROJECT} g2.dat) +# Include tests if (WITH_TESTS) enable_testing() - add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test/tests/) + # include("${ROOT_DIR}/test/testpaint/CMakeLists.txt" NO_POLICY_SCOPE) + include("${ROOT_DIR}/test/tests/CMakeLists.txt" NO_POLICY_SCOPE) endif () - -if (UNIX AND (NOT USE_MMAP) AND (NOT DISABLE_RCT2) AND (FORCE32)) - set(OPENRCT2_SRCPATH "src/openrct2") - file(GLOB_RECURSE ORCT2_RIDE_SOURCES "${OPENRCT2_SRCPATH}/ride/*/*.c") - file(GLOB_RECURSE ORCT2_RIDE_DEP_SOURCES "${OPENRCT2_SRCPATH}/ride/ride_data.c" "${OPENRCT2_SRCPATH}/ride/track_data.c" "${OPENRCT2_SRCPATH}/ride/track_data_old.c" "${OPENRCT2_SRCPATH}/ride/track_paint.c" "${OPENRCT2_SRCPATH}/rct2/addresses.c" "${OPENRCT2_SRCPATH}/diagnostic.c" "${OPENRCT2_SRCPATH}/rct2/hook.c" "${OPENRCT2_SRCPATH}/paint/map_element/map_element.c" "${OPENRCT2_SRCPATH}/paint/paint_helpers.c") - file(GLOB_RECURSE ORCT2_TESTPAINT_SOURCES "test/testpaint/*.c" "test/testpaint/*.cpp" "test/testpaint/*.h") - - add_executable(testpaint EXCLUDE_FROM_ALL ${ORCT2_RIDE_SOURCES} ${ORCT2_RIDE_DEP_SOURCES} ${ORCT2_TESTPAINT_SOURCES} ${RCT2_SECTIONS}) - target_include_directories(testpaint PRIVATE "src/") - set_target_properties(testpaint PROPERTIES COMPILE_FLAGS "-DNO_VEHICLES -D__TESTPAINT__ -Wno-unused") - set_target_properties(testpaint PROPERTIES LINK_FLAGS ${RCT2_SEGMENT_LINKER_FLAGS}) - add_dependencies(testpaint segfiles) -endif () - -set(CPACK_PACKAGE_VERSION_MAJOR 0) -set(CPACK_PACKAGE_VERSION_MINOR 0) -set(CPACK_PACKAGE_VERSION_PATCH 8) -INCLUDE(CPack) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt deleted file mode 100644 index af92abf923..0000000000 --- a/src/CMakeLists.txt +++ /dev/null @@ -1,59 +0,0 @@ -# CMAKE project for openrct2 -cmake_minimum_required(VERSION 2.6) -if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) - message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") -endif() -set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/..") - -option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") -option(CLI_ONLY "CLI only build of OpenRCT2") - -# Define current git branch -execute_process( - COMMAND git rev-parse --abbrev-ref HEAD - WORKING_DIRECTORY ${ROOT_DIR} - OUTPUT_VARIABLE OPENRCT2_BRANCH - OUTPUT_STRIP_TRAILING_WHITESPACE - ERROR_QUIET -) -add_definitions(-DOPENRCT2_BRANCH="${OPENRCT2_BRANCH}") - -# Define commit hash -execute_process( - COMMAND git rev-parse HEAD - WORKING_DIRECTORY ${ROOT_DIR} - OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1 - OUTPUT_STRIP_TRAILING_WHITESPACE - ERROR_QUIET -) -add_definitions(-DOPENRCT2_COMMIT_SHA1="${OPENRCT2_COMMIT_SHA1}") - -# Define short commit hash -execute_process( - COMMAND git rev-parse --short HEAD - WORKING_DIRECTORY ${ROOT_DIR} - OUTPUT_VARIABLE OPENRCT2_COMMIT_SHA1_SHORT - OUTPUT_STRIP_TRAILING_WHITESPACE - ERROR_QUIET -) - -# Tagged builds are not meant to display commit info -if (NOT OPENRCT2_COMMIT_SHA1_SHORT STREQUAL "HEAD") - add_definitions(-DOPENRCT2_COMMIT_SHA1_SHORT="${OPENRCT2_COMMIT_SHA1_SHORT}") -endif() - -# Include sub-projects -include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2/CMakeLists.txt" NO_POLICY_SCOPE) -if (CLI_ONLY) - include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) -else () - include("${CMAKE_CURRENT_SOURCE_DIR}/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE) -endif () - -# g2 -add_custom_command( - OUTPUT g2.dat - COMMAND ./openrct2 sprite build ${CMAKE_BINARY_DIR}/g2.dat ${ROOT_DIR}/resources/g2/ - WORKING_DIRECTORY ${CMAKE_BINARY_DIR} -) -add_custom_target(g2 DEPENDS ${PROJECT} g2.dat) diff --git a/test/tests/CMakeLists.txt b/test/tests/CMakeLists.txt index 8c52e76031..dd583f498f 100644 --- a/test/tests/CMakeLists.txt +++ b/test/tests/CMakeLists.txt @@ -51,21 +51,21 @@ add_dependencies(${GTEST_LIBRARY} googletest) add_dependencies(${GTEST_MAIN_LIBRARY} ${GTEST_LIBRARY}) include_directories(SYSTEM ${GTEST_INCLUDE_DIR}) -include_directories("../../src") +include_directories("${ROOT_DIR}/src") set(GTEST_LIBRARIES gtest gtest_main pthread) # Some most common files required in tests set(COMMON_TEST_SOURCES - "../../src/openrct2/core/Console.cpp" - "../../src/openrct2/core/Diagnostics.cpp" - "../../src/openrct2/core/Guard.cpp" - "../../src/openrct2/core/String.cpp" - "../../src/openrct2/diagnostic.c" - "../../src/openrct2/localisation/format_codes.c" - "../../src/openrct2/localisation/utf8.c" - "../../src/openrct2/util/util.c" - "../../src/openrct2/Version.cpp" + "${ROOT_DIR}/src/openrct2/core/Console.cpp" + "${ROOT_DIR}/src/openrct2/core/Diagnostics.cpp" + "${ROOT_DIR}/src/openrct2/core/Guard.cpp" + "${ROOT_DIR}/src/openrct2/core/String.cpp" + "${ROOT_DIR}/src/openrct2/diagnostic.c" + "${ROOT_DIR}/src/openrct2/localisation/format_codes.c" + "${ROOT_DIR}/src/openrct2/localisation/utf8.c" + "${ROOT_DIR}/src/openrct2/util/util.c" + "${ROOT_DIR}/src/openrct2/Version.cpp" ) # Create a re-usable library to save some compilation time @@ -76,10 +76,10 @@ add_library(test-common STATIC ${COMMON_TEST_SOURCES}) # sawyercoding test set(SAWYERCODING_TEST_SOURCES - "sawyercoding_test.cpp" - "../../src/openrct2/diagnostic.c" - "../../src/openrct2/util/sawyercoding.c" - "../../src/openrct2/localisation/utf8.c" + "${CMAKE_CURRENT_LIST_DIR}/sawyercoding_test.cpp" + "${ROOT_DIR}/src/openrct2/diagnostic.c" + "${ROOT_DIR}/src/openrct2/util/sawyercoding.c" + "${ROOT_DIR}/src/openrct2/localisation/utf8.c" ) add_executable(test_sawyercoding ${SAWYERCODING_TEST_SOURCES}) target_link_libraries(test_sawyercoding ${GTEST_LIBRARIES}) @@ -87,8 +87,8 @@ add_test(NAME sawyercoding COMMAND test_sawyercoding) # LanguagePack test set(LANGUAGEPACK_TEST_SOURCES - "LanguagePackTest.cpp" - "../../src/openrct2/localisation/LanguagePack.cpp" + "${CMAKE_CURRENT_LIST_DIR}/LanguagePackTest.cpp" + "${ROOT_DIR}/src/openrct2/localisation/LanguagePack.cpp" ) add_executable(test_languagepack ${LANGUAGEPACK_TEST_SOURCES}) target_link_libraries(test_languagepack ${GTEST_LIBRARIES} test-common dl z SDL2) @@ -96,12 +96,12 @@ add_test(NAME languagepack COMMAND test_languagepack) # INI test set(INI_TEST_SOURCES - "IniWriterTest.cpp" - "IniReaderTest.cpp" - "../../src/openrct2/config/IniReader.cpp" - "../../src/openrct2/config/IniWriter.cpp" - "../../src/openrct2/core/IStream.cpp" - "../../src/openrct2/core/MemoryStream.cpp" + "${CMAKE_CURRENT_LIST_DIR}/IniWriterTest.cpp" + "${CMAKE_CURRENT_LIST_DIR}/IniReaderTest.cpp" + "${ROOT_DIR}/src/openrct2/config/IniReader.cpp" + "${ROOT_DIR}/src/openrct2/config/IniWriter.cpp" + "${ROOT_DIR}/src/openrct2/core/IStream.cpp" + "${ROOT_DIR}/src/openrct2/core/MemoryStream.cpp" ) add_executable(test_ini ${INI_TEST_SOURCES}) target_link_libraries(test_ini ${GTEST_LIBRARIES} test-common dl z) @@ -109,7 +109,7 @@ add_test(NAME ini COMMAND test_ini) # String test set(STRING_TEST_SOURCES - "StringTest.cpp" + "${CMAKE_CURRENT_LIST_DIR}/StringTest.cpp" ) add_executable(test_string ${STRING_TEST_SOURCES}) target_link_libraries(test_string ${GTEST_LIBRARIES} test-common dl z) From a4c06020f169f8cc676acce9ede8eba9b8200441 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 17:51:04 +0100 Subject: [PATCH 159/670] Add install target to cmake --- CMakeLists.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a906d7931..5d552bd825 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,9 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) endif() set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}") +set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v0.0.5/title-sequence-v0.0.5.zip") +set(TITLE_SEQUENCE_SHA1 "79ffb2585d12abcbfce205d7696e3472a504b005") + option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") option(CLI_ONLY "CLI only build of OpenRCT2") option(WITH_TESTS "Build tests") @@ -65,3 +68,27 @@ if (WITH_TESTS) # include("${ROOT_DIR}/test/testpaint/CMakeLists.txt" NO_POLICY_SCOPE) include("${ROOT_DIR}/test/tests/CMakeLists.txt" NO_POLICY_SCOPE) endif () + +# Install +# Don't recurse, grab all *.txt and *.md files +file(GLOB DOC_FILES "${ROOT_DIR}/distribution/*.txt") +list(APPEND DOC_FILES "${ROOT_DIR}/contributors.md" + "${ROOT_DIR}/licence.txt") + +# CMake does not allow specifying a dependency chain which includes built-in +# targets, like `install`, so we have to trick it and execute dependency ourselves. +install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_CURRENT_BINARY_DIR}\" --target g2)") +install(CODE "file(DOWNLOAD ${TITLE_SEQUENCE_URL} \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip EXPECTED_HASH SHA1=${TITLE_SEQUENCE_SHA1} SHOW_PROGRESS)") +install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/ \"${CMAKE_COMMAND}\" -E tar xvf title-sequences.zip)") +install(CODE "file(REMOVE \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip)") +install(TARGETS ${PROJECT} RUNTIME DESTINATION bin) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION share/${PROJECT}) +install(DIRECTORY data/ DESTINATION share/${PROJECT}) +install(FILES ${DOC_FILES} DESTINATION share/doc/${PROJECT}) +install(FILES resources/logo/icon_x16.png DESTINATION share/icons/hicolor/16x16/apps RENAME openrct2.png) +install(FILES resources/logo/icon_x32.png DESTINATION share/icons/hicolor/32x32/apps RENAME openrct2.png) +install(FILES resources/logo/icon_x64.png DESTINATION share/icons/hicolor/64x64/apps RENAME openrct2.png) +install(FILES resources/logo/icon_x128.png DESTINATION share/icons/hicolor/128x128/apps RENAME openrct2.png) +install(FILES resources/logo/icon_x256.png DESTINATION share/icons/hicolor/256x256/apps RENAME openrct2.png) +install(FILES resources/logo/icon_flag.svg DESTINATION share/icons/hicolor/scalable/apps RENAME openrct2.svg) +install(FILES distribution/linux/openrct2.desktop DESTINATION share/applications) From 82288f92e6fcf328d5d441aff5bc5734790d50de Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 17:56:04 +0100 Subject: [PATCH 160/670] Add cmake for testpaint --- CMakeLists.txt | 4 +++- test/testpaint/CMakeLists.txt | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 test/testpaint/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d552bd825..8bf19e629a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,9 @@ add_custom_target(g2 DEPENDS ${PROJECT} g2.dat) # Include tests if (WITH_TESTS) enable_testing() - # include("${ROOT_DIR}/test/testpaint/CMakeLists.txt" NO_POLICY_SCOPE) + if (UNIX AND (NOT USE_MMAP) AND (NOT DISABLE_RCT2) AND (FORCE32)) + include("${ROOT_DIR}/test/testpaint/CMakeLists.txt" NO_POLICY_SCOPE) + endif () include("${ROOT_DIR}/test/tests/CMakeLists.txt" NO_POLICY_SCOPE) endif () diff --git a/test/testpaint/CMakeLists.txt b/test/testpaint/CMakeLists.txt new file mode 100644 index 0000000000..6882c5d3ad --- /dev/null +++ b/test/testpaint/CMakeLists.txt @@ -0,0 +1,26 @@ +# CMAKE project for testpaint +cmake_minimum_required(VERSION 2.6) +if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) + message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") +endif () + +set(OPENRCT2_SRCPATH "${ROOT_DIR}/src/openrct2") +file(GLOB_RECURSE ORCT2_RIDE_SOURCES "${OPENRCT2_SRCPATH}/ride/*/*.c") +file(GLOB_RECURSE ORCT2_RIDE_DEP_SOURCES "${OPENRCT2_SRCPATH}/ride/ride_data.c" + "${OPENRCT2_SRCPATH}/ride/track_data.c" + "${OPENRCT2_SRCPATH}/ride/track_data_old.c" + "${OPENRCT2_SRCPATH}/ride/track_paint.c" + "${OPENRCT2_SRCPATH}/rct2/addresses.c" + "${OPENRCT2_SRCPATH}/diagnostic.c" + "${OPENRCT2_SRCPATH}/rct2/hook.c" + "${OPENRCT2_SRCPATH}/paint/map_element/map_element.c" + "${OPENRCT2_SRCPATH}/paint/paint_helpers.c") +file(GLOB_RECURSE ORCT2_TESTPAINT_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.c" + "${CMAKE_CURRENT_LIST_DIR}/*.cpp" + "${CMAKE_CURRENT_LIST_DIR}/*.h") + +add_executable(testpaint EXCLUDE_FROM_ALL ${ORCT2_RIDE_SOURCES} ${ORCT2_RIDE_DEP_SOURCES} ${ORCT2_TESTPAINT_SOURCES} ${RCT2_SECTIONS}) +target_include_directories(testpaint PRIVATE "${ROOT_DIR}/src/") +set_target_properties(testpaint PROPERTIES COMPILE_FLAGS "-DNO_VEHICLES -D__TESTPAINT__ -Wno-unused") +set_target_properties(testpaint PROPERTIES LINK_FLAGS ${RCT2_SEGMENT_LINKER_FLAGS}) +add_dependencies(testpaint segfiles) From 41f376f7aa3f1a8d285e3cc10ecebdfb2f79c17d Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 18:11:42 +0100 Subject: [PATCH 161/670] Add final to implementations --- src/openrct2-ui/UiContext.Linux.cpp | 2 +- src/openrct2-ui/UiContext.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index a854fae9a1..2692a85f8e 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -34,7 +34,7 @@ namespace OpenRCT2 { namespace Ui ZENITY, }; - class LinuxContext : public IPlatformUiContext + class LinuxContext final : public IPlatformUiContext { private: diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 3ff009bc37..8753b7a93f 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -51,7 +51,7 @@ using namespace OpenRCT2::Ui; #define KEYBOARD_PRIMARY_MODIFIER KMOD_CTRL #endif -class UiContext : public IUiContext +class UiContext final : public IUiContext { private: constexpr static uint32 TOUCH_DOUBLE_TIMEOUT = 300; From c394a997c8226ae3f2f691b9d903dba78567a127 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 18:43:40 +0100 Subject: [PATCH 162/670] Update install target and export library so --- CMakeLists.txt | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8bf19e629a..82b4d528dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,14 +83,15 @@ install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_CUR install(CODE "file(DOWNLOAD ${TITLE_SEQUENCE_URL} \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip EXPECTED_HASH SHA1=${TITLE_SEQUENCE_SHA1} SHOW_PROGRESS)") install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/ \"${CMAKE_COMMAND}\" -E tar xvf title-sequences.zip)") install(CODE "file(REMOVE \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip)") -install(TARGETS ${PROJECT} RUNTIME DESTINATION bin) -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION share/${PROJECT}) -install(DIRECTORY data/ DESTINATION share/${PROJECT}) -install(FILES ${DOC_FILES} DESTINATION share/doc/${PROJECT}) -install(FILES resources/logo/icon_x16.png DESTINATION share/icons/hicolor/16x16/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x32.png DESTINATION share/icons/hicolor/32x32/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x64.png DESTINATION share/icons/hicolor/64x64/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x128.png DESTINATION share/icons/hicolor/128x128/apps RENAME openrct2.png) -install(FILES resources/logo/icon_x256.png DESTINATION share/icons/hicolor/256x256/apps RENAME openrct2.png) -install(FILES resources/logo/icon_flag.svg DESTINATION share/icons/hicolor/scalable/apps RENAME openrct2.svg) -install(FILES distribution/linux/openrct2.desktop DESTINATION share/applications) +install(TARGETS "libopenrct2" LIBRARY DESTINATION lib) +install(TARGETS "openrct2" RUNTIME DESTINATION bin) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION "share/openrct2") +install(DIRECTORY "data/" DESTINATION "share/openrct2") +install(FILES ${DOC_FILES} DESTINATION "share/doc/openrct2") +install(FILES "resources/logo/icon_x16.png" DESTINATION "share/icons/hicolor/16x16/apps RENAME openrct2.png") +install(FILES "resources/logo/icon_x32.png" DESTINATION "share/icons/hicolor/32x32/apps RENAME openrct2.png") +install(FILES "resources/logo/icon_x64.png" DESTINATION "share/icons/hicolor/64x64/apps RENAME openrct2.png") +install(FILES "resources/logo/icon_x128.png" DESTINATION "share/icons/hicolor/128x128/apps RENAME openrct2.png") +install(FILES "resources/logo/icon_x256.png" DESTINATION "share/icons/hicolor/256x256/apps RENAME openrct2.png") +install(FILES "resources/logo/icon_flag.svg" DESTINATION "share/icons/hicolor/scalable/apps RENAME openrct2.svg") +install(FILES "distribution/linux/openrct2.desktop" DESTINATION "share/applications") From 00199051c14796957a0fa5aaed450400308dba57 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 21:03:10 +0100 Subject: [PATCH 163/670] Add SDL2 include to test cmake --- test/tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/tests/CMakeLists.txt b/test/tests/CMakeLists.txt index dd583f498f..ba3cc5b49e 100644 --- a/test/tests/CMakeLists.txt +++ b/test/tests/CMakeLists.txt @@ -52,6 +52,7 @@ add_dependencies(${GTEST_MAIN_LIBRARY} ${GTEST_LIBRARY}) include_directories(SYSTEM ${GTEST_INCLUDE_DIR}) include_directories("${ROOT_DIR}/src") +include_directories(${SDL2_INCLUDE_DIRS}) set(GTEST_LIBRARIES gtest gtest_main pthread) From f1a8b32db403853f25b06999bba766c63025e4f8 Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 21:36:35 +0100 Subject: [PATCH 164/670] Prevent SDL_INIT when the game does not need to launch --- src/openrct2-dll/openrct2-dll.cpp | 29 ++++++++++++++++++++--------- src/openrct2-ui/Ui.cpp | 26 +++++++++++++++++--------- src/openrct2/Context.cpp | 9 ++------- 3 files changed, 39 insertions(+), 25 deletions(-) diff --git a/src/openrct2-dll/openrct2-dll.cpp b/src/openrct2-dll/openrct2-dll.cpp index 162e47d9c5..26d67061ad 100644 --- a/src/openrct2-dll/openrct2-dll.cpp +++ b/src/openrct2-dll/openrct2-dll.cpp @@ -37,6 +37,25 @@ static char * * GetCommandLineArgs(int argc, wchar_t * * argvW); static void FreeCommandLineArgs(int argc, char * * argv); static char * ConvertUTF16toUTF8(const wchar_t * src); +static int NormalisedMain(int argc, char * * argv) +{ + core_init(); + int runGame = cmdline_run((const char * *)argv, argc); + if (runGame == 1) + { + IAudioContext * audioContext = CreateAudioContext(); + IUiContext * uiContext = CreateUiContext(); + IContext * context = CreateContext(audioContext, uiContext); + + context->RunOpenRCT2(argc, argv); + + delete context; + delete uiContext; + delete audioContext; + } + return gExitCode; +} + DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t * * argvW) { char * * argv = GetCommandLineArgs(argc, argvW); @@ -46,15 +65,7 @@ DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t * * argvW) return -1; } - IAudioContext * audioContext = CreateAudioContext(); - IUiContext * uiContext = CreateUiContext(); - IContext * context = CreateContext(audioContext, uiContext); - - int exitCode = context->RunOpenRCT2(argc, argv); - - delete context; - delete uiContext; - delete audioContext; + int exitCode = NormalisedMain(argc, argv); FreeCommandLineArgs(argc, argv); return exitCode; diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp index f8939fe0ef..5276f4c04d 100644 --- a/src/openrct2-ui/Ui.cpp +++ b/src/openrct2-ui/Ui.cpp @@ -18,6 +18,7 @@ #include #include +#include #include #include "audio/AudioContext.h" #include "UiContext.h" @@ -31,15 +32,22 @@ using namespace OpenRCT2::Ui; */ int main(int argc, char * * argv) { - // Run OpenRCT2 with a UI context - - IAudioContext * audioContext = CreateAudioContext(); - IUiContext * uiContext = CreateUiContext(); - IContext * context = CreateContext(audioContext, uiContext); - int exitCode = context->RunOpenRCT2(argc, argv); - delete uiContext; - delete context; - return exitCode; + core_init(); + int runGame = cmdline_run((const char * *)argv, argc); + if (runGame == 1) + { + // Run OpenRCT2 with a UI context + IAudioContext * audioContext = CreateAudioContext(); + IUiContext * uiContext = CreateUiContext(); + IContext * context = CreateContext(audioContext, uiContext); + + context->RunOpenRCT2(argc, argv); + + delete context; + delete uiContext; + delete audioContext; + } + return gExitCode; } #endif diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index c7f22b6c84..a53270e67f 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -124,13 +124,8 @@ namespace OpenRCT2 sint32 RunOpenRCT2(int argc, char * * argv) override { - core_init(); - int runGame = cmdline_run((const char * *)argv, argc); - if (runGame == 1) - { - Initialise(); - Launch(); - } + Initialise(); + Launch(); return gExitCode; } From 3fa764321eb37b62463137e2797c999d1d3fdf7f Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 8 May 2017 22:09:38 +0100 Subject: [PATCH 165/670] Fix string errors and warnings --- src/openrct2-ui/UiContext.Linux.cpp | 23 ++++++++++++++----- .../drawing/engines/SoftwareDrawingEngine.cpp | 1 + .../engines/opengl/OpenGLDrawingEngine.cpp | 1 + 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 2692a85f8e..95cabdfca9 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -123,7 +123,12 @@ namespace OpenRCT2 { namespace Ui (desc.Type == FILE_DIALOG_TYPE::OPEN) ? "--getopenfilename" : "--getsavefilename"; std::string filter = GetKDialogFilterString(desc.Filters); - std::string cmd = String::StdFormat("%s --title '%s' %s '%s/' ~ '%s'", executablePath, desc.Title, action, desc.InitialDirectory, filter); + std::string cmd = String::StdFormat("%s --title '%s' %s '%s/' ~ '%s'", + executablePath.c_str(), + desc.Title.c_str(), + action.c_str(), + desc.InitialDirectory.c_str(), + filter.c_str()); std::string output; if (Execute(cmd, &output) != 0) { @@ -140,7 +145,13 @@ namespace OpenRCT2 { namespace Ui flags = "--confirm-overwrite --save"; } std::string filters = GetZenityFilterString(desc.Filters); - std::string cmd = String::StdFormat("%s %s --filename='%s/' %s --title='%s' / %s", executablePath, action, desc.InitialDirectory, flags, desc.Title, filters); + std::string cmd = String::StdFormat("%s %s --filename='%s/' %s --title='%s' / %s", + executablePath.c_str(), + action.c_str(), + desc.InitialDirectory.c_str(), + flags.c_str(), + desc.Title.c_str(), + filters.c_str()); std::string output; if (Execute(cmd, &output) != 0) { @@ -163,7 +174,7 @@ namespace OpenRCT2 { namespace Ui } else if (desc.Type == FILE_DIALOG_TYPE::SAVE && access(result.c_str(), F_OK) != -1 && dtype == DIALOG_TYPE::KDIALOG) { - std::string cmd = String::StdFormat("%s --yesno \"Overwrite %s?\"", executablePath, result.c_str()); + std::string cmd = String::StdFormat("%s --yesno \"Overwrite %s?\"", executablePath.c_str(), result.c_str()); if (Execute(cmd) != 0) { result = std::string(); @@ -181,7 +192,7 @@ namespace OpenRCT2 { namespace Ui case DIALOG_TYPE::KDIALOG: { std::string output; - std::string cmd = String::Format("%s --title '%s' --getexistingdirectory /", executablePath.c_str(), title); + std::string cmd = String::Format("%s --title '%s' --getexistingdirectory /", executablePath.c_str(), title.c_str()); if (Execute(cmd, &output) == 0) { result = output; @@ -191,7 +202,7 @@ namespace OpenRCT2 { namespace Ui case DIALOG_TYPE::ZENITY: { std::string output; - std::string cmd = String::Format("%s --title='%s' --file-selection --directory /", executablePath.c_str(), title); + std::string cmd = String::Format("%s --title='%s' --file-selection --directory /", executablePath.c_str(), title.c_str()); if (Execute(cmd, &output) == 0) { result = output; @@ -243,7 +254,7 @@ namespace OpenRCT2 { namespace Ui // Trim line breaks size_t outputLength = outputBuffer.size(); - for (size_t i = outputBuffer.size() - 1; i >= 0; i--) + for (size_t i = outputLength - 1; i != SIZE_MAX; i--) { if (outputBuffer[i] == '\n') { diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index 95541b089f..3f967475b2 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -234,6 +234,7 @@ public: : _uiContext(uiContext), _hardwareDisplay(hardwareDisplay) { + UNUSED(_uiContext); // Will be used in due course to retrieve window information _drawingContext = new SoftwareDrawingContext(this); #ifdef __ENABLE_LIGHTFX__ _lastLightFXenabled = (gConfigGeneral.enable_light_fx != 0); diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index aec997f5a4..daff9fa039 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -251,6 +251,7 @@ public: OpenGLDrawingEngine(IUiContext * uiContext) : _uiContext(uiContext) { + UNUSED(_uiContext); // Will be used in due course to retrieve window information _drawingContext = new OpenGLDrawingContext(this); } From e8ec7ee58feadd148e4850440d52ecbe00895c7a Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 12 May 2017 00:37:00 +0100 Subject: [PATCH 166/670] Implement building of libopenrct2 and OpenRCT-UI for macOS Initial setup of xcode for multiple targets libopenrct2 partially working Restore macOS mach_info init Get macOS OpenRCT2-ui working if hackish Implement UiContext for macOS properly Put tabbing cancellation code back --- OpenRCT2.xcodeproj/project.pbxproj | 3916 ++++++++++++++++++--------- src/openrct2-ui/UiContext.Linux.cpp | 5 +- src/openrct2-ui/UiContext.cpp | 13 +- src/openrct2-ui/UiContext.macOS.mm | 186 ++ src/openrct2/platform/macos.m | 67 - src/openrct2/platform/shared.c | 4 + src/openrct2/windows/options.c | 2 +- 7 files changed, 2848 insertions(+), 1345 deletions(-) create mode 100644 src/openrct2-ui/UiContext.macOS.mm diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index d4cc2594a7..301238a41c 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -7,28 +7,6 @@ objects = { /* Begin PBXBuildFile section */ - 007A05CD1CFB2C8B00F419C3 /* NetworkAction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 007A05C01CFB2C8B00F419C3 /* NetworkAction.cpp */; }; - 007A05CF1CFB2C8B00F419C3 /* NetworkConnection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 007A05C41CFB2C8B00F419C3 /* NetworkConnection.cpp */; }; - 007A05D01CFB2C8B00F419C3 /* NetworkGroup.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 007A05C61CFB2C8B00F419C3 /* NetworkGroup.cpp */; }; - 007A05D11CFB2C8B00F419C3 /* NetworkPacket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 007A05C81CFB2C8B00F419C3 /* NetworkPacket.cpp */; }; - 007A05D21CFB2C8B00F419C3 /* NetworkPlayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 007A05CA1CFB2C8B00F419C3 /* NetworkPlayer.cpp */; }; - 008BF72B1CDAA5C30019A2AD /* track_design_save.c in Sources */ = {isa = PBXBuildFile; fileRef = 008BF7271CDAA5C30019A2AD /* track_design_save.c */; }; - 008BF72C1CDAA5C30019A2AD /* track_design.c in Sources */ = {isa = PBXBuildFile; fileRef = 008BF7281CDAA5C30019A2AD /* track_design.c */; }; - 00EFEE721CF1D80B0035213B /* NetworkKey.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00EFEE701CF1D80B0035213B /* NetworkKey.cpp */; }; - 652076321E22EFE7000D0C04 /* Imaging.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 652076301E22EFE7000D0C04 /* Imaging.cpp */; }; - 652747EC1E41CE1B000F36FD /* SawyerEncoding.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 652747EA1E41CE1B000F36FD /* SawyerEncoding.cpp */; }; - 656F6C8E1E45BFC200E0F770 /* Version.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 656F6C8C1E45BFC200E0F770 /* Version.cpp */; }; - 658F3D911E44A6C200388550 /* ParkImporter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 658F3D8F1E44A6C200388550 /* ParkImporter.cpp */; }; - 6876808CD662C4B16392A9B4 /* Balloon.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 437490DBD74ECF60C3363559 /* Balloon.cpp */; }; - 689149B0417A68D6765F09CD /* banner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DEEAE6E8AC49B6F288E69B40 /* banner.cpp */; }; - 791166FB1D7486EF005912EA /* NetworkServerAdvertiser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 791166F91D7486EF005912EA /* NetworkServerAdvertiser.cpp */; }; - 7D02D519C9A56A1FB9854FE7 /* Climate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 242F470FE91956ACA4078F6A /* Climate.cpp */; }; - 85060FD31D8C17CC00DFA2B3 /* track_data_old.c in Sources */ = {isa = PBXBuildFile; fileRef = 8594C05F1D885CF600235E93 /* track_data_old.c */; }; - 8594C0601D885CF600235E93 /* track_data_old.c in Sources */ = {isa = PBXBuildFile; fileRef = 8594C05F1D885CF600235E93 /* track_data_old.c */; }; - 85B468FC1D96822F000F1DB5 /* paint_helpers.c in Sources */ = {isa = PBXBuildFile; fileRef = 85B468FB1D96822F000F1DB5 /* paint_helpers.c */; }; - 85B468FD1D96822F000F1DB5 /* paint_helpers.c in Sources */ = {isa = PBXBuildFile; fileRef = 85B468FB1D96822F000F1DB5 /* paint_helpers.c */; }; - 8DED2F20E0D63A1DCFCE0197 /* banner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DEEAE6E8AC49B6F288E69B40 /* banner.cpp */; }; - B94C3C5FC4DBBB864434DE83 /* Duck.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5D1DB5BE280897DCDEBFCED /* Duck.cpp */; }; C606CCBE1DB4054000FE4015 /* compat.c in Sources */ = {isa = PBXBuildFile; fileRef = C606CCAB1DB4054000FE4015 /* compat.c */; }; C606CCBF1DB4054000FE4015 /* data.c in Sources */ = {isa = PBXBuildFile; fileRef = C606CCAC1DB4054000FE4015 /* data.c */; }; C606CCC01DB4054000FE4015 /* FunctionCall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C606CCAE1DB4054000FE4015 /* FunctionCall.cpp */; }; @@ -242,188 +220,10 @@ C6E96E321E04072F0076A04F /* TitleSequencePlayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E2D1E04072F0076A04F /* TitleSequencePlayer.cpp */; }; C6E96E361E0408B40076A04F /* libzip.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; }; C6E96E371E040E040076A04F /* libzip.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - C6EABCC41E719691008C09AB /* UriHandler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6EABCC31E719691008C09AB /* UriHandler.cpp */; }; D41B73EF1C2101890080A7B9 /* libcurl.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B73EE1C2101890080A7B9 /* libcurl.tbd */; }; D41B741D1C210A7A0080A7B9 /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B741C1C210A7A0080A7B9 /* libiconv.tbd */; }; D41B74731C2125E50080A7B9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D41B74721C2125E50080A7B9 /* Assets.xcassets */; }; - D41FA8641E5EA1E200215624 /* wall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D41FA8631E5EA1E200215624 /* wall.cpp */; }; - D429FF421E36ABCD009342A6 /* tile_inspector.c in Sources */ = {isa = PBXBuildFile; fileRef = D429FF401E36ABCD009342A6 /* tile_inspector.c */; }; - D42E337D1E5C27D600D630AF /* Config.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D42E33751E5C27D600D630AF /* Config.cpp */; }; - D42E337E1E5C27D600D630AF /* IniReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D42E33781E5C27D600D630AF /* IniReader.cpp */; }; - D42E337F1E5C27D600D630AF /* IniWriter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D42E337A1E5C27D600D630AF /* IniWriter.cpp */; }; - D42E33801E5C27D600D630AF /* KeyboardShortcuts.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D42E337C1E5C27D600D630AF /* KeyboardShortcuts.cpp */; }; - D433A5001E4A861F00D9A6DF /* SawyerChunk.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D433A4FA1E4A861F00D9A6DF /* SawyerChunk.cpp */; }; - D433A5011E4A861F00D9A6DF /* SawyerChunkReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D433A4FC1E4A861F00D9A6DF /* SawyerChunkReader.cpp */; }; - D433A5021E4A861F00D9A6DF /* SawyerChunkWriter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D433A4FE1E4A861F00D9A6DF /* SawyerChunkWriter.cpp */; }; - D43407D61D0E14BE00C2B3D4 /* CopyFramebufferShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407C01D0E14BE00C2B3D4 /* CopyFramebufferShader.cpp */; }; - D43407D81D0E14BE00C2B3D4 /* DrawImageShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407C41D0E14BE00C2B3D4 /* DrawImageShader.cpp */; }; - D43407D91D0E14BE00C2B3D4 /* DrawLineShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407C61D0E14BE00C2B3D4 /* DrawLineShader.cpp */; }; - D43407DA1D0E14BE00C2B3D4 /* FillRectShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407C81D0E14BE00C2B3D4 /* FillRectShader.cpp */; }; - D43407DB1D0E14BE00C2B3D4 /* OpenGLAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407CB1D0E14BE00C2B3D4 /* OpenGLAPI.cpp */; }; - D43407DC1D0E14BE00C2B3D4 /* OpenGLDrawingEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407CD1D0E14BE00C2B3D4 /* OpenGLDrawingEngine.cpp */; }; - D43407DD1D0E14BE00C2B3D4 /* OpenGLFramebuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407CE1D0E14BE00C2B3D4 /* OpenGLFramebuffer.cpp */; }; - D43407DE1D0E14BE00C2B3D4 /* OpenGLShaderProgram.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407D01D0E14BE00C2B3D4 /* OpenGLShaderProgram.cpp */; }; - D43407DF1D0E14BE00C2B3D4 /* SwapFramebuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407D21D0E14BE00C2B3D4 /* SwapFramebuffer.cpp */; }; - D43407E01D0E14BE00C2B3D4 /* TextureCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D43407D41D0E14BE00C2B3D4 /* TextureCache.cpp */; }; D43407E21D0E14CE00C2B3D4 /* shaders in Resources */ = {isa = PBXBuildFile; fileRef = D43407E11D0E14CE00C2B3D4 /* shaders */; }; - D437A26F1DBC2937001CB2CF /* TrackDesignRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D437A26D1DBC2937001CB2CF /* TrackDesignRepository.cpp */; }; - D437A2721DBC29B0001CB2CF /* FileScanner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D437A2701DBC29B0001CB2CF /* FileScanner.cpp */; }; - D44271F81CC81B3200D84D28 /* cheats.c in Sources */ = {isa = PBXBuildFile; fileRef = D44270D41CC81B3200D84D28 /* cheats.c */; }; - D44271F91CC81B3200D84D28 /* CommandLine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270D71CC81B3200D84D28 /* CommandLine.cpp */; }; - D44271FA1CC81B3200D84D28 /* RootCommands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270D91CC81B3200D84D28 /* RootCommands.cpp */; }; - D44271FB1CC81B3200D84D28 /* ScreenshotCommands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270DA1CC81B3200D84D28 /* ScreenshotCommands.cpp */; }; - D44271FC1CC81B3200D84D28 /* SpriteCommands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270DB1CC81B3200D84D28 /* SpriteCommands.cpp */; }; - D44271FD1CC81B3200D84D28 /* cmdline_sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = D44270DC1CC81B3200D84D28 /* cmdline_sprite.c */; }; - D44271FF1CC81B3200D84D28 /* Console.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270E11CC81B3200D84D28 /* Console.cpp */; }; - D44272001CC81B3200D84D28 /* Diagnostics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270E31CC81B3200D84D28 /* Diagnostics.cpp */; }; - D44272011CC81B3200D84D28 /* Guard.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270E71CC81B3200D84D28 /* Guard.cpp */; }; - D44272021CC81B3200D84D28 /* Json.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270EB1CC81B3200D84D28 /* Json.cpp */; }; - D44272031CC81B3200D84D28 /* Path.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270F01CC81B3200D84D28 /* Path.cpp */; }; - D44272051CC81B3200D84D28 /* String.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44270F51CC81B3200D84D28 /* String.cpp */; }; - D44272061CC81B3200D84D28 /* textinputbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = D44270F91CC81B3200D84D28 /* textinputbuffer.c */; }; - D44272081CC81B3200D84D28 /* diagnostic.c in Sources */ = {isa = PBXBuildFile; fileRef = D44270FE1CC81B3200D84D28 /* diagnostic.c */; }; - D44272091CC81B3200D84D28 /* drawing.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271011CC81B3200D84D28 /* drawing.c */; }; - D442720A1CC81B3200D84D28 /* drawing_fast.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44271031CC81B3200D84D28 /* drawing_fast.cpp */; }; - D442720B1CC81B3200D84D28 /* font.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271041CC81B3200D84D28 /* font.c */; }; - D442720C1CC81B3200D84D28 /* line.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271061CC81B3200D84D28 /* line.c */; }; - D442720E1CC81B3200D84D28 /* rect.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271081CC81B3200D84D28 /* rect.c */; }; - D442720F1CC81B3200D84D28 /* scrolling_text.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271091CC81B3200D84D28 /* scrolling_text.c */; }; - D44272111CC81B3200D84D28 /* string.c in Sources */ = {isa = PBXBuildFile; fileRef = D442710B1CC81B3200D84D28 /* string.c */; }; - D44272131CC81B3200D84D28 /* editor.c in Sources */ = {isa = PBXBuildFile; fileRef = D442710E1CC81B3200D84D28 /* editor.c */; }; - D44272141CC81B3200D84D28 /* game.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271101CC81B3200D84D28 /* game.c */; }; - D44272171CC81B3200D84D28 /* input.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271161CC81B3200D84D28 /* input.c */; }; - D44272181CC81B3200D84D28 /* chat.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271191CC81B3200D84D28 /* chat.c */; }; - D44272191CC81B3200D84D28 /* colour.c in Sources */ = {isa = PBXBuildFile; fileRef = D442711B1CC81B3200D84D28 /* colour.c */; }; - D442721A1CC81B3200D84D28 /* console.c in Sources */ = {isa = PBXBuildFile; fileRef = D442711D1CC81B3200D84D28 /* console.c */; }; - D442721B1CC81B3200D84D28 /* graph.c in Sources */ = {isa = PBXBuildFile; fileRef = D442711F1CC81B3200D84D28 /* graph.c */; }; - D442721C1CC81B3200D84D28 /* keyboard_shortcut.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271211CC81B3200D84D28 /* keyboard_shortcut.c */; }; - D442721D1CC81B3200D84D28 /* screenshot.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271231CC81B3200D84D28 /* screenshot.c */; }; - D442721E1CC81B3200D84D28 /* Theme.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44271251CC81B3200D84D28 /* Theme.cpp */; }; - D44272201CC81B3200D84D28 /* viewport.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271291CC81B3200D84D28 /* viewport.c */; }; - D44272211CC81B3200D84D28 /* viewport_interaction.c in Sources */ = {isa = PBXBuildFile; fileRef = D442712B1CC81B3200D84D28 /* viewport_interaction.c */; }; - D44272221CC81B3200D84D28 /* widget.c in Sources */ = {isa = PBXBuildFile; fileRef = D442712C1CC81B3200D84D28 /* widget.c */; }; - D44272231CC81B3200D84D28 /* window.c in Sources */ = {isa = PBXBuildFile; fileRef = D442712E1CC81B3200D84D28 /* window.c */; }; - D44272241CC81B3200D84D28 /* intro.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271301CC81B3200D84D28 /* intro.c */; }; - D44272251CC81B3200D84D28 /* convert.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271331CC81B3200D84D28 /* convert.c */; }; - D44272261CC81B3200D84D28 /* currency.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271341CC81B3200D84D28 /* currency.c */; }; - D44272271CC81B3200D84D28 /* date.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271361CC81B3200D84D28 /* date.c */; }; - D44272281CC81B3200D84D28 /* language.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44271391CC81B3200D84D28 /* language.cpp */; }; - D44272291CC81B3200D84D28 /* LanguagePack.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D442713B1CC81B3200D84D28 /* LanguagePack.cpp */; }; - D442722A1CC81B3200D84D28 /* localisation.c in Sources */ = {isa = PBXBuildFile; fileRef = D442713D1CC81B3200D84D28 /* localisation.c */; }; - D442722B1CC81B3200D84D28 /* real_names.c in Sources */ = {isa = PBXBuildFile; fileRef = D442713F1CC81B3200D84D28 /* real_names.c */; }; - D442722C1CC81B3200D84D28 /* user.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271411CC81B3200D84D28 /* user.c */; }; - D442722D1CC81B3200D84D28 /* utf8.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271431CC81B3200D84D28 /* utf8.c */; }; - D442722E1CC81B3200D84D28 /* award.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271451CC81B3200D84D28 /* award.c */; }; - D442722F1CC81B3200D84D28 /* finance.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271471CC81B3200D84D28 /* finance.c */; }; - D44272301CC81B3200D84D28 /* marketing.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271491CC81B3200D84D28 /* marketing.c */; }; - D44272311CC81B3200D84D28 /* news_item.c in Sources */ = {isa = PBXBuildFile; fileRef = D442714B1CC81B3200D84D28 /* news_item.c */; }; - D44272321CC81B3200D84D28 /* research.c in Sources */ = {isa = PBXBuildFile; fileRef = D442714D1CC81B3200D84D28 /* research.c */; }; - D44272331CC81B3200D84D28 /* http.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44271501CC81B3200D84D28 /* http.cpp */; }; - D44272341CC81B3200D84D28 /* network.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44271521CC81B3200D84D28 /* network.cpp */; }; - D44272351CC81B3200D84D28 /* twitch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44271541CC81B3200D84D28 /* twitch.cpp */; }; - D44272361CC81B3200D84D28 /* object_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271561CC81B3200D84D28 /* object_list.c */; }; - D44272391CC81B3200D84D28 /* peep.c in Sources */ = {isa = PBXBuildFile; fileRef = D442715C1CC81B3200D84D28 /* peep.c */; }; - D442723A1CC81B3200D84D28 /* staff.c in Sources */ = {isa = PBXBuildFile; fileRef = D442715E1CC81B3200D84D28 /* staff.c */; }; - D442723B1CC81B3200D84D28 /* crash.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44271611CC81B3200D84D28 /* crash.cpp */; }; - D442723C1CC81B3200D84D28 /* linux.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271631CC81B3200D84D28 /* linux.c */; }; - D442723D1CC81B3200D84D28 /* macos.m in Sources */ = {isa = PBXBuildFile; fileRef = D44271641CC81B3200D84D28 /* macos.m */; }; - D442723E1CC81B3200D84D28 /* posix.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271661CC81B3200D84D28 /* posix.c */; }; - D442723F1CC81B3200D84D28 /* shared.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271671CC81B3200D84D28 /* shared.c */; }; - D44272401CC81B3200D84D28 /* windows.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271681CC81B3200D84D28 /* windows.c */; }; - D44272411CC81B3200D84D28 /* rct1.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271691CC81B3200D84D28 /* rct1.c */; }; - D44272421CC81B3200D84D28 /* rct2.c in Sources */ = {isa = PBXBuildFile; fileRef = D442716B1CC81B3200D84D28 /* rct2.c */; }; - D44272441CC81B3200D84D28 /* cable_lift.c in Sources */ = {isa = PBXBuildFile; fileRef = D442716F1CC81B3200D84D28 /* cable_lift.c */; }; - D44272451CC81B3200D84D28 /* ride.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271711CC81B3200D84D28 /* ride.c */; }; - D44272461CC81B3200D84D28 /* ride_data.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271731CC81B3200D84D28 /* ride_data.c */; }; - D44272471CC81B3200D84D28 /* ride_ratings.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271751CC81B3200D84D28 /* ride_ratings.c */; }; - D44272481CC81B3200D84D28 /* station.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271771CC81B3200D84D28 /* station.c */; }; - D44272491CC81B3200D84D28 /* track.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271791CC81B3200D84D28 /* track.c */; }; - D442724A1CC81B3200D84D28 /* track_data.c in Sources */ = {isa = PBXBuildFile; fileRef = D442717B1CC81B3200D84D28 /* track_data.c */; }; - D442724B1CC81B3200D84D28 /* track_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = D442717D1CC81B3200D84D28 /* track_paint.c */; }; - D442724C1CC81B3200D84D28 /* vehicle.c in Sources */ = {isa = PBXBuildFile; fileRef = D442717F1CC81B3200D84D28 /* vehicle.c */; }; - D44272511CC81B3200D84D28 /* sawyercoding.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271891CC81B3200D84D28 /* sawyercoding.c */; }; - D44272521CC81B3200D84D28 /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = D442718B1CC81B3200D84D28 /* util.c */; }; - D44272531CC81B3200D84D28 /* about.c in Sources */ = {isa = PBXBuildFile; fileRef = D442718F1CC81B3200D84D28 /* about.c */; }; - D44272541CC81B3200D84D28 /* banner.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271901CC81B3200D84D28 /* banner.c */; }; - D44272551CC81B3200D84D28 /* changelog.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271911CC81B3200D84D28 /* changelog.c */; }; - D44272561CC81B3200D84D28 /* cheats.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271921CC81B3200D84D28 /* cheats.c */; }; - D44272571CC81B3200D84D28 /* clear_scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271931CC81B3200D84D28 /* clear_scenery.c */; }; - D44272581CC81B3200D84D28 /* demolish_ride_prompt.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271941CC81B3200D84D28 /* demolish_ride_prompt.c */; }; - D44272591CC81B3200D84D28 /* dropdown.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271951CC81B3200D84D28 /* dropdown.c */; }; - D442725A1CC81B3200D84D28 /* editor_bottom_toolbar.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271971CC81B3200D84D28 /* editor_bottom_toolbar.c */; }; - D442725B1CC81B3200D84D28 /* editor_inventions_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271981CC81B3200D84D28 /* editor_inventions_list.c */; }; - D442725C1CC81B3200D84D28 /* editor_main.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271991CC81B3200D84D28 /* editor_main.c */; }; - D442725D1CC81B3200D84D28 /* editor_object_selection.c in Sources */ = {isa = PBXBuildFile; fileRef = D442719A1CC81B3200D84D28 /* editor_object_selection.c */; }; - D442725E1CC81B3200D84D28 /* editor_objective_options.c in Sources */ = {isa = PBXBuildFile; fileRef = D442719B1CC81B3200D84D28 /* editor_objective_options.c */; }; - D442725F1CC81B3200D84D28 /* editor_scenario_options.c in Sources */ = {isa = PBXBuildFile; fileRef = D442719C1CC81B3200D84D28 /* editor_scenario_options.c */; }; - D44272601CC81B3200D84D28 /* error.c in Sources */ = {isa = PBXBuildFile; fileRef = D442719D1CC81B3200D84D28 /* error.c */; }; - D44272611CC81B3200D84D28 /* finances.c in Sources */ = {isa = PBXBuildFile; fileRef = D442719F1CC81B3200D84D28 /* finances.c */; }; - D44272621CC81B3200D84D28 /* footpath.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A01CC81B3200D84D28 /* footpath.c */; }; - D44272631CC81B3200D84D28 /* game_bottom_toolbar.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A11CC81B3200D84D28 /* game_bottom_toolbar.c */; }; - D44272641CC81B3200D84D28 /* guest.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A21CC81B3200D84D28 /* guest.c */; }; - D44272651CC81B3200D84D28 /* guest_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A31CC81B3200D84D28 /* guest_list.c */; }; - D44272661CC81B3200D84D28 /* install_track.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A41CC81B3200D84D28 /* install_track.c */; }; - D44272671CC81B3200D84D28 /* land.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A51CC81B3200D84D28 /* land.c */; }; - D44272681CC81B3200D84D28 /* land_rights.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A61CC81B3200D84D28 /* land_rights.c */; }; - D44272691CC81B3200D84D28 /* loadsave.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A71CC81B3200D84D28 /* loadsave.c */; }; - D442726A1CC81B3200D84D28 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A81CC81B3200D84D28 /* main.c */; }; - D442726B1CC81B3200D84D28 /* map.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271A91CC81B3200D84D28 /* map.c */; }; - D442726C1CC81B3200D84D28 /* map_tooltip.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271AA1CC81B3200D84D28 /* map_tooltip.c */; }; - D442726D1CC81B3200D84D28 /* mapgen.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271AB1CC81B3200D84D28 /* mapgen.c */; }; - D442726E1CC81B3200D84D28 /* maze_construction.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271AC1CC81B3200D84D28 /* maze_construction.c */; }; - D442726F1CC81B3200D84D28 /* multiplayer.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271AD1CC81B3200D84D28 /* multiplayer.c */; }; - D44272701CC81B3200D84D28 /* music_credits.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271AE1CC81B3200D84D28 /* music_credits.c */; }; - D44272711CC81B3200D84D28 /* network_status.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271AF1CC81B3200D84D28 /* network_status.c */; }; - D44272721CC81B3200D84D28 /* new_campaign.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B01CC81B3200D84D28 /* new_campaign.c */; }; - D44272731CC81B3200D84D28 /* new_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B11CC81B3200D84D28 /* new_ride.c */; }; - D44272741CC81B3200D84D28 /* news.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B21CC81B3200D84D28 /* news.c */; }; - D44272751CC81B3200D84D28 /* news_options.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B31CC81B3200D84D28 /* news_options.c */; }; - D44272761CC81B3200D84D28 /* options.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B41CC81B3200D84D28 /* options.c */; }; - D44272771CC81B3200D84D28 /* park.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B51CC81B3200D84D28 /* park.c */; }; - D44272781CC81B3200D84D28 /* player.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B61CC81B3200D84D28 /* player.c */; }; - D44272791CC81B3200D84D28 /* publisher_credits.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B71CC81B3200D84D28 /* publisher_credits.c */; }; - D442727A1CC81B3200D84D28 /* research.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B81CC81B3200D84D28 /* research.c */; }; - D442727B1CC81B3200D84D28 /* ride.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271B91CC81B3200D84D28 /* ride.c */; }; - D442727C1CC81B3200D84D28 /* ride_construction.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BA1CC81B3200D84D28 /* ride_construction.c */; }; - D442727D1CC81B3200D84D28 /* ride_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BB1CC81B3200D84D28 /* ride_list.c */; }; - D442727E1CC81B3200D84D28 /* save_prompt.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BC1CC81B3200D84D28 /* save_prompt.c */; }; - D442727F1CC81B3200D84D28 /* scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BD1CC81B3200D84D28 /* scenery.c */; }; - D44272811CC81B3200D84D28 /* server_start.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271BF1CC81B3200D84D28 /* server_start.c */; }; - D44272821CC81B3200D84D28 /* shortcut_key_change.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C01CC81B3200D84D28 /* shortcut_key_change.c */; }; - D44272831CC81B3200D84D28 /* shortcut_keys.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C11CC81B3200D84D28 /* shortcut_keys.c */; }; - D44272841CC81B3200D84D28 /* sign.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C21CC81B3200D84D28 /* sign.c */; }; - D44272851CC81B3200D84D28 /* staff.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C31CC81B3200D84D28 /* staff.c */; }; - D44272861CC81B3200D84D28 /* staff_fire_prompt.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C41CC81B3200D84D28 /* staff_fire_prompt.c */; }; - D44272871CC81B3200D84D28 /* staff_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C51CC81B3200D84D28 /* staff_list.c */; }; - D44272881CC81B3200D84D28 /* text_input.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C61CC81B3200D84D28 /* text_input.c */; }; - D44272891CC81B3200D84D28 /* themes.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C71CC81B3200D84D28 /* themes.c */; }; - D442728A1CC81B3200D84D28 /* tile_inspector.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C81CC81B3200D84D28 /* tile_inspector.c */; }; - D442728B1CC81B3200D84D28 /* title_command_editor.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271C91CC81B3200D84D28 /* title_command_editor.c */; }; - D442728C1CC81B3200D84D28 /* title_editor.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271CA1CC81B3200D84D28 /* title_editor.c */; }; - D442728D1CC81B3200D84D28 /* title_exit.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271CB1CC81B3200D84D28 /* title_exit.c */; }; - D442728E1CC81B3200D84D28 /* title_logo.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271CC1CC81B3200D84D28 /* title_logo.c */; }; - D442728F1CC81B3200D84D28 /* title_menu.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271CD1CC81B3200D84D28 /* title_menu.c */; }; - D44272901CC81B3200D84D28 /* title_options.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271CE1CC81B3200D84D28 /* title_options.c */; }; - D44272911CC81B3200D84D28 /* title_scenarioselect.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271CF1CC81B3200D84D28 /* title_scenarioselect.c */; }; - D44272921CC81B3200D84D28 /* tooltip.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271D01CC81B3200D84D28 /* tooltip.c */; }; - D44272931CC81B3200D84D28 /* top_toolbar.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271D21CC81B3200D84D28 /* top_toolbar.c */; }; - D44272941CC81B3200D84D28 /* track_list.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271D31CC81B3200D84D28 /* track_list.c */; }; - D44272951CC81B3200D84D28 /* track_manage.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271D41CC81B3200D84D28 /* track_manage.c */; }; - D44272961CC81B3200D84D28 /* track_place.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271D51CC81B3200D84D28 /* track_place.c */; }; - D44272971CC81B3200D84D28 /* viewport.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271D61CC81B3200D84D28 /* viewport.c */; }; - D44272981CC81B3200D84D28 /* water.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271D71CC81B3200D84D28 /* water.c */; }; - D442729D1CC81B3200D84D28 /* footpath.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271E01CC81B3200D84D28 /* footpath.c */; }; - D442729F1CC81B3200D84D28 /* map.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271E41CC81B3200D84D28 /* map.c */; }; - D44272A01CC81B3200D84D28 /* map_animation.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271E61CC81B3200D84D28 /* map_animation.c */; }; - D44272A11CC81B3200D84D28 /* map_helpers.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271E81CC81B3200D84D28 /* map_helpers.c */; }; - D44272A21CC81B3200D84D28 /* mapgen.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271EA1CC81B3200D84D28 /* mapgen.c */; }; - D44272A31CC81B3200D84D28 /* money_effect.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271EC1CC81B3200D84D28 /* money_effect.c */; }; - D44272A41CC81B3200D84D28 /* park.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271ED1CC81B3200D84D28 /* park.c */; }; - D44272A51CC81B3200D84D28 /* particle.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271EF1CC81B3200D84D28 /* particle.c */; }; - D44272A61CC81B3200D84D28 /* scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271F01CC81B3200D84D28 /* scenery.c */; }; - D44272A71CC81B3200D84D28 /* sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271F21CC81B3200D84D28 /* sprite.c */; }; - D4469DAD1DEF84480039A779 /* Fonts.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4469DAB1DEF84480039A779 /* Fonts.cpp */; }; - D44D93AE1E92DD28004D6B77 /* Fountain.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D44D93AD1E92DD28004D6B77 /* Fountain.cpp */; }; D45A38BC1CF3006400659A24 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B31CF3006400659A24 /* libcrypto.dylib */; }; D45A38BE1CF3006400659A24 /* libjansson.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B51CF3006400659A24 /* libjansson.dylib */; }; D45A38C01CF3006400659A24 /* libSDL2_ttf.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B71CF3006400659A24 /* libSDL2_ttf.dylib */; }; @@ -435,52 +235,386 @@ D45A395D1CF300AF00659A24 /* libSDL2_ttf.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B71CF3006400659A24 /* libSDL2_ttf.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; D45A395E1CF300AF00659A24 /* libSDL2.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B81CF3006400659A24 /* libSDL2.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; D45A395F1CF300AF00659A24 /* libspeexdsp.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B91CF3006400659A24 /* libspeexdsp.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - D45B202D1D1E92DB00B67CC7 /* custom_currency.c in Sources */ = {isa = PBXBuildFile; fileRef = D45B202C1D1E92DB00B67CC7 /* custom_currency.c */; }; - D460DFD11E01239D007BA2FE /* OpenRCT2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D460DFD01E01239D007BA2FE /* OpenRCT2.cpp */; }; - D460DFD41E0123D1007BA2FE /* PlatformEnvironment.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D460DFD31E0123D1007BA2FE /* PlatformEnvironment.cpp */; }; - D464B3E01E4FBC850003F3B5 /* ServerList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464B3DE1E4FBC850003F3B5 /* ServerList.cpp */; }; - D464B3E21E4FBCC00003F3B5 /* audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464B3E11E4FBCC00003F3B5 /* audio.cpp */; }; - D464FEBB1D31A65300CBABAC /* IStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEBA1D31A65300CBABAC /* IStream.cpp */; }; - D464FEBE1D31A66E00CBABAC /* MemoryStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEBC1D31A66E00CBABAC /* MemoryStream.cpp */; }; - D464FEC01D31A68800CBABAC /* Image.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEBF1D31A68800CBABAC /* Image.cpp */; }; - D464FEE51D31A6AA00CBABAC /* BannerObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEC21D31A6AA00CBABAC /* BannerObject.cpp */; }; - D464FEE61D31A6AA00CBABAC /* EntranceObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEC41D31A6AA00CBABAC /* EntranceObject.cpp */; }; - D464FEE71D31A6AA00CBABAC /* FootpathItemObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEC61D31A6AA00CBABAC /* FootpathItemObject.cpp */; }; - D464FEE81D31A6AA00CBABAC /* FootpathObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEC81D31A6AA00CBABAC /* FootpathObject.cpp */; }; - D464FEE91D31A6AA00CBABAC /* ImageTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FECA1D31A6AA00CBABAC /* ImageTable.cpp */; }; - D464FEEA1D31A6AA00CBABAC /* LargeSceneryObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FECC1D31A6AA00CBABAC /* LargeSceneryObject.cpp */; }; - D464FEEB1D31A6AA00CBABAC /* Object.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FECE1D31A6AA00CBABAC /* Object.cpp */; }; - D464FEEC1D31A6AA00CBABAC /* ObjectFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FED01D31A6AA00CBABAC /* ObjectFactory.cpp */; }; - D464FEED1D31A6AA00CBABAC /* ObjectManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FED21D31A6AA00CBABAC /* ObjectManager.cpp */; }; - D464FEEE1D31A6AA00CBABAC /* ObjectRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FED41D31A6AA00CBABAC /* ObjectRepository.cpp */; }; - D464FEEF1D31A6AA00CBABAC /* RideObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FED61D31A6AA00CBABAC /* RideObject.cpp */; }; - D464FEF01D31A6AA00CBABAC /* SceneryGroupObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FED81D31A6AA00CBABAC /* SceneryGroupObject.cpp */; }; - D464FEF11D31A6AA00CBABAC /* SmallSceneryObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEDB1D31A6AA00CBABAC /* SmallSceneryObject.cpp */; }; - D464FEF21D31A6AA00CBABAC /* StexObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEDD1D31A6AA00CBABAC /* StexObject.cpp */; }; - D464FEF31D31A6AA00CBABAC /* StringTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEDF1D31A6AA00CBABAC /* StringTable.cpp */; }; - D464FEF41D31A6AA00CBABAC /* WallObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEE11D31A6AA00CBABAC /* WallObject.cpp */; }; - D464FEF51D31A6AA00CBABAC /* WaterObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D464FEE31D31A6AA00CBABAC /* WaterObject.cpp */; }; - D46F2A9E1D39A25A00A36AB7 /* peep_data.c in Sources */ = {isa = PBXBuildFile; fileRef = D46F2A9D1D39A25A00A36AB7 /* peep_data.c */; }; D47304D51C4FF8250015C0EA /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D47304D41C4FF8250015C0EA /* libz.tbd */; }; - D48A8D831D00272F00649DA7 /* TcpSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D48A8D811D00272F00649DA7 /* TcpSocket.cpp */; }; - D48ABABA1E71EBD500A3E39C /* entrance.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D48ABAB91E71EBD500A3E39C /* entrance.cpp */; }; - D49464781E4DB27B00DC690E /* sprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D49464771E4DB27B00DC690E /* sprite.cpp */; }; - D49766831D03B9FE002222CD /* SoftwareDrawingEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D49766811D03B9FE002222CD /* SoftwareDrawingEngine.cpp */; }; - D49766861D03BAA5002222CD /* NewDrawing.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D49766841D03BAA5002222CD /* NewDrawing.cpp */; }; - D49766891D03BABB002222CD /* rain.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D49766871D03BABB002222CD /* rain.cpp */; }; D4A8B4B41DB41873007A2F29 /* libpng16.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; }; D4A8B4B51DB4188D007A2F29 /* libpng16.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - D4B21B6F1E343AF1004982C7 /* lightfx.c in Sources */ = {isa = PBXBuildFile; fileRef = D4B21B6D1E343AF1004982C7 /* lightfx.c */; }; D4EC48E61C2637710024B507 /* g2.dat in Resources */ = {isa = PBXBuildFile; fileRef = D4EC48E31C2637710024B507 /* g2.dat */; }; D4EC48E71C2637710024B507 /* language in Resources */ = {isa = PBXBuildFile; fileRef = D4EC48E41C2637710024B507 /* language */; }; D4EC48E81C2637710024B507 /* title in Resources */ = {isa = PBXBuildFile; fileRef = D4EC48E51C2637710024B507 /* title */; }; - D4F5B5EF1DAD8A4300AB6075 /* CursorData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4F5B5EC1DAD8A4300AB6075 /* CursorData.cpp */; }; - D4F5B5F01DAD8A4300AB6075 /* Cursors.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4F5B5ED1DAD8A4300AB6075 /* Cursors.cpp */; }; - F2CC500E17C9411FBA859888 /* Climate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 242F470FE91956ACA4078F6A /* Climate.cpp */; }; - F408D5E134FE5B423BE5443F /* Duck.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5D1DB5BE280897DCDEBFCED /* Duck.cpp */; }; - F61331C839858250899F1E9B /* Balloon.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 437490DBD74ECF60C3363559 /* Balloon.cpp */; }; + F76C85B01EC4E88300FA49E2 /* audio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83571EC4E7CC00FA49E2 /* audio.cpp */; }; + F76C85B41EC4E88300FA49E2 /* AudioMixer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C835B1EC4E7CC00FA49E2 /* AudioMixer.cpp */; }; + F76C85B71EC4E88300FA49E2 /* NullAudioSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C835E1EC4E7CC00FA49E2 /* NullAudioSource.cpp */; }; + F76C85B81EC4E88300FA49E2 /* cheats.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C835F1EC4E7CC00FA49E2 /* cheats.c */; }; + F76C85BA1EC4E88300FA49E2 /* CommandLine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83631EC4E7CC00FA49E2 /* CommandLine.cpp */; }; + F76C85BC1EC4E88300FA49E2 /* ConvertCommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83651EC4E7CC00FA49E2 /* ConvertCommand.cpp */; }; + F76C85BD1EC4E88300FA49E2 /* RootCommands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83661EC4E7CC00FA49E2 /* RootCommands.cpp */; }; + F76C85BE1EC4E88300FA49E2 /* ScreenshotCommands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83671EC4E7CC00FA49E2 /* ScreenshotCommands.cpp */; }; + F76C85BF1EC4E88300FA49E2 /* SpriteCommands.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83681EC4E7CC00FA49E2 /* SpriteCommands.cpp */; }; + F76C85C01EC4E88300FA49E2 /* UriHandler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83691EC4E7CC00FA49E2 /* UriHandler.cpp */; }; + F76C85C11EC4E88300FA49E2 /* cmdline_sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C836A1EC4E7CC00FA49E2 /* cmdline_sprite.c */; }; + F76C85C41EC4E88300FA49E2 /* Config.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C836E1EC4E7CC00FA49E2 /* Config.cpp */; }; + F76C85C71EC4E88300FA49E2 /* IniReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83711EC4E7CC00FA49E2 /* IniReader.cpp */; }; + F76C85C91EC4E88300FA49E2 /* IniWriter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83731EC4E7CC00FA49E2 /* IniWriter.cpp */; }; + F76C85CB1EC4E88300FA49E2 /* KeyboardShortcuts.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83751EC4E7CC00FA49E2 /* KeyboardShortcuts.cpp */; }; + F76C85CC1EC4E88300FA49E2 /* Context.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83761EC4E7CC00FA49E2 /* Context.cpp */; }; + F76C85CF1EC4E88300FA49E2 /* Console.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C837A1EC4E7CC00FA49E2 /* Console.cpp */; }; + F76C85D11EC4E88300FA49E2 /* Diagnostics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C837C1EC4E7CC00FA49E2 /* Diagnostics.cpp */; }; + F76C85D41EC4E88300FA49E2 /* File.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C837F1EC4E7CC00FA49E2 /* File.cpp */; }; + F76C85D61EC4E88300FA49E2 /* FileScanner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83811EC4E7CC00FA49E2 /* FileScanner.cpp */; }; + F76C85D91EC4E88300FA49E2 /* Guard.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83841EC4E7CC00FA49E2 /* Guard.cpp */; }; + F76C85DB1EC4E88300FA49E2 /* IStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83861EC4E7CC00FA49E2 /* IStream.cpp */; }; + F76C85DD1EC4E88300FA49E2 /* Json.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83881EC4E7CC00FA49E2 /* Json.cpp */; }; + F76C85E11EC4E88300FA49E2 /* MemoryStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C838C1EC4E7CC00FA49E2 /* MemoryStream.cpp */; }; + F76C85E41EC4E88300FA49E2 /* Path.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C838F1EC4E7CC00FA49E2 /* Path.cpp */; }; + F76C85E71EC4E88300FA49E2 /* String.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83921EC4E7CC00FA49E2 /* String.cpp */; }; + F76C85EB1EC4E88300FA49E2 /* textinputbuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83961EC4E7CC00FA49E2 /* textinputbuffer.c */; }; + F76C85EE1EC4E88300FA49E2 /* Zip.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83991EC4E7CC00FA49E2 /* Zip.cpp */; }; + F76C85F01EC4E88300FA49E2 /* diagnostic.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C839B1EC4E7CC00FA49E2 /* diagnostic.c */; }; + F76C85F21EC4E88300FA49E2 /* drawing.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C839E1EC4E7CC00FA49E2 /* drawing.c */; }; + F76C85F41EC4E88300FA49E2 /* drawing_fast.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83A01EC4E7CC00FA49E2 /* drawing_fast.cpp */; }; + F76C85F51EC4E88300FA49E2 /* font.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83A11EC4E7CC00FA49E2 /* font.c */; }; + F76C85F91EC4E88300FA49E2 /* Image.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83A51EC4E7CC00FA49E2 /* Image.cpp */; }; + F76C85FA1EC4E88300FA49E2 /* lightfx.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83A61EC4E7CC00FA49E2 /* lightfx.c */; }; + F76C85FC1EC4E88300FA49E2 /* line.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83A81EC4E7CC00FA49E2 /* line.c */; }; + F76C85FD1EC4E88300FA49E2 /* NewDrawing.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83A91EC4E7CC00FA49E2 /* NewDrawing.cpp */; }; + F76C85FF1EC4E88300FA49E2 /* Rain.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83AB1EC4E7CC00FA49E2 /* Rain.cpp */; }; + F76C86011EC4E88300FA49E2 /* rect.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83AD1EC4E7CC00FA49E2 /* rect.c */; }; + F76C86021EC4E88300FA49E2 /* scrolling_text.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83AE1EC4E7CC00FA49E2 /* scrolling_text.c */; }; + F76C86031EC4E88300FA49E2 /* sprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83AF1EC4E7CC00FA49E2 /* sprite.cpp */; }; + F76C86041EC4E88300FA49E2 /* string.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B01EC4E7CC00FA49E2 /* string.c */; }; + F76C86051EC4E88300FA49E2 /* editor.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B11EC4E7CC00FA49E2 /* editor.c */; }; + F76C86071EC4E88300FA49E2 /* FileClassifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B31EC4E7CC00FA49E2 /* FileClassifier.cpp */; }; + F76C86091EC4E88300FA49E2 /* game.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B51EC4E7CC00FA49E2 /* game.c */; }; + F76C860B1EC4E88300FA49E2 /* Imaging.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B71EC4E7CC00FA49E2 /* Imaging.cpp */; }; + F76C860D1EC4E88300FA49E2 /* input.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B91EC4E7CC00FA49E2 /* input.c */; }; + F76C860F1EC4E88300FA49E2 /* chat.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83BC1EC4E7CC00FA49E2 /* chat.c */; }; + F76C86111EC4E88300FA49E2 /* colour.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83BE1EC4E7CC00FA49E2 /* colour.c */; }; + F76C86131EC4E88300FA49E2 /* console.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83C01EC4E7CC00FA49E2 /* console.c */; }; + F76C86161EC4E88300FA49E2 /* Fonts.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83C31EC4E7CC00FA49E2 /* Fonts.cpp */; }; + F76C86181EC4E88300FA49E2 /* graph.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83C51EC4E7CC00FA49E2 /* graph.c */; }; + F76C861A1EC4E88300FA49E2 /* keyboard_shortcut.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83C71EC4E7CC00FA49E2 /* keyboard_shortcut.c */; }; + F76C861C1EC4E88300FA49E2 /* screenshot.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83C91EC4E7CC00FA49E2 /* screenshot.c */; }; + F76C861E1EC4E88300FA49E2 /* Theme.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83CB1EC4E7CC00FA49E2 /* Theme.cpp */; }; + F76C86201EC4E88300FA49E2 /* viewport.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83CD1EC4E7CC00FA49E2 /* viewport.c */; }; + F76C86221EC4E88300FA49E2 /* viewport_interaction.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83CF1EC4E7CC00FA49E2 /* viewport_interaction.c */; }; + F76C86231EC4E88300FA49E2 /* widget.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83D01EC4E7CC00FA49E2 /* widget.c */; }; + F76C86251EC4E88300FA49E2 /* window.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83D21EC4E7CC00FA49E2 /* window.c */; }; + F76C86271EC4E88300FA49E2 /* intro.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83D41EC4E7CC00FA49E2 /* intro.c */; }; + F76C86291EC4E88300FA49E2 /* convert.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83D81EC4E7CC00FA49E2 /* convert.c */; }; + F76C862A1EC4E88300FA49E2 /* currency.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83D91EC4E7CC00FA49E2 /* currency.c */; }; + F76C862C1EC4E88300FA49E2 /* date.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83DB1EC4E7CC00FA49E2 /* date.c */; }; + F76C862E1EC4E88300FA49E2 /* format_codes.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83DD1EC4E7CC00FA49E2 /* format_codes.c */; }; + F76C86301EC4E88300FA49E2 /* language.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83DF1EC4E7CC00FA49E2 /* language.cpp */; }; + F76C86321EC4E88300FA49E2 /* LanguagePack.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83E11EC4E7CC00FA49E2 /* LanguagePack.cpp */; }; + F76C86341EC4E88300FA49E2 /* localisation.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83E31EC4E7CC00FA49E2 /* localisation.c */; }; + F76C86361EC4E88300FA49E2 /* real_names.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83E51EC4E7CC00FA49E2 /* real_names.c */; }; + F76C86381EC4E88300FA49E2 /* user.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83E71EC4E7CC00FA49E2 /* user.c */; }; + F76C863A1EC4E88300FA49E2 /* utf8.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83E91EC4E7CC00FA49E2 /* utf8.c */; }; + F76C863B1EC4E88300FA49E2 /* award.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83EB1EC4E7CC00FA49E2 /* award.c */; }; + F76C863D1EC4E88300FA49E2 /* finance.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83ED1EC4E7CC00FA49E2 /* finance.c */; }; + F76C863F1EC4E88300FA49E2 /* marketing.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83EF1EC4E7CC00FA49E2 /* marketing.c */; }; + F76C86411EC4E88300FA49E2 /* news_item.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83F11EC4E7CC00FA49E2 /* news_item.c */; }; + F76C86431EC4E88300FA49E2 /* research.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83F31EC4E7CC00FA49E2 /* research.c */; }; + F76C86451EC4E88300FA49E2 /* http.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83F61EC4E7CC00FA49E2 /* http.cpp */; }; + F76C86471EC4E88300FA49E2 /* network.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83F81EC4E7CC00FA49E2 /* network.cpp */; }; + F76C86491EC4E88300FA49E2 /* NetworkAction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83FA1EC4E7CC00FA49E2 /* NetworkAction.cpp */; }; + F76C864B1EC4E88300FA49E2 /* NetworkConnection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83FC1EC4E7CC00FA49E2 /* NetworkConnection.cpp */; }; + F76C864D1EC4E88300FA49E2 /* NetworkGroup.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83FE1EC4E7CC00FA49E2 /* NetworkGroup.cpp */; }; + F76C864F1EC4E88300FA49E2 /* NetworkKey.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84001EC4E7CC00FA49E2 /* NetworkKey.cpp */; }; + F76C86511EC4E88300FA49E2 /* NetworkPacket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84021EC4E7CC00FA49E2 /* NetworkPacket.cpp */; }; + F76C86531EC4E88300FA49E2 /* NetworkPlayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84041EC4E7CC00FA49E2 /* NetworkPlayer.cpp */; }; + F76C86551EC4E88300FA49E2 /* NetworkServerAdvertiser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84061EC4E7CC00FA49E2 /* NetworkServerAdvertiser.cpp */; }; + F76C86581EC4E88300FA49E2 /* NetworkUser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84091EC4E7CC00FA49E2 /* NetworkUser.cpp */; }; + F76C865A1EC4E88300FA49E2 /* ServerList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C840B1EC4E7CC00FA49E2 /* ServerList.cpp */; }; + F76C865C1EC4E88300FA49E2 /* TcpSocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C840D1EC4E7CC00FA49E2 /* TcpSocket.cpp */; }; + F76C865E1EC4E88300FA49E2 /* twitch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C840F1EC4E7CC00FA49E2 /* twitch.cpp */; }; + F76C86601EC4E88300FA49E2 /* BannerObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84121EC4E7CC00FA49E2 /* BannerObject.cpp */; }; + F76C86621EC4E88300FA49E2 /* EntranceObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84141EC4E7CC00FA49E2 /* EntranceObject.cpp */; }; + F76C86641EC4E88300FA49E2 /* FootpathItemObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84161EC4E7CC00FA49E2 /* FootpathItemObject.cpp */; }; + F76C86661EC4E88300FA49E2 /* FootpathObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84181EC4E7CC00FA49E2 /* FootpathObject.cpp */; }; + F76C86681EC4E88300FA49E2 /* ImageTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C841A1EC4E7CC00FA49E2 /* ImageTable.cpp */; }; + F76C866A1EC4E88300FA49E2 /* LargeSceneryObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C841C1EC4E7CC00FA49E2 /* LargeSceneryObject.cpp */; }; + F76C866C1EC4E88400FA49E2 /* Object.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C841E1EC4E7CC00FA49E2 /* Object.cpp */; }; + F76C866E1EC4E88400FA49E2 /* ObjectFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84201EC4E7CC00FA49E2 /* ObjectFactory.cpp */; }; + F76C86701EC4E88400FA49E2 /* ObjectManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84221EC4E7CC00FA49E2 /* ObjectManager.cpp */; }; + F76C86721EC4E88400FA49E2 /* ObjectRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84241EC4E7CC00FA49E2 /* ObjectRepository.cpp */; }; + F76C86741EC4E88400FA49E2 /* RideObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84261EC4E7CC00FA49E2 /* RideObject.cpp */; }; + F76C86761EC4E88400FA49E2 /* SceneryGroupObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84281EC4E7CC00FA49E2 /* SceneryGroupObject.cpp */; }; + F76C86791EC4E88400FA49E2 /* SmallSceneryObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C842B1EC4E7CC00FA49E2 /* SmallSceneryObject.cpp */; }; + F76C867B1EC4E88400FA49E2 /* StexObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C842D1EC4E7CC00FA49E2 /* StexObject.cpp */; }; + F76C867D1EC4E88400FA49E2 /* StringTable.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C842F1EC4E7CC00FA49E2 /* StringTable.cpp */; }; + F76C867F1EC4E88400FA49E2 /* WallObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84311EC4E7CC00FA49E2 /* WallObject.cpp */; }; + F76C86811EC4E88400FA49E2 /* WaterObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84331EC4E7CC00FA49E2 /* WaterObject.cpp */; }; + F76C86841EC4E88400FA49E2 /* object_list.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84361EC4E7CC00FA49E2 /* object_list.c */; }; + F76C86861EC4E88400FA49E2 /* OpenRCT2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84381EC4E7CC00FA49E2 /* OpenRCT2.cpp */; }; + F76C86881EC4E88400FA49E2 /* banner.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C843C1EC4E7CC00FA49E2 /* banner.c */; }; + F76C86891EC4E88400FA49E2 /* entrance.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C843D1EC4E7CC00FA49E2 /* entrance.c */; }; + F76C868A1EC4E88400FA49E2 /* fence.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C843E1EC4E7CC00FA49E2 /* fence.c */; }; + F76C868B1EC4E88400FA49E2 /* map_element.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C843F1EC4E7CC00FA49E2 /* map_element.c */; }; + F76C868D1EC4E88400FA49E2 /* path.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84411EC4E7CC00FA49E2 /* path.c */; }; + F76C868E1EC4E88400FA49E2 /* scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84421EC4E7CC00FA49E2 /* scenery.c */; }; + F76C868F1EC4E88400FA49E2 /* scenery_multiple.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84431EC4E7CC00FA49E2 /* scenery_multiple.c */; }; + F76C86901EC4E88400FA49E2 /* surface.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84441EC4E7CC00FA49E2 /* surface.c */; }; + F76C86921EC4E88400FA49E2 /* paint.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84461EC4E7CC00FA49E2 /* paint.c */; }; + F76C86941EC4E88400FA49E2 /* paint_helpers.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84481EC4E7CC00FA49E2 /* paint_helpers.c */; }; + F76C86951EC4E88400FA49E2 /* litter.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C844A1EC4E7CC00FA49E2 /* litter.c */; }; + F76C86961EC4E88400FA49E2 /* misc.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C844B1EC4E7CC00FA49E2 /* misc.c */; }; + F76C86971EC4E88400FA49E2 /* peep.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C844C1EC4E7CC00FA49E2 /* peep.c */; }; + F76C86981EC4E88400FA49E2 /* sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C844D1EC4E7CC00FA49E2 /* sprite.c */; }; + F76C869A1EC4E88400FA49E2 /* supports.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C844F1EC4E7CC00FA49E2 /* supports.c */; }; + F76C869C1EC4E88400FA49E2 /* ParkImporter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84511EC4E7CC00FA49E2 /* ParkImporter.cpp */; }; + F76C869E1EC4E88400FA49E2 /* peep.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84541EC4E7CC00FA49E2 /* peep.c */; }; + F76C86A01EC4E88400FA49E2 /* peep_data.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84561EC4E7CC00FA49E2 /* peep_data.c */; }; + F76C86A11EC4E88400FA49E2 /* staff.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84571EC4E7CC00FA49E2 /* staff.c */; }; + F76C86A31EC4E88400FA49E2 /* crash.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C845A1EC4E7CC00FA49E2 /* crash.cpp */; }; + F76C86A51EC4E88400FA49E2 /* linux.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C845C1EC4E7CC00FA49E2 /* linux.c */; }; + F76C86A61EC4E88400FA49E2 /* macos.m in Sources */ = {isa = PBXBuildFile; fileRef = F76C845D1EC4E7CC00FA49E2 /* macos.m */; }; + F76C86A81EC4E88400FA49E2 /* Platform2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C845F1EC4E7CC00FA49E2 /* Platform2.cpp */; }; + F76C86AA1EC4E88400FA49E2 /* posix.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84611EC4E7CC00FA49E2 /* posix.c */; }; + F76C86AB1EC4E88400FA49E2 /* shared.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84621EC4E7CC00FA49E2 /* shared.c */; }; + F76C86AC1EC4E88400FA49E2 /* windows.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84631EC4E7CC00FA49E2 /* windows.c */; }; + F76C86AD1EC4E88400FA49E2 /* PlatformEnvironment.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84641EC4E7CC00FA49E2 /* PlatformEnvironment.cpp */; }; + F76C86AF1EC4E88400FA49E2 /* S4Importer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84671EC4E7CC00FA49E2 /* S4Importer.cpp */; }; + F76C86B01EC4E88400FA49E2 /* tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84681EC4E7CC00FA49E2 /* tables.cpp */; }; + F76C86B21EC4E88400FA49E2 /* rct1.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C846A1EC4E7CC00FA49E2 /* rct1.c */; }; + F76C86B41EC4E88400FA49E2 /* SawyerChunk.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C846D1EC4E7CC00FA49E2 /* SawyerChunk.cpp */; }; + F76C86B61EC4E88400FA49E2 /* SawyerChunkReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C846F1EC4E7CC00FA49E2 /* SawyerChunkReader.cpp */; }; + F76C86B81EC4E88400FA49E2 /* SawyerChunkWriter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84711EC4E7CC00FA49E2 /* SawyerChunkWriter.cpp */; }; + F76C86BA1EC4E88400FA49E2 /* SawyerEncoding.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84731EC4E7CC00FA49E2 /* SawyerEncoding.cpp */; }; + F76C86BD1EC4E88400FA49E2 /* addresses.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84771EC4E7CC00FA49E2 /* addresses.c */; }; + F76C86BF1EC4E88400FA49E2 /* hook.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84791EC4E7CC00FA49E2 /* hook.c */; }; + F76C86C11EC4E88400FA49E2 /* interop.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C847B1EC4E7CC00FA49E2 /* interop.c */; }; + F76C86C31EC4E88400FA49E2 /* S6Exporter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C847D1EC4E7CC00FA49E2 /* S6Exporter.cpp */; }; + F76C86C51EC4E88400FA49E2 /* S6Importer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C847F1EC4E7CC00FA49E2 /* S6Importer.cpp */; }; + F76C86C61EC4E88400FA49E2 /* rct2.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84801EC4E7CC00FA49E2 /* rct2.c */; }; + F76C86C81EC4E88400FA49E2 /* cable_lift.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84841EC4E7CC00FA49E2 /* cable_lift.c */; }; + F76C86CA1EC4E88400FA49E2 /* air_powered_vertical_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84871EC4E7CC00FA49E2 /* air_powered_vertical_coaster.c */; }; + F76C86CB1EC4E88400FA49E2 /* bobsleigh_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84881EC4E7CC00FA49E2 /* bobsleigh_coaster.c */; }; + F76C86CC1EC4E88400FA49E2 /* bolliger_mabillard_track.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84891EC4E7CC00FA49E2 /* bolliger_mabillard_track.c */; }; + F76C86CE1EC4E88400FA49E2 /* compact_inverted_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C848B1EC4E7CC00FA49E2 /* compact_inverted_coaster.c */; }; + F76C86CF1EC4E88400FA49E2 /* corkscrew_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C848C1EC4E7CC00FA49E2 /* corkscrew_roller_coaster.c */; }; + F76C86D01EC4E88400FA49E2 /* flying_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C848D1EC4E7CC00FA49E2 /* flying_roller_coaster.c */; }; + F76C86D11EC4E88400FA49E2 /* giga_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C848E1EC4E7CC00FA49E2 /* giga_coaster.c */; }; + F76C86D21EC4E88400FA49E2 /* heartline_twister_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C848F1EC4E7CC00FA49E2 /* heartline_twister_coaster.c */; }; + F76C86D31EC4E88400FA49E2 /* inverted_hairpin_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84901EC4E7CC00FA49E2 /* inverted_hairpin_coaster.c */; }; + F76C86D41EC4E88400FA49E2 /* inverted_impulse_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84911EC4E7CC00FA49E2 /* inverted_impulse_coaster.c */; }; + F76C86D51EC4E88400FA49E2 /* inverted_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84921EC4E7CC00FA49E2 /* inverted_roller_coaster.c */; }; + F76C86D61EC4E88400FA49E2 /* junior_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84931EC4E7CC00FA49E2 /* junior_roller_coaster.c */; }; + F76C86D91EC4E88400FA49E2 /* lim_launched_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84961EC4E7CC00FA49E2 /* lim_launched_roller_coaster.c */; }; + F76C86DA1EC4E88400FA49E2 /* looping_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84971EC4E7CC00FA49E2 /* looping_roller_coaster.c */; }; + F76C86DB1EC4E88400FA49E2 /* mine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84981EC4E7CC00FA49E2 /* mine_ride.c */; }; + F76C86DC1EC4E88400FA49E2 /* mine_train_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84991EC4E7CC00FA49E2 /* mine_train_coaster.c */; }; + F76C86DD1EC4E88400FA49E2 /* mini_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C849A1EC4E7CC00FA49E2 /* mini_roller_coaster.c */; }; + F76C86DE1EC4E88400FA49E2 /* mini_suspended_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C849B1EC4E7CC00FA49E2 /* mini_suspended_coaster.c */; }; + F76C86DF1EC4E88400FA49E2 /* multi_dimension_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C849C1EC4E7CC00FA49E2 /* multi_dimension_roller_coaster.c */; }; + F76C86E01EC4E88400FA49E2 /* reverse_freefall_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C849D1EC4E7CC00FA49E2 /* reverse_freefall_coaster.c */; }; + F76C86E11EC4E88400FA49E2 /* reverser_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C849E1EC4E7CC00FA49E2 /* reverser_roller_coaster.c */; }; + F76C86E21EC4E88400FA49E2 /* side_friction_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C849F1EC4E7CC00FA49E2 /* side_friction_roller_coaster.c */; }; + F76C86E31EC4E88400FA49E2 /* stand_up_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A01EC4E7CC00FA49E2 /* stand_up_roller_coaster.c */; }; + F76C86E41EC4E88400FA49E2 /* steeplechase.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A11EC4E7CC00FA49E2 /* steeplechase.c */; }; + F76C86E51EC4E88400FA49E2 /* suspended_swinging_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A21EC4E7CC00FA49E2 /* suspended_swinging_coaster.c */; }; + F76C86E61EC4E88400FA49E2 /* twister_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A31EC4E7CC00FA49E2 /* twister_roller_coaster.c */; }; + F76C86E71EC4E88400FA49E2 /* vertical_drop_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A41EC4E7CC00FA49E2 /* vertical_drop_roller_coaster.c */; }; + F76C86E81EC4E88400FA49E2 /* virginia_reel.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A51EC4E7CC00FA49E2 /* virginia_reel.c */; }; + F76C86E91EC4E88400FA49E2 /* wild_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A61EC4E7CC00FA49E2 /* wild_mouse.c */; }; + F76C86EA1EC4E88400FA49E2 /* wooden_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A71EC4E7CC00FA49E2 /* wooden_roller_coaster.c */; }; + F76C86EB1EC4E88400FA49E2 /* wooden_wild_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84A81EC4E7CC00FA49E2 /* wooden_wild_mouse.c */; }; + F76C86EC1EC4E88400FA49E2 /* car_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84AA1EC4E7CC00FA49E2 /* car_ride.c */; }; + F76C86ED1EC4E88400FA49E2 /* circus_show.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84AB1EC4E7CC00FA49E2 /* circus_show.c */; }; + F76C86EE1EC4E88400FA49E2 /* crooked_house.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84AC1EC4E7CC00FA49E2 /* crooked_house.c */; }; + F76C86EF1EC4E88400FA49E2 /* dodgems.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84AD1EC4E7CC00FA49E2 /* dodgems.c */; }; + F76C86F01EC4E88400FA49E2 /* ferris_wheel.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84AE1EC4E7CC00FA49E2 /* ferris_wheel.c */; }; + F76C86F11EC4E88400FA49E2 /* flying_saucers.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84AF1EC4E7CC00FA49E2 /* flying_saucers.c */; }; + F76C86F21EC4E88400FA49E2 /* ghost_train.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B01EC4E7CC00FA49E2 /* ghost_train.c */; }; + F76C86F31EC4E88400FA49E2 /* haunted_house.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B11EC4E7CC00FA49E2 /* haunted_house.c */; }; + F76C86F41EC4E88400FA49E2 /* maze.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B21EC4E7CC00FA49E2 /* maze.c */; }; + F76C86F51EC4E88400FA49E2 /* merry_go_round.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B31EC4E7CC00FA49E2 /* merry_go_round.c */; }; + F76C86F61EC4E88400FA49E2 /* mini_golf.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B41EC4E7CC00FA49E2 /* mini_golf.c */; }; + F76C86F71EC4E88400FA49E2 /* mini_helicopters.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B51EC4E7CC00FA49E2 /* mini_helicopters.c */; }; + F76C86F81EC4E88400FA49E2 /* monorail_cycles.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B61EC4E7CC00FA49E2 /* monorail_cycles.c */; }; + F76C86F91EC4E88400FA49E2 /* observation_tower.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B71EC4E7CC00FA49E2 /* observation_tower.c */; }; + F76C86FA1EC4E88400FA49E2 /* space_rings.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B81EC4E7CC00FA49E2 /* space_rings.c */; }; + F76C86FB1EC4E88400FA49E2 /* spiral_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84B91EC4E7CC00FA49E2 /* spiral_slide.c */; }; + F76C86FC1EC4E88400FA49E2 /* ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84BA1EC4E7CC00FA49E2 /* ride.c */; }; + F76C86FE1EC4E88400FA49E2 /* ride_data.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84BC1EC4E7CC00FA49E2 /* ride_data.c */; }; + F76C87001EC4E88400FA49E2 /* ride_ratings.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84BE1EC4E7CC00FA49E2 /* ride_ratings.c */; }; + F76C87021EC4E88400FA49E2 /* facility.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C11EC4E7CC00FA49E2 /* facility.c */; }; + F76C87031EC4E88400FA49E2 /* misc.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C21EC4E7CC00FA49E2 /* misc.c */; }; + F76C87041EC4E88400FA49E2 /* shop.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C31EC4E7CC00FA49E2 /* shop.c */; }; + F76C87051EC4E88400FA49E2 /* station.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C41EC4E7CC00FA49E2 /* station.c */; }; + F76C87071EC4E88400FA49E2 /* 3d_cinema.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C71EC4E7CC00FA49E2 /* 3d_cinema.c */; }; + F76C87081EC4E88400FA49E2 /* enterprise.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C81EC4E7CC00FA49E2 /* enterprise.c */; }; + F76C87091EC4E88400FA49E2 /* go_karts.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C91EC4E7CC00FA49E2 /* go_karts.c */; }; + F76C870A1EC4E88400FA49E2 /* launched_freefall.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84CA1EC4E7CC00FA49E2 /* launched_freefall.c */; }; + F76C870B1EC4E88400FA49E2 /* magic_carpet.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84CB1EC4E7CC00FA49E2 /* magic_carpet.c */; }; + F76C870C1EC4E88400FA49E2 /* motion_simulator.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84CC1EC4E7CC00FA49E2 /* motion_simulator.c */; }; + F76C870D1EC4E88400FA49E2 /* pirate_ship.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84CD1EC4E7CC00FA49E2 /* pirate_ship.c */; }; + F76C870E1EC4E88400FA49E2 /* roto_drop.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84CE1EC4E7CC00FA49E2 /* roto_drop.c */; }; + F76C870F1EC4E88400FA49E2 /* swinging_inverter_ship.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84CF1EC4E7CC00FA49E2 /* swinging_inverter_ship.c */; }; + F76C87101EC4E88400FA49E2 /* top_spin.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84D01EC4E7CC00FA49E2 /* top_spin.c */; }; + F76C87111EC4E88400FA49E2 /* twist.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84D11EC4E7CC00FA49E2 /* twist.c */; }; + F76C87121EC4E88400FA49E2 /* track.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84D21EC4E7CC00FA49E2 /* track.c */; }; + F76C87141EC4E88400FA49E2 /* track_data.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84D41EC4E7CC00FA49E2 /* track_data.c */; }; + F76C87161EC4E88400FA49E2 /* track_data_old.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84D61EC4E7CC00FA49E2 /* track_data_old.c */; }; + F76C87171EC4E88400FA49E2 /* track_design.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84D71EC4E7CC00FA49E2 /* track_design.c */; }; + F76C87191EC4E88400FA49E2 /* track_design_save.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84D91EC4E7CD00FA49E2 /* track_design_save.c */; }; + F76C871A1EC4E88400FA49E2 /* track_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84DA1EC4E7CD00FA49E2 /* track_paint.c */; }; + F76C871C1EC4E88400FA49E2 /* TrackDesignRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84DC1EC4E7CD00FA49E2 /* TrackDesignRepository.cpp */; }; + F76C871E1EC4E88400FA49E2 /* chairlift.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84DF1EC4E7CD00FA49E2 /* chairlift.c */; }; + F76C871F1EC4E88400FA49E2 /* lift.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84E01EC4E7CD00FA49E2 /* lift.c */; }; + F76C87201EC4E88400FA49E2 /* miniature_railway.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84E11EC4E7CD00FA49E2 /* miniature_railway.c */; }; + F76C87211EC4E88400FA49E2 /* monorail.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84E21EC4E7CD00FA49E2 /* monorail.c */; }; + F76C87221EC4E88400FA49E2 /* suspended_monorail.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84E31EC4E7CD00FA49E2 /* suspended_monorail.c */; }; + F76C87231EC4E88400FA49E2 /* vehicle.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84E41EC4E7CD00FA49E2 /* vehicle.c */; }; + F76C87251EC4E88400FA49E2 /* vehicle_data.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84E61EC4E7CD00FA49E2 /* vehicle_data.c */; }; + F76C87271EC4E88400FA49E2 /* vehicle_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84E81EC4E7CD00FA49E2 /* vehicle_paint.c */; }; + F76C87291EC4E88400FA49E2 /* boat_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EB1EC4E7CD00FA49E2 /* boat_ride.c */; }; + F76C872A1EC4E88400FA49E2 /* dingy_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EC1EC4E7CD00FA49E2 /* dingy_slide.c */; }; + F76C872B1EC4E88400FA49E2 /* log_flume.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84ED1EC4E7CD00FA49E2 /* log_flume.c */; }; + F76C872C1EC4E88400FA49E2 /* river_rafts.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EE1EC4E7CD00FA49E2 /* river_rafts.c */; }; + F76C872D1EC4E88400FA49E2 /* river_rapids.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EF1EC4E7CD00FA49E2 /* river_rapids.c */; }; + F76C872E1EC4E88400FA49E2 /* splash_boats.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F01EC4E7CD00FA49E2 /* splash_boats.c */; }; + F76C872F1EC4E88400FA49E2 /* submarine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F11EC4E7CD00FA49E2 /* submarine_ride.c */; }; + F76C87301EC4E88400FA49E2 /* water_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F21EC4E7CD00FA49E2 /* water_coaster.c */; }; + F76C87311EC4E88400FA49E2 /* scenario.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F41EC4E7CD00FA49E2 /* scenario.c */; }; + F76C87331EC4E88400FA49E2 /* ScenarioRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F61EC4E7CD00FA49E2 /* ScenarioRepository.cpp */; }; + F76C87351EC4E88400FA49E2 /* ScenarioSources.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F81EC4E7CD00FA49E2 /* ScenarioSources.cpp */; }; + F76C87381EC4E88400FA49E2 /* TitleScreen.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84FC1EC4E7CD00FA49E2 /* TitleScreen.cpp */; }; + F76C873A1EC4E88400FA49E2 /* TitleSequence.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C84FE1EC4E7CD00FA49E2 /* TitleSequence.cpp */; }; + F76C873C1EC4E88400FA49E2 /* TitleSequenceManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85001EC4E7CD00FA49E2 /* TitleSequenceManager.cpp */; }; + F76C873E1EC4E88400FA49E2 /* TitleSequencePlayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85021EC4E7CD00FA49E2 /* TitleSequencePlayer.cpp */; }; + F76C87411EC4E88400FA49E2 /* sawyercoding.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85071EC4E7CD00FA49E2 /* sawyercoding.c */; }; + F76C87431EC4E88400FA49E2 /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85091EC4E7CD00FA49E2 /* util.c */; }; + F76C87451EC4E88400FA49E2 /* Version.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C850B1EC4E7CD00FA49E2 /* Version.cpp */; }; + F76C87471EC4E88400FA49E2 /* about.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C850E1EC4E7CD00FA49E2 /* about.c */; }; + F76C87481EC4E88400FA49E2 /* banner.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C850F1EC4E7CD00FA49E2 /* banner.c */; }; + F76C87491EC4E88400FA49E2 /* changelog.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85101EC4E7CD00FA49E2 /* changelog.c */; }; + F76C874A1EC4E88400FA49E2 /* cheats.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85111EC4E7CD00FA49E2 /* cheats.c */; }; + F76C874B1EC4E88400FA49E2 /* clear_scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85121EC4E7CD00FA49E2 /* clear_scenery.c */; }; + F76C874C1EC4E88400FA49E2 /* custom_currency.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85131EC4E7CD00FA49E2 /* custom_currency.c */; }; + F76C874D1EC4E88400FA49E2 /* debug_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85141EC4E7CD00FA49E2 /* debug_paint.c */; }; + F76C874E1EC4E88400FA49E2 /* demolish_ride_prompt.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85151EC4E7CD00FA49E2 /* demolish_ride_prompt.c */; }; + F76C874F1EC4E88400FA49E2 /* dropdown.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85161EC4E7CD00FA49E2 /* dropdown.c */; }; + F76C87511EC4E88400FA49E2 /* editor_bottom_toolbar.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85181EC4E7CD00FA49E2 /* editor_bottom_toolbar.c */; }; + F76C87521EC4E88400FA49E2 /* editor_inventions_list.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85191EC4E7CD00FA49E2 /* editor_inventions_list.c */; }; + F76C87531EC4E88400FA49E2 /* editor_main.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C851A1EC4E7CD00FA49E2 /* editor_main.c */; }; + F76C87541EC4E88400FA49E2 /* editor_object_selection.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C851B1EC4E7CD00FA49E2 /* editor_object_selection.c */; }; + F76C87551EC4E88400FA49E2 /* editor_objective_options.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C851C1EC4E7CD00FA49E2 /* editor_objective_options.c */; }; + F76C87561EC4E88400FA49E2 /* editor_scenario_options.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C851D1EC4E7CD00FA49E2 /* editor_scenario_options.c */; }; + F76C87571EC4E88400FA49E2 /* error.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C851E1EC4E7CD00FA49E2 /* error.c */; }; + F76C87591EC4E88400FA49E2 /* finances.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85201EC4E7CD00FA49E2 /* finances.c */; }; + F76C875A1EC4E88400FA49E2 /* footpath.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85211EC4E7CD00FA49E2 /* footpath.c */; }; + F76C875B1EC4E88400FA49E2 /* game_bottom_toolbar.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85221EC4E7CD00FA49E2 /* game_bottom_toolbar.c */; }; + F76C875C1EC4E88400FA49E2 /* guest.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85231EC4E7CD00FA49E2 /* guest.c */; }; + F76C875D1EC4E88400FA49E2 /* guest_list.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85241EC4E7CD00FA49E2 /* guest_list.c */; }; + F76C875E1EC4E88400FA49E2 /* install_track.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85251EC4E7CD00FA49E2 /* install_track.c */; }; + F76C875F1EC4E88400FA49E2 /* land.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85261EC4E7CD00FA49E2 /* land.c */; }; + F76C87601EC4E88400FA49E2 /* land_rights.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85271EC4E7CD00FA49E2 /* land_rights.c */; }; + F76C87611EC4E88400FA49E2 /* loadsave.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85281EC4E7CD00FA49E2 /* loadsave.c */; }; + F76C87621EC4E88400FA49E2 /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85291EC4E7CD00FA49E2 /* main.c */; }; + F76C87631EC4E88400FA49E2 /* map.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C852A1EC4E7CD00FA49E2 /* map.c */; }; + F76C87641EC4E88400FA49E2 /* map_tooltip.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C852B1EC4E7CD00FA49E2 /* map_tooltip.c */; }; + F76C87651EC4E88400FA49E2 /* mapgen.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C852C1EC4E7CD00FA49E2 /* mapgen.c */; }; + F76C87661EC4E88400FA49E2 /* maze_construction.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C852D1EC4E7CD00FA49E2 /* maze_construction.c */; }; + F76C87671EC4E88400FA49E2 /* multiplayer.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C852E1EC4E7CD00FA49E2 /* multiplayer.c */; }; + F76C87681EC4E88400FA49E2 /* music_credits.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C852F1EC4E7CD00FA49E2 /* music_credits.c */; }; + F76C87691EC4E88400FA49E2 /* network_status.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85301EC4E7CD00FA49E2 /* network_status.c */; }; + F76C876A1EC4E88400FA49E2 /* new_campaign.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85311EC4E7CD00FA49E2 /* new_campaign.c */; }; + F76C876B1EC4E88400FA49E2 /* new_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85321EC4E7CD00FA49E2 /* new_ride.c */; }; + F76C876C1EC4E88400FA49E2 /* news.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85331EC4E7CD00FA49E2 /* news.c */; }; + F76C876D1EC4E88400FA49E2 /* news_options.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85341EC4E7CD00FA49E2 /* news_options.c */; }; + F76C876E1EC4E88400FA49E2 /* options.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85351EC4E7CD00FA49E2 /* options.c */; }; + F76C876F1EC4E88400FA49E2 /* park.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85361EC4E7CD00FA49E2 /* park.c */; }; + F76C87701EC4E88400FA49E2 /* player.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85371EC4E7CD00FA49E2 /* player.c */; }; + F76C87711EC4E88400FA49E2 /* publisher_credits.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85381EC4E7CD00FA49E2 /* publisher_credits.c */; }; + F76C87721EC4E88400FA49E2 /* research.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85391EC4E7CD00FA49E2 /* research.c */; }; + F76C87731EC4E88400FA49E2 /* ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C853A1EC4E7CD00FA49E2 /* ride.c */; }; + F76C87741EC4E88400FA49E2 /* ride_construction.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C853B1EC4E7CD00FA49E2 /* ride_construction.c */; }; + F76C87751EC4E88400FA49E2 /* ride_list.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C853C1EC4E7CD00FA49E2 /* ride_list.c */; }; + F76C87761EC4E88400FA49E2 /* save_prompt.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C853D1EC4E7CD00FA49E2 /* save_prompt.c */; }; + F76C87771EC4E88400FA49E2 /* scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C853E1EC4E7CD00FA49E2 /* scenery.c */; }; + F76C87781EC4E88400FA49E2 /* server_list.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C853F1EC4E7CD00FA49E2 /* server_list.cpp */; }; + F76C87791EC4E88400FA49E2 /* server_start.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85401EC4E7CD00FA49E2 /* server_start.c */; }; + F76C877A1EC4E88400FA49E2 /* shortcut_key_change.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85411EC4E7CD00FA49E2 /* shortcut_key_change.c */; }; + F76C877B1EC4E88400FA49E2 /* shortcut_keys.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85421EC4E7CD00FA49E2 /* shortcut_keys.c */; }; + F76C877C1EC4E88400FA49E2 /* sign.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85431EC4E7CD00FA49E2 /* sign.c */; }; + F76C877D1EC4E88400FA49E2 /* staff.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85441EC4E7CD00FA49E2 /* staff.c */; }; + F76C877E1EC4E88400FA49E2 /* staff_fire_prompt.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85451EC4E7CD00FA49E2 /* staff_fire_prompt.c */; }; + F76C877F1EC4E88400FA49E2 /* staff_list.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85461EC4E7CD00FA49E2 /* staff_list.c */; }; + F76C87801EC4E88400FA49E2 /* text_input.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85471EC4E7CD00FA49E2 /* text_input.c */; }; + F76C87811EC4E88400FA49E2 /* themes.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85481EC4E7CD00FA49E2 /* themes.c */; }; + F76C87821EC4E88400FA49E2 /* tile_inspector.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85491EC4E7CD00FA49E2 /* tile_inspector.c */; }; + F76C87841EC4E88400FA49E2 /* title_command_editor.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C854B1EC4E7CD00FA49E2 /* title_command_editor.c */; }; + F76C87851EC4E88400FA49E2 /* title_editor.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C854C1EC4E7CD00FA49E2 /* title_editor.c */; }; + F76C87861EC4E88400FA49E2 /* title_exit.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C854D1EC4E7CD00FA49E2 /* title_exit.c */; }; + F76C87871EC4E88400FA49E2 /* title_logo.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C854E1EC4E7CD00FA49E2 /* title_logo.c */; }; + F76C87881EC4E88400FA49E2 /* title_menu.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C854F1EC4E7CD00FA49E2 /* title_menu.c */; }; + F76C87891EC4E88400FA49E2 /* title_options.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85501EC4E7CD00FA49E2 /* title_options.c */; }; + F76C878A1EC4E88400FA49E2 /* title_scenarioselect.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85511EC4E7CD00FA49E2 /* title_scenarioselect.c */; }; + F76C878B1EC4E88400FA49E2 /* tooltip.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85521EC4E7CD00FA49E2 /* tooltip.c */; }; + F76C878D1EC4E88400FA49E2 /* top_toolbar.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85541EC4E7CD00FA49E2 /* top_toolbar.c */; }; + F76C878E1EC4E88400FA49E2 /* track_list.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85551EC4E7CD00FA49E2 /* track_list.c */; }; + F76C878F1EC4E88400FA49E2 /* track_manage.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85561EC4E7CD00FA49E2 /* track_manage.c */; }; + F76C87901EC4E88400FA49E2 /* track_place.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85571EC4E7CD00FA49E2 /* track_place.c */; }; + F76C87911EC4E88400FA49E2 /* view_clipping.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85581EC4E7CD00FA49E2 /* view_clipping.c */; }; + F76C87921EC4E88400FA49E2 /* viewport.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85591EC4E7CD00FA49E2 /* viewport.c */; }; + F76C87931EC4E88400FA49E2 /* water.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C855A1EC4E7CD00FA49E2 /* water.c */; }; + F76C87941EC4E88400FA49E2 /* Balloon.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C855C1EC4E7CD00FA49E2 /* Balloon.cpp */; }; + F76C87951EC4E88400FA49E2 /* banner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C855D1EC4E7CD00FA49E2 /* banner.cpp */; }; + F76C87971EC4E88400FA49E2 /* Climate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C855F1EC4E7CD00FA49E2 /* Climate.cpp */; }; + F76C87991EC4E88400FA49E2 /* Duck.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85611EC4E7CD00FA49E2 /* Duck.cpp */; }; + F76C879A1EC4E88400FA49E2 /* entrance.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85621EC4E7CD00FA49E2 /* entrance.cpp */; }; + F76C879C1EC4E88400FA49E2 /* footpath.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85641EC4E7CD00FA49E2 /* footpath.c */; }; + F76C879E1EC4E88400FA49E2 /* Fountain.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85661EC4E7CD00FA49E2 /* Fountain.cpp */; }; + F76C87A01EC4E88400FA49E2 /* map.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85681EC4E7CD00FA49E2 /* map.c */; }; + F76C87A21EC4E88400FA49E2 /* map_animation.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C856A1EC4E7CD00FA49E2 /* map_animation.c */; }; + F76C87A41EC4E88500FA49E2 /* map_helpers.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C856C1EC4E7CD00FA49E2 /* map_helpers.c */; }; + F76C87A61EC4E88500FA49E2 /* mapgen.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C856E1EC4E7CD00FA49E2 /* mapgen.c */; }; + F76C87A81EC4E88500FA49E2 /* money_effect.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85701EC4E7CD00FA49E2 /* money_effect.c */; }; + F76C87A91EC4E88500FA49E2 /* park.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85711EC4E7CD00FA49E2 /* park.c */; }; + F76C87AB1EC4E88500FA49E2 /* particle.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85731EC4E7CD00FA49E2 /* particle.c */; }; + F76C87AC1EC4E88500FA49E2 /* scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85741EC4E7CD00FA49E2 /* scenery.c */; }; + F76C87AE1EC4E88500FA49E2 /* sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85761EC4E7CD00FA49E2 /* sprite.c */; }; + F76C87B01EC4E88500FA49E2 /* tile_inspector.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C85781EC4E7CD00FA49E2 /* tile_inspector.c */; }; + F76C87B21EC4E88500FA49E2 /* wall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C857A1EC4E7CD00FA49E2 /* wall.cpp */; }; + F76C88781EC5324E00FA49E2 /* AudioChannel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85821EC4E82600FA49E2 /* AudioChannel.cpp */; }; + F76C88791EC5324E00FA49E2 /* AudioContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85831EC4E82600FA49E2 /* AudioContext.cpp */; }; + F76C887A1EC5324E00FA49E2 /* AudioMixer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85861EC4E82600FA49E2 /* AudioMixer.cpp */; }; + F76C887B1EC5324E00FA49E2 /* FileAudioSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85871EC4E82600FA49E2 /* FileAudioSource.cpp */; }; + F76C887C1EC5324E00FA49E2 /* MemoryAudioSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85881EC4E82600FA49E2 /* MemoryAudioSource.cpp */; }; + F76C887D1EC5324E00FA49E2 /* CursorData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C858A1EC4E82600FA49E2 /* CursorData.cpp */; }; + F76C887E1EC5324E00FA49E2 /* CursorRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C858B1EC4E82600FA49E2 /* CursorRepository.cpp */; }; + F76C887F1EC5324E00FA49E2 /* CopyFramebufferShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85911EC4E82600FA49E2 /* CopyFramebufferShader.cpp */; }; + F76C88801EC5324E00FA49E2 /* DrawImageShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85941EC4E82600FA49E2 /* DrawImageShader.cpp */; }; + F76C88811EC5324E00FA49E2 /* DrawLineShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85961EC4E82600FA49E2 /* DrawLineShader.cpp */; }; + F76C88821EC5324E00FA49E2 /* FillRectShader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85981EC4E82600FA49E2 /* FillRectShader.cpp */; }; + F76C88831EC5324E00FA49E2 /* OpenGLAPI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C859B1EC4E82600FA49E2 /* OpenGLAPI.cpp */; }; + F76C88841EC5324E00FA49E2 /* OpenGLDrawingEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C859D1EC4E82600FA49E2 /* OpenGLDrawingEngine.cpp */; }; + F76C88851EC5324E00FA49E2 /* OpenGLFramebuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C859E1EC4E82600FA49E2 /* OpenGLFramebuffer.cpp */; }; + F76C88861EC5324E00FA49E2 /* OpenGLShaderProgram.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85A01EC4E82600FA49E2 /* OpenGLShaderProgram.cpp */; }; + F76C88871EC5324E00FA49E2 /* SwapFramebuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85A21EC4E82600FA49E2 /* SwapFramebuffer.cpp */; }; + F76C88881EC5324E00FA49E2 /* TextureCache.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85A41EC4E82600FA49E2 /* TextureCache.cpp */; }; + F76C88891EC5324E00FA49E2 /* SoftwareDrawingEngine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85A61EC4E82600FA49E2 /* SoftwareDrawingEngine.cpp */; }; + F76C888A1EC5324E00FA49E2 /* TextComposition.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85A91EC4E82600FA49E2 /* TextComposition.cpp */; }; + F76C888B1EC5324E00FA49E2 /* Ui.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85AB1EC4E82600FA49E2 /* Ui.cpp */; }; + F76C888C1EC5324E00FA49E2 /* UiContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85AC1EC4E82600FA49E2 /* UiContext.cpp */; }; + F76C888D1EC5324E00FA49E2 /* UiContext.Linux.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85AE1EC4E82600FA49E2 /* UiContext.Linux.cpp */; }; + F76C888E1EC5324E00FA49E2 /* UiContext.Win32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */; }; + F76C88921EC539A300FA49E2 /* libopenrct2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; }; + F7D7747B1EC5EB6D00BE6EBC /* lay_down_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84951EC4E7CC00FA49E2 /* lay_down_roller_coaster.c */; }; + F7D7747F1EC61E5100BE6EBC /* UiContext.macOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + F76C888F1EC5325700FA49E2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D497D0701C20FD52002BF46A /* Project object */; + proxyType = 1; + remoteGlobalIDString = F76C80991EC4D9FA00FA49E2; + remoteInfo = libopenrct2; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXCopyFilesBuildPhase section */ C64FDA5B1D6D99F400F259B9 /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; @@ -512,37 +646,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 007A05C01CFB2C8B00F419C3 /* NetworkAction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkAction.cpp; sourceTree = ""; usesTabs = 0; }; - 007A05C11CFB2C8B00F419C3 /* NetworkAction.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkAction.h; sourceTree = ""; usesTabs = 0; }; - 007A05C41CFB2C8B00F419C3 /* NetworkConnection.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkConnection.cpp; sourceTree = ""; usesTabs = 0; }; - 007A05C51CFB2C8B00F419C3 /* NetworkConnection.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkConnection.h; sourceTree = ""; usesTabs = 0; }; - 007A05C61CFB2C8B00F419C3 /* NetworkGroup.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkGroup.cpp; sourceTree = ""; usesTabs = 0; }; - 007A05C71CFB2C8B00F419C3 /* NetworkGroup.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkGroup.h; sourceTree = ""; usesTabs = 0; }; - 007A05C81CFB2C8B00F419C3 /* NetworkPacket.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkPacket.cpp; sourceTree = ""; usesTabs = 0; }; - 007A05C91CFB2C8B00F419C3 /* NetworkPacket.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkPacket.h; sourceTree = ""; usesTabs = 0; }; - 007A05CA1CFB2C8B00F419C3 /* NetworkPlayer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkPlayer.cpp; sourceTree = ""; usesTabs = 0; }; - 007A05CB1CFB2C8B00F419C3 /* NetworkPlayer.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkPlayer.h; sourceTree = ""; usesTabs = 0; }; - 007A05CC1CFB2C8B00F419C3 /* NetworkTypes.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkTypes.h; sourceTree = ""; usesTabs = 0; }; - 008BF7271CDAA5C30019A2AD /* track_design_save.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_design_save.c; sourceTree = ""; }; - 008BF7281CDAA5C30019A2AD /* track_design.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_design.c; sourceTree = ""; }; - 008BF7291CDAA5C30019A2AD /* track_design.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = track_design.h; sourceTree = ""; }; - 00EFEE701CF1D80B0035213B /* NetworkKey.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkKey.cpp; sourceTree = ""; usesTabs = 0; }; - 00EFEE711CF1D80B0035213B /* NetworkKey.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkKey.h; sourceTree = ""; usesTabs = 0; }; - 242F470FE91956ACA4078F6A /* Climate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Climate.cpp; sourceTree = ""; }; - 437490DBD74ECF60C3363559 /* Balloon.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Balloon.cpp; sourceTree = ""; }; - 652076301E22EFE7000D0C04 /* Imaging.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Imaging.cpp; sourceTree = ""; }; - 652076311E22EFE7000D0C04 /* Imaging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Imaging.h; sourceTree = ""; }; - 652747EA1E41CE1B000F36FD /* SawyerEncoding.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SawyerEncoding.cpp; path = rct12/SawyerEncoding.cpp; sourceTree = ""; }; - 652747EB1E41CE1B000F36FD /* SawyerEncoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SawyerEncoding.h; path = rct12/SawyerEncoding.h; sourceTree = ""; }; - 656F6C8C1E45BFC200E0F770 /* Version.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Version.cpp; sourceTree = ""; }; - 656F6C8D1E45BFC200E0F770 /* Version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Version.h; sourceTree = ""; }; - 658F3D8F1E44A6C200388550 /* ParkImporter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ParkImporter.cpp; sourceTree = ""; }; - 658F3D901E44A6C200388550 /* ParkImporter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ParkImporter.h; sourceTree = ""; }; - 791166F91D7486EF005912EA /* NetworkServerAdvertiser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkServerAdvertiser.cpp; sourceTree = ""; }; - 791166FA1D7486EF005912EA /* NetworkServerAdvertiser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NetworkServerAdvertiser.h; sourceTree = ""; }; - 8594C05F1D885CF600235E93 /* track_data_old.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_data_old.c; sourceTree = ""; }; - 85B468FB1D96822F000F1DB5 /* paint_helpers.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = paint_helpers.c; sourceTree = ""; }; - A5D1DB5BE280897DCDEBFCED /* Duck.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Duck.cpp; sourceTree = ""; }; C606CCAB1DB4054000FE4015 /* compat.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; lineEnding = 0; path = compat.c; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.c; }; C606CCAC1DB4054000FE4015 /* data.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; lineEnding = 0; path = data.c; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.c; }; C606CCAD1DB4054000FE4015 /* data.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = data.h; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; }; @@ -570,14 +673,6 @@ C606CCD61DB4E1CD00FE4015 /* PaintIntercept.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; lineEnding = 0; path = PaintIntercept.hpp; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.cpp; }; C606CD231DB5120900FE4015 /* TestPaint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TestPaint.cpp; sourceTree = ""; }; C606CD241DB5120900FE4015 /* TestPaint.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = TestPaint.hpp; sourceTree = ""; }; - C612A8971D64825300B634CA /* vehicle_data.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = vehicle_data.c; sourceTree = ""; }; - C612A8981D64825300B634CA /* vehicle_data.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = vehicle_data.h; sourceTree = ""; }; - C6136C541E21893500F3ED2B /* view_clipping.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = view_clipping.c; sourceTree = ""; }; - C61FB7221CF86356004CE991 /* NetworkUser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkUser.cpp; sourceTree = ""; usesTabs = 0; }; - C61FB7231CF86356004CE991 /* NetworkUser.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NetworkUser.h; sourceTree = ""; usesTabs = 0; }; - C647C68F1E1D0CA000C7FB21 /* AudioMixer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioMixer.cpp; sourceTree = ""; }; - C647C6901E1D0CA000C7FB21 /* AudioMixer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioMixer.h; sourceTree = ""; }; - C649B3D31DF04ED2008AC826 /* format_codes.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = format_codes.c; sourceTree = ""; }; C64FDA5D1D6D99F400F259B9 /* PaintTest */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = PaintTest; sourceTree = BUILT_PRODUCTS_DIR; }; C650B2151CCABBDD00B4D91C /* S4Importer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = S4Importer.cpp; sourceTree = ""; usesTabs = 0; }; C650B2171CCABBDD00B4D91C /* tables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tables.cpp; sourceTree = ""; usesTabs = 0; }; @@ -719,298 +814,10 @@ C6E96E331E0408A80076A04F /* zip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zip.h; sourceTree = ""; }; C6E96E341E0408A80076A04F /* zipconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zipconf.h; sourceTree = ""; }; C6E96E351E0408B40076A04F /* libzip.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libzip.dylib; sourceTree = ""; }; - C6EABCC31E719691008C09AB /* UriHandler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UriHandler.cpp; sourceTree = ""; }; - C6FF1BAD1DBCE1A10078DCB5 /* junior_roller_coaster.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = junior_roller_coaster.h; sourceTree = ""; }; D41B73EE1C2101890080A7B9 /* libcurl.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libcurl.tbd; path = usr/lib/libcurl.tbd; sourceTree = SDKROOT; }; D41B741C1C210A7A0080A7B9 /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; }; D41B74721C2125E50080A7B9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = distribution/macos/Assets.xcassets; sourceTree = SOURCE_ROOT; }; - D41FA8631E5EA1E200215624 /* wall.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = wall.cpp; sourceTree = ""; }; - D429FF3F1E36ABB3009342A6 /* tile_inspector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tile_inspector.h; sourceTree = ""; }; - D429FF401E36ABCD009342A6 /* tile_inspector.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tile_inspector.c; sourceTree = ""; }; - D429FF411E36ABCD009342A6 /* tile_inspector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tile_inspector.h; sourceTree = ""; }; - D42E33751E5C27D600D630AF /* Config.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Config.cpp; sourceTree = ""; }; - D42E33761E5C27D600D630AF /* Config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Config.h; sourceTree = ""; }; - D42E33771E5C27D600D630AF /* ConfigEnum.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = ConfigEnum.hpp; sourceTree = ""; }; - D42E33781E5C27D600D630AF /* IniReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IniReader.cpp; sourceTree = ""; }; - D42E33791E5C27D600D630AF /* IniReader.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = IniReader.hpp; sourceTree = ""; }; - D42E337A1E5C27D600D630AF /* IniWriter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IniWriter.cpp; sourceTree = ""; }; - D42E337B1E5C27D600D630AF /* IniWriter.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = IniWriter.hpp; sourceTree = ""; }; - D42E337C1E5C27D600D630AF /* KeyboardShortcuts.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KeyboardShortcuts.cpp; sourceTree = ""; }; - D433A4FA1E4A861F00D9A6DF /* SawyerChunk.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SawyerChunk.cpp; path = rct12/SawyerChunk.cpp; sourceTree = ""; }; - D433A4FB1E4A861F00D9A6DF /* SawyerChunk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SawyerChunk.h; path = rct12/SawyerChunk.h; sourceTree = ""; }; - D433A4FC1E4A861F00D9A6DF /* SawyerChunkReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SawyerChunkReader.cpp; path = rct12/SawyerChunkReader.cpp; sourceTree = ""; }; - D433A4FD1E4A861F00D9A6DF /* SawyerChunkReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SawyerChunkReader.h; path = rct12/SawyerChunkReader.h; sourceTree = ""; }; - D433A4FE1E4A861F00D9A6DF /* SawyerChunkWriter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SawyerChunkWriter.cpp; path = rct12/SawyerChunkWriter.cpp; sourceTree = ""; }; - D433A4FF1E4A861F00D9A6DF /* SawyerChunkWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SawyerChunkWriter.h; path = rct12/SawyerChunkWriter.h; sourceTree = ""; }; - D433A5031E4A862F00D9A6DF /* rct12.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rct12.h; sourceTree = ""; }; - D43407C01D0E14BE00C2B3D4 /* CopyFramebufferShader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CopyFramebufferShader.cpp; sourceTree = ""; }; - D43407C11D0E14BE00C2B3D4 /* CopyFramebufferShader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CopyFramebufferShader.h; sourceTree = ""; }; - D43407C41D0E14BE00C2B3D4 /* DrawImageShader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DrawImageShader.cpp; sourceTree = ""; }; - D43407C51D0E14BE00C2B3D4 /* DrawImageShader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DrawImageShader.h; sourceTree = ""; }; - D43407C61D0E14BE00C2B3D4 /* DrawLineShader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DrawLineShader.cpp; sourceTree = ""; }; - D43407C71D0E14BE00C2B3D4 /* DrawLineShader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DrawLineShader.h; sourceTree = ""; }; - D43407C81D0E14BE00C2B3D4 /* FillRectShader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FillRectShader.cpp; sourceTree = ""; }; - D43407C91D0E14BE00C2B3D4 /* FillRectShader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FillRectShader.h; sourceTree = ""; }; - D43407CA1D0E14BE00C2B3D4 /* GLSLTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GLSLTypes.h; sourceTree = ""; }; - D43407CB1D0E14BE00C2B3D4 /* OpenGLAPI.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLAPI.cpp; sourceTree = ""; }; - D43407CC1D0E14BE00C2B3D4 /* OpenGLAPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OpenGLAPI.h; sourceTree = ""; }; - D43407CD1D0E14BE00C2B3D4 /* OpenGLDrawingEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLDrawingEngine.cpp; sourceTree = ""; }; - D43407CE1D0E14BE00C2B3D4 /* OpenGLFramebuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLFramebuffer.cpp; sourceTree = ""; }; - D43407CF1D0E14BE00C2B3D4 /* OpenGLFramebuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OpenGLFramebuffer.h; sourceTree = ""; }; - D43407D01D0E14BE00C2B3D4 /* OpenGLShaderProgram.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLShaderProgram.cpp; sourceTree = ""; }; - D43407D11D0E14BE00C2B3D4 /* OpenGLShaderProgram.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OpenGLShaderProgram.h; sourceTree = ""; }; - D43407D21D0E14BE00C2B3D4 /* SwapFramebuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SwapFramebuffer.cpp; sourceTree = ""; }; - D43407D31D0E14BE00C2B3D4 /* SwapFramebuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SwapFramebuffer.h; sourceTree = ""; }; - D43407D41D0E14BE00C2B3D4 /* TextureCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextureCache.cpp; sourceTree = ""; }; - D43407D51D0E14BE00C2B3D4 /* TextureCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextureCache.h; sourceTree = ""; }; D43407E11D0E14CE00C2B3D4 /* shaders */ = {isa = PBXFileReference; lastKnownFileType = folder; name = shaders; path = data/shaders; sourceTree = SOURCE_ROOT; }; - D437A26D1DBC2937001CB2CF /* TrackDesignRepository.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TrackDesignRepository.cpp; sourceTree = ""; }; - D437A26E1DBC2937001CB2CF /* TrackDesignRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TrackDesignRepository.h; sourceTree = ""; }; - D437A2701DBC29B0001CB2CF /* FileScanner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FileScanner.cpp; sourceTree = ""; usesTabs = 0; }; - D437A2711DBC29B0001CB2CF /* FileScanner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileScanner.h; sourceTree = ""; usesTabs = 0; }; - D44270D11CC81B3200D84D28 /* audio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = audio.h; sourceTree = ""; }; - D44270D41CC81B3200D84D28 /* cheats.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cheats.c; sourceTree = ""; }; - D44270D51CC81B3200D84D28 /* cheats.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cheats.h; sourceTree = ""; }; - D44270D71CC81B3200D84D28 /* CommandLine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CommandLine.cpp; sourceTree = ""; usesTabs = 0; }; - D44270D81CC81B3200D84D28 /* CommandLine.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = CommandLine.hpp; sourceTree = ""; usesTabs = 0; }; - D44270D91CC81B3200D84D28 /* RootCommands.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RootCommands.cpp; sourceTree = ""; usesTabs = 0; }; - D44270DA1CC81B3200D84D28 /* ScreenshotCommands.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScreenshotCommands.cpp; sourceTree = ""; usesTabs = 0; }; - D44270DB1CC81B3200D84D28 /* SpriteCommands.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SpriteCommands.cpp; sourceTree = ""; usesTabs = 0; }; - D44270DC1CC81B3200D84D28 /* cmdline_sprite.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cmdline_sprite.c; sourceTree = ""; }; - D44270DD1CC81B3200D84D28 /* common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = common.h; sourceTree = ""; }; - D44270E11CC81B3200D84D28 /* Console.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Console.cpp; sourceTree = ""; usesTabs = 0; }; - D44270E21CC81B3200D84D28 /* Console.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Console.hpp; sourceTree = ""; usesTabs = 0; }; - D44270E31CC81B3200D84D28 /* Diagnostics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Diagnostics.cpp; sourceTree = ""; usesTabs = 0; }; - D44270E41CC81B3200D84D28 /* Diagnostics.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Diagnostics.hpp; sourceTree = ""; usesTabs = 0; }; - D44270E51CC81B3200D84D28 /* Exception.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Exception.hpp; sourceTree = ""; usesTabs = 0; }; - D44270E61CC81B3200D84D28 /* FileStream.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = FileStream.hpp; sourceTree = ""; usesTabs = 0; }; - D44270E71CC81B3200D84D28 /* Guard.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Guard.cpp; sourceTree = ""; usesTabs = 0; }; - D44270E81CC81B3200D84D28 /* Guard.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Guard.hpp; sourceTree = ""; usesTabs = 0; }; - D44270EA1CC81B3200D84D28 /* IStream.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = IStream.hpp; sourceTree = ""; usesTabs = 0; }; - D44270EB1CC81B3200D84D28 /* Json.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Json.cpp; sourceTree = ""; usesTabs = 0; }; - D44270EC1CC81B3200D84D28 /* Json.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Json.hpp; sourceTree = ""; usesTabs = 0; }; - D44270EE1CC81B3200D84D28 /* Math.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Math.hpp; sourceTree = ""; usesTabs = 0; }; - D44270EF1CC81B3200D84D28 /* Memory.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Memory.hpp; sourceTree = ""; usesTabs = 0; }; - D44270F01CC81B3200D84D28 /* Path.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Path.cpp; sourceTree = ""; usesTabs = 0; }; - D44270F11CC81B3200D84D28 /* Path.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Path.hpp; sourceTree = ""; usesTabs = 0; }; - D44270F51CC81B3200D84D28 /* String.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = String.cpp; sourceTree = ""; usesTabs = 0; }; - D44270F61CC81B3200D84D28 /* String.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = String.hpp; sourceTree = ""; usesTabs = 0; }; - D44270F71CC81B3200D84D28 /* StringBuilder.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = StringBuilder.hpp; sourceTree = ""; usesTabs = 0; }; - D44270F81CC81B3200D84D28 /* StringReader.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = StringReader.hpp; sourceTree = ""; usesTabs = 0; }; - D44270F91CC81B3200D84D28 /* textinputbuffer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = textinputbuffer.c; sourceTree = ""; }; - D44270FA1CC81B3200D84D28 /* textinputbuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = textinputbuffer.h; sourceTree = ""; }; - D44270FB1CC81B3200D84D28 /* Util.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Util.hpp; sourceTree = ""; usesTabs = 1; }; - D44270FE1CC81B3200D84D28 /* diagnostic.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diagnostic.c; sourceTree = ""; }; - D44270FF1CC81B3200D84D28 /* diagnostic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = diagnostic.h; sourceTree = ""; }; - D44271011CC81B3200D84D28 /* drawing.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = drawing.c; sourceTree = ""; }; - D44271021CC81B3200D84D28 /* drawing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = drawing.h; sourceTree = ""; }; - D44271031CC81B3200D84D28 /* drawing_fast.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = drawing_fast.cpp; sourceTree = ""; usesTabs = 0; }; - D44271041CC81B3200D84D28 /* font.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = font.c; sourceTree = ""; }; - D44271051CC81B3200D84D28 /* font.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = font.h; sourceTree = ""; }; - D44271061CC81B3200D84D28 /* line.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = line.c; sourceTree = ""; }; - D44271081CC81B3200D84D28 /* rect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rect.c; sourceTree = ""; }; - D44271091CC81B3200D84D28 /* scrolling_text.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scrolling_text.c; sourceTree = ""; }; - D442710B1CC81B3200D84D28 /* string.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = string.c; sourceTree = ""; }; - D442710E1CC81B3200D84D28 /* editor.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = editor.c; sourceTree = ""; }; - D442710F1CC81B3200D84D28 /* editor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = editor.h; sourceTree = ""; }; - D44271101CC81B3200D84D28 /* game.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = game.c; sourceTree = ""; }; - D44271111CC81B3200D84D28 /* game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = game.h; sourceTree = ""; }; - D44271161CC81B3200D84D28 /* input.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = input.c; sourceTree = ""; }; - D44271171CC81B3200D84D28 /* input.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = input.h; sourceTree = ""; }; - D44271191CC81B3200D84D28 /* chat.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = chat.c; sourceTree = ""; }; - D442711A1CC81B3200D84D28 /* chat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = chat.h; sourceTree = ""; }; - D442711B1CC81B3200D84D28 /* colour.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = colour.c; sourceTree = ""; }; - D442711C1CC81B3200D84D28 /* colour.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = colour.h; sourceTree = ""; }; - D442711D1CC81B3200D84D28 /* console.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = console.c; sourceTree = ""; }; - D442711E1CC81B3200D84D28 /* console.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = console.h; sourceTree = ""; }; - D442711F1CC81B3200D84D28 /* graph.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = graph.c; sourceTree = ""; }; - D44271201CC81B3200D84D28 /* graph.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = graph.h; sourceTree = ""; }; - D44271211CC81B3200D84D28 /* keyboard_shortcut.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = keyboard_shortcut.c; sourceTree = ""; }; - D44271221CC81B3200D84D28 /* keyboard_shortcut.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = keyboard_shortcut.h; sourceTree = ""; }; - D44271231CC81B3200D84D28 /* screenshot.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = screenshot.c; sourceTree = ""; }; - D44271241CC81B3200D84D28 /* screenshot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = screenshot.h; sourceTree = ""; }; - D44271251CC81B3200D84D28 /* Theme.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Theme.cpp; sourceTree = ""; usesTabs = 0; }; - D44271261CC81B3200D84D28 /* themes.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = themes.h; sourceTree = ""; usesTabs = 0; }; - D44271291CC81B3200D84D28 /* viewport.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = viewport.c; sourceTree = ""; }; - D442712A1CC81B3200D84D28 /* viewport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = viewport.h; sourceTree = ""; }; - D442712B1CC81B3200D84D28 /* viewport_interaction.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = viewport_interaction.c; sourceTree = ""; }; - D442712C1CC81B3200D84D28 /* widget.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = widget.c; sourceTree = ""; }; - D442712D1CC81B3200D84D28 /* widget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = widget.h; sourceTree = ""; }; - D442712E1CC81B3200D84D28 /* window.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = window.c; sourceTree = ""; }; - D442712F1CC81B3200D84D28 /* window.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = window.h; sourceTree = ""; }; - D44271301CC81B3200D84D28 /* intro.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = intro.c; sourceTree = ""; }; - D44271311CC81B3200D84D28 /* intro.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = intro.h; sourceTree = ""; }; - D44271331CC81B3200D84D28 /* convert.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = convert.c; sourceTree = ""; }; - D44271341CC81B3200D84D28 /* currency.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = currency.c; sourceTree = ""; }; - D44271351CC81B3200D84D28 /* currency.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = currency.h; sourceTree = ""; }; - D44271361CC81B3200D84D28 /* date.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = date.c; sourceTree = ""; }; - D44271371CC81B3200D84D28 /* date.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = date.h; sourceTree = ""; }; - D44271381CC81B3200D84D28 /* format_codes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = format_codes.h; sourceTree = ""; }; - D44271391CC81B3200D84D28 /* language.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = language.cpp; sourceTree = ""; }; - D442713A1CC81B3200D84D28 /* language.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = language.h; sourceTree = ""; }; - D442713B1CC81B3200D84D28 /* LanguagePack.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LanguagePack.cpp; sourceTree = ""; usesTabs = 0; }; - D442713C1CC81B3200D84D28 /* LanguagePack.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = LanguagePack.h; sourceTree = ""; usesTabs = 0; }; - D442713D1CC81B3200D84D28 /* localisation.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = localisation.c; sourceTree = ""; }; - D442713E1CC81B3200D84D28 /* localisation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = localisation.h; sourceTree = ""; }; - D442713F1CC81B3200D84D28 /* real_names.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = real_names.c; sourceTree = ""; }; - D44271401CC81B3200D84D28 /* string_ids.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = string_ids.h; sourceTree = ""; }; - D44271411CC81B3200D84D28 /* user.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = user.c; sourceTree = ""; }; - D44271421CC81B3200D84D28 /* user.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = user.h; sourceTree = ""; }; - D44271431CC81B3200D84D28 /* utf8.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = utf8.c; sourceTree = ""; }; - D44271451CC81B3200D84D28 /* award.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = award.c; sourceTree = ""; }; - D44271461CC81B3200D84D28 /* award.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = award.h; sourceTree = ""; }; - D44271471CC81B3200D84D28 /* finance.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = finance.c; sourceTree = ""; }; - D44271481CC81B3200D84D28 /* finance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = finance.h; sourceTree = ""; }; - D44271491CC81B3200D84D28 /* marketing.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = marketing.c; sourceTree = ""; }; - D442714A1CC81B3200D84D28 /* marketing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = marketing.h; sourceTree = ""; }; - D442714B1CC81B3200D84D28 /* news_item.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = news_item.c; sourceTree = ""; }; - D442714C1CC81B3200D84D28 /* news_item.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = news_item.h; sourceTree = ""; }; - D442714D1CC81B3200D84D28 /* research.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = research.c; sourceTree = ""; }; - D442714E1CC81B3200D84D28 /* research.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = research.h; sourceTree = ""; }; - D44271501CC81B3200D84D28 /* http.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = http.cpp; sourceTree = ""; usesTabs = 0; }; - D44271511CC81B3200D84D28 /* http.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = http.h; sourceTree = ""; usesTabs = 0; }; - D44271521CC81B3200D84D28 /* network.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = network.cpp; sourceTree = ""; usesTabs = 1; }; - D44271531CC81B3200D84D28 /* network.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = network.h; sourceTree = ""; usesTabs = 1; }; - D44271541CC81B3200D84D28 /* twitch.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = twitch.cpp; sourceTree = ""; usesTabs = 0; }; - D44271551CC81B3200D84D28 /* twitch.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = twitch.h; sourceTree = ""; usesTabs = 0; }; - D44271561CC81B3200D84D28 /* object_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = object_list.c; sourceTree = ""; }; - D44271581CC81B3200D84D28 /* object.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = object.h; sourceTree = ""; }; - D442715C1CC81B3200D84D28 /* peep.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = peep.c; sourceTree = ""; }; - D442715D1CC81B3200D84D28 /* peep.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = peep.h; sourceTree = ""; }; - D442715E1CC81B3200D84D28 /* staff.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = staff.c; sourceTree = ""; }; - D442715F1CC81B3200D84D28 /* staff.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = staff.h; sourceTree = ""; }; - D44271611CC81B3200D84D28 /* crash.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = crash.cpp; sourceTree = ""; usesTabs = 0; }; - D44271621CC81B3200D84D28 /* crash.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = crash.h; sourceTree = ""; usesTabs = 0; }; - D44271631CC81B3200D84D28 /* linux.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = linux.c; sourceTree = ""; }; - D44271641CC81B3200D84D28 /* macos.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = macos.m; sourceTree = ""; }; - D44271651CC81B3200D84D28 /* platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = platform.h; sourceTree = ""; }; - D44271661CC81B3200D84D28 /* posix.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = posix.c; sourceTree = ""; }; - D44271671CC81B3200D84D28 /* shared.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = shared.c; sourceTree = ""; }; - D44271681CC81B3200D84D28 /* windows.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = windows.c; sourceTree = ""; }; - D44271691CC81B3200D84D28 /* rct1.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rct1.c; sourceTree = ""; }; - D442716A1CC81B3200D84D28 /* rct1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rct1.h; sourceTree = ""; }; - D442716B1CC81B3200D84D28 /* rct2.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rct2.c; sourceTree = ""; }; - D442716C1CC81B3200D84D28 /* rct2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = rct2.h; sourceTree = ""; }; - D442716F1CC81B3200D84D28 /* cable_lift.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cable_lift.c; sourceTree = ""; }; - D44271701CC81B3200D84D28 /* cable_lift.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cable_lift.h; sourceTree = ""; }; - D44271711CC81B3200D84D28 /* ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ride.c; sourceTree = ""; }; - D44271721CC81B3200D84D28 /* ride.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ride.h; sourceTree = ""; }; - D44271731CC81B3200D84D28 /* ride_data.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ride_data.c; sourceTree = ""; }; - D44271741CC81B3200D84D28 /* ride_data.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ride_data.h; sourceTree = ""; }; - D44271751CC81B3200D84D28 /* ride_ratings.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ride_ratings.c; sourceTree = ""; }; - D44271761CC81B3200D84D28 /* ride_ratings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ride_ratings.h; sourceTree = ""; }; - D44271771CC81B3200D84D28 /* station.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = station.c; sourceTree = ""; }; - D44271781CC81B3200D84D28 /* station.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = station.h; sourceTree = ""; }; - D44271791CC81B3200D84D28 /* track.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track.c; sourceTree = ""; }; - D442717A1CC81B3200D84D28 /* track.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = track.h; sourceTree = ""; }; - D442717B1CC81B3200D84D28 /* track_data.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_data.c; sourceTree = ""; }; - D442717C1CC81B3200D84D28 /* track_data.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = track_data.h; sourceTree = ""; }; - D442717D1CC81B3200D84D28 /* track_paint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_paint.c; sourceTree = ""; }; - D442717E1CC81B3200D84D28 /* track_paint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = track_paint.h; sourceTree = ""; }; - D442717F1CC81B3200D84D28 /* vehicle.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = vehicle.c; sourceTree = ""; }; - D44271801CC81B3200D84D28 /* vehicle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = vehicle.h; sourceTree = ""; }; - D44271851CC81B3200D84D28 /* sprites.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sprites.h; sourceTree = ""; }; - D44271891CC81B3200D84D28 /* sawyercoding.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sawyercoding.c; sourceTree = ""; }; - D442718A1CC81B3200D84D28 /* sawyercoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sawyercoding.h; sourceTree = ""; }; - D442718B1CC81B3200D84D28 /* util.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = util.c; sourceTree = ""; }; - D442718C1CC81B3200D84D28 /* util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = util.h; sourceTree = ""; }; - D442718F1CC81B3200D84D28 /* about.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = about.c; sourceTree = ""; }; - D44271901CC81B3200D84D28 /* banner.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = banner.c; sourceTree = ""; }; - D44271911CC81B3200D84D28 /* changelog.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = changelog.c; sourceTree = ""; }; - D44271921CC81B3200D84D28 /* cheats.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cheats.c; sourceTree = ""; }; - D44271931CC81B3200D84D28 /* clear_scenery.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = clear_scenery.c; sourceTree = ""; }; - D44271941CC81B3200D84D28 /* demolish_ride_prompt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = demolish_ride_prompt.c; sourceTree = ""; }; - D44271951CC81B3200D84D28 /* dropdown.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = dropdown.c; sourceTree = ""; }; - D44271961CC81B3200D84D28 /* dropdown.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = dropdown.h; sourceTree = ""; }; - D44271971CC81B3200D84D28 /* editor_bottom_toolbar.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = editor_bottom_toolbar.c; sourceTree = ""; }; - D44271981CC81B3200D84D28 /* editor_inventions_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = editor_inventions_list.c; sourceTree = ""; }; - D44271991CC81B3200D84D28 /* editor_main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = editor_main.c; sourceTree = ""; }; - D442719A1CC81B3200D84D28 /* editor_object_selection.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = editor_object_selection.c; sourceTree = ""; }; - D442719B1CC81B3200D84D28 /* editor_objective_options.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = editor_objective_options.c; sourceTree = ""; }; - D442719C1CC81B3200D84D28 /* editor_scenario_options.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = editor_scenario_options.c; sourceTree = ""; }; - D442719D1CC81B3200D84D28 /* error.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = error.c; sourceTree = ""; }; - D442719E1CC81B3200D84D28 /* error.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = error.h; sourceTree = ""; }; - D442719F1CC81B3200D84D28 /* finances.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = finances.c; sourceTree = ""; }; - D44271A01CC81B3200D84D28 /* footpath.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = footpath.c; sourceTree = ""; }; - D44271A11CC81B3200D84D28 /* game_bottom_toolbar.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = game_bottom_toolbar.c; sourceTree = ""; }; - D44271A21CC81B3200D84D28 /* guest.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = guest.c; sourceTree = ""; }; - D44271A31CC81B3200D84D28 /* guest_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = guest_list.c; sourceTree = ""; }; - D44271A41CC81B3200D84D28 /* install_track.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = install_track.c; sourceTree = ""; }; - D44271A51CC81B3200D84D28 /* land.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = land.c; sourceTree = ""; }; - D44271A61CC81B3200D84D28 /* land_rights.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = land_rights.c; sourceTree = ""; }; - D44271A71CC81B3200D84D28 /* loadsave.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = loadsave.c; sourceTree = ""; }; - D44271A81CC81B3200D84D28 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = ""; }; - D44271A91CC81B3200D84D28 /* map.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = map.c; sourceTree = ""; }; - D44271AA1CC81B3200D84D28 /* map_tooltip.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = map_tooltip.c; sourceTree = ""; }; - D44271AB1CC81B3200D84D28 /* mapgen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mapgen.c; sourceTree = ""; }; - D44271AC1CC81B3200D84D28 /* maze_construction.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = maze_construction.c; sourceTree = ""; }; - D44271AD1CC81B3200D84D28 /* multiplayer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = multiplayer.c; sourceTree = ""; }; - D44271AE1CC81B3200D84D28 /* music_credits.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = music_credits.c; sourceTree = ""; }; - D44271AF1CC81B3200D84D28 /* network_status.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = network_status.c; sourceTree = ""; }; - D44271B01CC81B3200D84D28 /* new_campaign.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = new_campaign.c; sourceTree = ""; }; - D44271B11CC81B3200D84D28 /* new_ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = new_ride.c; sourceTree = ""; }; - D44271B21CC81B3200D84D28 /* news.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = news.c; sourceTree = ""; }; - D44271B31CC81B3200D84D28 /* news_options.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = news_options.c; sourceTree = ""; }; - D44271B41CC81B3200D84D28 /* options.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = options.c; sourceTree = ""; }; - D44271B51CC81B3200D84D28 /* park.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = park.c; sourceTree = ""; }; - D44271B61CC81B3200D84D28 /* player.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = player.c; sourceTree = ""; }; - D44271B71CC81B3200D84D28 /* publisher_credits.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = publisher_credits.c; sourceTree = ""; }; - D44271B81CC81B3200D84D28 /* research.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = research.c; sourceTree = ""; }; - D44271B91CC81B3200D84D28 /* ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ride.c; sourceTree = ""; }; - D44271BA1CC81B3200D84D28 /* ride_construction.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ride_construction.c; sourceTree = ""; }; - D44271BB1CC81B3200D84D28 /* ride_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ride_list.c; sourceTree = ""; }; - D44271BC1CC81B3200D84D28 /* save_prompt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = save_prompt.c; sourceTree = ""; }; - D44271BD1CC81B3200D84D28 /* scenery.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scenery.c; sourceTree = ""; }; - D44271BF1CC81B3200D84D28 /* server_start.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = server_start.c; sourceTree = ""; }; - D44271C01CC81B3200D84D28 /* shortcut_key_change.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = shortcut_key_change.c; sourceTree = ""; }; - D44271C11CC81B3200D84D28 /* shortcut_keys.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = shortcut_keys.c; sourceTree = ""; }; - D44271C21CC81B3200D84D28 /* sign.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sign.c; sourceTree = ""; }; - D44271C31CC81B3200D84D28 /* staff.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = staff.c; sourceTree = ""; }; - D44271C41CC81B3200D84D28 /* staff_fire_prompt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = staff_fire_prompt.c; sourceTree = ""; }; - D44271C51CC81B3200D84D28 /* staff_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = staff_list.c; sourceTree = ""; }; - D44271C61CC81B3200D84D28 /* text_input.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = text_input.c; sourceTree = ""; }; - D44271C71CC81B3200D84D28 /* themes.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = themes.c; sourceTree = ""; }; - D44271C81CC81B3200D84D28 /* tile_inspector.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tile_inspector.c; sourceTree = ""; }; - D44271C91CC81B3200D84D28 /* title_command_editor.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = title_command_editor.c; sourceTree = ""; }; - D44271CA1CC81B3200D84D28 /* title_editor.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = title_editor.c; sourceTree = ""; }; - D44271CB1CC81B3200D84D28 /* title_exit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = title_exit.c; sourceTree = ""; }; - D44271CC1CC81B3200D84D28 /* title_logo.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = title_logo.c; sourceTree = ""; }; - D44271CD1CC81B3200D84D28 /* title_menu.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = title_menu.c; sourceTree = ""; }; - D44271CE1CC81B3200D84D28 /* title_options.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = title_options.c; sourceTree = ""; }; - D44271CF1CC81B3200D84D28 /* title_scenarioselect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = title_scenarioselect.c; sourceTree = ""; }; - D44271D01CC81B3200D84D28 /* tooltip.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tooltip.c; sourceTree = ""; }; - D44271D11CC81B3200D84D28 /* tooltip.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tooltip.h; sourceTree = ""; }; - D44271D21CC81B3200D84D28 /* top_toolbar.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = top_toolbar.c; sourceTree = ""; }; - D44271D31CC81B3200D84D28 /* track_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_list.c; sourceTree = ""; }; - D44271D41CC81B3200D84D28 /* track_manage.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_manage.c; sourceTree = ""; }; - D44271D51CC81B3200D84D28 /* track_place.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = track_place.c; sourceTree = ""; }; - D44271D61CC81B3200D84D28 /* viewport.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = viewport.c; sourceTree = ""; }; - D44271D71CC81B3200D84D28 /* water.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = water.c; sourceTree = ""; }; - D44271DB1CC81B3200D84D28 /* banner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = banner.h; sourceTree = ""; }; - D44271DF1CC81B3200D84D28 /* entrance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = entrance.h; sourceTree = ""; }; - D44271E01CC81B3200D84D28 /* footpath.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = footpath.c; sourceTree = ""; }; - D44271E11CC81B3200D84D28 /* footpath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = footpath.h; sourceTree = ""; }; - D44271E31CC81B3200D84D28 /* Fountain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Fountain.h; sourceTree = ""; }; - D44271E41CC81B3200D84D28 /* map.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = map.c; sourceTree = ""; }; - D44271E51CC81B3200D84D28 /* map.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = map.h; sourceTree = ""; }; - D44271E61CC81B3200D84D28 /* map_animation.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = map_animation.c; sourceTree = ""; }; - D44271E71CC81B3200D84D28 /* map_animation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = map_animation.h; sourceTree = ""; }; - D44271E81CC81B3200D84D28 /* map_helpers.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = map_helpers.c; sourceTree = ""; }; - D44271E91CC81B3200D84D28 /* map_helpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = map_helpers.h; sourceTree = ""; }; - D44271EA1CC81B3200D84D28 /* mapgen.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mapgen.c; sourceTree = ""; }; - D44271EB1CC81B3200D84D28 /* mapgen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mapgen.h; sourceTree = ""; }; - D44271EC1CC81B3200D84D28 /* money_effect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = money_effect.c; sourceTree = ""; }; - D44271ED1CC81B3200D84D28 /* park.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = park.c; sourceTree = ""; }; - D44271EE1CC81B3200D84D28 /* park.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = park.h; sourceTree = ""; }; - D44271EF1CC81B3200D84D28 /* particle.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = particle.c; sourceTree = ""; }; - D44271F01CC81B3200D84D28 /* scenery.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scenery.c; sourceTree = ""; }; - D44271F11CC81B3200D84D28 /* scenery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = scenery.h; sourceTree = ""; }; - D44271F21CC81B3200D84D28 /* sprite.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sprite.c; sourceTree = ""; }; - D44271F31CC81B3200D84D28 /* sprite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sprite.h; sourceTree = ""; }; - D44271F41CC81B3200D84D28 /* water.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = water.h; sourceTree = ""; }; - D4469DAB1DEF84480039A779 /* Fonts.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Fonts.cpp; sourceTree = ""; }; - D4469DAC1DEF84480039A779 /* Fonts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Fonts.h; sourceTree = ""; }; - D44D93AD1E92DD28004D6B77 /* Fountain.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Fountain.cpp; sourceTree = ""; }; D45A38B31CF3006400659A24 /* libcrypto.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libcrypto.dylib; sourceTree = ""; }; D45A38B41CF3006400659A24 /* libfreetype.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libfreetype.dylib; sourceTree = ""; }; D45A38B51CF3006400659A24 /* libjansson.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libjansson.dylib; sourceTree = ""; }; @@ -1162,79 +969,687 @@ D45A39561CF3007A00659A24 /* speex_resampler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speex_resampler.h; sourceTree = ""; }; D45A39571CF3007A00659A24 /* speexdsp_config_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speexdsp_config_types.h; sourceTree = ""; }; D45A39581CF3007A00659A24 /* speexdsp_types.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = speexdsp_types.h; sourceTree = ""; }; - D45B202C1D1E92DB00B67CC7 /* custom_currency.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = custom_currency.c; sourceTree = ""; }; - D460DFD01E01239D007BA2FE /* OpenRCT2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = OpenRCT2.cpp; sourceTree = ""; }; - D460DFD21E0123B5007BA2FE /* OpenRCT2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OpenRCT2.h; sourceTree = ""; }; - D460DFD31E0123D1007BA2FE /* PlatformEnvironment.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PlatformEnvironment.cpp; sourceTree = ""; }; - D460DFD51E0123DB007BA2FE /* PlatformEnvironment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PlatformEnvironment.h; sourceTree = ""; }; - D464B3DE1E4FBC850003F3B5 /* ServerList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ServerList.cpp; sourceTree = ""; }; - D464B3DF1E4FBC850003F3B5 /* ServerList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ServerList.h; sourceTree = ""; }; - D464B3E11E4FBCC00003F3B5 /* audio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = audio.cpp; sourceTree = ""; }; - D464FEBA1D31A65300CBABAC /* IStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IStream.cpp; sourceTree = ""; }; - D464FEBC1D31A66E00CBABAC /* MemoryStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MemoryStream.cpp; sourceTree = ""; }; - D464FEBD1D31A66E00CBABAC /* MemoryStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MemoryStream.h; sourceTree = ""; }; - D464FEBF1D31A68800CBABAC /* Image.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Image.cpp; sourceTree = ""; }; - D464FEC21D31A6AA00CBABAC /* BannerObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BannerObject.cpp; sourceTree = ""; }; - D464FEC31D31A6AA00CBABAC /* BannerObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BannerObject.h; sourceTree = ""; }; - D464FEC41D31A6AA00CBABAC /* EntranceObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EntranceObject.cpp; sourceTree = ""; }; - D464FEC51D31A6AA00CBABAC /* EntranceObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EntranceObject.h; sourceTree = ""; }; - D464FEC61D31A6AA00CBABAC /* FootpathItemObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FootpathItemObject.cpp; sourceTree = ""; }; - D464FEC71D31A6AA00CBABAC /* FootpathItemObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FootpathItemObject.h; sourceTree = ""; }; - D464FEC81D31A6AA00CBABAC /* FootpathObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FootpathObject.cpp; sourceTree = ""; }; - D464FEC91D31A6AA00CBABAC /* FootpathObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FootpathObject.h; sourceTree = ""; }; - D464FECA1D31A6AA00CBABAC /* ImageTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ImageTable.cpp; sourceTree = ""; }; - D464FECB1D31A6AA00CBABAC /* ImageTable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ImageTable.h; sourceTree = ""; }; - D464FECC1D31A6AA00CBABAC /* LargeSceneryObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LargeSceneryObject.cpp; sourceTree = ""; }; - D464FECD1D31A6AA00CBABAC /* LargeSceneryObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LargeSceneryObject.h; sourceTree = ""; }; - D464FECE1D31A6AA00CBABAC /* Object.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Object.cpp; sourceTree = ""; }; - D464FECF1D31A6AA00CBABAC /* Object.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Object.h; sourceTree = ""; }; - D464FED01D31A6AA00CBABAC /* ObjectFactory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ObjectFactory.cpp; sourceTree = ""; }; - D464FED11D31A6AA00CBABAC /* ObjectFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjectFactory.h; sourceTree = ""; }; - D464FED21D31A6AA00CBABAC /* ObjectManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ObjectManager.cpp; sourceTree = ""; }; - D464FED31D31A6AA00CBABAC /* ObjectManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjectManager.h; sourceTree = ""; }; - D464FED41D31A6AA00CBABAC /* ObjectRepository.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ObjectRepository.cpp; sourceTree = ""; }; - D464FED51D31A6AA00CBABAC /* ObjectRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ObjectRepository.h; sourceTree = ""; }; - D464FED61D31A6AA00CBABAC /* RideObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RideObject.cpp; sourceTree = ""; }; - D464FED71D31A6AA00CBABAC /* RideObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RideObject.h; sourceTree = ""; }; - D464FED81D31A6AA00CBABAC /* SceneryGroupObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SceneryGroupObject.cpp; sourceTree = ""; }; - D464FED91D31A6AA00CBABAC /* SceneryGroupObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SceneryGroupObject.h; sourceTree = ""; }; - D464FEDA1D31A6AA00CBABAC /* SceneryObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SceneryObject.h; sourceTree = ""; }; - D464FEDB1D31A6AA00CBABAC /* SmallSceneryObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SmallSceneryObject.cpp; sourceTree = ""; }; - D464FEDC1D31A6AA00CBABAC /* SmallSceneryObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmallSceneryObject.h; sourceTree = ""; }; - D464FEDD1D31A6AA00CBABAC /* StexObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StexObject.cpp; sourceTree = ""; }; - D464FEDE1D31A6AA00CBABAC /* StexObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StexObject.h; sourceTree = ""; }; - D464FEDF1D31A6AA00CBABAC /* StringTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StringTable.cpp; sourceTree = ""; }; - D464FEE01D31A6AA00CBABAC /* StringTable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StringTable.h; sourceTree = ""; }; - D464FEE11D31A6AA00CBABAC /* WallObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WallObject.cpp; sourceTree = ""; }; - D464FEE21D31A6AA00CBABAC /* WallObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WallObject.h; sourceTree = ""; }; - D464FEE31D31A6AA00CBABAC /* WaterObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WaterObject.cpp; sourceTree = ""; }; - D464FEE41D31A6AA00CBABAC /* WaterObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WaterObject.h; sourceTree = ""; }; - D46F2A9D1D39A25A00A36AB7 /* peep_data.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = peep_data.c; sourceTree = ""; }; D47304D41C4FF8250015C0EA /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; D4895D321C23EFDD000CD788 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = distribution/macos/Info.plist; sourceTree = SOURCE_ROOT; }; - D48A8D811D00272F00649DA7 /* TcpSocket.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TcpSocket.cpp; sourceTree = ""; usesTabs = 0; }; - D48A8D821D00272F00649DA7 /* TcpSocket.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = TcpSocket.h; sourceTree = ""; usesTabs = 0; }; - D48ABAB91E71EBD500A3E39C /* entrance.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = entrance.cpp; sourceTree = ""; }; - D49464771E4DB27B00DC690E /* sprite.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = sprite.cpp; sourceTree = ""; }; - D49766811D03B9FE002222CD /* SoftwareDrawingEngine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SoftwareDrawingEngine.cpp; sourceTree = ""; }; - D49766841D03BAA5002222CD /* NewDrawing.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NewDrawing.cpp; sourceTree = ""; usesTabs = 0; }; - D49766851D03BAA5002222CD /* NewDrawing.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = NewDrawing.h; sourceTree = ""; usesTabs = 0; }; - D49766871D03BABB002222CD /* rain.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = rain.cpp; sourceTree = ""; }; - D49766881D03BABB002222CD /* Rain.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = Rain.h; sourceTree = ""; }; - D497668A1D03BAC8002222CD /* IDrawingContext.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; path = IDrawingContext.h; sourceTree = ""; usesTabs = 0; }; - D497668B1D03BAC8002222CD /* IDrawingEngine.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; path = IDrawingEngine.h; sourceTree = ""; usesTabs = 0; }; D497D0781C20FD52002BF46A /* OpenRCT2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenRCT2.app; sourceTree = BUILT_PRODUCTS_DIR; }; D4A8B4B31DB41873007A2F29 /* libpng16.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libpng16.dylib; sourceTree = ""; }; - D4B21B6D1E343AF1004982C7 /* lightfx.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = lightfx.c; sourceTree = ""; }; - D4B21B6E1E343AF1004982C7 /* lightfx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lightfx.h; sourceTree = ""; }; D4EC48E31C2637710024B507 /* g2.dat */ = {isa = PBXFileReference; lastKnownFileType = file; name = g2.dat; path = data/g2.dat; sourceTree = SOURCE_ROOT; }; D4EC48E41C2637710024B507 /* language */ = {isa = PBXFileReference; lastKnownFileType = folder; name = language; path = data/language; sourceTree = SOURCE_ROOT; }; D4EC48E51C2637710024B507 /* title */ = {isa = PBXFileReference; lastKnownFileType = folder; name = title; path = data/title; sourceTree = SOURCE_ROOT; }; - D4F5B5EC1DAD8A4300AB6075 /* CursorData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CursorData.cpp; sourceTree = ""; }; - D4F5B5ED1DAD8A4300AB6075 /* Cursors.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Cursors.cpp; sourceTree = ""; }; - D4F5B5EE1DAD8A4300AB6075 /* Cursors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Cursors.h; sourceTree = ""; }; - DEEAE6E8AC49B6F288E69B40 /* banner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = banner.cpp; sourceTree = ""; }; - EC3C3FED9FA55B65F65D706F /* Climate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Climate.h; sourceTree = ""; }; + F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libopenrct2.a; sourceTree = BUILT_PRODUCTS_DIR; }; + F76C80A01EC4DD9400FA49E2 /* shaders */ = {isa = PBXFileReference; lastKnownFileType = folder; name = shaders; path = data/shaders; sourceTree = ""; }; + F76C82A11EC4E50D00FA49E2 /* resource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = resource.h; path = resources/resource.h; sourceTree = ""; }; + F76C83571EC4E7CC00FA49E2 /* audio.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = audio.cpp; sourceTree = ""; }; + F76C83581EC4E7CC00FA49E2 /* audio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = audio.h; sourceTree = ""; }; + F76C83591EC4E7CC00FA49E2 /* AudioChannel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AudioChannel.h; sourceTree = ""; }; + F76C835A1EC4E7CC00FA49E2 /* AudioContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AudioContext.h; sourceTree = ""; }; + F76C835B1EC4E7CC00FA49E2 /* AudioMixer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AudioMixer.cpp; sourceTree = ""; }; + F76C835C1EC4E7CC00FA49E2 /* AudioMixer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AudioMixer.h; sourceTree = ""; }; + F76C835D1EC4E7CC00FA49E2 /* AudioSource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AudioSource.h; sourceTree = ""; }; + F76C835E1EC4E7CC00FA49E2 /* NullAudioSource.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NullAudioSource.cpp; sourceTree = ""; }; + F76C835F1EC4E7CC00FA49E2 /* cheats.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = cheats.c; sourceTree = ""; }; + F76C83601EC4E7CC00FA49E2 /* cheats.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cheats.h; sourceTree = ""; }; + F76C83631EC4E7CC00FA49E2 /* CommandLine.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CommandLine.cpp; sourceTree = ""; }; + F76C83641EC4E7CC00FA49E2 /* CommandLine.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = CommandLine.hpp; sourceTree = ""; }; + F76C83651EC4E7CC00FA49E2 /* ConvertCommand.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ConvertCommand.cpp; sourceTree = ""; }; + F76C83661EC4E7CC00FA49E2 /* RootCommands.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RootCommands.cpp; sourceTree = ""; }; + F76C83671EC4E7CC00FA49E2 /* ScreenshotCommands.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ScreenshotCommands.cpp; sourceTree = ""; }; + F76C83681EC4E7CC00FA49E2 /* SpriteCommands.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SpriteCommands.cpp; sourceTree = ""; }; + F76C83691EC4E7CC00FA49E2 /* UriHandler.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UriHandler.cpp; sourceTree = ""; }; + F76C836A1EC4E7CC00FA49E2 /* cmdline_sprite.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = cmdline_sprite.c; sourceTree = ""; }; + F76C836B1EC4E7CC00FA49E2 /* cmdline_sprite.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cmdline_sprite.h; sourceTree = ""; }; + F76C836C1EC4E7CC00FA49E2 /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = common.h; sourceTree = ""; }; + F76C836E1EC4E7CC00FA49E2 /* Config.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Config.cpp; sourceTree = ""; }; + F76C836F1EC4E7CC00FA49E2 /* Config.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Config.h; sourceTree = ""; }; + F76C83701EC4E7CC00FA49E2 /* ConfigEnum.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = ConfigEnum.hpp; sourceTree = ""; }; + F76C83711EC4E7CC00FA49E2 /* IniReader.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = IniReader.cpp; sourceTree = ""; }; + F76C83721EC4E7CC00FA49E2 /* IniReader.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = IniReader.hpp; sourceTree = ""; }; + F76C83731EC4E7CC00FA49E2 /* IniWriter.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = IniWriter.cpp; sourceTree = ""; }; + F76C83741EC4E7CC00FA49E2 /* IniWriter.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = IniWriter.hpp; sourceTree = ""; }; + F76C83751EC4E7CC00FA49E2 /* KeyboardShortcuts.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = KeyboardShortcuts.cpp; sourceTree = ""; }; + F76C83761EC4E7CC00FA49E2 /* Context.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Context.cpp; sourceTree = ""; }; + F76C83771EC4E7CC00FA49E2 /* Context.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Context.h; sourceTree = ""; }; + F76C83791EC4E7CC00FA49E2 /* Collections.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Collections.hpp; sourceTree = ""; }; + F76C837A1EC4E7CC00FA49E2 /* Console.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Console.cpp; sourceTree = ""; }; + F76C837B1EC4E7CC00FA49E2 /* Console.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Console.hpp; sourceTree = ""; }; + F76C837C1EC4E7CC00FA49E2 /* Diagnostics.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Diagnostics.cpp; sourceTree = ""; }; + F76C837D1EC4E7CC00FA49E2 /* Diagnostics.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Diagnostics.hpp; sourceTree = ""; }; + F76C837E1EC4E7CC00FA49E2 /* Exception.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Exception.hpp; sourceTree = ""; }; + F76C837F1EC4E7CC00FA49E2 /* File.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = File.cpp; sourceTree = ""; }; + F76C83801EC4E7CC00FA49E2 /* File.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = File.h; sourceTree = ""; }; + F76C83811EC4E7CC00FA49E2 /* FileScanner.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FileScanner.cpp; sourceTree = ""; }; + F76C83821EC4E7CC00FA49E2 /* FileScanner.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FileScanner.h; sourceTree = ""; }; + F76C83831EC4E7CC00FA49E2 /* FileStream.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = FileStream.hpp; sourceTree = ""; }; + F76C83841EC4E7CC00FA49E2 /* Guard.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Guard.cpp; sourceTree = ""; }; + F76C83851EC4E7CC00FA49E2 /* Guard.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Guard.hpp; sourceTree = ""; }; + F76C83861EC4E7CC00FA49E2 /* IStream.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = IStream.cpp; sourceTree = ""; }; + F76C83871EC4E7CC00FA49E2 /* IStream.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = IStream.hpp; sourceTree = ""; }; + F76C83881EC4E7CC00FA49E2 /* Json.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Json.cpp; sourceTree = ""; }; + F76C83891EC4E7CC00FA49E2 /* Json.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Json.hpp; sourceTree = ""; }; + F76C838A1EC4E7CC00FA49E2 /* Math.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Math.hpp; sourceTree = ""; }; + F76C838B1EC4E7CC00FA49E2 /* Memory.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Memory.hpp; sourceTree = ""; }; + F76C838C1EC4E7CC00FA49E2 /* MemoryStream.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = MemoryStream.cpp; sourceTree = ""; }; + F76C838D1EC4E7CC00FA49E2 /* MemoryStream.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MemoryStream.h; sourceTree = ""; }; + F76C838E1EC4E7CC00FA49E2 /* Nullable.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Nullable.hpp; sourceTree = ""; }; + F76C838F1EC4E7CC00FA49E2 /* Path.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Path.cpp; sourceTree = ""; }; + F76C83901EC4E7CC00FA49E2 /* Path.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Path.hpp; sourceTree = ""; }; + F76C83911EC4E7CC00FA49E2 /* Registration.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Registration.hpp; sourceTree = ""; }; + F76C83921EC4E7CC00FA49E2 /* String.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = String.cpp; sourceTree = ""; }; + F76C83931EC4E7CC00FA49E2 /* String.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = String.hpp; sourceTree = ""; }; + F76C83941EC4E7CC00FA49E2 /* StringBuilder.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = StringBuilder.hpp; sourceTree = ""; }; + F76C83951EC4E7CC00FA49E2 /* StringReader.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = StringReader.hpp; sourceTree = ""; }; + F76C83961EC4E7CC00FA49E2 /* textinputbuffer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = textinputbuffer.c; sourceTree = ""; }; + F76C83971EC4E7CC00FA49E2 /* textinputbuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = textinputbuffer.h; sourceTree = ""; }; + F76C83981EC4E7CC00FA49E2 /* Util.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Util.hpp; sourceTree = ""; }; + F76C83991EC4E7CC00FA49E2 /* Zip.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Zip.cpp; sourceTree = ""; }; + F76C839A1EC4E7CC00FA49E2 /* Zip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Zip.h; sourceTree = ""; }; + F76C839B1EC4E7CC00FA49E2 /* diagnostic.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = diagnostic.c; sourceTree = ""; }; + F76C839C1EC4E7CC00FA49E2 /* diagnostic.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = diagnostic.h; sourceTree = ""; }; + F76C839E1EC4E7CC00FA49E2 /* drawing.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = drawing.c; sourceTree = ""; }; + F76C839F1EC4E7CC00FA49E2 /* drawing.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = drawing.h; sourceTree = ""; }; + F76C83A01EC4E7CC00FA49E2 /* drawing_fast.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = drawing_fast.cpp; sourceTree = ""; }; + F76C83A11EC4E7CC00FA49E2 /* font.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = font.c; sourceTree = ""; }; + F76C83A21EC4E7CC00FA49E2 /* font.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = font.h; sourceTree = ""; }; + F76C83A31EC4E7CC00FA49E2 /* IDrawingContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IDrawingContext.h; sourceTree = ""; }; + F76C83A41EC4E7CC00FA49E2 /* IDrawingEngine.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IDrawingEngine.h; sourceTree = ""; }; + F76C83A51EC4E7CC00FA49E2 /* Image.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Image.cpp; sourceTree = ""; }; + F76C83A61EC4E7CC00FA49E2 /* lightfx.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = lightfx.c; sourceTree = ""; }; + F76C83A71EC4E7CC00FA49E2 /* lightfx.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = lightfx.h; sourceTree = ""; }; + F76C83A81EC4E7CC00FA49E2 /* line.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = line.c; sourceTree = ""; }; + F76C83A91EC4E7CC00FA49E2 /* NewDrawing.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NewDrawing.cpp; sourceTree = ""; }; + F76C83AA1EC4E7CC00FA49E2 /* NewDrawing.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NewDrawing.h; sourceTree = ""; }; + F76C83AB1EC4E7CC00FA49E2 /* Rain.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Rain.cpp; sourceTree = ""; }; + F76C83AC1EC4E7CC00FA49E2 /* Rain.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Rain.h; sourceTree = ""; }; + F76C83AD1EC4E7CC00FA49E2 /* rect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = rect.c; sourceTree = ""; }; + F76C83AE1EC4E7CC00FA49E2 /* scrolling_text.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = scrolling_text.c; sourceTree = ""; }; + F76C83AF1EC4E7CC00FA49E2 /* sprite.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = sprite.cpp; sourceTree = ""; }; + F76C83B01EC4E7CC00FA49E2 /* string.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = string.c; sourceTree = ""; }; + F76C83B11EC4E7CC00FA49E2 /* editor.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = editor.c; sourceTree = ""; }; + F76C83B21EC4E7CC00FA49E2 /* editor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = editor.h; sourceTree = ""; }; + F76C83B31EC4E7CC00FA49E2 /* FileClassifier.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FileClassifier.cpp; sourceTree = ""; }; + F76C83B41EC4E7CC00FA49E2 /* FileClassifier.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FileClassifier.h; sourceTree = ""; }; + F76C83B51EC4E7CC00FA49E2 /* game.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = game.c; sourceTree = ""; }; + F76C83B61EC4E7CC00FA49E2 /* game.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = game.h; sourceTree = ""; }; + F76C83B71EC4E7CC00FA49E2 /* Imaging.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Imaging.cpp; sourceTree = ""; }; + F76C83B81EC4E7CC00FA49E2 /* Imaging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Imaging.h; sourceTree = ""; }; + F76C83B91EC4E7CC00FA49E2 /* input.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = input.c; sourceTree = ""; }; + F76C83BA1EC4E7CC00FA49E2 /* input.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = input.h; sourceTree = ""; }; + F76C83BC1EC4E7CC00FA49E2 /* chat.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = chat.c; sourceTree = ""; }; + F76C83BD1EC4E7CC00FA49E2 /* chat.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = chat.h; sourceTree = ""; }; + F76C83BE1EC4E7CC00FA49E2 /* colour.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = colour.c; sourceTree = ""; }; + F76C83BF1EC4E7CC00FA49E2 /* colour.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = colour.h; sourceTree = ""; }; + F76C83C01EC4E7CC00FA49E2 /* console.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = console.c; sourceTree = ""; }; + F76C83C11EC4E7CC00FA49E2 /* console.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = console.h; sourceTree = ""; }; + F76C83C21EC4E7CC00FA49E2 /* Cursors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Cursors.h; sourceTree = ""; }; + F76C83C31EC4E7CC00FA49E2 /* Fonts.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Fonts.cpp; sourceTree = ""; }; + F76C83C41EC4E7CC00FA49E2 /* Fonts.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Fonts.h; sourceTree = ""; }; + F76C83C51EC4E7CC00FA49E2 /* graph.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = graph.c; sourceTree = ""; }; + F76C83C61EC4E7CC00FA49E2 /* graph.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = graph.h; sourceTree = ""; }; + F76C83C71EC4E7CC00FA49E2 /* keyboard_shortcut.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = keyboard_shortcut.c; sourceTree = ""; }; + F76C83C81EC4E7CC00FA49E2 /* keyboard_shortcut.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = keyboard_shortcut.h; sourceTree = ""; }; + F76C83C91EC4E7CC00FA49E2 /* screenshot.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = screenshot.c; sourceTree = ""; }; + F76C83CA1EC4E7CC00FA49E2 /* screenshot.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = screenshot.h; sourceTree = ""; }; + F76C83CB1EC4E7CC00FA49E2 /* Theme.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Theme.cpp; sourceTree = ""; }; + F76C83CC1EC4E7CC00FA49E2 /* themes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = themes.h; sourceTree = ""; }; + F76C83CD1EC4E7CC00FA49E2 /* viewport.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = viewport.c; sourceTree = ""; }; + F76C83CE1EC4E7CC00FA49E2 /* viewport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = viewport.h; sourceTree = ""; }; + F76C83CF1EC4E7CC00FA49E2 /* viewport_interaction.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = viewport_interaction.c; sourceTree = ""; }; + F76C83D01EC4E7CC00FA49E2 /* widget.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = widget.c; sourceTree = ""; }; + F76C83D11EC4E7CC00FA49E2 /* widget.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = widget.h; sourceTree = ""; }; + F76C83D21EC4E7CC00FA49E2 /* window.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = window.c; sourceTree = ""; }; + F76C83D31EC4E7CC00FA49E2 /* window.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = window.h; sourceTree = ""; }; + F76C83D41EC4E7CC00FA49E2 /* intro.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = intro.c; sourceTree = ""; }; + F76C83D51EC4E7CC00FA49E2 /* intro.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = intro.h; sourceTree = ""; }; + F76C83D81EC4E7CC00FA49E2 /* convert.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = convert.c; sourceTree = ""; }; + F76C83D91EC4E7CC00FA49E2 /* currency.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = currency.c; sourceTree = ""; }; + F76C83DA1EC4E7CC00FA49E2 /* currency.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = currency.h; sourceTree = ""; }; + F76C83DB1EC4E7CC00FA49E2 /* date.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = date.c; sourceTree = ""; }; + F76C83DC1EC4E7CC00FA49E2 /* date.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = date.h; sourceTree = ""; }; + F76C83DD1EC4E7CC00FA49E2 /* format_codes.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = format_codes.c; sourceTree = ""; }; + F76C83DE1EC4E7CC00FA49E2 /* format_codes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = format_codes.h; sourceTree = ""; }; + F76C83DF1EC4E7CC00FA49E2 /* language.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = language.cpp; sourceTree = ""; }; + F76C83E01EC4E7CC00FA49E2 /* language.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = language.h; sourceTree = ""; }; + F76C83E11EC4E7CC00FA49E2 /* LanguagePack.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = LanguagePack.cpp; sourceTree = ""; }; + F76C83E21EC4E7CC00FA49E2 /* LanguagePack.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LanguagePack.h; sourceTree = ""; }; + F76C83E31EC4E7CC00FA49E2 /* localisation.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = localisation.c; sourceTree = ""; }; + F76C83E41EC4E7CC00FA49E2 /* localisation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = localisation.h; sourceTree = ""; }; + F76C83E51EC4E7CC00FA49E2 /* real_names.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = real_names.c; sourceTree = ""; }; + F76C83E61EC4E7CC00FA49E2 /* string_ids.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = string_ids.h; sourceTree = ""; }; + F76C83E71EC4E7CC00FA49E2 /* user.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = user.c; sourceTree = ""; }; + F76C83E81EC4E7CC00FA49E2 /* user.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = user.h; sourceTree = ""; }; + F76C83E91EC4E7CC00FA49E2 /* utf8.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = utf8.c; sourceTree = ""; }; + F76C83EB1EC4E7CC00FA49E2 /* award.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = award.c; sourceTree = ""; }; + F76C83EC1EC4E7CC00FA49E2 /* award.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = award.h; sourceTree = ""; }; + F76C83ED1EC4E7CC00FA49E2 /* finance.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = finance.c; sourceTree = ""; }; + F76C83EE1EC4E7CC00FA49E2 /* finance.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = finance.h; sourceTree = ""; }; + F76C83EF1EC4E7CC00FA49E2 /* marketing.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = marketing.c; sourceTree = ""; }; + F76C83F01EC4E7CC00FA49E2 /* marketing.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = marketing.h; sourceTree = ""; }; + F76C83F11EC4E7CC00FA49E2 /* news_item.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = news_item.c; sourceTree = ""; }; + F76C83F21EC4E7CC00FA49E2 /* news_item.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = news_item.h; sourceTree = ""; }; + F76C83F31EC4E7CC00FA49E2 /* research.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = research.c; sourceTree = ""; }; + F76C83F41EC4E7CC00FA49E2 /* research.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = research.h; sourceTree = ""; }; + F76C83F61EC4E7CC00FA49E2 /* http.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = http.cpp; sourceTree = ""; }; + F76C83F71EC4E7CC00FA49E2 /* http.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = http.h; sourceTree = ""; }; + F76C83F81EC4E7CC00FA49E2 /* network.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = network.cpp; sourceTree = ""; }; + F76C83F91EC4E7CC00FA49E2 /* network.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = network.h; sourceTree = ""; }; + F76C83FA1EC4E7CC00FA49E2 /* NetworkAction.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkAction.cpp; sourceTree = ""; }; + F76C83FB1EC4E7CC00FA49E2 /* NetworkAction.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkAction.h; sourceTree = ""; }; + F76C83FC1EC4E7CC00FA49E2 /* NetworkConnection.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkConnection.cpp; sourceTree = ""; }; + F76C83FD1EC4E7CC00FA49E2 /* NetworkConnection.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkConnection.h; sourceTree = ""; }; + F76C83FE1EC4E7CC00FA49E2 /* NetworkGroup.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkGroup.cpp; sourceTree = ""; }; + F76C83FF1EC4E7CC00FA49E2 /* NetworkGroup.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkGroup.h; sourceTree = ""; }; + F76C84001EC4E7CC00FA49E2 /* NetworkKey.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkKey.cpp; sourceTree = ""; }; + F76C84011EC4E7CC00FA49E2 /* NetworkKey.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkKey.h; sourceTree = ""; }; + F76C84021EC4E7CC00FA49E2 /* NetworkPacket.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkPacket.cpp; sourceTree = ""; }; + F76C84031EC4E7CC00FA49E2 /* NetworkPacket.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkPacket.h; sourceTree = ""; }; + F76C84041EC4E7CC00FA49E2 /* NetworkPlayer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkPlayer.cpp; sourceTree = ""; }; + F76C84051EC4E7CC00FA49E2 /* NetworkPlayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkPlayer.h; sourceTree = ""; }; + F76C84061EC4E7CC00FA49E2 /* NetworkServerAdvertiser.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkServerAdvertiser.cpp; sourceTree = ""; }; + F76C84071EC4E7CC00FA49E2 /* NetworkServerAdvertiser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkServerAdvertiser.h; sourceTree = ""; }; + F76C84081EC4E7CC00FA49E2 /* NetworkTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkTypes.h; sourceTree = ""; }; + F76C84091EC4E7CC00FA49E2 /* NetworkUser.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkUser.cpp; sourceTree = ""; }; + F76C840A1EC4E7CC00FA49E2 /* NetworkUser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkUser.h; sourceTree = ""; }; + F76C840B1EC4E7CC00FA49E2 /* ServerList.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ServerList.cpp; sourceTree = ""; }; + F76C840C1EC4E7CC00FA49E2 /* ServerList.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ServerList.h; sourceTree = ""; }; + F76C840D1EC4E7CC00FA49E2 /* TcpSocket.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TcpSocket.cpp; sourceTree = ""; }; + F76C840E1EC4E7CC00FA49E2 /* TcpSocket.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TcpSocket.h; sourceTree = ""; }; + F76C840F1EC4E7CC00FA49E2 /* twitch.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = twitch.cpp; sourceTree = ""; }; + F76C84101EC4E7CC00FA49E2 /* twitch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = twitch.h; sourceTree = ""; }; + F76C84121EC4E7CC00FA49E2 /* BannerObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = BannerObject.cpp; sourceTree = ""; }; + F76C84131EC4E7CC00FA49E2 /* BannerObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BannerObject.h; sourceTree = ""; }; + F76C84141EC4E7CC00FA49E2 /* EntranceObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = EntranceObject.cpp; sourceTree = ""; }; + F76C84151EC4E7CC00FA49E2 /* EntranceObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = EntranceObject.h; sourceTree = ""; }; + F76C84161EC4E7CC00FA49E2 /* FootpathItemObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FootpathItemObject.cpp; sourceTree = ""; }; + F76C84171EC4E7CC00FA49E2 /* FootpathItemObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FootpathItemObject.h; sourceTree = ""; }; + F76C84181EC4E7CC00FA49E2 /* FootpathObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FootpathObject.cpp; sourceTree = ""; }; + F76C84191EC4E7CC00FA49E2 /* FootpathObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FootpathObject.h; sourceTree = ""; }; + F76C841A1EC4E7CC00FA49E2 /* ImageTable.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ImageTable.cpp; sourceTree = ""; }; + F76C841B1EC4E7CC00FA49E2 /* ImageTable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ImageTable.h; sourceTree = ""; }; + F76C841C1EC4E7CC00FA49E2 /* LargeSceneryObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = LargeSceneryObject.cpp; sourceTree = ""; }; + F76C841D1EC4E7CC00FA49E2 /* LargeSceneryObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LargeSceneryObject.h; sourceTree = ""; }; + F76C841E1EC4E7CC00FA49E2 /* Object.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Object.cpp; sourceTree = ""; }; + F76C841F1EC4E7CC00FA49E2 /* Object.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Object.h; sourceTree = ""; }; + F76C84201EC4E7CC00FA49E2 /* ObjectFactory.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ObjectFactory.cpp; sourceTree = ""; }; + F76C84211EC4E7CC00FA49E2 /* ObjectFactory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ObjectFactory.h; sourceTree = ""; }; + F76C84221EC4E7CC00FA49E2 /* ObjectManager.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ObjectManager.cpp; sourceTree = ""; }; + F76C84231EC4E7CC00FA49E2 /* ObjectManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ObjectManager.h; sourceTree = ""; }; + F76C84241EC4E7CC00FA49E2 /* ObjectRepository.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ObjectRepository.cpp; sourceTree = ""; }; + F76C84251EC4E7CC00FA49E2 /* ObjectRepository.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ObjectRepository.h; sourceTree = ""; }; + F76C84261EC4E7CC00FA49E2 /* RideObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RideObject.cpp; sourceTree = ""; }; + F76C84271EC4E7CC00FA49E2 /* RideObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RideObject.h; sourceTree = ""; }; + F76C84281EC4E7CC00FA49E2 /* SceneryGroupObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SceneryGroupObject.cpp; sourceTree = ""; }; + F76C84291EC4E7CC00FA49E2 /* SceneryGroupObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneryGroupObject.h; sourceTree = ""; }; + F76C842A1EC4E7CC00FA49E2 /* SceneryObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneryObject.h; sourceTree = ""; }; + F76C842B1EC4E7CC00FA49E2 /* SmallSceneryObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SmallSceneryObject.cpp; sourceTree = ""; }; + F76C842C1EC4E7CC00FA49E2 /* SmallSceneryObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SmallSceneryObject.h; sourceTree = ""; }; + F76C842D1EC4E7CC00FA49E2 /* StexObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = StexObject.cpp; sourceTree = ""; }; + F76C842E1EC4E7CC00FA49E2 /* StexObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StexObject.h; sourceTree = ""; }; + F76C842F1EC4E7CC00FA49E2 /* StringTable.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = StringTable.cpp; sourceTree = ""; }; + F76C84301EC4E7CC00FA49E2 /* StringTable.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StringTable.h; sourceTree = ""; }; + F76C84311EC4E7CC00FA49E2 /* WallObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WallObject.cpp; sourceTree = ""; }; + F76C84321EC4E7CC00FA49E2 /* WallObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WallObject.h; sourceTree = ""; }; + F76C84331EC4E7CC00FA49E2 /* WaterObject.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = WaterObject.cpp; sourceTree = ""; }; + F76C84341EC4E7CC00FA49E2 /* WaterObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WaterObject.h; sourceTree = ""; }; + F76C84351EC4E7CC00FA49E2 /* object.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = object.h; sourceTree = ""; }; + F76C84361EC4E7CC00FA49E2 /* object_list.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = object_list.c; sourceTree = ""; }; + F76C84371EC4E7CC00FA49E2 /* object_list.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = object_list.h; sourceTree = ""; }; + F76C84381EC4E7CC00FA49E2 /* OpenRCT2.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = OpenRCT2.cpp; sourceTree = ""; }; + F76C84391EC4E7CC00FA49E2 /* OpenRCT2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OpenRCT2.h; sourceTree = ""; }; + F76C843C1EC4E7CC00FA49E2 /* banner.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = banner.c; sourceTree = ""; }; + F76C843D1EC4E7CC00FA49E2 /* entrance.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = entrance.c; sourceTree = ""; }; + F76C843E1EC4E7CC00FA49E2 /* fence.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = fence.c; sourceTree = ""; }; + F76C843F1EC4E7CC00FA49E2 /* map_element.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = map_element.c; sourceTree = ""; }; + F76C84401EC4E7CC00FA49E2 /* map_element.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = map_element.h; sourceTree = ""; }; + F76C84411EC4E7CC00FA49E2 /* path.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = path.c; sourceTree = ""; }; + F76C84421EC4E7CC00FA49E2 /* scenery.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = scenery.c; sourceTree = ""; }; + F76C84431EC4E7CC00FA49E2 /* scenery_multiple.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = scenery_multiple.c; sourceTree = ""; }; + F76C84441EC4E7CC00FA49E2 /* surface.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = surface.c; sourceTree = ""; }; + F76C84451EC4E7CC00FA49E2 /* surface.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = surface.h; sourceTree = ""; }; + F76C84461EC4E7CC00FA49E2 /* paint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = paint.c; sourceTree = ""; }; + F76C84471EC4E7CC00FA49E2 /* paint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = paint.h; sourceTree = ""; }; + F76C84481EC4E7CC00FA49E2 /* paint_helpers.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = paint_helpers.c; sourceTree = ""; }; + F76C844A1EC4E7CC00FA49E2 /* litter.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = litter.c; sourceTree = ""; }; + F76C844B1EC4E7CC00FA49E2 /* misc.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = misc.c; sourceTree = ""; }; + F76C844C1EC4E7CC00FA49E2 /* peep.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = peep.c; sourceTree = ""; }; + F76C844D1EC4E7CC00FA49E2 /* sprite.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = sprite.c; sourceTree = ""; }; + F76C844E1EC4E7CC00FA49E2 /* sprite.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = sprite.h; sourceTree = ""; }; + F76C844F1EC4E7CC00FA49E2 /* supports.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = supports.c; sourceTree = ""; }; + F76C84501EC4E7CC00FA49E2 /* supports.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = supports.h; sourceTree = ""; }; + F76C84511EC4E7CC00FA49E2 /* ParkImporter.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ParkImporter.cpp; sourceTree = ""; }; + F76C84521EC4E7CC00FA49E2 /* ParkImporter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ParkImporter.h; sourceTree = ""; }; + F76C84541EC4E7CC00FA49E2 /* peep.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = peep.c; sourceTree = ""; }; + F76C84551EC4E7CC00FA49E2 /* peep.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = peep.h; sourceTree = ""; }; + F76C84561EC4E7CC00FA49E2 /* peep_data.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = peep_data.c; sourceTree = ""; }; + F76C84571EC4E7CC00FA49E2 /* staff.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = staff.c; sourceTree = ""; }; + F76C84581EC4E7CC00FA49E2 /* staff.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = staff.h; sourceTree = ""; }; + F76C845A1EC4E7CC00FA49E2 /* crash.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = crash.cpp; sourceTree = ""; }; + F76C845B1EC4E7CC00FA49E2 /* crash.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = crash.h; sourceTree = ""; }; + F76C845C1EC4E7CC00FA49E2 /* linux.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = linux.c; sourceTree = ""; }; + F76C845D1EC4E7CC00FA49E2 /* macos.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = macos.m; sourceTree = ""; }; + F76C845E1EC4E7CC00FA49E2 /* platform.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = platform.h; sourceTree = ""; }; + F76C845F1EC4E7CC00FA49E2 /* Platform2.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Platform2.cpp; sourceTree = ""; }; + F76C84601EC4E7CC00FA49E2 /* Platform2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Platform2.h; sourceTree = ""; }; + F76C84611EC4E7CC00FA49E2 /* posix.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = posix.c; sourceTree = ""; }; + F76C84621EC4E7CC00FA49E2 /* shared.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = shared.c; sourceTree = ""; }; + F76C84631EC4E7CC00FA49E2 /* windows.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = windows.c; sourceTree = ""; }; + F76C84641EC4E7CC00FA49E2 /* PlatformEnvironment.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = PlatformEnvironment.cpp; sourceTree = ""; }; + F76C84651EC4E7CC00FA49E2 /* PlatformEnvironment.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PlatformEnvironment.h; sourceTree = ""; }; + F76C84671EC4E7CC00FA49E2 /* S4Importer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = S4Importer.cpp; sourceTree = ""; }; + F76C84681EC4E7CC00FA49E2 /* tables.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = tables.cpp; sourceTree = ""; }; + F76C84691EC4E7CC00FA49E2 /* Tables.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Tables.h; sourceTree = ""; }; + F76C846A1EC4E7CC00FA49E2 /* rct1.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = rct1.c; sourceTree = ""; }; + F76C846B1EC4E7CC00FA49E2 /* rct1.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rct1.h; sourceTree = ""; }; + F76C846D1EC4E7CC00FA49E2 /* SawyerChunk.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SawyerChunk.cpp; sourceTree = ""; }; + F76C846E1EC4E7CC00FA49E2 /* SawyerChunk.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SawyerChunk.h; sourceTree = ""; }; + F76C846F1EC4E7CC00FA49E2 /* SawyerChunkReader.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SawyerChunkReader.cpp; sourceTree = ""; }; + F76C84701EC4E7CC00FA49E2 /* SawyerChunkReader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SawyerChunkReader.h; sourceTree = ""; }; + F76C84711EC4E7CC00FA49E2 /* SawyerChunkWriter.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SawyerChunkWriter.cpp; sourceTree = ""; }; + F76C84721EC4E7CC00FA49E2 /* SawyerChunkWriter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SawyerChunkWriter.h; sourceTree = ""; }; + F76C84731EC4E7CC00FA49E2 /* SawyerEncoding.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SawyerEncoding.cpp; sourceTree = ""; }; + F76C84741EC4E7CC00FA49E2 /* SawyerEncoding.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SawyerEncoding.h; sourceTree = ""; }; + F76C84751EC4E7CC00FA49E2 /* rct12.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rct12.h; sourceTree = ""; }; + F76C84771EC4E7CC00FA49E2 /* addresses.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = addresses.c; sourceTree = ""; }; + F76C84781EC4E7CC00FA49E2 /* addresses.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = addresses.h; sourceTree = ""; }; + F76C84791EC4E7CC00FA49E2 /* hook.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = hook.c; sourceTree = ""; }; + F76C847A1EC4E7CC00FA49E2 /* hook.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = hook.h; sourceTree = ""; }; + F76C847B1EC4E7CC00FA49E2 /* interop.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = interop.c; sourceTree = ""; }; + F76C847C1EC4E7CC00FA49E2 /* interop.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = interop.h; sourceTree = ""; }; + F76C847D1EC4E7CC00FA49E2 /* S6Exporter.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = S6Exporter.cpp; sourceTree = ""; }; + F76C847E1EC4E7CC00FA49E2 /* S6Exporter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = S6Exporter.h; sourceTree = ""; }; + F76C847F1EC4E7CC00FA49E2 /* S6Importer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = S6Importer.cpp; sourceTree = ""; }; + F76C84801EC4E7CC00FA49E2 /* rct2.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = rct2.c; sourceTree = ""; }; + F76C84811EC4E7CC00FA49E2 /* rct2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rct2.h; sourceTree = ""; }; + F76C84841EC4E7CC00FA49E2 /* cable_lift.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = cable_lift.c; sourceTree = ""; }; + F76C84851EC4E7CC00FA49E2 /* cable_lift.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cable_lift.h; sourceTree = ""; }; + F76C84871EC4E7CC00FA49E2 /* air_powered_vertical_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = air_powered_vertical_coaster.c; sourceTree = ""; }; + F76C84881EC4E7CC00FA49E2 /* bobsleigh_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = bobsleigh_coaster.c; sourceTree = ""; }; + F76C84891EC4E7CC00FA49E2 /* bolliger_mabillard_track.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = bolliger_mabillard_track.c; sourceTree = ""; }; + F76C848A1EC4E7CC00FA49E2 /* bolliger_mabillard_track.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = bolliger_mabillard_track.h; sourceTree = ""; }; + F76C848B1EC4E7CC00FA49E2 /* compact_inverted_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = compact_inverted_coaster.c; sourceTree = ""; }; + F76C848C1EC4E7CC00FA49E2 /* corkscrew_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = corkscrew_roller_coaster.c; sourceTree = ""; }; + F76C848D1EC4E7CC00FA49E2 /* flying_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = flying_roller_coaster.c; sourceTree = ""; }; + F76C848E1EC4E7CC00FA49E2 /* giga_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = giga_coaster.c; sourceTree = ""; }; + F76C848F1EC4E7CC00FA49E2 /* heartline_twister_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = heartline_twister_coaster.c; sourceTree = ""; }; + F76C84901EC4E7CC00FA49E2 /* inverted_hairpin_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = inverted_hairpin_coaster.c; sourceTree = ""; }; + F76C84911EC4E7CC00FA49E2 /* inverted_impulse_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = inverted_impulse_coaster.c; sourceTree = ""; }; + F76C84921EC4E7CC00FA49E2 /* inverted_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = inverted_roller_coaster.c; sourceTree = ""; }; + F76C84931EC4E7CC00FA49E2 /* junior_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = junior_roller_coaster.c; sourceTree = ""; }; + F76C84941EC4E7CC00FA49E2 /* junior_roller_coaster.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = junior_roller_coaster.h; sourceTree = ""; }; + F76C84951EC4E7CC00FA49E2 /* lay_down_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = lay_down_roller_coaster.c; sourceTree = ""; }; + F76C84961EC4E7CC00FA49E2 /* lim_launched_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = lim_launched_roller_coaster.c; sourceTree = ""; }; + F76C84971EC4E7CC00FA49E2 /* looping_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = looping_roller_coaster.c; sourceTree = ""; }; + F76C84981EC4E7CC00FA49E2 /* mine_ride.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mine_ride.c; sourceTree = ""; }; + F76C84991EC4E7CC00FA49E2 /* mine_train_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mine_train_coaster.c; sourceTree = ""; }; + F76C849A1EC4E7CC00FA49E2 /* mini_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mini_roller_coaster.c; sourceTree = ""; }; + F76C849B1EC4E7CC00FA49E2 /* mini_suspended_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mini_suspended_coaster.c; sourceTree = ""; }; + F76C849C1EC4E7CC00FA49E2 /* multi_dimension_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = multi_dimension_roller_coaster.c; sourceTree = ""; }; + F76C849D1EC4E7CC00FA49E2 /* reverse_freefall_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = reverse_freefall_coaster.c; sourceTree = ""; }; + F76C849E1EC4E7CC00FA49E2 /* reverser_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = reverser_roller_coaster.c; sourceTree = ""; }; + F76C849F1EC4E7CC00FA49E2 /* side_friction_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = side_friction_roller_coaster.c; sourceTree = ""; }; + F76C84A01EC4E7CC00FA49E2 /* stand_up_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = stand_up_roller_coaster.c; sourceTree = ""; }; + F76C84A11EC4E7CC00FA49E2 /* steeplechase.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = steeplechase.c; sourceTree = ""; }; + F76C84A21EC4E7CC00FA49E2 /* suspended_swinging_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = suspended_swinging_coaster.c; sourceTree = ""; }; + F76C84A31EC4E7CC00FA49E2 /* twister_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = twister_roller_coaster.c; sourceTree = ""; }; + F76C84A41EC4E7CC00FA49E2 /* vertical_drop_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = vertical_drop_roller_coaster.c; sourceTree = ""; }; + F76C84A51EC4E7CC00FA49E2 /* virginia_reel.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = virginia_reel.c; sourceTree = ""; }; + F76C84A61EC4E7CC00FA49E2 /* wild_mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = wild_mouse.c; sourceTree = ""; }; + F76C84A71EC4E7CC00FA49E2 /* wooden_roller_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = wooden_roller_coaster.c; sourceTree = ""; }; + F76C84A81EC4E7CC00FA49E2 /* wooden_wild_mouse.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = wooden_wild_mouse.c; sourceTree = ""; }; + F76C84AA1EC4E7CC00FA49E2 /* car_ride.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = car_ride.c; sourceTree = ""; }; + F76C84AB1EC4E7CC00FA49E2 /* circus_show.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = circus_show.c; sourceTree = ""; }; + F76C84AC1EC4E7CC00FA49E2 /* crooked_house.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = crooked_house.c; sourceTree = ""; }; + F76C84AD1EC4E7CC00FA49E2 /* dodgems.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = dodgems.c; sourceTree = ""; }; + F76C84AE1EC4E7CC00FA49E2 /* ferris_wheel.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ferris_wheel.c; sourceTree = ""; }; + F76C84AF1EC4E7CC00FA49E2 /* flying_saucers.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = flying_saucers.c; sourceTree = ""; }; + F76C84B01EC4E7CC00FA49E2 /* ghost_train.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ghost_train.c; sourceTree = ""; }; + F76C84B11EC4E7CC00FA49E2 /* haunted_house.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = haunted_house.c; sourceTree = ""; }; + F76C84B21EC4E7CC00FA49E2 /* maze.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = maze.c; sourceTree = ""; }; + F76C84B31EC4E7CC00FA49E2 /* merry_go_round.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = merry_go_round.c; sourceTree = ""; }; + F76C84B41EC4E7CC00FA49E2 /* mini_golf.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mini_golf.c; sourceTree = ""; }; + F76C84B51EC4E7CC00FA49E2 /* mini_helicopters.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mini_helicopters.c; sourceTree = ""; }; + F76C84B61EC4E7CC00FA49E2 /* monorail_cycles.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = monorail_cycles.c; sourceTree = ""; }; + F76C84B71EC4E7CC00FA49E2 /* observation_tower.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = observation_tower.c; sourceTree = ""; }; + F76C84B81EC4E7CC00FA49E2 /* space_rings.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = space_rings.c; sourceTree = ""; }; + F76C84B91EC4E7CC00FA49E2 /* spiral_slide.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = spiral_slide.c; sourceTree = ""; }; + F76C84BA1EC4E7CC00FA49E2 /* ride.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ride.c; sourceTree = ""; }; + F76C84BB1EC4E7CC00FA49E2 /* ride.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ride.h; sourceTree = ""; }; + F76C84BC1EC4E7CC00FA49E2 /* ride_data.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ride_data.c; sourceTree = ""; }; + F76C84BD1EC4E7CC00FA49E2 /* ride_data.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ride_data.h; sourceTree = ""; }; + F76C84BE1EC4E7CC00FA49E2 /* ride_ratings.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ride_ratings.c; sourceTree = ""; }; + F76C84BF1EC4E7CC00FA49E2 /* ride_ratings.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ride_ratings.h; sourceTree = ""; }; + F76C84C11EC4E7CC00FA49E2 /* facility.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = facility.c; sourceTree = ""; }; + F76C84C21EC4E7CC00FA49E2 /* misc.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = misc.c; sourceTree = ""; }; + F76C84C31EC4E7CC00FA49E2 /* shop.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = shop.c; sourceTree = ""; }; + F76C84C41EC4E7CC00FA49E2 /* station.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = station.c; sourceTree = ""; }; + F76C84C51EC4E7CC00FA49E2 /* station.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = station.h; sourceTree = ""; }; + F76C84C71EC4E7CC00FA49E2 /* 3d_cinema.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = 3d_cinema.c; sourceTree = ""; }; + F76C84C81EC4E7CC00FA49E2 /* enterprise.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = enterprise.c; sourceTree = ""; }; + F76C84C91EC4E7CC00FA49E2 /* go_karts.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = go_karts.c; sourceTree = ""; }; + F76C84CA1EC4E7CC00FA49E2 /* launched_freefall.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = launched_freefall.c; sourceTree = ""; }; + F76C84CB1EC4E7CC00FA49E2 /* magic_carpet.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = magic_carpet.c; sourceTree = ""; }; + F76C84CC1EC4E7CC00FA49E2 /* motion_simulator.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = motion_simulator.c; sourceTree = ""; }; + F76C84CD1EC4E7CC00FA49E2 /* pirate_ship.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = pirate_ship.c; sourceTree = ""; }; + F76C84CE1EC4E7CC00FA49E2 /* roto_drop.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = roto_drop.c; sourceTree = ""; }; + F76C84CF1EC4E7CC00FA49E2 /* swinging_inverter_ship.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = swinging_inverter_ship.c; sourceTree = ""; }; + F76C84D01EC4E7CC00FA49E2 /* top_spin.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = top_spin.c; sourceTree = ""; }; + F76C84D11EC4E7CC00FA49E2 /* twist.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = twist.c; sourceTree = ""; }; + F76C84D21EC4E7CC00FA49E2 /* track.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track.c; sourceTree = ""; }; + F76C84D31EC4E7CC00FA49E2 /* track.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = track.h; sourceTree = ""; }; + F76C84D41EC4E7CC00FA49E2 /* track_data.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_data.c; sourceTree = ""; }; + F76C84D51EC4E7CC00FA49E2 /* track_data.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = track_data.h; sourceTree = ""; }; + F76C84D61EC4E7CC00FA49E2 /* track_data_old.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_data_old.c; sourceTree = ""; }; + F76C84D71EC4E7CC00FA49E2 /* track_design.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_design.c; sourceTree = ""; }; + F76C84D81EC4E7CC00FA49E2 /* track_design.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = track_design.h; sourceTree = ""; }; + F76C84D91EC4E7CD00FA49E2 /* track_design_save.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_design_save.c; sourceTree = ""; }; + F76C84DA1EC4E7CD00FA49E2 /* track_paint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_paint.c; sourceTree = ""; }; + F76C84DB1EC4E7CD00FA49E2 /* track_paint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = track_paint.h; sourceTree = ""; }; + F76C84DC1EC4E7CD00FA49E2 /* TrackDesignRepository.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TrackDesignRepository.cpp; sourceTree = ""; }; + F76C84DD1EC4E7CD00FA49E2 /* TrackDesignRepository.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TrackDesignRepository.h; sourceTree = ""; }; + F76C84DF1EC4E7CD00FA49E2 /* chairlift.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = chairlift.c; sourceTree = ""; }; + F76C84E01EC4E7CD00FA49E2 /* lift.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = lift.c; sourceTree = ""; }; + F76C84E11EC4E7CD00FA49E2 /* miniature_railway.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = miniature_railway.c; sourceTree = ""; }; + F76C84E21EC4E7CD00FA49E2 /* monorail.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = monorail.c; sourceTree = ""; }; + F76C84E31EC4E7CD00FA49E2 /* suspended_monorail.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = suspended_monorail.c; sourceTree = ""; }; + F76C84E41EC4E7CD00FA49E2 /* vehicle.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = vehicle.c; sourceTree = ""; }; + F76C84E51EC4E7CD00FA49E2 /* vehicle.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = vehicle.h; sourceTree = ""; }; + F76C84E61EC4E7CD00FA49E2 /* vehicle_data.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = vehicle_data.c; sourceTree = ""; }; + F76C84E71EC4E7CD00FA49E2 /* vehicle_data.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = vehicle_data.h; sourceTree = ""; }; + F76C84E81EC4E7CD00FA49E2 /* vehicle_paint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = vehicle_paint.c; sourceTree = ""; }; + F76C84E91EC4E7CD00FA49E2 /* vehicle_paint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = vehicle_paint.h; sourceTree = ""; }; + F76C84EB1EC4E7CD00FA49E2 /* boat_ride.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = boat_ride.c; sourceTree = ""; }; + F76C84EC1EC4E7CD00FA49E2 /* dingy_slide.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = dingy_slide.c; sourceTree = ""; }; + F76C84ED1EC4E7CD00FA49E2 /* log_flume.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = log_flume.c; sourceTree = ""; }; + F76C84EE1EC4E7CD00FA49E2 /* river_rafts.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = river_rafts.c; sourceTree = ""; }; + F76C84EF1EC4E7CD00FA49E2 /* river_rapids.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = river_rapids.c; sourceTree = ""; }; + F76C84F01EC4E7CD00FA49E2 /* splash_boats.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = splash_boats.c; sourceTree = ""; }; + F76C84F11EC4E7CD00FA49E2 /* submarine_ride.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = submarine_ride.c; sourceTree = ""; }; + F76C84F21EC4E7CD00FA49E2 /* water_coaster.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = water_coaster.c; sourceTree = ""; }; + F76C84F41EC4E7CD00FA49E2 /* scenario.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = scenario.c; sourceTree = ""; }; + F76C84F51EC4E7CD00FA49E2 /* scenario.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = scenario.h; sourceTree = ""; }; + F76C84F61EC4E7CD00FA49E2 /* ScenarioRepository.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ScenarioRepository.cpp; sourceTree = ""; }; + F76C84F71EC4E7CD00FA49E2 /* ScenarioRepository.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ScenarioRepository.h; sourceTree = ""; }; + F76C84F81EC4E7CD00FA49E2 /* ScenarioSources.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ScenarioSources.cpp; sourceTree = ""; }; + F76C84F91EC4E7CD00FA49E2 /* ScenarioSources.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ScenarioSources.h; sourceTree = ""; }; + F76C84FA1EC4E7CD00FA49E2 /* sprites.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = sprites.h; sourceTree = ""; }; + F76C84FC1EC4E7CD00FA49E2 /* TitleScreen.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TitleScreen.cpp; sourceTree = ""; }; + F76C84FD1EC4E7CD00FA49E2 /* TitleScreen.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TitleScreen.h; sourceTree = ""; }; + F76C84FE1EC4E7CD00FA49E2 /* TitleSequence.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TitleSequence.cpp; sourceTree = ""; }; + F76C84FF1EC4E7CD00FA49E2 /* TitleSequence.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TitleSequence.h; sourceTree = ""; }; + F76C85001EC4E7CD00FA49E2 /* TitleSequenceManager.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TitleSequenceManager.cpp; sourceTree = ""; }; + F76C85011EC4E7CD00FA49E2 /* TitleSequenceManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TitleSequenceManager.h; sourceTree = ""; }; + F76C85021EC4E7CD00FA49E2 /* TitleSequencePlayer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TitleSequencePlayer.cpp; sourceTree = ""; }; + F76C85031EC4E7CD00FA49E2 /* TitleSequencePlayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TitleSequencePlayer.h; sourceTree = ""; }; + F76C85051EC4E7CD00FA49E2 /* UiContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UiContext.h; sourceTree = ""; }; + F76C85071EC4E7CD00FA49E2 /* sawyercoding.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = sawyercoding.c; sourceTree = ""; }; + F76C85081EC4E7CD00FA49E2 /* sawyercoding.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = sawyercoding.h; sourceTree = ""; }; + F76C85091EC4E7CD00FA49E2 /* util.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = util.c; sourceTree = ""; }; + F76C850A1EC4E7CD00FA49E2 /* util.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = util.h; sourceTree = ""; }; + F76C850B1EC4E7CD00FA49E2 /* Version.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Version.cpp; sourceTree = ""; }; + F76C850C1EC4E7CD00FA49E2 /* Version.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Version.h; sourceTree = ""; }; + F76C850E1EC4E7CD00FA49E2 /* about.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = about.c; sourceTree = ""; }; + F76C850F1EC4E7CD00FA49E2 /* banner.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = banner.c; sourceTree = ""; }; + F76C85101EC4E7CD00FA49E2 /* changelog.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = changelog.c; sourceTree = ""; }; + F76C85111EC4E7CD00FA49E2 /* cheats.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = cheats.c; sourceTree = ""; }; + F76C85121EC4E7CD00FA49E2 /* clear_scenery.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = clear_scenery.c; sourceTree = ""; }; + F76C85131EC4E7CD00FA49E2 /* custom_currency.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = custom_currency.c; sourceTree = ""; }; + F76C85141EC4E7CD00FA49E2 /* debug_paint.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = debug_paint.c; sourceTree = ""; }; + F76C85151EC4E7CD00FA49E2 /* demolish_ride_prompt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = demolish_ride_prompt.c; sourceTree = ""; }; + F76C85161EC4E7CD00FA49E2 /* dropdown.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = dropdown.c; sourceTree = ""; }; + F76C85171EC4E7CD00FA49E2 /* dropdown.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = dropdown.h; sourceTree = ""; }; + F76C85181EC4E7CD00FA49E2 /* editor_bottom_toolbar.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = editor_bottom_toolbar.c; sourceTree = ""; }; + F76C85191EC4E7CD00FA49E2 /* editor_inventions_list.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = editor_inventions_list.c; sourceTree = ""; }; + F76C851A1EC4E7CD00FA49E2 /* editor_main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = editor_main.c; sourceTree = ""; }; + F76C851B1EC4E7CD00FA49E2 /* editor_object_selection.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = editor_object_selection.c; sourceTree = ""; }; + F76C851C1EC4E7CD00FA49E2 /* editor_objective_options.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = editor_objective_options.c; sourceTree = ""; }; + F76C851D1EC4E7CD00FA49E2 /* editor_scenario_options.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = editor_scenario_options.c; sourceTree = ""; }; + F76C851E1EC4E7CD00FA49E2 /* error.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = error.c; sourceTree = ""; }; + F76C851F1EC4E7CD00FA49E2 /* error.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = error.h; sourceTree = ""; }; + F76C85201EC4E7CD00FA49E2 /* finances.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = finances.c; sourceTree = ""; }; + F76C85211EC4E7CD00FA49E2 /* footpath.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = footpath.c; sourceTree = ""; }; + F76C85221EC4E7CD00FA49E2 /* game_bottom_toolbar.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = game_bottom_toolbar.c; sourceTree = ""; }; + F76C85231EC4E7CD00FA49E2 /* guest.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = guest.c; sourceTree = ""; }; + F76C85241EC4E7CD00FA49E2 /* guest_list.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = guest_list.c; sourceTree = ""; }; + F76C85251EC4E7CD00FA49E2 /* install_track.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = install_track.c; sourceTree = ""; }; + F76C85261EC4E7CD00FA49E2 /* land.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = land.c; sourceTree = ""; }; + F76C85271EC4E7CD00FA49E2 /* land_rights.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = land_rights.c; sourceTree = ""; }; + F76C85281EC4E7CD00FA49E2 /* loadsave.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = loadsave.c; sourceTree = ""; }; + F76C85291EC4E7CD00FA49E2 /* main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = ""; }; + F76C852A1EC4E7CD00FA49E2 /* map.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = map.c; sourceTree = ""; }; + F76C852B1EC4E7CD00FA49E2 /* map_tooltip.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = map_tooltip.c; sourceTree = ""; }; + F76C852C1EC4E7CD00FA49E2 /* mapgen.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mapgen.c; sourceTree = ""; }; + F76C852D1EC4E7CD00FA49E2 /* maze_construction.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = maze_construction.c; sourceTree = ""; }; + F76C852E1EC4E7CD00FA49E2 /* multiplayer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = multiplayer.c; sourceTree = ""; }; + F76C852F1EC4E7CD00FA49E2 /* music_credits.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = music_credits.c; sourceTree = ""; }; + F76C85301EC4E7CD00FA49E2 /* network_status.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = network_status.c; sourceTree = ""; }; + F76C85311EC4E7CD00FA49E2 /* new_campaign.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = new_campaign.c; sourceTree = ""; }; + F76C85321EC4E7CD00FA49E2 /* new_ride.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = new_ride.c; sourceTree = ""; }; + F76C85331EC4E7CD00FA49E2 /* news.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = news.c; sourceTree = ""; }; + F76C85341EC4E7CD00FA49E2 /* news_options.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = news_options.c; sourceTree = ""; }; + F76C85351EC4E7CD00FA49E2 /* options.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = options.c; sourceTree = ""; }; + F76C85361EC4E7CD00FA49E2 /* park.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = park.c; sourceTree = ""; }; + F76C85371EC4E7CD00FA49E2 /* player.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = player.c; sourceTree = ""; }; + F76C85381EC4E7CD00FA49E2 /* publisher_credits.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = publisher_credits.c; sourceTree = ""; }; + F76C85391EC4E7CD00FA49E2 /* research.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = research.c; sourceTree = ""; }; + F76C853A1EC4E7CD00FA49E2 /* ride.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ride.c; sourceTree = ""; }; + F76C853B1EC4E7CD00FA49E2 /* ride_construction.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ride_construction.c; sourceTree = ""; }; + F76C853C1EC4E7CD00FA49E2 /* ride_list.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = ride_list.c; sourceTree = ""; }; + F76C853D1EC4E7CD00FA49E2 /* save_prompt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = save_prompt.c; sourceTree = ""; }; + F76C853E1EC4E7CD00FA49E2 /* scenery.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = scenery.c; sourceTree = ""; }; + F76C853F1EC4E7CD00FA49E2 /* server_list.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = server_list.cpp; sourceTree = ""; }; + F76C85401EC4E7CD00FA49E2 /* server_start.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = server_start.c; sourceTree = ""; }; + F76C85411EC4E7CD00FA49E2 /* shortcut_key_change.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = shortcut_key_change.c; sourceTree = ""; }; + F76C85421EC4E7CD00FA49E2 /* shortcut_keys.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = shortcut_keys.c; sourceTree = ""; }; + F76C85431EC4E7CD00FA49E2 /* sign.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = sign.c; sourceTree = ""; }; + F76C85441EC4E7CD00FA49E2 /* staff.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = staff.c; sourceTree = ""; }; + F76C85451EC4E7CD00FA49E2 /* staff_fire_prompt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = staff_fire_prompt.c; sourceTree = ""; }; + F76C85461EC4E7CD00FA49E2 /* staff_list.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = staff_list.c; sourceTree = ""; }; + F76C85471EC4E7CD00FA49E2 /* text_input.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = text_input.c; sourceTree = ""; }; + F76C85481EC4E7CD00FA49E2 /* themes.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = themes.c; sourceTree = ""; }; + F76C85491EC4E7CD00FA49E2 /* tile_inspector.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = tile_inspector.c; sourceTree = ""; }; + F76C854A1EC4E7CD00FA49E2 /* tile_inspector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tile_inspector.h; sourceTree = ""; }; + F76C854B1EC4E7CD00FA49E2 /* title_command_editor.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = title_command_editor.c; sourceTree = ""; }; + F76C854C1EC4E7CD00FA49E2 /* title_editor.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = title_editor.c; sourceTree = ""; }; + F76C854D1EC4E7CD00FA49E2 /* title_exit.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = title_exit.c; sourceTree = ""; }; + F76C854E1EC4E7CD00FA49E2 /* title_logo.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = title_logo.c; sourceTree = ""; }; + F76C854F1EC4E7CD00FA49E2 /* title_menu.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = title_menu.c; sourceTree = ""; }; + F76C85501EC4E7CD00FA49E2 /* title_options.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = title_options.c; sourceTree = ""; }; + F76C85511EC4E7CD00FA49E2 /* title_scenarioselect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = title_scenarioselect.c; sourceTree = ""; }; + F76C85521EC4E7CD00FA49E2 /* tooltip.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = tooltip.c; sourceTree = ""; }; + F76C85531EC4E7CD00FA49E2 /* tooltip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tooltip.h; sourceTree = ""; }; + F76C85541EC4E7CD00FA49E2 /* top_toolbar.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = top_toolbar.c; sourceTree = ""; }; + F76C85551EC4E7CD00FA49E2 /* track_list.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_list.c; sourceTree = ""; }; + F76C85561EC4E7CD00FA49E2 /* track_manage.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_manage.c; sourceTree = ""; }; + F76C85571EC4E7CD00FA49E2 /* track_place.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = track_place.c; sourceTree = ""; }; + F76C85581EC4E7CD00FA49E2 /* view_clipping.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = view_clipping.c; sourceTree = ""; }; + F76C85591EC4E7CD00FA49E2 /* viewport.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = viewport.c; sourceTree = ""; }; + F76C855A1EC4E7CD00FA49E2 /* water.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = water.c; sourceTree = ""; }; + F76C855C1EC4E7CD00FA49E2 /* Balloon.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Balloon.cpp; sourceTree = ""; }; + F76C855D1EC4E7CD00FA49E2 /* banner.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = banner.cpp; sourceTree = ""; }; + F76C855E1EC4E7CD00FA49E2 /* banner.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = banner.h; sourceTree = ""; }; + F76C855F1EC4E7CD00FA49E2 /* Climate.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Climate.cpp; sourceTree = ""; }; + F76C85601EC4E7CD00FA49E2 /* Climate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Climate.h; sourceTree = ""; }; + F76C85611EC4E7CD00FA49E2 /* Duck.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Duck.cpp; sourceTree = ""; }; + F76C85621EC4E7CD00FA49E2 /* entrance.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = entrance.cpp; sourceTree = ""; }; + F76C85631EC4E7CD00FA49E2 /* entrance.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = entrance.h; sourceTree = ""; }; + F76C85641EC4E7CD00FA49E2 /* footpath.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = footpath.c; sourceTree = ""; }; + F76C85651EC4E7CD00FA49E2 /* footpath.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = footpath.h; sourceTree = ""; }; + F76C85661EC4E7CD00FA49E2 /* Fountain.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Fountain.cpp; sourceTree = ""; }; + F76C85671EC4E7CD00FA49E2 /* Fountain.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Fountain.h; sourceTree = ""; }; + F76C85681EC4E7CD00FA49E2 /* map.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = map.c; sourceTree = ""; }; + F76C85691EC4E7CD00FA49E2 /* map.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = map.h; sourceTree = ""; }; + F76C856A1EC4E7CD00FA49E2 /* map_animation.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = map_animation.c; sourceTree = ""; }; + F76C856B1EC4E7CD00FA49E2 /* map_animation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = map_animation.h; sourceTree = ""; }; + F76C856C1EC4E7CD00FA49E2 /* map_helpers.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = map_helpers.c; sourceTree = ""; }; + F76C856D1EC4E7CD00FA49E2 /* map_helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = map_helpers.h; sourceTree = ""; }; + F76C856E1EC4E7CD00FA49E2 /* mapgen.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mapgen.c; sourceTree = ""; }; + F76C856F1EC4E7CD00FA49E2 /* mapgen.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = mapgen.h; sourceTree = ""; }; + F76C85701EC4E7CD00FA49E2 /* money_effect.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = money_effect.c; sourceTree = ""; }; + F76C85711EC4E7CD00FA49E2 /* park.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = park.c; sourceTree = ""; }; + F76C85721EC4E7CD00FA49E2 /* park.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = park.h; sourceTree = ""; }; + F76C85731EC4E7CD00FA49E2 /* particle.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = particle.c; sourceTree = ""; }; + F76C85741EC4E7CD00FA49E2 /* scenery.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = scenery.c; sourceTree = ""; }; + F76C85751EC4E7CD00FA49E2 /* scenery.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = scenery.h; sourceTree = ""; }; + F76C85761EC4E7CD00FA49E2 /* sprite.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = sprite.c; sourceTree = ""; }; + F76C85771EC4E7CD00FA49E2 /* sprite.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = sprite.h; sourceTree = ""; }; + F76C85781EC4E7CD00FA49E2 /* tile_inspector.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = tile_inspector.c; sourceTree = ""; }; + F76C85791EC4E7CD00FA49E2 /* tile_inspector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tile_inspector.h; sourceTree = ""; }; + F76C857A1EC4E7CD00FA49E2 /* wall.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = wall.cpp; sourceTree = ""; }; + F76C857B1EC4E7CD00FA49E2 /* water.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = water.h; sourceTree = ""; }; + F76C857D1EC4E80E00FA49E2 /* Cli.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Cli.cpp; sourceTree = ""; }; + F76C85821EC4E82600FA49E2 /* AudioChannel.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AudioChannel.cpp; sourceTree = ""; }; + F76C85831EC4E82600FA49E2 /* AudioContext.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AudioContext.cpp; sourceTree = ""; }; + F76C85841EC4E82600FA49E2 /* AudioContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AudioContext.h; sourceTree = ""; }; + F76C85851EC4E82600FA49E2 /* AudioFormat.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AudioFormat.h; sourceTree = ""; }; + F76C85861EC4E82600FA49E2 /* AudioMixer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = AudioMixer.cpp; sourceTree = ""; }; + F76C85871EC4E82600FA49E2 /* FileAudioSource.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FileAudioSource.cpp; sourceTree = ""; }; + F76C85881EC4E82600FA49E2 /* MemoryAudioSource.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = MemoryAudioSource.cpp; sourceTree = ""; }; + F76C858A1EC4E82600FA49E2 /* CursorData.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CursorData.cpp; sourceTree = ""; }; + F76C858B1EC4E82600FA49E2 /* CursorRepository.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CursorRepository.cpp; sourceTree = ""; }; + F76C858C1EC4E82600FA49E2 /* CursorRepository.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CursorRepository.h; sourceTree = ""; }; + F76C858F1EC4E82600FA49E2 /* DrawingEngines.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DrawingEngines.h; sourceTree = ""; }; + F76C85911EC4E82600FA49E2 /* CopyFramebufferShader.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CopyFramebufferShader.cpp; sourceTree = ""; }; + F76C85921EC4E82600FA49E2 /* CopyFramebufferShader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CopyFramebufferShader.h; sourceTree = ""; }; + F76C85931EC4E82600FA49E2 /* DrawCommands.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DrawCommands.h; sourceTree = ""; }; + F76C85941EC4E82600FA49E2 /* DrawImageShader.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = DrawImageShader.cpp; sourceTree = ""; }; + F76C85951EC4E82600FA49E2 /* DrawImageShader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DrawImageShader.h; sourceTree = ""; }; + F76C85961EC4E82600FA49E2 /* DrawLineShader.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = DrawLineShader.cpp; sourceTree = ""; }; + F76C85971EC4E82600FA49E2 /* DrawLineShader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DrawLineShader.h; sourceTree = ""; }; + F76C85981EC4E82600FA49E2 /* FillRectShader.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FillRectShader.cpp; sourceTree = ""; }; + F76C85991EC4E82600FA49E2 /* FillRectShader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FillRectShader.h; sourceTree = ""; }; + F76C859A1EC4E82600FA49E2 /* GLSLTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GLSLTypes.h; sourceTree = ""; }; + F76C859B1EC4E82600FA49E2 /* OpenGLAPI.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLAPI.cpp; sourceTree = ""; }; + F76C859C1EC4E82600FA49E2 /* OpenGLAPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OpenGLAPI.h; sourceTree = ""; }; + F76C859D1EC4E82600FA49E2 /* OpenGLDrawingEngine.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLDrawingEngine.cpp; sourceTree = ""; }; + F76C859E1EC4E82600FA49E2 /* OpenGLFramebuffer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLFramebuffer.cpp; sourceTree = ""; }; + F76C859F1EC4E82600FA49E2 /* OpenGLFramebuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OpenGLFramebuffer.h; sourceTree = ""; }; + F76C85A01EC4E82600FA49E2 /* OpenGLShaderProgram.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = OpenGLShaderProgram.cpp; sourceTree = ""; }; + F76C85A11EC4E82600FA49E2 /* OpenGLShaderProgram.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OpenGLShaderProgram.h; sourceTree = ""; }; + F76C85A21EC4E82600FA49E2 /* SwapFramebuffer.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SwapFramebuffer.cpp; sourceTree = ""; }; + F76C85A31EC4E82600FA49E2 /* SwapFramebuffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwapFramebuffer.h; sourceTree = ""; }; + F76C85A41EC4E82600FA49E2 /* TextureCache.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TextureCache.cpp; sourceTree = ""; }; + F76C85A51EC4E82600FA49E2 /* TextureCache.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TextureCache.h; sourceTree = ""; }; + F76C85A61EC4E82600FA49E2 /* SoftwareDrawingEngine.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = SoftwareDrawingEngine.cpp; sourceTree = ""; }; + F76C85A81EC4E82600FA49E2 /* SDLException.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDLException.h; sourceTree = ""; }; + F76C85A91EC4E82600FA49E2 /* TextComposition.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TextComposition.cpp; sourceTree = ""; }; + F76C85AA1EC4E82600FA49E2 /* TextComposition.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TextComposition.h; sourceTree = ""; }; + F76C85AB1EC4E82600FA49E2 /* Ui.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Ui.cpp; sourceTree = ""; }; + F76C85AC1EC4E82600FA49E2 /* UiContext.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.cpp; sourceTree = ""; }; + F76C85AD1EC4E82600FA49E2 /* UiContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UiContext.h; sourceTree = ""; }; + F76C85AE1EC4E82600FA49E2 /* UiContext.Linux.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Linux.cpp; sourceTree = ""; }; + F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Win32.cpp; sourceTree = ""; }; + F76C87B61EC4E91500FA49E2 /* 7.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 7.png; sourceTree = ""; }; + F76C87B71EC4E91500FA49E2 /* empty.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = empty.png; sourceTree = ""; }; + F76C87B91EC4E91500FA49E2 /* 29.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 29.png; sourceTree = ""; }; + F76C87BA1EC4E91500FA49E2 /* 30.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 30.png; sourceTree = ""; }; + F76C87BB1EC4E91500FA49E2 /* 31.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 31.png; sourceTree = ""; }; + F76C87BC1EC4E91500FA49E2 /* 32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 32.png; sourceTree = ""; }; + F76C87BD1EC4E91500FA49E2 /* 58.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 58.png; sourceTree = ""; }; + F76C87BE1EC4E91500FA49E2 /* cheats.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = cheats.png; sourceTree = ""; }; + F76C87BF1EC4E91500FA49E2 /* copy.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = copy.png; sourceTree = ""; }; + F76C87C01EC4E91500FA49E2 /* fast_forward.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = fast_forward.png; sourceTree = ""; }; + F76C87C11EC4E91500FA49E2 /* game_speed_indicator.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = game_speed_indicator.png; sourceTree = ""; }; + F76C87C21EC4E91500FA49E2 /* game_speed_indicator_double.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = game_speed_indicator_double.png; sourceTree = ""; }; + F76C87C31EC4E91500FA49E2 /* large_scenery.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = large_scenery.png; sourceTree = ""; }; + F76C87C41EC4E91500FA49E2 /* map_gen_land.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map_gen_land.png; sourceTree = ""; }; + F76C87C51EC4E91500FA49E2 /* map_gen_noise.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map_gen_noise.png; sourceTree = ""; }; + F76C87C61EC4E91500FA49E2 /* map_gen_trees.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map_gen_trees.png; sourceTree = ""; }; + F76C87C71EC4E91500FA49E2 /* multiplayer.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = multiplayer.png; sourceTree = ""; }; + F76C87C81EC4E91500FA49E2 /* mute.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mute.png; sourceTree = ""; }; + F76C87C91EC4E91500FA49E2 /* mute_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mute_pressed.png; sourceTree = ""; }; + F76C87CA1EC4E91500FA49E2 /* paste.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = paste.png; sourceTree = ""; }; + F76C87CB1EC4E91500FA49E2 /* paths.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = paths.png; sourceTree = ""; }; + F76C87CC1EC4E91500FA49E2 /* rct1_close_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_off.png; sourceTree = ""; }; + F76C87CD1EC4E91500FA49E2 /* rct1_close_off_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_off_pressed.png; sourceTree = ""; }; + F76C87CE1EC4E91500FA49E2 /* rct1_close_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_on.png; sourceTree = ""; }; + F76C87CF1EC4E91500FA49E2 /* rct1_close_on_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_on_pressed.png; sourceTree = ""; }; + F76C87D01EC4E91500FA49E2 /* rct1_open_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_off.png; sourceTree = ""; }; + F76C87D11EC4E91500FA49E2 /* rct1_open_off_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_off_pressed.png; sourceTree = ""; }; + F76C87D21EC4E91500FA49E2 /* rct1_open_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_on.png; sourceTree = ""; }; + F76C87D31EC4E91500FA49E2 /* rct1_open_on_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_on_pressed.png; sourceTree = ""; }; + F76C87D41EC4E91500FA49E2 /* rct1_test_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_off.png; sourceTree = ""; }; + F76C87D51EC4E91500FA49E2 /* rct1_test_off_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_off_pressed.png; sourceTree = ""; }; + F76C87D61EC4E91500FA49E2 /* rct1_test_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_on.png; sourceTree = ""; }; + F76C87D71EC4E91500FA49E2 /* rct1_test_on_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_on_pressed.png; sourceTree = ""; }; + F76C87D81EC4E91500FA49E2 /* server_password.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = server_password.png; sourceTree = ""; }; + F76C87D91EC4E91500FA49E2 /* small_scenery.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = small_scenery.png; sourceTree = ""; }; + F76C87DA1EC4E91500FA49E2 /* sort.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sort.png; sourceTree = ""; }; + F76C87DB1EC4E91500FA49E2 /* tab_disabled.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tab_disabled.png; sourceTree = ""; }; + F76C87DC1EC4E91500FA49E2 /* twitch.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = twitch.png; sourceTree = ""; }; + F76C87DD1EC4E91500FA49E2 /* unmute.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = unmute.png; sourceTree = ""; }; + F76C87DE1EC4E91500FA49E2 /* unmute_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = unmute_pressed.png; sourceTree = ""; }; + F76C87DF1EC4E91500FA49E2 /* zoom_in.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_in.png; sourceTree = ""; }; + F76C87E01EC4E91500FA49E2 /* zoom_in_background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_in_background.png; sourceTree = ""; }; + F76C87E11EC4E91500FA49E2 /* zoom_out.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_out.png; sourceTree = ""; }; + F76C87E21EC4E91500FA49E2 /* zoom_out_background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_out_background.png; sourceTree = ""; }; + F76C87E31EC4E91500FA49E2 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = ""; }; + F76C87E41EC4E91500FA49E2 /* logo_text.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo_text.png; sourceTree = ""; }; + F76C87E51EC4E91500FA49E2 /* sprites.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = sprites.json; sourceTree = ""; }; + F76C87E81EC4E91500FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; + F76C87E91EC4E91500FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; + F76C87EB1EC4E91500FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; + F76C87EC1EC4E91500FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; + F76C87EE1EC4E91500FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; + F76C87EF1EC4E91500FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; + F76C87F01EC4E91500FA49E2 /* flat_to_steep_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_1.png; sourceTree = ""; }; + F76C87F11EC4E91500FA49E2 /* flat_to_steep_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_2_1.png; sourceTree = ""; }; + F76C87F21EC4E91500FA49E2 /* flat_to_steep_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_2_2.png; sourceTree = ""; }; + F76C87F31EC4E91500FA49E2 /* flat_to_steep_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_3_1.png; sourceTree = ""; }; + F76C87F41EC4E91500FA49E2 /* flat_to_steep_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_3_2.png; sourceTree = ""; }; + F76C87F51EC4E91500FA49E2 /* flat_to_steep_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_4.png; sourceTree = ""; }; + F76C87F61EC4E91500FA49E2 /* flat_to_steep_diagonal_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_1.png; sourceTree = ""; }; + F76C87F71EC4E91500FA49E2 /* flat_to_steep_diagonal_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_2.png; sourceTree = ""; }; + F76C87F81EC4E91500FA49E2 /* flat_to_steep_diagonal_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_3.png; sourceTree = ""; }; + F76C87F91EC4E91500FA49E2 /* flat_to_steep_diagonal_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_4.png; sourceTree = ""; }; + F76C87FA1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_1.png; sourceTree = ""; }; + F76C87FB1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_2.png; sourceTree = ""; }; + F76C87FC1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_3.png; sourceTree = ""; }; + F76C87FD1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_4.png; sourceTree = ""; }; + F76C87FE1EC4E91500FA49E2 /* flat_to_steep_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_1.png; sourceTree = ""; }; + F76C87FF1EC4E91500FA49E2 /* flat_to_steep_lift_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_2_1.png; sourceTree = ""; }; + F76C88001EC4E91500FA49E2 /* flat_to_steep_lift_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_2_2.png; sourceTree = ""; }; + F76C88011EC4E91500FA49E2 /* flat_to_steep_lift_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_3_1.png; sourceTree = ""; }; + F76C88021EC4E91500FA49E2 /* flat_to_steep_lift_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_3_2.png; sourceTree = ""; }; + F76C88031EC4E91500FA49E2 /* flat_to_steep_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_4.png; sourceTree = ""; }; + F76C88041EC4E91500FA49E2 /* steep_to_flat_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_1.png; sourceTree = ""; }; + F76C88051EC4E91600FA49E2 /* steep_to_flat_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_2_1.png; sourceTree = ""; }; + F76C88061EC4E91600FA49E2 /* steep_to_flat_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_2_2.png; sourceTree = ""; }; + F76C88071EC4E91600FA49E2 /* steep_to_flat_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_3_1.png; sourceTree = ""; }; + F76C88081EC4E91600FA49E2 /* steep_to_flat_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_3_2.png; sourceTree = ""; }; + F76C88091EC4E91600FA49E2 /* steep_to_flat_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_4.png; sourceTree = ""; }; + F76C880A1EC4E91600FA49E2 /* steep_to_flat_diagonal_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_1.png; sourceTree = ""; }; + F76C880B1EC4E91600FA49E2 /* steep_to_flat_diagonal_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_2.png; sourceTree = ""; }; + F76C880C1EC4E91600FA49E2 /* steep_to_flat_diagonal_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_3.png; sourceTree = ""; }; + F76C880D1EC4E91600FA49E2 /* steep_to_flat_diagonal_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_4.png; sourceTree = ""; }; + F76C880E1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_1.png; sourceTree = ""; }; + F76C880F1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_2.png; sourceTree = ""; }; + F76C88101EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_3.png; sourceTree = ""; }; + F76C88111EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_4.png; sourceTree = ""; }; + F76C88121EC4E91600FA49E2 /* steep_to_flat_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_1.png; sourceTree = ""; }; + F76C88131EC4E91600FA49E2 /* steep_to_flat_lift_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_2_1.png; sourceTree = ""; }; + F76C88141EC4E91600FA49E2 /* steep_to_flat_lift_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_2_2.png; sourceTree = ""; }; + F76C88151EC4E91600FA49E2 /* steep_to_flat_lift_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_3_1.png; sourceTree = ""; }; + F76C88161EC4E91600FA49E2 /* steep_to_flat_lift_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_3_2.png; sourceTree = ""; }; + F76C88171EC4E91600FA49E2 /* steep_to_flat_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_4.png; sourceTree = ""; }; + F76C88191EC4E91600FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; + F76C881A1EC4E91600FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; + F76C881C1EC4E91600FA49E2 /* icon.ico */ = {isa = PBXFileReference; lastKnownFileType = image.ico; path = icon.ico; sourceTree = ""; }; + F76C881D1EC4E91600FA49E2 /* icon_flag.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = icon_flag.svg; sourceTree = ""; }; + F76C881E1EC4E91600FA49E2 /* icon_noflag.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = icon_noflag.svg; sourceTree = ""; }; + F76C881F1EC4E91600FA49E2 /* icon_x1024.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x1024.png; sourceTree = ""; }; + F76C88201EC4E91600FA49E2 /* icon_x128.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x128.png; sourceTree = ""; }; + F76C88211EC4E91600FA49E2 /* icon_x16.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x16.png; sourceTree = ""; }; + F76C88221EC4E91600FA49E2 /* icon_x2048.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x2048.png; sourceTree = ""; }; + F76C88231EC4E91600FA49E2 /* icon_x256.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x256.png; sourceTree = ""; }; + F76C88241EC4E91600FA49E2 /* icon_x32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x32.png; sourceTree = ""; }; + F76C88251EC4E91600FA49E2 /* icon_x4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x4.png; sourceTree = ""; }; + F76C88261EC4E91600FA49E2 /* icon_x40.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x40.png; sourceTree = ""; }; + F76C88271EC4E91600FA49E2 /* icon_x512.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x512.png; sourceTree = ""; }; + F76C88281EC4E91600FA49E2 /* icon_x64.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x64.png; sourceTree = ""; }; + F76C88291EC4E91600FA49E2 /* icon_x8.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x8.png; sourceTree = ""; }; + F76C882A1EC4E91600FA49E2 /* makeico.linq */ = {isa = PBXFileReference; lastKnownFileType = text; path = makeico.linq; sourceTree = ""; }; + F76C882B1EC4E91600FA49E2 /* OpenRCT2.rc */ = {isa = PBXFileReference; lastKnownFileType = text; path = OpenRCT2.rc; sourceTree = ""; }; + F76C882C1EC4E91600FA49E2 /* resource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = resource.h; sourceTree = ""; }; + F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -1249,6 +1664,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + F76C88921EC539A300FA49E2 /* libopenrct2.a in Frameworks */, D47304D51C4FF8250015C0EA /* libz.tbd in Frameworks */, D41B73EF1C2101890080A7B9 /* libcurl.tbd in Frameworks */, D41B741D1C210A7A0080A7B9 /* libiconv.tbd in Frameworks */, @@ -1265,21 +1681,6 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 652747E91E41CDFE000F36FD /* rct12 */ = { - isa = PBXGroup; - children = ( - D433A4FA1E4A861F00D9A6DF /* SawyerChunk.cpp */, - D433A4FB1E4A861F00D9A6DF /* SawyerChunk.h */, - D433A4FC1E4A861F00D9A6DF /* SawyerChunkReader.cpp */, - D433A4FD1E4A861F00D9A6DF /* SawyerChunkReader.h */, - D433A4FE1E4A861F00D9A6DF /* SawyerChunkWriter.cpp */, - D433A4FF1E4A861F00D9A6DF /* SawyerChunkWriter.h */, - 652747EA1E41CE1B000F36FD /* SawyerEncoding.cpp */, - 652747EB1E41CE1B000F36FD /* SawyerEncoding.h */, - ); - name = rct12; - sourceTree = ""; - }; 8546F74A1D7E1D220004004C /* Tests */ = { isa = PBXGroup; children = ( @@ -1541,62 +1942,10 @@ D41B72431C21015A0080A7B9 /* Sources */ = { isa = PBXGroup; children = ( - D44270CF1CC81B3200D84D28 /* audio */, - D44270D61CC81B3200D84D28 /* cmdline */, - D42E33741E5C27D600D630AF /* config */, - D44270E01CC81B3200D84D28 /* core */, - D44271001CC81B3200D84D28 /* drawing */, - D44271181CC81B3200D84D28 /* interface */, - D44271321CC81B3200D84D28 /* localisation */, - D44271441CC81B3200D84D28 /* management */, - D442714F1CC81B3200D84D28 /* network */, - D464FEC11D31A6AA00CBABAC /* object */, - C686F8961CDBC37E009F9BFC /* paint */, - D442715B1CC81B3200D84D28 /* peep */, - D44271601CC81B3200D84D28 /* platform */, - C650B2141CCABBDD00B4D91C /* rct1 */, - C6B5A7CF1CDFE4CB00C9C006 /* rct2 */, - 652747E91E41CDFE000F36FD /* rct12 */, - D442716E1CC81B3200D84D28 /* ride */, - C6E96E1C1E04070E0076A04F /* scenario */, - C6E96E261E04072F0076A04F /* title */, - D44271881CC81B3200D84D28 /* util */, - D442718E1CC81B3200D84D28 /* windows */, - D44271D81CC81B3200D84D28 /* world */, - D44270D41CC81B3200D84D28 /* cheats.c */, - D44270D51CC81B3200D84D28 /* cheats.h */, - D44270DC1CC81B3200D84D28 /* cmdline_sprite.c */, - D44270DD1CC81B3200D84D28 /* common.h */, - D44270FE1CC81B3200D84D28 /* diagnostic.c */, - D44270FF1CC81B3200D84D28 /* diagnostic.h */, - D442710E1CC81B3200D84D28 /* editor.c */, - D442710F1CC81B3200D84D28 /* editor.h */, - C6CABA801E1466D600D33A6B /* FileClassifier.cpp */, - C6CABA811E1466D600D33A6B /* FileClassifier.h */, - D44271101CC81B3200D84D28 /* game.c */, - D44271111CC81B3200D84D28 /* game.h */, - 652076301E22EFE7000D0C04 /* Imaging.cpp */, - 652076311E22EFE7000D0C04 /* Imaging.h */, - D44271161CC81B3200D84D28 /* input.c */, - D44271171CC81B3200D84D28 /* input.h */, - D44271301CC81B3200D84D28 /* intro.c */, - D44271311CC81B3200D84D28 /* intro.h */, - D44271561CC81B3200D84D28 /* object_list.c */, - D44271581CC81B3200D84D28 /* object.h */, - D460DFD01E01239D007BA2FE /* OpenRCT2.cpp */, - D460DFD21E0123B5007BA2FE /* OpenRCT2.h */, - 658F3D8F1E44A6C200388550 /* ParkImporter.cpp */, - 658F3D901E44A6C200388550 /* ParkImporter.h */, - D460DFD31E0123D1007BA2FE /* PlatformEnvironment.cpp */, - D460DFD51E0123DB007BA2FE /* PlatformEnvironment.h */, - D44271691CC81B3200D84D28 /* rct1.c */, - D442716A1CC81B3200D84D28 /* rct1.h */, - D442716B1CC81B3200D84D28 /* rct2.c */, - D442716C1CC81B3200D84D28 /* rct2.h */, - D433A5031E4A862F00D9A6DF /* rct12.h */, - D44271851CC81B3200D84D28 /* sprites.h */, - 656F6C8C1E45BFC200E0F770 /* Version.cpp */, - 656F6C8D1E45BFC200E0F770 /* Version.h */, + F76C87B41EC4E91500FA49E2 /* resources */, + F76C85801EC4E82600FA49E2 /* openrct2-ui */, + F76C857C1EC4E80E00FA49E2 /* openrct2-cli */, + F76C83551EC4E7CC00FA49E2 /* libopenrct2 */, ); name = Sources; path = src/openrct2; @@ -1613,456 +1962,6 @@ path = libxc; sourceTree = ""; }; - D42E33741E5C27D600D630AF /* config */ = { - isa = PBXGroup; - children = ( - D42E33751E5C27D600D630AF /* Config.cpp */, - D42E33761E5C27D600D630AF /* Config.h */, - D42E33771E5C27D600D630AF /* ConfigEnum.hpp */, - D42E33781E5C27D600D630AF /* IniReader.cpp */, - D42E33791E5C27D600D630AF /* IniReader.hpp */, - D42E337A1E5C27D600D630AF /* IniWriter.cpp */, - D42E337B1E5C27D600D630AF /* IniWriter.hpp */, - D42E337C1E5C27D600D630AF /* KeyboardShortcuts.cpp */, - ); - path = config; - sourceTree = ""; - }; - D43407BF1D0E14BE00C2B3D4 /* opengl */ = { - isa = PBXGroup; - children = ( - D43407C01D0E14BE00C2B3D4 /* CopyFramebufferShader.cpp */, - D43407C11D0E14BE00C2B3D4 /* CopyFramebufferShader.h */, - D43407C41D0E14BE00C2B3D4 /* DrawImageShader.cpp */, - D43407C51D0E14BE00C2B3D4 /* DrawImageShader.h */, - D43407C61D0E14BE00C2B3D4 /* DrawLineShader.cpp */, - D43407C71D0E14BE00C2B3D4 /* DrawLineShader.h */, - D43407C81D0E14BE00C2B3D4 /* FillRectShader.cpp */, - D43407C91D0E14BE00C2B3D4 /* FillRectShader.h */, - D43407CA1D0E14BE00C2B3D4 /* GLSLTypes.h */, - D43407CB1D0E14BE00C2B3D4 /* OpenGLAPI.cpp */, - D43407CC1D0E14BE00C2B3D4 /* OpenGLAPI.h */, - D43407CD1D0E14BE00C2B3D4 /* OpenGLDrawingEngine.cpp */, - D43407CE1D0E14BE00C2B3D4 /* OpenGLFramebuffer.cpp */, - D43407CF1D0E14BE00C2B3D4 /* OpenGLFramebuffer.h */, - D43407D01D0E14BE00C2B3D4 /* OpenGLShaderProgram.cpp */, - D43407D11D0E14BE00C2B3D4 /* OpenGLShaderProgram.h */, - D43407D21D0E14BE00C2B3D4 /* SwapFramebuffer.cpp */, - D43407D31D0E14BE00C2B3D4 /* SwapFramebuffer.h */, - D43407D41D0E14BE00C2B3D4 /* TextureCache.cpp */, - D43407D51D0E14BE00C2B3D4 /* TextureCache.h */, - ); - path = opengl; - sourceTree = ""; - }; - D44270CF1CC81B3200D84D28 /* audio */ = { - isa = PBXGroup; - children = ( - D464B3E11E4FBCC00003F3B5 /* audio.cpp */, - D44270D11CC81B3200D84D28 /* audio.h */, - C65A888B1E1B1148000368D7 /* AudioChannel.cpp */, - C65A888C1E1B1148000368D7 /* AudioChannel.h */, - C65A888D1E1B1148000368D7 /* AudioFormat.h */, - C647C68F1E1D0CA000C7FB21 /* AudioMixer.cpp */, - C647C6901E1D0CA000C7FB21 /* AudioMixer.h */, - C65A888E1E1B1148000368D7 /* AudioSource.h */, - C65A888F1E1B1148000368D7 /* FileAudioSource.cpp */, - C65A88901E1B1148000368D7 /* MemoryAudioSource.cpp */, - C65A88911E1B1148000368D7 /* NullAudioSource.cpp */, - ); - path = audio; - sourceTree = ""; - }; - D44270D61CC81B3200D84D28 /* cmdline */ = { - isa = PBXGroup; - children = ( - D44270D71CC81B3200D84D28 /* CommandLine.cpp */, - D44270D81CC81B3200D84D28 /* CommandLine.hpp */, - C650B21B1CCABC4400B4D91C /* ConvertCommand.cpp */, - D44270D91CC81B3200D84D28 /* RootCommands.cpp */, - D44270DA1CC81B3200D84D28 /* ScreenshotCommands.cpp */, - D44270DB1CC81B3200D84D28 /* SpriteCommands.cpp */, - C6EABCC31E719691008C09AB /* UriHandler.cpp */, - ); - path = cmdline; - sourceTree = ""; - }; - D44270E01CC81B3200D84D28 /* core */ = { - isa = PBXGroup; - children = ( - D44270E11CC81B3200D84D28 /* Console.cpp */, - D44270E21CC81B3200D84D28 /* Console.hpp */, - D44270E31CC81B3200D84D28 /* Diagnostics.cpp */, - D44270E41CC81B3200D84D28 /* Diagnostics.hpp */, - D44270E51CC81B3200D84D28 /* Exception.hpp */, - C6E96E101E04067A0076A04F /* File.cpp */, - C6E96E111E04067A0076A04F /* File.h */, - D437A2701DBC29B0001CB2CF /* FileScanner.cpp */, - D437A2711DBC29B0001CB2CF /* FileScanner.h */, - D44270E61CC81B3200D84D28 /* FileStream.hpp */, - D44270E71CC81B3200D84D28 /* Guard.cpp */, - D44270E81CC81B3200D84D28 /* Guard.hpp */, - D464FEBA1D31A65300CBABAC /* IStream.cpp */, - D44270EA1CC81B3200D84D28 /* IStream.hpp */, - D44270EB1CC81B3200D84D28 /* Json.cpp */, - D44270EC1CC81B3200D84D28 /* Json.hpp */, - D44270EE1CC81B3200D84D28 /* Math.hpp */, - D44270EF1CC81B3200D84D28 /* Memory.hpp */, - D464FEBC1D31A66E00CBABAC /* MemoryStream.cpp */, - D464FEBD1D31A66E00CBABAC /* MemoryStream.h */, - D44270F01CC81B3200D84D28 /* Path.cpp */, - D44270F11CC81B3200D84D28 /* Path.hpp */, - D44270F51CC81B3200D84D28 /* String.cpp */, - D44270F61CC81B3200D84D28 /* String.hpp */, - D44270F71CC81B3200D84D28 /* StringBuilder.hpp */, - D44270F81CC81B3200D84D28 /* StringReader.hpp */, - D44270F91CC81B3200D84D28 /* textinputbuffer.c */, - D44270FA1CC81B3200D84D28 /* textinputbuffer.h */, - D44270FB1CC81B3200D84D28 /* Util.hpp */, - C6E96E131E04069A0076A04F /* Zip.cpp */, - C6E96E141E04069A0076A04F /* Zip.h */, - ); - path = core; - sourceTree = ""; - }; - D44271001CC81B3200D84D28 /* drawing */ = { - isa = PBXGroup; - children = ( - D497667F1D03B9FE002222CD /* engines */, - D44271031CC81B3200D84D28 /* drawing_fast.cpp */, - D44271011CC81B3200D84D28 /* drawing.c */, - D44271021CC81B3200D84D28 /* drawing.h */, - D44271041CC81B3200D84D28 /* font.c */, - D44271051CC81B3200D84D28 /* font.h */, - D497668A1D03BAC8002222CD /* IDrawingContext.h */, - D497668B1D03BAC8002222CD /* IDrawingEngine.h */, - D464FEBF1D31A68800CBABAC /* Image.cpp */, - D4B21B6D1E343AF1004982C7 /* lightfx.c */, - D4B21B6E1E343AF1004982C7 /* lightfx.h */, - D44271061CC81B3200D84D28 /* line.c */, - D49766841D03BAA5002222CD /* NewDrawing.cpp */, - D49766851D03BAA5002222CD /* NewDrawing.h */, - D49766871D03BABB002222CD /* rain.cpp */, - D49766881D03BABB002222CD /* Rain.h */, - D44271081CC81B3200D84D28 /* rect.c */, - D44271091CC81B3200D84D28 /* scrolling_text.c */, - D49464771E4DB27B00DC690E /* sprite.cpp */, - D442710B1CC81B3200D84D28 /* string.c */, - ); - path = drawing; - sourceTree = ""; - }; - D44271181CC81B3200D84D28 /* interface */ = { - isa = PBXGroup; - children = ( - D44271191CC81B3200D84D28 /* chat.c */, - D442711A1CC81B3200D84D28 /* chat.h */, - D442711B1CC81B3200D84D28 /* colour.c */, - D442711C1CC81B3200D84D28 /* colour.h */, - D442711D1CC81B3200D84D28 /* console.c */, - D442711E1CC81B3200D84D28 /* console.h */, - D4F5B5EC1DAD8A4300AB6075 /* CursorData.cpp */, - D4F5B5ED1DAD8A4300AB6075 /* Cursors.cpp */, - D4F5B5EE1DAD8A4300AB6075 /* Cursors.h */, - D4469DAB1DEF84480039A779 /* Fonts.cpp */, - D4469DAC1DEF84480039A779 /* Fonts.h */, - D442711F1CC81B3200D84D28 /* graph.c */, - D44271201CC81B3200D84D28 /* graph.h */, - D44271211CC81B3200D84D28 /* keyboard_shortcut.c */, - D44271221CC81B3200D84D28 /* keyboard_shortcut.h */, - D44271231CC81B3200D84D28 /* screenshot.c */, - D44271241CC81B3200D84D28 /* screenshot.h */, - D44271251CC81B3200D84D28 /* Theme.cpp */, - D44271261CC81B3200D84D28 /* themes.h */, - D442712B1CC81B3200D84D28 /* viewport_interaction.c */, - D44271291CC81B3200D84D28 /* viewport.c */, - D442712A1CC81B3200D84D28 /* viewport.h */, - D442712C1CC81B3200D84D28 /* widget.c */, - D442712D1CC81B3200D84D28 /* widget.h */, - D442712E1CC81B3200D84D28 /* window.c */, - D442712F1CC81B3200D84D28 /* window.h */, - ); - path = interface; - sourceTree = ""; - }; - D44271321CC81B3200D84D28 /* localisation */ = { - isa = PBXGroup; - children = ( - D44271331CC81B3200D84D28 /* convert.c */, - D44271341CC81B3200D84D28 /* currency.c */, - D44271351CC81B3200D84D28 /* currency.h */, - D44271361CC81B3200D84D28 /* date.c */, - D44271371CC81B3200D84D28 /* date.h */, - C649B3D31DF04ED2008AC826 /* format_codes.c */, - D44271381CC81B3200D84D28 /* format_codes.h */, - D44271391CC81B3200D84D28 /* language.cpp */, - D442713A1CC81B3200D84D28 /* language.h */, - D442713B1CC81B3200D84D28 /* LanguagePack.cpp */, - D442713C1CC81B3200D84D28 /* LanguagePack.h */, - D442713D1CC81B3200D84D28 /* localisation.c */, - D442713E1CC81B3200D84D28 /* localisation.h */, - D442713F1CC81B3200D84D28 /* real_names.c */, - D44271401CC81B3200D84D28 /* string_ids.h */, - D44271411CC81B3200D84D28 /* user.c */, - D44271421CC81B3200D84D28 /* user.h */, - D44271431CC81B3200D84D28 /* utf8.c */, - ); - path = localisation; - sourceTree = ""; - }; - D44271441CC81B3200D84D28 /* management */ = { - isa = PBXGroup; - children = ( - D44271451CC81B3200D84D28 /* award.c */, - D44271461CC81B3200D84D28 /* award.h */, - D44271471CC81B3200D84D28 /* finance.c */, - D44271481CC81B3200D84D28 /* finance.h */, - D44271491CC81B3200D84D28 /* marketing.c */, - D442714A1CC81B3200D84D28 /* marketing.h */, - D442714B1CC81B3200D84D28 /* news_item.c */, - D442714C1CC81B3200D84D28 /* news_item.h */, - D442714D1CC81B3200D84D28 /* research.c */, - D442714E1CC81B3200D84D28 /* research.h */, - ); - path = management; - sourceTree = ""; - }; - D442714F1CC81B3200D84D28 /* network */ = { - isa = PBXGroup; - children = ( - D44271501CC81B3200D84D28 /* http.cpp */, - D44271511CC81B3200D84D28 /* http.h */, - D44271521CC81B3200D84D28 /* network.cpp */, - D44271531CC81B3200D84D28 /* network.h */, - 007A05C01CFB2C8B00F419C3 /* NetworkAction.cpp */, - 007A05C11CFB2C8B00F419C3 /* NetworkAction.h */, - 007A05C41CFB2C8B00F419C3 /* NetworkConnection.cpp */, - 007A05C51CFB2C8B00F419C3 /* NetworkConnection.h */, - 007A05C61CFB2C8B00F419C3 /* NetworkGroup.cpp */, - 007A05C71CFB2C8B00F419C3 /* NetworkGroup.h */, - 00EFEE701CF1D80B0035213B /* NetworkKey.cpp */, - 00EFEE711CF1D80B0035213B /* NetworkKey.h */, - 007A05C81CFB2C8B00F419C3 /* NetworkPacket.cpp */, - 007A05C91CFB2C8B00F419C3 /* NetworkPacket.h */, - 007A05CA1CFB2C8B00F419C3 /* NetworkPlayer.cpp */, - 007A05CB1CFB2C8B00F419C3 /* NetworkPlayer.h */, - 791166F91D7486EF005912EA /* NetworkServerAdvertiser.cpp */, - 791166FA1D7486EF005912EA /* NetworkServerAdvertiser.h */, - 007A05CC1CFB2C8B00F419C3 /* NetworkTypes.h */, - C61FB7221CF86356004CE991 /* NetworkUser.cpp */, - C61FB7231CF86356004CE991 /* NetworkUser.h */, - D464B3DE1E4FBC850003F3B5 /* ServerList.cpp */, - D464B3DF1E4FBC850003F3B5 /* ServerList.h */, - D48A8D811D00272F00649DA7 /* TcpSocket.cpp */, - D48A8D821D00272F00649DA7 /* TcpSocket.h */, - D44271541CC81B3200D84D28 /* twitch.cpp */, - D44271551CC81B3200D84D28 /* twitch.h */, - ); - path = network; - sourceTree = ""; - }; - D442715B1CC81B3200D84D28 /* peep */ = { - isa = PBXGroup; - children = ( - D46F2A9D1D39A25A00A36AB7 /* peep_data.c */, - D442715C1CC81B3200D84D28 /* peep.c */, - D442715D1CC81B3200D84D28 /* peep.h */, - D442715E1CC81B3200D84D28 /* staff.c */, - D442715F1CC81B3200D84D28 /* staff.h */, - ); - path = peep; - sourceTree = ""; - }; - D44271601CC81B3200D84D28 /* platform */ = { - isa = PBXGroup; - children = ( - D44271611CC81B3200D84D28 /* crash.cpp */, - D44271621CC81B3200D84D28 /* crash.h */, - D44271631CC81B3200D84D28 /* linux.c */, - D44271641CC81B3200D84D28 /* macos.m */, - D44271651CC81B3200D84D28 /* platform.h */, - D44271661CC81B3200D84D28 /* posix.c */, - D44271671CC81B3200D84D28 /* shared.c */, - D44271681CC81B3200D84D28 /* windows.c */, - ); - path = platform; - sourceTree = ""; - }; - D442716E1CC81B3200D84D28 /* ride */ = { - isa = PBXGroup; - children = ( - C686F8BA1CDBC3B7009F9BFC /* coaster */, - C686F8DB1CDBC3B7009F9BFC /* gentle */, - C686F8EC1CDBC3B7009F9BFC /* shops */, - C686F8F01CDBC3B7009F9BFC /* thrill */, - C686F8FC1CDBC3B7009F9BFC /* transport */, - C686F9021CDBC3B7009F9BFC /* water */, - D442716F1CC81B3200D84D28 /* cable_lift.c */, - D44271701CC81B3200D84D28 /* cable_lift.h */, - D44271731CC81B3200D84D28 /* ride_data.c */, - D44271741CC81B3200D84D28 /* ride_data.h */, - D44271751CC81B3200D84D28 /* ride_ratings.c */, - D44271761CC81B3200D84D28 /* ride_ratings.h */, - D44271711CC81B3200D84D28 /* ride.c */, - D44271721CC81B3200D84D28 /* ride.h */, - D44271771CC81B3200D84D28 /* station.c */, - D44271781CC81B3200D84D28 /* station.h */, - 8594C05F1D885CF600235E93 /* track_data_old.c */, - D442717B1CC81B3200D84D28 /* track_data.c */, - D442717C1CC81B3200D84D28 /* track_data.h */, - 008BF7271CDAA5C30019A2AD /* track_design_save.c */, - 008BF7281CDAA5C30019A2AD /* track_design.c */, - 008BF7291CDAA5C30019A2AD /* track_design.h */, - D442717D1CC81B3200D84D28 /* track_paint.c */, - D442717E1CC81B3200D84D28 /* track_paint.h */, - D44271791CC81B3200D84D28 /* track.c */, - D442717A1CC81B3200D84D28 /* track.h */, - D437A26D1DBC2937001CB2CF /* TrackDesignRepository.cpp */, - D437A26E1DBC2937001CB2CF /* TrackDesignRepository.h */, - C612A8971D64825300B634CA /* vehicle_data.c */, - C612A8981D64825300B634CA /* vehicle_data.h */, - C686F9561CDBC4C7009F9BFC /* vehicle_paint.c */, - C686F9571CDBC4C7009F9BFC /* vehicle_paint.h */, - D442717F1CC81B3200D84D28 /* vehicle.c */, - D44271801CC81B3200D84D28 /* vehicle.h */, - ); - path = ride; - sourceTree = ""; - }; - D44271881CC81B3200D84D28 /* util */ = { - isa = PBXGroup; - children = ( - D44271891CC81B3200D84D28 /* sawyercoding.c */, - D442718A1CC81B3200D84D28 /* sawyercoding.h */, - D442718B1CC81B3200D84D28 /* util.c */, - D442718C1CC81B3200D84D28 /* util.h */, - ); - path = util; - sourceTree = ""; - }; - D442718E1CC81B3200D84D28 /* windows */ = { - isa = PBXGroup; - children = ( - D442718F1CC81B3200D84D28 /* about.c */, - D44271901CC81B3200D84D28 /* banner.c */, - D44271911CC81B3200D84D28 /* changelog.c */, - D44271921CC81B3200D84D28 /* cheats.c */, - D44271931CC81B3200D84D28 /* clear_scenery.c */, - D45B202C1D1E92DB00B67CC7 /* custom_currency.c */, - C6575A361D46AFBA00C3E79F /* debug_paint.c */, - D44271941CC81B3200D84D28 /* demolish_ride_prompt.c */, - D44271951CC81B3200D84D28 /* dropdown.c */, - D44271961CC81B3200D84D28 /* dropdown.h */, - D44271971CC81B3200D84D28 /* editor_bottom_toolbar.c */, - D44271981CC81B3200D84D28 /* editor_inventions_list.c */, - D44271991CC81B3200D84D28 /* editor_main.c */, - D442719A1CC81B3200D84D28 /* editor_object_selection.c */, - D442719B1CC81B3200D84D28 /* editor_objective_options.c */, - D442719C1CC81B3200D84D28 /* editor_scenario_options.c */, - D442719D1CC81B3200D84D28 /* error.c */, - D442719E1CC81B3200D84D28 /* error.h */, - D442719F1CC81B3200D84D28 /* finances.c */, - D44271A01CC81B3200D84D28 /* footpath.c */, - D44271A11CC81B3200D84D28 /* game_bottom_toolbar.c */, - D44271A31CC81B3200D84D28 /* guest_list.c */, - D44271A21CC81B3200D84D28 /* guest.c */, - D44271A41CC81B3200D84D28 /* install_track.c */, - D44271A61CC81B3200D84D28 /* land_rights.c */, - D44271A51CC81B3200D84D28 /* land.c */, - D44271A71CC81B3200D84D28 /* loadsave.c */, - D44271A81CC81B3200D84D28 /* main.c */, - D44271AA1CC81B3200D84D28 /* map_tooltip.c */, - D44271A91CC81B3200D84D28 /* map.c */, - D44271AB1CC81B3200D84D28 /* mapgen.c */, - D44271AC1CC81B3200D84D28 /* maze_construction.c */, - D44271AD1CC81B3200D84D28 /* multiplayer.c */, - D44271AE1CC81B3200D84D28 /* music_credits.c */, - D44271AF1CC81B3200D84D28 /* network_status.c */, - D44271B01CC81B3200D84D28 /* new_campaign.c */, - D44271B11CC81B3200D84D28 /* new_ride.c */, - D44271B31CC81B3200D84D28 /* news_options.c */, - D44271B21CC81B3200D84D28 /* news.c */, - D44271B41CC81B3200D84D28 /* options.c */, - D44271B51CC81B3200D84D28 /* park.c */, - D44271B61CC81B3200D84D28 /* player.c */, - D44271B71CC81B3200D84D28 /* publisher_credits.c */, - D44271B81CC81B3200D84D28 /* research.c */, - D44271BA1CC81B3200D84D28 /* ride_construction.c */, - D44271BB1CC81B3200D84D28 /* ride_list.c */, - D44271B91CC81B3200D84D28 /* ride.c */, - D44271BC1CC81B3200D84D28 /* save_prompt.c */, - D44271BD1CC81B3200D84D28 /* scenery.c */, - C68B2CB41EB60DDE0020651C /* server_list.cpp */, - D44271BF1CC81B3200D84D28 /* server_start.c */, - D44271C01CC81B3200D84D28 /* shortcut_key_change.c */, - D44271C11CC81B3200D84D28 /* shortcut_keys.c */, - D44271C21CC81B3200D84D28 /* sign.c */, - D44271C41CC81B3200D84D28 /* staff_fire_prompt.c */, - D44271C51CC81B3200D84D28 /* staff_list.c */, - D44271C31CC81B3200D84D28 /* staff.c */, - D44271C61CC81B3200D84D28 /* text_input.c */, - D44271C71CC81B3200D84D28 /* themes.c */, - D44271C81CC81B3200D84D28 /* tile_inspector.c */, - D429FF3F1E36ABB3009342A6 /* tile_inspector.h */, - D44271C91CC81B3200D84D28 /* title_command_editor.c */, - D44271CA1CC81B3200D84D28 /* title_editor.c */, - D44271CB1CC81B3200D84D28 /* title_exit.c */, - D44271CC1CC81B3200D84D28 /* title_logo.c */, - D44271CD1CC81B3200D84D28 /* title_menu.c */, - D44271CE1CC81B3200D84D28 /* title_options.c */, - D44271CF1CC81B3200D84D28 /* title_scenarioselect.c */, - D44271D01CC81B3200D84D28 /* tooltip.c */, - D44271D11CC81B3200D84D28 /* tooltip.h */, - D44271D21CC81B3200D84D28 /* top_toolbar.c */, - D44271D31CC81B3200D84D28 /* track_list.c */, - D44271D41CC81B3200D84D28 /* track_manage.c */, - D44271D51CC81B3200D84D28 /* track_place.c */, - C6136C541E21893500F3ED2B /* view_clipping.c */, - D44271D61CC81B3200D84D28 /* viewport.c */, - D44271D71CC81B3200D84D28 /* water.c */, - ); - path = windows; - sourceTree = ""; - }; - D44271D81CC81B3200D84D28 /* world */ = { - isa = PBXGroup; - children = ( - A5D1DB5BE280897DCDEBFCED /* Duck.cpp */, - EC3C3FED9FA55B65F65D706F /* Climate.h */, - 242F470FE91956ACA4078F6A /* Climate.cpp */, - 437490DBD74ECF60C3363559 /* Balloon.cpp */, - DEEAE6E8AC49B6F288E69B40 /* banner.cpp */, - D44271DB1CC81B3200D84D28 /* banner.h */, - D48ABAB91E71EBD500A3E39C /* entrance.cpp */, - D44271DF1CC81B3200D84D28 /* entrance.h */, - D44271E01CC81B3200D84D28 /* footpath.c */, - D44271E11CC81B3200D84D28 /* footpath.h */, - D44D93AD1E92DD28004D6B77 /* Fountain.cpp */, - D44271E31CC81B3200D84D28 /* Fountain.h */, - D44271E61CC81B3200D84D28 /* map_animation.c */, - D44271E71CC81B3200D84D28 /* map_animation.h */, - D44271E81CC81B3200D84D28 /* map_helpers.c */, - D44271E91CC81B3200D84D28 /* map_helpers.h */, - D44271E41CC81B3200D84D28 /* map.c */, - D44271E51CC81B3200D84D28 /* map.h */, - D44271EA1CC81B3200D84D28 /* mapgen.c */, - D44271EB1CC81B3200D84D28 /* mapgen.h */, - D44271EC1CC81B3200D84D28 /* money_effect.c */, - D44271ED1CC81B3200D84D28 /* park.c */, - D44271EE1CC81B3200D84D28 /* park.h */, - D44271EF1CC81B3200D84D28 /* particle.c */, - D44271F01CC81B3200D84D28 /* scenery.c */, - D44271F11CC81B3200D84D28 /* scenery.h */, - D44271F21CC81B3200D84D28 /* sprite.c */, - D44271F31CC81B3200D84D28 /* sprite.h */, - D429FF401E36ABCD009342A6 /* tile_inspector.c */, - D429FF411E36ABCD009342A6 /* tile_inspector.h */, - D41FA8631E5EA1E200215624 /* wall.cpp */, - D44271F41CC81B3200D84D28 /* water.h */, - ); - path = world; - sourceTree = ""; - }; D45A38C61CF3007A00659A24 /* libpng16 */ = { isa = PBXGroup; children = ( @@ -2234,60 +2133,11 @@ path = speex; sourceTree = ""; }; - D464FEC11D31A6AA00CBABAC /* object */ = { - isa = PBXGroup; - children = ( - D464FEC21D31A6AA00CBABAC /* BannerObject.cpp */, - D464FEC31D31A6AA00CBABAC /* BannerObject.h */, - D464FEC41D31A6AA00CBABAC /* EntranceObject.cpp */, - D464FEC51D31A6AA00CBABAC /* EntranceObject.h */, - D464FEC61D31A6AA00CBABAC /* FootpathItemObject.cpp */, - D464FEC71D31A6AA00CBABAC /* FootpathItemObject.h */, - D464FEC81D31A6AA00CBABAC /* FootpathObject.cpp */, - D464FEC91D31A6AA00CBABAC /* FootpathObject.h */, - D464FECA1D31A6AA00CBABAC /* ImageTable.cpp */, - D464FECB1D31A6AA00CBABAC /* ImageTable.h */, - D464FECC1D31A6AA00CBABAC /* LargeSceneryObject.cpp */, - D464FECD1D31A6AA00CBABAC /* LargeSceneryObject.h */, - D464FECE1D31A6AA00CBABAC /* Object.cpp */, - D464FECF1D31A6AA00CBABAC /* Object.h */, - D464FED01D31A6AA00CBABAC /* ObjectFactory.cpp */, - D464FED11D31A6AA00CBABAC /* ObjectFactory.h */, - D464FED21D31A6AA00CBABAC /* ObjectManager.cpp */, - D464FED31D31A6AA00CBABAC /* ObjectManager.h */, - D464FED41D31A6AA00CBABAC /* ObjectRepository.cpp */, - D464FED51D31A6AA00CBABAC /* ObjectRepository.h */, - D464FED61D31A6AA00CBABAC /* RideObject.cpp */, - D464FED71D31A6AA00CBABAC /* RideObject.h */, - D464FED81D31A6AA00CBABAC /* SceneryGroupObject.cpp */, - D464FED91D31A6AA00CBABAC /* SceneryGroupObject.h */, - D464FEDA1D31A6AA00CBABAC /* SceneryObject.h */, - D464FEDB1D31A6AA00CBABAC /* SmallSceneryObject.cpp */, - D464FEDC1D31A6AA00CBABAC /* SmallSceneryObject.h */, - D464FEDD1D31A6AA00CBABAC /* StexObject.cpp */, - D464FEDE1D31A6AA00CBABAC /* StexObject.h */, - D464FEDF1D31A6AA00CBABAC /* StringTable.cpp */, - D464FEE01D31A6AA00CBABAC /* StringTable.h */, - D464FEE11D31A6AA00CBABAC /* WallObject.cpp */, - D464FEE21D31A6AA00CBABAC /* WallObject.h */, - D464FEE31D31A6AA00CBABAC /* WaterObject.cpp */, - D464FEE41D31A6AA00CBABAC /* WaterObject.h */, - ); - path = object; - sourceTree = ""; - }; - D497667F1D03B9FE002222CD /* engines */ = { - isa = PBXGroup; - children = ( - D43407BF1D0E14BE00C2B3D4 /* opengl */, - D49766811D03B9FE002222CD /* SoftwareDrawingEngine.cpp */, - ); - path = engines; - sourceTree = ""; - }; D497D06F1C20FD52002BF46A = { isa = PBXGroup; children = ( + F76C82A11EC4E50D00FA49E2 /* resource.h */, + F76C80A01EC4DD9400FA49E2 /* shaders */, D41B72431C21015A0080A7B9 /* Sources */, D497D07A1C20FD52002BF46A /* Resources */, 8546F74A1D7E1D220004004C /* Tests */, @@ -2302,6 +2152,7 @@ children = ( D497D0781C20FD52002BF46A /* OpenRCT2.app */, C64FDA5D1D6D99F400F259B9 /* PaintTest */, + F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */, ); name = Products; sourceTree = ""; @@ -2369,8 +2220,1063 @@ name = system; sourceTree = ""; }; + F76C83551EC4E7CC00FA49E2 /* libopenrct2 */ = { + isa = PBXGroup; + children = ( + F76C83561EC4E7CC00FA49E2 /* audio */, + F76C835F1EC4E7CC00FA49E2 /* cheats.c */, + F76C83601EC4E7CC00FA49E2 /* cheats.h */, + F76C83621EC4E7CC00FA49E2 /* cmdline */, + F76C836A1EC4E7CC00FA49E2 /* cmdline_sprite.c */, + F76C836B1EC4E7CC00FA49E2 /* cmdline_sprite.h */, + F76C836C1EC4E7CC00FA49E2 /* common.h */, + F76C836D1EC4E7CC00FA49E2 /* config */, + F76C83761EC4E7CC00FA49E2 /* Context.cpp */, + F76C83771EC4E7CC00FA49E2 /* Context.h */, + F76C83781EC4E7CC00FA49E2 /* core */, + F76C839B1EC4E7CC00FA49E2 /* diagnostic.c */, + F76C839C1EC4E7CC00FA49E2 /* diagnostic.h */, + F76C839D1EC4E7CC00FA49E2 /* drawing */, + F76C83B11EC4E7CC00FA49E2 /* editor.c */, + F76C83B21EC4E7CC00FA49E2 /* editor.h */, + F76C83B31EC4E7CC00FA49E2 /* FileClassifier.cpp */, + F76C83B41EC4E7CC00FA49E2 /* FileClassifier.h */, + F76C83B51EC4E7CC00FA49E2 /* game.c */, + F76C83B61EC4E7CC00FA49E2 /* game.h */, + F76C83B71EC4E7CC00FA49E2 /* Imaging.cpp */, + F76C83B81EC4E7CC00FA49E2 /* Imaging.h */, + F76C83B91EC4E7CC00FA49E2 /* input.c */, + F76C83BA1EC4E7CC00FA49E2 /* input.h */, + F76C83BB1EC4E7CC00FA49E2 /* interface */, + F76C83D41EC4E7CC00FA49E2 /* intro.c */, + F76C83D51EC4E7CC00FA49E2 /* intro.h */, + F76C83D71EC4E7CC00FA49E2 /* localisation */, + F76C83EA1EC4E7CC00FA49E2 /* management */, + F76C83F51EC4E7CC00FA49E2 /* network */, + F76C84111EC4E7CC00FA49E2 /* object */, + F76C84351EC4E7CC00FA49E2 /* object.h */, + F76C84361EC4E7CC00FA49E2 /* object_list.c */, + F76C84371EC4E7CC00FA49E2 /* object_list.h */, + F76C84381EC4E7CC00FA49E2 /* OpenRCT2.cpp */, + F76C84391EC4E7CC00FA49E2 /* OpenRCT2.h */, + F76C843A1EC4E7CC00FA49E2 /* paint */, + F76C84511EC4E7CC00FA49E2 /* ParkImporter.cpp */, + F76C84521EC4E7CC00FA49E2 /* ParkImporter.h */, + F76C84531EC4E7CC00FA49E2 /* peep */, + F76C84591EC4E7CC00FA49E2 /* platform */, + F76C84641EC4E7CC00FA49E2 /* PlatformEnvironment.cpp */, + F76C84651EC4E7CC00FA49E2 /* PlatformEnvironment.h */, + F76C84661EC4E7CC00FA49E2 /* rct1 */, + F76C846A1EC4E7CC00FA49E2 /* rct1.c */, + F76C846B1EC4E7CC00FA49E2 /* rct1.h */, + F76C846C1EC4E7CC00FA49E2 /* rct12 */, + F76C84751EC4E7CC00FA49E2 /* rct12.h */, + F76C84761EC4E7CC00FA49E2 /* rct2 */, + F76C84801EC4E7CC00FA49E2 /* rct2.c */, + F76C84811EC4E7CC00FA49E2 /* rct2.h */, + F76C84831EC4E7CC00FA49E2 /* ride */, + F76C84F31EC4E7CD00FA49E2 /* scenario */, + F76C84FA1EC4E7CD00FA49E2 /* sprites.h */, + F76C84FB1EC4E7CD00FA49E2 /* title */, + F76C85041EC4E7CD00FA49E2 /* ui */, + F76C85061EC4E7CD00FA49E2 /* util */, + F76C850B1EC4E7CD00FA49E2 /* Version.cpp */, + F76C850C1EC4E7CD00FA49E2 /* Version.h */, + F76C850D1EC4E7CD00FA49E2 /* windows */, + F76C855B1EC4E7CD00FA49E2 /* world */, + ); + name = libopenrct2; + sourceTree = ""; + }; + F76C83561EC4E7CC00FA49E2 /* audio */ = { + isa = PBXGroup; + children = ( + F76C83571EC4E7CC00FA49E2 /* audio.cpp */, + F76C83581EC4E7CC00FA49E2 /* audio.h */, + F76C83591EC4E7CC00FA49E2 /* AudioChannel.h */, + F76C835A1EC4E7CC00FA49E2 /* AudioContext.h */, + F76C835B1EC4E7CC00FA49E2 /* AudioMixer.cpp */, + F76C835C1EC4E7CC00FA49E2 /* AudioMixer.h */, + F76C835D1EC4E7CC00FA49E2 /* AudioSource.h */, + F76C835E1EC4E7CC00FA49E2 /* NullAudioSource.cpp */, + ); + path = audio; + sourceTree = ""; + }; + F76C83621EC4E7CC00FA49E2 /* cmdline */ = { + isa = PBXGroup; + children = ( + F76C83631EC4E7CC00FA49E2 /* CommandLine.cpp */, + F76C83641EC4E7CC00FA49E2 /* CommandLine.hpp */, + F76C83651EC4E7CC00FA49E2 /* ConvertCommand.cpp */, + F76C83661EC4E7CC00FA49E2 /* RootCommands.cpp */, + F76C83671EC4E7CC00FA49E2 /* ScreenshotCommands.cpp */, + F76C83681EC4E7CC00FA49E2 /* SpriteCommands.cpp */, + F76C83691EC4E7CC00FA49E2 /* UriHandler.cpp */, + ); + path = cmdline; + sourceTree = ""; + }; + F76C836D1EC4E7CC00FA49E2 /* config */ = { + isa = PBXGroup; + children = ( + F76C836E1EC4E7CC00FA49E2 /* Config.cpp */, + F76C836F1EC4E7CC00FA49E2 /* Config.h */, + F76C83701EC4E7CC00FA49E2 /* ConfigEnum.hpp */, + F76C83711EC4E7CC00FA49E2 /* IniReader.cpp */, + F76C83721EC4E7CC00FA49E2 /* IniReader.hpp */, + F76C83731EC4E7CC00FA49E2 /* IniWriter.cpp */, + F76C83741EC4E7CC00FA49E2 /* IniWriter.hpp */, + F76C83751EC4E7CC00FA49E2 /* KeyboardShortcuts.cpp */, + ); + path = config; + sourceTree = ""; + }; + F76C83781EC4E7CC00FA49E2 /* core */ = { + isa = PBXGroup; + children = ( + F76C83791EC4E7CC00FA49E2 /* Collections.hpp */, + F76C837A1EC4E7CC00FA49E2 /* Console.cpp */, + F76C837B1EC4E7CC00FA49E2 /* Console.hpp */, + F76C837C1EC4E7CC00FA49E2 /* Diagnostics.cpp */, + F76C837D1EC4E7CC00FA49E2 /* Diagnostics.hpp */, + F76C837E1EC4E7CC00FA49E2 /* Exception.hpp */, + F76C837F1EC4E7CC00FA49E2 /* File.cpp */, + F76C83801EC4E7CC00FA49E2 /* File.h */, + F76C83811EC4E7CC00FA49E2 /* FileScanner.cpp */, + F76C83821EC4E7CC00FA49E2 /* FileScanner.h */, + F76C83831EC4E7CC00FA49E2 /* FileStream.hpp */, + F76C83841EC4E7CC00FA49E2 /* Guard.cpp */, + F76C83851EC4E7CC00FA49E2 /* Guard.hpp */, + F76C83861EC4E7CC00FA49E2 /* IStream.cpp */, + F76C83871EC4E7CC00FA49E2 /* IStream.hpp */, + F76C83881EC4E7CC00FA49E2 /* Json.cpp */, + F76C83891EC4E7CC00FA49E2 /* Json.hpp */, + F76C838A1EC4E7CC00FA49E2 /* Math.hpp */, + F76C838B1EC4E7CC00FA49E2 /* Memory.hpp */, + F76C838C1EC4E7CC00FA49E2 /* MemoryStream.cpp */, + F76C838D1EC4E7CC00FA49E2 /* MemoryStream.h */, + F76C838E1EC4E7CC00FA49E2 /* Nullable.hpp */, + F76C838F1EC4E7CC00FA49E2 /* Path.cpp */, + F76C83901EC4E7CC00FA49E2 /* Path.hpp */, + F76C83911EC4E7CC00FA49E2 /* Registration.hpp */, + F76C83921EC4E7CC00FA49E2 /* String.cpp */, + F76C83931EC4E7CC00FA49E2 /* String.hpp */, + F76C83941EC4E7CC00FA49E2 /* StringBuilder.hpp */, + F76C83951EC4E7CC00FA49E2 /* StringReader.hpp */, + F76C83961EC4E7CC00FA49E2 /* textinputbuffer.c */, + F76C83971EC4E7CC00FA49E2 /* textinputbuffer.h */, + F76C83981EC4E7CC00FA49E2 /* Util.hpp */, + F76C83991EC4E7CC00FA49E2 /* Zip.cpp */, + F76C839A1EC4E7CC00FA49E2 /* Zip.h */, + ); + path = core; + sourceTree = ""; + }; + F76C839D1EC4E7CC00FA49E2 /* drawing */ = { + isa = PBXGroup; + children = ( + F76C839E1EC4E7CC00FA49E2 /* drawing.c */, + F76C839F1EC4E7CC00FA49E2 /* drawing.h */, + F76C83A01EC4E7CC00FA49E2 /* drawing_fast.cpp */, + F76C83A11EC4E7CC00FA49E2 /* font.c */, + F76C83A21EC4E7CC00FA49E2 /* font.h */, + F76C83A31EC4E7CC00FA49E2 /* IDrawingContext.h */, + F76C83A41EC4E7CC00FA49E2 /* IDrawingEngine.h */, + F76C83A51EC4E7CC00FA49E2 /* Image.cpp */, + F76C83A61EC4E7CC00FA49E2 /* lightfx.c */, + F76C83A71EC4E7CC00FA49E2 /* lightfx.h */, + F76C83A81EC4E7CC00FA49E2 /* line.c */, + F76C83A91EC4E7CC00FA49E2 /* NewDrawing.cpp */, + F76C83AA1EC4E7CC00FA49E2 /* NewDrawing.h */, + F76C83AB1EC4E7CC00FA49E2 /* Rain.cpp */, + F76C83AC1EC4E7CC00FA49E2 /* Rain.h */, + F76C83AD1EC4E7CC00FA49E2 /* rect.c */, + F76C83AE1EC4E7CC00FA49E2 /* scrolling_text.c */, + F76C83AF1EC4E7CC00FA49E2 /* sprite.cpp */, + F76C83B01EC4E7CC00FA49E2 /* string.c */, + ); + path = drawing; + sourceTree = ""; + }; + F76C83BB1EC4E7CC00FA49E2 /* interface */ = { + isa = PBXGroup; + children = ( + F76C83BC1EC4E7CC00FA49E2 /* chat.c */, + F76C83BD1EC4E7CC00FA49E2 /* chat.h */, + F76C83BE1EC4E7CC00FA49E2 /* colour.c */, + F76C83BF1EC4E7CC00FA49E2 /* colour.h */, + F76C83C01EC4E7CC00FA49E2 /* console.c */, + F76C83C11EC4E7CC00FA49E2 /* console.h */, + F76C83C21EC4E7CC00FA49E2 /* Cursors.h */, + F76C83C31EC4E7CC00FA49E2 /* Fonts.cpp */, + F76C83C41EC4E7CC00FA49E2 /* Fonts.h */, + F76C83C51EC4E7CC00FA49E2 /* graph.c */, + F76C83C61EC4E7CC00FA49E2 /* graph.h */, + F76C83C71EC4E7CC00FA49E2 /* keyboard_shortcut.c */, + F76C83C81EC4E7CC00FA49E2 /* keyboard_shortcut.h */, + F76C83C91EC4E7CC00FA49E2 /* screenshot.c */, + F76C83CA1EC4E7CC00FA49E2 /* screenshot.h */, + F76C83CB1EC4E7CC00FA49E2 /* Theme.cpp */, + F76C83CC1EC4E7CC00FA49E2 /* themes.h */, + F76C83CD1EC4E7CC00FA49E2 /* viewport.c */, + F76C83CE1EC4E7CC00FA49E2 /* viewport.h */, + F76C83CF1EC4E7CC00FA49E2 /* viewport_interaction.c */, + F76C83D01EC4E7CC00FA49E2 /* widget.c */, + F76C83D11EC4E7CC00FA49E2 /* widget.h */, + F76C83D21EC4E7CC00FA49E2 /* window.c */, + F76C83D31EC4E7CC00FA49E2 /* window.h */, + ); + path = interface; + sourceTree = ""; + }; + F76C83D71EC4E7CC00FA49E2 /* localisation */ = { + isa = PBXGroup; + children = ( + F76C83D81EC4E7CC00FA49E2 /* convert.c */, + F76C83D91EC4E7CC00FA49E2 /* currency.c */, + F76C83DA1EC4E7CC00FA49E2 /* currency.h */, + F76C83DB1EC4E7CC00FA49E2 /* date.c */, + F76C83DC1EC4E7CC00FA49E2 /* date.h */, + F76C83DD1EC4E7CC00FA49E2 /* format_codes.c */, + F76C83DE1EC4E7CC00FA49E2 /* format_codes.h */, + F76C83DF1EC4E7CC00FA49E2 /* language.cpp */, + F76C83E01EC4E7CC00FA49E2 /* language.h */, + F76C83E11EC4E7CC00FA49E2 /* LanguagePack.cpp */, + F76C83E21EC4E7CC00FA49E2 /* LanguagePack.h */, + F76C83E31EC4E7CC00FA49E2 /* localisation.c */, + F76C83E41EC4E7CC00FA49E2 /* localisation.h */, + F76C83E51EC4E7CC00FA49E2 /* real_names.c */, + F76C83E61EC4E7CC00FA49E2 /* string_ids.h */, + F76C83E71EC4E7CC00FA49E2 /* user.c */, + F76C83E81EC4E7CC00FA49E2 /* user.h */, + F76C83E91EC4E7CC00FA49E2 /* utf8.c */, + ); + path = localisation; + sourceTree = ""; + }; + F76C83EA1EC4E7CC00FA49E2 /* management */ = { + isa = PBXGroup; + children = ( + F76C83EB1EC4E7CC00FA49E2 /* award.c */, + F76C83EC1EC4E7CC00FA49E2 /* award.h */, + F76C83ED1EC4E7CC00FA49E2 /* finance.c */, + F76C83EE1EC4E7CC00FA49E2 /* finance.h */, + F76C83EF1EC4E7CC00FA49E2 /* marketing.c */, + F76C83F01EC4E7CC00FA49E2 /* marketing.h */, + F76C83F11EC4E7CC00FA49E2 /* news_item.c */, + F76C83F21EC4E7CC00FA49E2 /* news_item.h */, + F76C83F31EC4E7CC00FA49E2 /* research.c */, + F76C83F41EC4E7CC00FA49E2 /* research.h */, + ); + path = management; + sourceTree = ""; + }; + F76C83F51EC4E7CC00FA49E2 /* network */ = { + isa = PBXGroup; + children = ( + F76C83F61EC4E7CC00FA49E2 /* http.cpp */, + F76C83F71EC4E7CC00FA49E2 /* http.h */, + F76C83F81EC4E7CC00FA49E2 /* network.cpp */, + F76C83F91EC4E7CC00FA49E2 /* network.h */, + F76C83FA1EC4E7CC00FA49E2 /* NetworkAction.cpp */, + F76C83FB1EC4E7CC00FA49E2 /* NetworkAction.h */, + F76C83FC1EC4E7CC00FA49E2 /* NetworkConnection.cpp */, + F76C83FD1EC4E7CC00FA49E2 /* NetworkConnection.h */, + F76C83FE1EC4E7CC00FA49E2 /* NetworkGroup.cpp */, + F76C83FF1EC4E7CC00FA49E2 /* NetworkGroup.h */, + F76C84001EC4E7CC00FA49E2 /* NetworkKey.cpp */, + F76C84011EC4E7CC00FA49E2 /* NetworkKey.h */, + F76C84021EC4E7CC00FA49E2 /* NetworkPacket.cpp */, + F76C84031EC4E7CC00FA49E2 /* NetworkPacket.h */, + F76C84041EC4E7CC00FA49E2 /* NetworkPlayer.cpp */, + F76C84051EC4E7CC00FA49E2 /* NetworkPlayer.h */, + F76C84061EC4E7CC00FA49E2 /* NetworkServerAdvertiser.cpp */, + F76C84071EC4E7CC00FA49E2 /* NetworkServerAdvertiser.h */, + F76C84081EC4E7CC00FA49E2 /* NetworkTypes.h */, + F76C84091EC4E7CC00FA49E2 /* NetworkUser.cpp */, + F76C840A1EC4E7CC00FA49E2 /* NetworkUser.h */, + F76C840B1EC4E7CC00FA49E2 /* ServerList.cpp */, + F76C840C1EC4E7CC00FA49E2 /* ServerList.h */, + F76C840D1EC4E7CC00FA49E2 /* TcpSocket.cpp */, + F76C840E1EC4E7CC00FA49E2 /* TcpSocket.h */, + F76C840F1EC4E7CC00FA49E2 /* twitch.cpp */, + F76C84101EC4E7CC00FA49E2 /* twitch.h */, + ); + path = network; + sourceTree = ""; + }; + F76C84111EC4E7CC00FA49E2 /* object */ = { + isa = PBXGroup; + children = ( + F76C84121EC4E7CC00FA49E2 /* BannerObject.cpp */, + F76C84131EC4E7CC00FA49E2 /* BannerObject.h */, + F76C84141EC4E7CC00FA49E2 /* EntranceObject.cpp */, + F76C84151EC4E7CC00FA49E2 /* EntranceObject.h */, + F76C84161EC4E7CC00FA49E2 /* FootpathItemObject.cpp */, + F76C84171EC4E7CC00FA49E2 /* FootpathItemObject.h */, + F76C84181EC4E7CC00FA49E2 /* FootpathObject.cpp */, + F76C84191EC4E7CC00FA49E2 /* FootpathObject.h */, + F76C841A1EC4E7CC00FA49E2 /* ImageTable.cpp */, + F76C841B1EC4E7CC00FA49E2 /* ImageTable.h */, + F76C841C1EC4E7CC00FA49E2 /* LargeSceneryObject.cpp */, + F76C841D1EC4E7CC00FA49E2 /* LargeSceneryObject.h */, + F76C841E1EC4E7CC00FA49E2 /* Object.cpp */, + F76C841F1EC4E7CC00FA49E2 /* Object.h */, + F76C84201EC4E7CC00FA49E2 /* ObjectFactory.cpp */, + F76C84211EC4E7CC00FA49E2 /* ObjectFactory.h */, + F76C84221EC4E7CC00FA49E2 /* ObjectManager.cpp */, + F76C84231EC4E7CC00FA49E2 /* ObjectManager.h */, + F76C84241EC4E7CC00FA49E2 /* ObjectRepository.cpp */, + F76C84251EC4E7CC00FA49E2 /* ObjectRepository.h */, + F76C84261EC4E7CC00FA49E2 /* RideObject.cpp */, + F76C84271EC4E7CC00FA49E2 /* RideObject.h */, + F76C84281EC4E7CC00FA49E2 /* SceneryGroupObject.cpp */, + F76C84291EC4E7CC00FA49E2 /* SceneryGroupObject.h */, + F76C842A1EC4E7CC00FA49E2 /* SceneryObject.h */, + F76C842B1EC4E7CC00FA49E2 /* SmallSceneryObject.cpp */, + F76C842C1EC4E7CC00FA49E2 /* SmallSceneryObject.h */, + F76C842D1EC4E7CC00FA49E2 /* StexObject.cpp */, + F76C842E1EC4E7CC00FA49E2 /* StexObject.h */, + F76C842F1EC4E7CC00FA49E2 /* StringTable.cpp */, + F76C84301EC4E7CC00FA49E2 /* StringTable.h */, + F76C84311EC4E7CC00FA49E2 /* WallObject.cpp */, + F76C84321EC4E7CC00FA49E2 /* WallObject.h */, + F76C84331EC4E7CC00FA49E2 /* WaterObject.cpp */, + F76C84341EC4E7CC00FA49E2 /* WaterObject.h */, + ); + path = object; + sourceTree = ""; + }; + F76C843A1EC4E7CC00FA49E2 /* paint */ = { + isa = PBXGroup; + children = ( + F76C843B1EC4E7CC00FA49E2 /* map_element */, + F76C84461EC4E7CC00FA49E2 /* paint.c */, + F76C84471EC4E7CC00FA49E2 /* paint.h */, + F76C84481EC4E7CC00FA49E2 /* paint_helpers.c */, + F76C84491EC4E7CC00FA49E2 /* sprite */, + F76C844F1EC4E7CC00FA49E2 /* supports.c */, + F76C84501EC4E7CC00FA49E2 /* supports.h */, + ); + path = paint; + sourceTree = ""; + }; + F76C843B1EC4E7CC00FA49E2 /* map_element */ = { + isa = PBXGroup; + children = ( + F76C843C1EC4E7CC00FA49E2 /* banner.c */, + F76C843D1EC4E7CC00FA49E2 /* entrance.c */, + F76C843E1EC4E7CC00FA49E2 /* fence.c */, + F76C843F1EC4E7CC00FA49E2 /* map_element.c */, + F76C84401EC4E7CC00FA49E2 /* map_element.h */, + F76C84411EC4E7CC00FA49E2 /* path.c */, + F76C84421EC4E7CC00FA49E2 /* scenery.c */, + F76C84431EC4E7CC00FA49E2 /* scenery_multiple.c */, + F76C84441EC4E7CC00FA49E2 /* surface.c */, + F76C84451EC4E7CC00FA49E2 /* surface.h */, + ); + path = map_element; + sourceTree = ""; + }; + F76C84491EC4E7CC00FA49E2 /* sprite */ = { + isa = PBXGroup; + children = ( + F76C844A1EC4E7CC00FA49E2 /* litter.c */, + F76C844B1EC4E7CC00FA49E2 /* misc.c */, + F76C844C1EC4E7CC00FA49E2 /* peep.c */, + F76C844D1EC4E7CC00FA49E2 /* sprite.c */, + F76C844E1EC4E7CC00FA49E2 /* sprite.h */, + ); + path = sprite; + sourceTree = ""; + }; + F76C84531EC4E7CC00FA49E2 /* peep */ = { + isa = PBXGroup; + children = ( + F76C84541EC4E7CC00FA49E2 /* peep.c */, + F76C84551EC4E7CC00FA49E2 /* peep.h */, + F76C84561EC4E7CC00FA49E2 /* peep_data.c */, + F76C84571EC4E7CC00FA49E2 /* staff.c */, + F76C84581EC4E7CC00FA49E2 /* staff.h */, + ); + path = peep; + sourceTree = ""; + }; + F76C84591EC4E7CC00FA49E2 /* platform */ = { + isa = PBXGroup; + children = ( + F76C845A1EC4E7CC00FA49E2 /* crash.cpp */, + F76C845B1EC4E7CC00FA49E2 /* crash.h */, + F76C845C1EC4E7CC00FA49E2 /* linux.c */, + F76C845D1EC4E7CC00FA49E2 /* macos.m */, + F76C845E1EC4E7CC00FA49E2 /* platform.h */, + F76C845F1EC4E7CC00FA49E2 /* Platform2.cpp */, + F76C84601EC4E7CC00FA49E2 /* Platform2.h */, + F76C84611EC4E7CC00FA49E2 /* posix.c */, + F76C84621EC4E7CC00FA49E2 /* shared.c */, + F76C84631EC4E7CC00FA49E2 /* windows.c */, + ); + path = platform; + sourceTree = ""; + }; + F76C84661EC4E7CC00FA49E2 /* rct1 */ = { + isa = PBXGroup; + children = ( + F76C84671EC4E7CC00FA49E2 /* S4Importer.cpp */, + F76C84681EC4E7CC00FA49E2 /* tables.cpp */, + F76C84691EC4E7CC00FA49E2 /* Tables.h */, + ); + path = rct1; + sourceTree = ""; + }; + F76C846C1EC4E7CC00FA49E2 /* rct12 */ = { + isa = PBXGroup; + children = ( + F76C846D1EC4E7CC00FA49E2 /* SawyerChunk.cpp */, + F76C846E1EC4E7CC00FA49E2 /* SawyerChunk.h */, + F76C846F1EC4E7CC00FA49E2 /* SawyerChunkReader.cpp */, + F76C84701EC4E7CC00FA49E2 /* SawyerChunkReader.h */, + F76C84711EC4E7CC00FA49E2 /* SawyerChunkWriter.cpp */, + F76C84721EC4E7CC00FA49E2 /* SawyerChunkWriter.h */, + F76C84731EC4E7CC00FA49E2 /* SawyerEncoding.cpp */, + F76C84741EC4E7CC00FA49E2 /* SawyerEncoding.h */, + ); + path = rct12; + sourceTree = ""; + }; + F76C84761EC4E7CC00FA49E2 /* rct2 */ = { + isa = PBXGroup; + children = ( + F76C84771EC4E7CC00FA49E2 /* addresses.c */, + F76C84781EC4E7CC00FA49E2 /* addresses.h */, + F76C84791EC4E7CC00FA49E2 /* hook.c */, + F76C847A1EC4E7CC00FA49E2 /* hook.h */, + F76C847B1EC4E7CC00FA49E2 /* interop.c */, + F76C847C1EC4E7CC00FA49E2 /* interop.h */, + F76C847D1EC4E7CC00FA49E2 /* S6Exporter.cpp */, + F76C847E1EC4E7CC00FA49E2 /* S6Exporter.h */, + F76C847F1EC4E7CC00FA49E2 /* S6Importer.cpp */, + ); + path = rct2; + sourceTree = ""; + }; + F76C84831EC4E7CC00FA49E2 /* ride */ = { + isa = PBXGroup; + children = ( + F76C84841EC4E7CC00FA49E2 /* cable_lift.c */, + F76C84851EC4E7CC00FA49E2 /* cable_lift.h */, + F76C84861EC4E7CC00FA49E2 /* coaster */, + F76C84A91EC4E7CC00FA49E2 /* gentle */, + F76C84BA1EC4E7CC00FA49E2 /* ride.c */, + F76C84BB1EC4E7CC00FA49E2 /* ride.h */, + F76C84BC1EC4E7CC00FA49E2 /* ride_data.c */, + F76C84BD1EC4E7CC00FA49E2 /* ride_data.h */, + F76C84BE1EC4E7CC00FA49E2 /* ride_ratings.c */, + F76C84BF1EC4E7CC00FA49E2 /* ride_ratings.h */, + F76C84C01EC4E7CC00FA49E2 /* shops */, + F76C84C41EC4E7CC00FA49E2 /* station.c */, + F76C84C51EC4E7CC00FA49E2 /* station.h */, + F76C84C61EC4E7CC00FA49E2 /* thrill */, + F76C84D21EC4E7CC00FA49E2 /* track.c */, + F76C84D31EC4E7CC00FA49E2 /* track.h */, + F76C84D41EC4E7CC00FA49E2 /* track_data.c */, + F76C84D51EC4E7CC00FA49E2 /* track_data.h */, + F76C84D61EC4E7CC00FA49E2 /* track_data_old.c */, + F76C84D71EC4E7CC00FA49E2 /* track_design.c */, + F76C84D81EC4E7CC00FA49E2 /* track_design.h */, + F76C84D91EC4E7CD00FA49E2 /* track_design_save.c */, + F76C84DA1EC4E7CD00FA49E2 /* track_paint.c */, + F76C84DB1EC4E7CD00FA49E2 /* track_paint.h */, + F76C84DC1EC4E7CD00FA49E2 /* TrackDesignRepository.cpp */, + F76C84DD1EC4E7CD00FA49E2 /* TrackDesignRepository.h */, + F76C84DE1EC4E7CD00FA49E2 /* transport */, + F76C84E41EC4E7CD00FA49E2 /* vehicle.c */, + F76C84E51EC4E7CD00FA49E2 /* vehicle.h */, + F76C84E61EC4E7CD00FA49E2 /* vehicle_data.c */, + F76C84E71EC4E7CD00FA49E2 /* vehicle_data.h */, + F76C84E81EC4E7CD00FA49E2 /* vehicle_paint.c */, + F76C84E91EC4E7CD00FA49E2 /* vehicle_paint.h */, + F76C84EA1EC4E7CD00FA49E2 /* water */, + ); + path = ride; + sourceTree = ""; + }; + F76C84861EC4E7CC00FA49E2 /* coaster */ = { + isa = PBXGroup; + children = ( + F76C84871EC4E7CC00FA49E2 /* air_powered_vertical_coaster.c */, + F76C84881EC4E7CC00FA49E2 /* bobsleigh_coaster.c */, + F76C84891EC4E7CC00FA49E2 /* bolliger_mabillard_track.c */, + F76C848A1EC4E7CC00FA49E2 /* bolliger_mabillard_track.h */, + F76C848B1EC4E7CC00FA49E2 /* compact_inverted_coaster.c */, + F76C848C1EC4E7CC00FA49E2 /* corkscrew_roller_coaster.c */, + F76C848D1EC4E7CC00FA49E2 /* flying_roller_coaster.c */, + F76C848E1EC4E7CC00FA49E2 /* giga_coaster.c */, + F76C848F1EC4E7CC00FA49E2 /* heartline_twister_coaster.c */, + F76C84901EC4E7CC00FA49E2 /* inverted_hairpin_coaster.c */, + F76C84911EC4E7CC00FA49E2 /* inverted_impulse_coaster.c */, + F76C84921EC4E7CC00FA49E2 /* inverted_roller_coaster.c */, + F76C84931EC4E7CC00FA49E2 /* junior_roller_coaster.c */, + F76C84941EC4E7CC00FA49E2 /* junior_roller_coaster.h */, + F76C84951EC4E7CC00FA49E2 /* lay_down_roller_coaster.c */, + F76C84961EC4E7CC00FA49E2 /* lim_launched_roller_coaster.c */, + F76C84971EC4E7CC00FA49E2 /* looping_roller_coaster.c */, + F76C84981EC4E7CC00FA49E2 /* mine_ride.c */, + F76C84991EC4E7CC00FA49E2 /* mine_train_coaster.c */, + F76C849A1EC4E7CC00FA49E2 /* mini_roller_coaster.c */, + F76C849B1EC4E7CC00FA49E2 /* mini_suspended_coaster.c */, + F76C849C1EC4E7CC00FA49E2 /* multi_dimension_roller_coaster.c */, + F76C849D1EC4E7CC00FA49E2 /* reverse_freefall_coaster.c */, + F76C849E1EC4E7CC00FA49E2 /* reverser_roller_coaster.c */, + F76C849F1EC4E7CC00FA49E2 /* side_friction_roller_coaster.c */, + F76C84A01EC4E7CC00FA49E2 /* stand_up_roller_coaster.c */, + F76C84A11EC4E7CC00FA49E2 /* steeplechase.c */, + F76C84A21EC4E7CC00FA49E2 /* suspended_swinging_coaster.c */, + F76C84A31EC4E7CC00FA49E2 /* twister_roller_coaster.c */, + F76C84A41EC4E7CC00FA49E2 /* vertical_drop_roller_coaster.c */, + F76C84A51EC4E7CC00FA49E2 /* virginia_reel.c */, + F76C84A61EC4E7CC00FA49E2 /* wild_mouse.c */, + F76C84A71EC4E7CC00FA49E2 /* wooden_roller_coaster.c */, + F76C84A81EC4E7CC00FA49E2 /* wooden_wild_mouse.c */, + ); + path = coaster; + sourceTree = ""; + }; + F76C84A91EC4E7CC00FA49E2 /* gentle */ = { + isa = PBXGroup; + children = ( + F76C84AA1EC4E7CC00FA49E2 /* car_ride.c */, + F76C84AB1EC4E7CC00FA49E2 /* circus_show.c */, + F76C84AC1EC4E7CC00FA49E2 /* crooked_house.c */, + F76C84AD1EC4E7CC00FA49E2 /* dodgems.c */, + F76C84AE1EC4E7CC00FA49E2 /* ferris_wheel.c */, + F76C84AF1EC4E7CC00FA49E2 /* flying_saucers.c */, + F76C84B01EC4E7CC00FA49E2 /* ghost_train.c */, + F76C84B11EC4E7CC00FA49E2 /* haunted_house.c */, + F76C84B21EC4E7CC00FA49E2 /* maze.c */, + F76C84B31EC4E7CC00FA49E2 /* merry_go_round.c */, + F76C84B41EC4E7CC00FA49E2 /* mini_golf.c */, + F76C84B51EC4E7CC00FA49E2 /* mini_helicopters.c */, + F76C84B61EC4E7CC00FA49E2 /* monorail_cycles.c */, + F76C84B71EC4E7CC00FA49E2 /* observation_tower.c */, + F76C84B81EC4E7CC00FA49E2 /* space_rings.c */, + F76C84B91EC4E7CC00FA49E2 /* spiral_slide.c */, + ); + path = gentle; + sourceTree = ""; + }; + F76C84C01EC4E7CC00FA49E2 /* shops */ = { + isa = PBXGroup; + children = ( + F76C84C11EC4E7CC00FA49E2 /* facility.c */, + F76C84C21EC4E7CC00FA49E2 /* misc.c */, + F76C84C31EC4E7CC00FA49E2 /* shop.c */, + ); + path = shops; + sourceTree = ""; + }; + F76C84C61EC4E7CC00FA49E2 /* thrill */ = { + isa = PBXGroup; + children = ( + F76C84C71EC4E7CC00FA49E2 /* 3d_cinema.c */, + F76C84C81EC4E7CC00FA49E2 /* enterprise.c */, + F76C84C91EC4E7CC00FA49E2 /* go_karts.c */, + F76C84CA1EC4E7CC00FA49E2 /* launched_freefall.c */, + F76C84CB1EC4E7CC00FA49E2 /* magic_carpet.c */, + F76C84CC1EC4E7CC00FA49E2 /* motion_simulator.c */, + F76C84CD1EC4E7CC00FA49E2 /* pirate_ship.c */, + F76C84CE1EC4E7CC00FA49E2 /* roto_drop.c */, + F76C84CF1EC4E7CC00FA49E2 /* swinging_inverter_ship.c */, + F76C84D01EC4E7CC00FA49E2 /* top_spin.c */, + F76C84D11EC4E7CC00FA49E2 /* twist.c */, + ); + path = thrill; + sourceTree = ""; + }; + F76C84DE1EC4E7CD00FA49E2 /* transport */ = { + isa = PBXGroup; + children = ( + F76C84DF1EC4E7CD00FA49E2 /* chairlift.c */, + F76C84E01EC4E7CD00FA49E2 /* lift.c */, + F76C84E11EC4E7CD00FA49E2 /* miniature_railway.c */, + F76C84E21EC4E7CD00FA49E2 /* monorail.c */, + F76C84E31EC4E7CD00FA49E2 /* suspended_monorail.c */, + ); + path = transport; + sourceTree = ""; + }; + F76C84EA1EC4E7CD00FA49E2 /* water */ = { + isa = PBXGroup; + children = ( + F76C84EB1EC4E7CD00FA49E2 /* boat_ride.c */, + F76C84EC1EC4E7CD00FA49E2 /* dingy_slide.c */, + F76C84ED1EC4E7CD00FA49E2 /* log_flume.c */, + F76C84EE1EC4E7CD00FA49E2 /* river_rafts.c */, + F76C84EF1EC4E7CD00FA49E2 /* river_rapids.c */, + F76C84F01EC4E7CD00FA49E2 /* splash_boats.c */, + F76C84F11EC4E7CD00FA49E2 /* submarine_ride.c */, + F76C84F21EC4E7CD00FA49E2 /* water_coaster.c */, + ); + path = water; + sourceTree = ""; + }; + F76C84F31EC4E7CD00FA49E2 /* scenario */ = { + isa = PBXGroup; + children = ( + F76C84F41EC4E7CD00FA49E2 /* scenario.c */, + F76C84F51EC4E7CD00FA49E2 /* scenario.h */, + F76C84F61EC4E7CD00FA49E2 /* ScenarioRepository.cpp */, + F76C84F71EC4E7CD00FA49E2 /* ScenarioRepository.h */, + F76C84F81EC4E7CD00FA49E2 /* ScenarioSources.cpp */, + F76C84F91EC4E7CD00FA49E2 /* ScenarioSources.h */, + ); + path = scenario; + sourceTree = ""; + }; + F76C84FB1EC4E7CD00FA49E2 /* title */ = { + isa = PBXGroup; + children = ( + F76C84FC1EC4E7CD00FA49E2 /* TitleScreen.cpp */, + F76C84FD1EC4E7CD00FA49E2 /* TitleScreen.h */, + F76C84FE1EC4E7CD00FA49E2 /* TitleSequence.cpp */, + F76C84FF1EC4E7CD00FA49E2 /* TitleSequence.h */, + F76C85001EC4E7CD00FA49E2 /* TitleSequenceManager.cpp */, + F76C85011EC4E7CD00FA49E2 /* TitleSequenceManager.h */, + F76C85021EC4E7CD00FA49E2 /* TitleSequencePlayer.cpp */, + F76C85031EC4E7CD00FA49E2 /* TitleSequencePlayer.h */, + ); + path = title; + sourceTree = ""; + }; + F76C85041EC4E7CD00FA49E2 /* ui */ = { + isa = PBXGroup; + children = ( + F76C85051EC4E7CD00FA49E2 /* UiContext.h */, + ); + path = ui; + sourceTree = ""; + }; + F76C85061EC4E7CD00FA49E2 /* util */ = { + isa = PBXGroup; + children = ( + F76C85071EC4E7CD00FA49E2 /* sawyercoding.c */, + F76C85081EC4E7CD00FA49E2 /* sawyercoding.h */, + F76C85091EC4E7CD00FA49E2 /* util.c */, + F76C850A1EC4E7CD00FA49E2 /* util.h */, + ); + path = util; + sourceTree = ""; + }; + F76C850D1EC4E7CD00FA49E2 /* windows */ = { + isa = PBXGroup; + children = ( + F76C850E1EC4E7CD00FA49E2 /* about.c */, + F76C850F1EC4E7CD00FA49E2 /* banner.c */, + F76C85101EC4E7CD00FA49E2 /* changelog.c */, + F76C85111EC4E7CD00FA49E2 /* cheats.c */, + F76C85121EC4E7CD00FA49E2 /* clear_scenery.c */, + F76C85131EC4E7CD00FA49E2 /* custom_currency.c */, + F76C85141EC4E7CD00FA49E2 /* debug_paint.c */, + F76C85151EC4E7CD00FA49E2 /* demolish_ride_prompt.c */, + F76C85161EC4E7CD00FA49E2 /* dropdown.c */, + F76C85171EC4E7CD00FA49E2 /* dropdown.h */, + F76C85181EC4E7CD00FA49E2 /* editor_bottom_toolbar.c */, + F76C85191EC4E7CD00FA49E2 /* editor_inventions_list.c */, + F76C851A1EC4E7CD00FA49E2 /* editor_main.c */, + F76C851B1EC4E7CD00FA49E2 /* editor_object_selection.c */, + F76C851C1EC4E7CD00FA49E2 /* editor_objective_options.c */, + F76C851D1EC4E7CD00FA49E2 /* editor_scenario_options.c */, + F76C851E1EC4E7CD00FA49E2 /* error.c */, + F76C851F1EC4E7CD00FA49E2 /* error.h */, + F76C85201EC4E7CD00FA49E2 /* finances.c */, + F76C85211EC4E7CD00FA49E2 /* footpath.c */, + F76C85221EC4E7CD00FA49E2 /* game_bottom_toolbar.c */, + F76C85231EC4E7CD00FA49E2 /* guest.c */, + F76C85241EC4E7CD00FA49E2 /* guest_list.c */, + F76C85251EC4E7CD00FA49E2 /* install_track.c */, + F76C85261EC4E7CD00FA49E2 /* land.c */, + F76C85271EC4E7CD00FA49E2 /* land_rights.c */, + F76C85281EC4E7CD00FA49E2 /* loadsave.c */, + F76C85291EC4E7CD00FA49E2 /* main.c */, + F76C852A1EC4E7CD00FA49E2 /* map.c */, + F76C852B1EC4E7CD00FA49E2 /* map_tooltip.c */, + F76C852C1EC4E7CD00FA49E2 /* mapgen.c */, + F76C852D1EC4E7CD00FA49E2 /* maze_construction.c */, + F76C852E1EC4E7CD00FA49E2 /* multiplayer.c */, + F76C852F1EC4E7CD00FA49E2 /* music_credits.c */, + F76C85301EC4E7CD00FA49E2 /* network_status.c */, + F76C85311EC4E7CD00FA49E2 /* new_campaign.c */, + F76C85321EC4E7CD00FA49E2 /* new_ride.c */, + F76C85331EC4E7CD00FA49E2 /* news.c */, + F76C85341EC4E7CD00FA49E2 /* news_options.c */, + F76C85351EC4E7CD00FA49E2 /* options.c */, + F76C85361EC4E7CD00FA49E2 /* park.c */, + F76C85371EC4E7CD00FA49E2 /* player.c */, + F76C85381EC4E7CD00FA49E2 /* publisher_credits.c */, + F76C85391EC4E7CD00FA49E2 /* research.c */, + F76C853A1EC4E7CD00FA49E2 /* ride.c */, + F76C853B1EC4E7CD00FA49E2 /* ride_construction.c */, + F76C853C1EC4E7CD00FA49E2 /* ride_list.c */, + F76C853D1EC4E7CD00FA49E2 /* save_prompt.c */, + F76C853E1EC4E7CD00FA49E2 /* scenery.c */, + F76C853F1EC4E7CD00FA49E2 /* server_list.cpp */, + F76C85401EC4E7CD00FA49E2 /* server_start.c */, + F76C85411EC4E7CD00FA49E2 /* shortcut_key_change.c */, + F76C85421EC4E7CD00FA49E2 /* shortcut_keys.c */, + F76C85431EC4E7CD00FA49E2 /* sign.c */, + F76C85441EC4E7CD00FA49E2 /* staff.c */, + F76C85451EC4E7CD00FA49E2 /* staff_fire_prompt.c */, + F76C85461EC4E7CD00FA49E2 /* staff_list.c */, + F76C85471EC4E7CD00FA49E2 /* text_input.c */, + F76C85481EC4E7CD00FA49E2 /* themes.c */, + F76C85491EC4E7CD00FA49E2 /* tile_inspector.c */, + F76C854A1EC4E7CD00FA49E2 /* tile_inspector.h */, + F76C854B1EC4E7CD00FA49E2 /* title_command_editor.c */, + F76C854C1EC4E7CD00FA49E2 /* title_editor.c */, + F76C854D1EC4E7CD00FA49E2 /* title_exit.c */, + F76C854E1EC4E7CD00FA49E2 /* title_logo.c */, + F76C854F1EC4E7CD00FA49E2 /* title_menu.c */, + F76C85501EC4E7CD00FA49E2 /* title_options.c */, + F76C85511EC4E7CD00FA49E2 /* title_scenarioselect.c */, + F76C85521EC4E7CD00FA49E2 /* tooltip.c */, + F76C85531EC4E7CD00FA49E2 /* tooltip.h */, + F76C85541EC4E7CD00FA49E2 /* top_toolbar.c */, + F76C85551EC4E7CD00FA49E2 /* track_list.c */, + F76C85561EC4E7CD00FA49E2 /* track_manage.c */, + F76C85571EC4E7CD00FA49E2 /* track_place.c */, + F76C85581EC4E7CD00FA49E2 /* view_clipping.c */, + F76C85591EC4E7CD00FA49E2 /* viewport.c */, + F76C855A1EC4E7CD00FA49E2 /* water.c */, + ); + path = windows; + sourceTree = ""; + }; + F76C855B1EC4E7CD00FA49E2 /* world */ = { + isa = PBXGroup; + children = ( + F76C855C1EC4E7CD00FA49E2 /* Balloon.cpp */, + F76C855D1EC4E7CD00FA49E2 /* banner.cpp */, + F76C855E1EC4E7CD00FA49E2 /* banner.h */, + F76C855F1EC4E7CD00FA49E2 /* Climate.cpp */, + F76C85601EC4E7CD00FA49E2 /* Climate.h */, + F76C85611EC4E7CD00FA49E2 /* Duck.cpp */, + F76C85621EC4E7CD00FA49E2 /* entrance.cpp */, + F76C85631EC4E7CD00FA49E2 /* entrance.h */, + F76C85641EC4E7CD00FA49E2 /* footpath.c */, + F76C85651EC4E7CD00FA49E2 /* footpath.h */, + F76C85661EC4E7CD00FA49E2 /* Fountain.cpp */, + F76C85671EC4E7CD00FA49E2 /* Fountain.h */, + F76C85681EC4E7CD00FA49E2 /* map.c */, + F76C85691EC4E7CD00FA49E2 /* map.h */, + F76C856A1EC4E7CD00FA49E2 /* map_animation.c */, + F76C856B1EC4E7CD00FA49E2 /* map_animation.h */, + F76C856C1EC4E7CD00FA49E2 /* map_helpers.c */, + F76C856D1EC4E7CD00FA49E2 /* map_helpers.h */, + F76C856E1EC4E7CD00FA49E2 /* mapgen.c */, + F76C856F1EC4E7CD00FA49E2 /* mapgen.h */, + F76C85701EC4E7CD00FA49E2 /* money_effect.c */, + F76C85711EC4E7CD00FA49E2 /* park.c */, + F76C85721EC4E7CD00FA49E2 /* park.h */, + F76C85731EC4E7CD00FA49E2 /* particle.c */, + F76C85741EC4E7CD00FA49E2 /* scenery.c */, + F76C85751EC4E7CD00FA49E2 /* scenery.h */, + F76C85761EC4E7CD00FA49E2 /* sprite.c */, + F76C85771EC4E7CD00FA49E2 /* sprite.h */, + F76C85781EC4E7CD00FA49E2 /* tile_inspector.c */, + F76C85791EC4E7CD00FA49E2 /* tile_inspector.h */, + F76C857A1EC4E7CD00FA49E2 /* wall.cpp */, + F76C857B1EC4E7CD00FA49E2 /* water.h */, + ); + path = world; + sourceTree = ""; + }; + F76C857C1EC4E80E00FA49E2 /* openrct2-cli */ = { + isa = PBXGroup; + children = ( + F76C857D1EC4E80E00FA49E2 /* Cli.cpp */, + ); + name = "openrct2-cli"; + path = "src/openrct2-cli"; + sourceTree = SOURCE_ROOT; + }; + F76C85801EC4E82600FA49E2 /* openrct2-ui */ = { + isa = PBXGroup; + children = ( + F76C85811EC4E82600FA49E2 /* audio */, + F76C858A1EC4E82600FA49E2 /* CursorData.cpp */, + F76C858B1EC4E82600FA49E2 /* CursorRepository.cpp */, + F76C858C1EC4E82600FA49E2 /* CursorRepository.h */, + F76C858D1EC4E82600FA49E2 /* drawing */, + F76C85A81EC4E82600FA49E2 /* SDLException.h */, + F76C85A91EC4E82600FA49E2 /* TextComposition.cpp */, + F76C85AA1EC4E82600FA49E2 /* TextComposition.h */, + F76C85AB1EC4E82600FA49E2 /* Ui.cpp */, + F76C85AC1EC4E82600FA49E2 /* UiContext.cpp */, + F76C85AD1EC4E82600FA49E2 /* UiContext.h */, + F76C85AE1EC4E82600FA49E2 /* UiContext.Linux.cpp */, + F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */, + F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */, + ); + name = "openrct2-ui"; + path = "src/openrct2-ui"; + sourceTree = SOURCE_ROOT; + }; + F76C85811EC4E82600FA49E2 /* audio */ = { + isa = PBXGroup; + children = ( + F76C85821EC4E82600FA49E2 /* AudioChannel.cpp */, + F76C85831EC4E82600FA49E2 /* AudioContext.cpp */, + F76C85841EC4E82600FA49E2 /* AudioContext.h */, + F76C85851EC4E82600FA49E2 /* AudioFormat.h */, + F76C85861EC4E82600FA49E2 /* AudioMixer.cpp */, + F76C85871EC4E82600FA49E2 /* FileAudioSource.cpp */, + F76C85881EC4E82600FA49E2 /* MemoryAudioSource.cpp */, + ); + path = audio; + sourceTree = ""; + }; + F76C858D1EC4E82600FA49E2 /* drawing */ = { + isa = PBXGroup; + children = ( + F76C858E1EC4E82600FA49E2 /* engines */, + ); + path = drawing; + sourceTree = ""; + }; + F76C858E1EC4E82600FA49E2 /* engines */ = { + isa = PBXGroup; + children = ( + F76C858F1EC4E82600FA49E2 /* DrawingEngines.h */, + F76C85901EC4E82600FA49E2 /* opengl */, + F76C85A61EC4E82600FA49E2 /* SoftwareDrawingEngine.cpp */, + ); + path = engines; + sourceTree = ""; + }; + F76C85901EC4E82600FA49E2 /* opengl */ = { + isa = PBXGroup; + children = ( + F76C85911EC4E82600FA49E2 /* CopyFramebufferShader.cpp */, + F76C85921EC4E82600FA49E2 /* CopyFramebufferShader.h */, + F76C85931EC4E82600FA49E2 /* DrawCommands.h */, + F76C85941EC4E82600FA49E2 /* DrawImageShader.cpp */, + F76C85951EC4E82600FA49E2 /* DrawImageShader.h */, + F76C85961EC4E82600FA49E2 /* DrawLineShader.cpp */, + F76C85971EC4E82600FA49E2 /* DrawLineShader.h */, + F76C85981EC4E82600FA49E2 /* FillRectShader.cpp */, + F76C85991EC4E82600FA49E2 /* FillRectShader.h */, + F76C859A1EC4E82600FA49E2 /* GLSLTypes.h */, + F76C859B1EC4E82600FA49E2 /* OpenGLAPI.cpp */, + F76C859C1EC4E82600FA49E2 /* OpenGLAPI.h */, + F76C859D1EC4E82600FA49E2 /* OpenGLDrawingEngine.cpp */, + F76C859E1EC4E82600FA49E2 /* OpenGLFramebuffer.cpp */, + F76C859F1EC4E82600FA49E2 /* OpenGLFramebuffer.h */, + F76C85A01EC4E82600FA49E2 /* OpenGLShaderProgram.cpp */, + F76C85A11EC4E82600FA49E2 /* OpenGLShaderProgram.h */, + F76C85A21EC4E82600FA49E2 /* SwapFramebuffer.cpp */, + F76C85A31EC4E82600FA49E2 /* SwapFramebuffer.h */, + F76C85A41EC4E82600FA49E2 /* TextureCache.cpp */, + F76C85A51EC4E82600FA49E2 /* TextureCache.h */, + ); + path = opengl; + sourceTree = ""; + }; + F76C87B41EC4E91500FA49E2 /* resources */ = { + isa = PBXGroup; + children = ( + F76C87B51EC4E91500FA49E2 /* g2 */, + F76C881B1EC4E91600FA49E2 /* logo */, + F76C882B1EC4E91600FA49E2 /* OpenRCT2.rc */, + F76C882C1EC4E91600FA49E2 /* resource.h */, + ); + path = resources; + sourceTree = SOURCE_ROOT; + }; + F76C87B51EC4E91500FA49E2 /* g2 */ = { + isa = PBXGroup; + children = ( + F76C87B61EC4E91500FA49E2 /* 7.png */, + F76C87B71EC4E91500FA49E2 /* empty.png */, + F76C87B81EC4E91500FA49E2 /* icons */, + F76C87E31EC4E91500FA49E2 /* logo.png */, + F76C87E41EC4E91500FA49E2 /* logo_text.png */, + F76C87E51EC4E91500FA49E2 /* sprites.json */, + F76C87E61EC4E91500FA49E2 /* track */, + ); + path = g2; + sourceTree = ""; + }; + F76C87B81EC4E91500FA49E2 /* icons */ = { + isa = PBXGroup; + children = ( + F76C87B91EC4E91500FA49E2 /* 29.png */, + F76C87BA1EC4E91500FA49E2 /* 30.png */, + F76C87BB1EC4E91500FA49E2 /* 31.png */, + F76C87BC1EC4E91500FA49E2 /* 32.png */, + F76C87BD1EC4E91500FA49E2 /* 58.png */, + F76C87BE1EC4E91500FA49E2 /* cheats.png */, + F76C87BF1EC4E91500FA49E2 /* copy.png */, + F76C87C01EC4E91500FA49E2 /* fast_forward.png */, + F76C87C11EC4E91500FA49E2 /* game_speed_indicator.png */, + F76C87C21EC4E91500FA49E2 /* game_speed_indicator_double.png */, + F76C87C31EC4E91500FA49E2 /* large_scenery.png */, + F76C87C41EC4E91500FA49E2 /* map_gen_land.png */, + F76C87C51EC4E91500FA49E2 /* map_gen_noise.png */, + F76C87C61EC4E91500FA49E2 /* map_gen_trees.png */, + F76C87C71EC4E91500FA49E2 /* multiplayer.png */, + F76C87C81EC4E91500FA49E2 /* mute.png */, + F76C87C91EC4E91500FA49E2 /* mute_pressed.png */, + F76C87CA1EC4E91500FA49E2 /* paste.png */, + F76C87CB1EC4E91500FA49E2 /* paths.png */, + F76C87CC1EC4E91500FA49E2 /* rct1_close_off.png */, + F76C87CD1EC4E91500FA49E2 /* rct1_close_off_pressed.png */, + F76C87CE1EC4E91500FA49E2 /* rct1_close_on.png */, + F76C87CF1EC4E91500FA49E2 /* rct1_close_on_pressed.png */, + F76C87D01EC4E91500FA49E2 /* rct1_open_off.png */, + F76C87D11EC4E91500FA49E2 /* rct1_open_off_pressed.png */, + F76C87D21EC4E91500FA49E2 /* rct1_open_on.png */, + F76C87D31EC4E91500FA49E2 /* rct1_open_on_pressed.png */, + F76C87D41EC4E91500FA49E2 /* rct1_test_off.png */, + F76C87D51EC4E91500FA49E2 /* rct1_test_off_pressed.png */, + F76C87D61EC4E91500FA49E2 /* rct1_test_on.png */, + F76C87D71EC4E91500FA49E2 /* rct1_test_on_pressed.png */, + F76C87D81EC4E91500FA49E2 /* server_password.png */, + F76C87D91EC4E91500FA49E2 /* small_scenery.png */, + F76C87DA1EC4E91500FA49E2 /* sort.png */, + F76C87DB1EC4E91500FA49E2 /* tab_disabled.png */, + F76C87DC1EC4E91500FA49E2 /* twitch.png */, + F76C87DD1EC4E91500FA49E2 /* unmute.png */, + F76C87DE1EC4E91500FA49E2 /* unmute_pressed.png */, + F76C87DF1EC4E91500FA49E2 /* zoom_in.png */, + F76C87E01EC4E91500FA49E2 /* zoom_in_background.png */, + F76C87E11EC4E91500FA49E2 /* zoom_out.png */, + F76C87E21EC4E91500FA49E2 /* zoom_out_background.png */, + ); + path = icons; + sourceTree = ""; + }; + F76C87E61EC4E91500FA49E2 /* track */ = { + isa = PBXGroup; + children = ( + F76C87E71EC4E91500FA49E2 /* bm */, + F76C87EA1EC4E91500FA49E2 /* intamin */, + F76C87ED1EC4E91500FA49E2 /* junior */, + F76C88181EC4E91600FA49E2 /* mini */, + ); + path = track; + sourceTree = ""; + }; + F76C87E71EC4E91500FA49E2 /* bm */ = { + isa = PBXGroup; + children = ( + F76C87E81EC4E91500FA49E2 /* booster_1.png */, + F76C87E91EC4E91500FA49E2 /* booster_2.png */, + ); + path = bm; + sourceTree = ""; + }; + F76C87EA1EC4E91500FA49E2 /* intamin */ = { + isa = PBXGroup; + children = ( + F76C87EB1EC4E91500FA49E2 /* booster_1.png */, + F76C87EC1EC4E91500FA49E2 /* booster_2.png */, + ); + path = intamin; + sourceTree = ""; + }; + F76C87ED1EC4E91500FA49E2 /* junior */ = { + isa = PBXGroup; + children = ( + F76C87EE1EC4E91500FA49E2 /* booster_1.png */, + F76C87EF1EC4E91500FA49E2 /* booster_2.png */, + F76C87F01EC4E91500FA49E2 /* flat_to_steep_1.png */, + F76C87F11EC4E91500FA49E2 /* flat_to_steep_2_1.png */, + F76C87F21EC4E91500FA49E2 /* flat_to_steep_2_2.png */, + F76C87F31EC4E91500FA49E2 /* flat_to_steep_3_1.png */, + F76C87F41EC4E91500FA49E2 /* flat_to_steep_3_2.png */, + F76C87F51EC4E91500FA49E2 /* flat_to_steep_4.png */, + F76C87F61EC4E91500FA49E2 /* flat_to_steep_diagonal_1.png */, + F76C87F71EC4E91500FA49E2 /* flat_to_steep_diagonal_2.png */, + F76C87F81EC4E91500FA49E2 /* flat_to_steep_diagonal_3.png */, + F76C87F91EC4E91500FA49E2 /* flat_to_steep_diagonal_4.png */, + F76C87FA1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_1.png */, + F76C87FB1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_2.png */, + F76C87FC1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_3.png */, + F76C87FD1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_4.png */, + F76C87FE1EC4E91500FA49E2 /* flat_to_steep_lift_1.png */, + F76C87FF1EC4E91500FA49E2 /* flat_to_steep_lift_2_1.png */, + F76C88001EC4E91500FA49E2 /* flat_to_steep_lift_2_2.png */, + F76C88011EC4E91500FA49E2 /* flat_to_steep_lift_3_1.png */, + F76C88021EC4E91500FA49E2 /* flat_to_steep_lift_3_2.png */, + F76C88031EC4E91500FA49E2 /* flat_to_steep_lift_4.png */, + F76C88041EC4E91500FA49E2 /* steep_to_flat_1.png */, + F76C88051EC4E91600FA49E2 /* steep_to_flat_2_1.png */, + F76C88061EC4E91600FA49E2 /* steep_to_flat_2_2.png */, + F76C88071EC4E91600FA49E2 /* steep_to_flat_3_1.png */, + F76C88081EC4E91600FA49E2 /* steep_to_flat_3_2.png */, + F76C88091EC4E91600FA49E2 /* steep_to_flat_4.png */, + F76C880A1EC4E91600FA49E2 /* steep_to_flat_diagonal_1.png */, + F76C880B1EC4E91600FA49E2 /* steep_to_flat_diagonal_2.png */, + F76C880C1EC4E91600FA49E2 /* steep_to_flat_diagonal_3.png */, + F76C880D1EC4E91600FA49E2 /* steep_to_flat_diagonal_4.png */, + F76C880E1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_1.png */, + F76C880F1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_2.png */, + F76C88101EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_3.png */, + F76C88111EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_4.png */, + F76C88121EC4E91600FA49E2 /* steep_to_flat_lift_1.png */, + F76C88131EC4E91600FA49E2 /* steep_to_flat_lift_2_1.png */, + F76C88141EC4E91600FA49E2 /* steep_to_flat_lift_2_2.png */, + F76C88151EC4E91600FA49E2 /* steep_to_flat_lift_3_1.png */, + F76C88161EC4E91600FA49E2 /* steep_to_flat_lift_3_2.png */, + F76C88171EC4E91600FA49E2 /* steep_to_flat_lift_4.png */, + ); + path = junior; + sourceTree = ""; + }; + F76C88181EC4E91600FA49E2 /* mini */ = { + isa = PBXGroup; + children = ( + F76C88191EC4E91600FA49E2 /* booster_1.png */, + F76C881A1EC4E91600FA49E2 /* booster_2.png */, + ); + path = mini; + sourceTree = ""; + }; + F76C881B1EC4E91600FA49E2 /* logo */ = { + isa = PBXGroup; + children = ( + F76C881C1EC4E91600FA49E2 /* icon.ico */, + F76C881D1EC4E91600FA49E2 /* icon_flag.svg */, + F76C881E1EC4E91600FA49E2 /* icon_noflag.svg */, + F76C881F1EC4E91600FA49E2 /* icon_x1024.png */, + F76C88201EC4E91600FA49E2 /* icon_x128.png */, + F76C88211EC4E91600FA49E2 /* icon_x16.png */, + F76C88221EC4E91600FA49E2 /* icon_x2048.png */, + F76C88231EC4E91600FA49E2 /* icon_x256.png */, + F76C88241EC4E91600FA49E2 /* icon_x32.png */, + F76C88251EC4E91600FA49E2 /* icon_x4.png */, + F76C88261EC4E91600FA49E2 /* icon_x40.png */, + F76C88271EC4E91600FA49E2 /* icon_x512.png */, + F76C88281EC4E91600FA49E2 /* icon_x64.png */, + F76C88291EC4E91600FA49E2 /* icon_x8.png */, + F76C882A1EC4E91600FA49E2 /* makeico.linq */, + ); + path = logo; + sourceTree = ""; + }; /* End PBXGroup section */ +/* Begin PBXHeadersBuildPhase section */ + F76C80981EC4D9FA00FA49E2 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + /* Begin PBXNativeTarget section */ C64FDA5C1D6D99F400F259B9 /* PaintTest */ = { isa = PBXNativeTarget; @@ -2407,12 +3313,32 @@ buildRules = ( ); dependencies = ( + F76C88901EC5325700FA49E2 /* PBXTargetDependency */, ); name = OpenRCT2; productName = OpenRCT2; productReference = D497D0781C20FD52002BF46A /* OpenRCT2.app */; productType = "com.apple.product-type.application"; }; + F76C80991EC4D9FA00FA49E2 /* libopenrct2 */ = { + isa = PBXNativeTarget; + buildConfigurationList = F76C809D1EC4D9FA00FA49E2 /* Build configuration list for PBXNativeTarget "libopenrct2" */; + buildPhases = ( + F76C809E1EC4DAAB00FA49E2 /* Download Libraries */, + F76C809F1EC4DB0300FA49E2 /* Get Git Variables */, + F76C80961EC4D9FA00FA49E2 /* Sources */, + F76C88381EC4EB5900FA49E2 /* Resources */, + F76C80981EC4D9FA00FA49E2 /* Headers */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = libopenrct2; + productName = libopenrct2; + productReference = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; + productType = "com.apple.product-type.library.static"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -2428,6 +3354,10 @@ D497D0771C20FD52002BF46A = { CreatedOnToolsVersion = 7.2; }; + F76C80991EC4D9FA00FA49E2 = { + CreatedOnToolsVersion = 8.3.2; + ProvisioningStyle = Automatic; + }; }; }; buildConfigurationList = D497D0731C20FD52002BF46A /* Build configuration list for PBXProject "OpenRCT2" */; @@ -2445,6 +3375,7 @@ targets = ( D497D0771C20FD52002BF46A /* OpenRCT2 */, C64FDA5C1D6D99F400F259B9 /* PaintTest */, + F76C80991EC4D9FA00FA49E2 /* libopenrct2 */, ); }; /* End PBXProject section */ @@ -2462,6 +3393,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + F76C88381EC4EB5900FA49E2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ @@ -2573,6 +3511,36 @@ shellPath = /bin/sh; shellScript = "version=\"11\"\nzipname=\"openrct2-libs-macos.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\n if [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\n mkdir \"${SRCROOT}/libxc\"\n\n curl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\n unzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\n rm \"${SRCROOT}/libxc/$zipname\"\n\n echo $version > \"${SRCROOT}/libversion\"\nfi"; }; + F76C809E1EC4DAAB00FA49E2 /* Download Libraries */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Download Libraries"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "version=\"11\"\nzipname=\"openrct2-libs-macos.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\nmkdir \"${SRCROOT}/libxc\"\n\ncurl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\nrm \"${SRCROOT}/libxc/$zipname\"\n\necho $version > \"${SRCROOT}/libversion\"\nfi"; + }; + F76C809F1EC4DB0300FA49E2 /* Get Git Variables */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Get Git Variables"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/gitversion.h", + "$(DERIVED_FILE_DIR)/Info.plist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"#define\" OPENRCT2_BRANCH \\\"$(git rev-parse --abbrev-ref HEAD)\\\" > \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1 \\\"$(git rev-parse HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1_SHORT \\\"$(git rev-parse --short HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\ncp \"${SRCROOT}/distribution/macos/Info.plist\" \"${DERIVED_FILE_DIR}/Info.plist\"\nplutil -replace CFBundleVersion -string \"$(git rev-parse --short HEAD)\" \"${DERIVED_FILE_DIR}/Info.plist\""; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -2580,68 +3548,16 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - C6CABA7F1E13F14F00D33A6B /* addresses.c in Sources */, - C6CABA7E1E13F11C00D33A6B /* hook.c in Sources */, - C64FDAC31D6DA41000F259B9 /* track_paint.c in Sources */, - C64FDAC21D6DA0B800F259B9 /* diagnostic.c in Sources */, - C64FDAC01D6D9E3B00F259B9 /* track_data.c in Sources */, - C64FDABF1D6D9CEA00F259B9 /* map_element.c in Sources */, - C64FDABE1D6D9CD900F259B9 /* ride_data.c in Sources */, C606CCD21DB4D7C800FE4015 /* SideTunnelCall.cpp in Sources */, - C64FDA641D6D9A2100F259B9 /* air_powered_vertical_coaster.c in Sources */, C606CCD51DB4DD6C00FE4015 /* VerticalTunnelCall.cpp in Sources */, - C64FDA651D6D9A2100F259B9 /* bobsleigh_coaster.c in Sources */, - C64FDA661D6D9A2100F259B9 /* compact_inverted_coaster.c in Sources */, - C64FDA671D6D9A2100F259B9 /* corkscrew_roller_coaster.c in Sources */, - C64FDA681D6D9A2100F259B9 /* flying_roller_coaster.c in Sources */, - C64FDA691D6D9A2100F259B9 /* giga_coaster.c in Sources */, - C64FDA6A1D6D9A2100F259B9 /* heartline_twister_coaster.c in Sources */, - C64FDA6B1D6D9A2100F259B9 /* inverted_hairpin_coaster.c in Sources */, - C64FDA6C1D6D9A2100F259B9 /* inverted_impulse_coaster.c in Sources */, - C64FDA6D1D6D9A2100F259B9 /* inverted_roller_coaster.c in Sources */, - C64FDA6E1D6D9A2100F259B9 /* junior_roller_coaster.c in Sources */, C606CCCF1DB427A000FE4015 /* SegmentSupportHeightCall.cpp in Sources */, - C64FDA6F1D6D9A2100F259B9 /* lay_down_roller_coaster.c in Sources */, - C64FDA701D6D9A2100F259B9 /* lim_launched_roller_coaster.c in Sources */, - C64FDA711D6D9A2100F259B9 /* looping_roller_coaster.c in Sources */, - C64FDA721D6D9A2100F259B9 /* mine_ride.c in Sources */, - C64FDA731D6D9A2100F259B9 /* mine_train_coaster.c in Sources */, - C64FDA741D6D9A2100F259B9 /* mini_roller_coaster.c in Sources */, - C64FDA751D6D9A2100F259B9 /* mini_suspended_coaster.c in Sources */, - C64FDA761D6D9A2100F259B9 /* multi_dimension_roller_coaster.c in Sources */, - C64FDA771D6D9A2100F259B9 /* reverse_freefall_coaster.c in Sources */, C606CCBE1DB4054000FE4015 /* compat.c in Sources */, - C64FDA781D6D9A2100F259B9 /* reverser_roller_coaster.c in Sources */, - C64FDA791D6D9A2100F259B9 /* side_friction_roller_coaster.c in Sources */, - C64FDA7B1D6D9A2100F259B9 /* stand_up_roller_coaster.c in Sources */, C606CCC61DB4054000FE4015 /* Printer.cpp in Sources */, - C64FDA7C1D6D9A2100F259B9 /* steeplechase.c in Sources */, - C64FDA7D1D6D9A2100F259B9 /* suspended_swinging_coaster.c in Sources */, - C64FDA7E1D6D9A2100F259B9 /* twister_roller_coaster.c in Sources */, - C64FDA7F1D6D9A2100F259B9 /* vertical_drop_roller_coaster.c in Sources */, - C64FDA801D6D9A2100F259B9 /* virginia_reel.c in Sources */, - C64FDA811D6D9A2100F259B9 /* wild_mouse.c in Sources */, C606CCC41DB4054000FE4015 /* main.cpp in Sources */, - C64FDA821D6D9A2100F259B9 /* wooden_roller_coaster.c in Sources */, - C64FDA831D6D9A2100F259B9 /* wooden_wild_mouse.c in Sources */, - C64FDA841D6D9A2100F259B9 /* car_ride.c in Sources */, - C64FDA851D6D9A2100F259B9 /* circus_show.c in Sources */, - C64FDA861D6D9A2100F259B9 /* crooked_house.c in Sources */, - 85060FD31D8C17CC00DFA2B3 /* track_data_old.c in Sources */, - C64FDA871D6D9A2100F259B9 /* dodgems.c in Sources */, - C64FDA881D6D9A2100F259B9 /* ferris_wheel.c in Sources */, - C64FDA891D6D9A2100F259B9 /* flying_saucers.c in Sources */, C606CCC11DB4054000FE4015 /* generate.cpp in Sources */, - C64FDA8A1D6D9A2100F259B9 /* ghost_train.c in Sources */, C606CCBF1DB4054000FE4015 /* data.c in Sources */, - C64FDA8B1D6D9A2100F259B9 /* haunted_house.c in Sources */, - C64FDA8C1D6D9A2100F259B9 /* maze.c in Sources */, - C64FDA8D1D6D9A2100F259B9 /* merry_go_round.c in Sources */, - C64FDA8E1D6D9A2100F259B9 /* mini_golf.c in Sources */, C606CCC81DB4054000FE4015 /* TestTrack.cpp in Sources */, - C64FDA8F1D6D9A2100F259B9 /* mini_helicopters.c in Sources */, C606CCC51DB4054000FE4015 /* PaintIntercept.cpp in Sources */, - C64FDA901D6D9A2100F259B9 /* monorail_cycles.c in Sources */, C606CCCE1DB427A000FE4015 /* GeneralSupportHeightCall.cpp in Sources */, C64FDA911D6D9A2100F259B9 /* observation_tower.c in Sources */, C64FDA921D6D9A2100F259B9 /* space_rings.c in Sources */, @@ -2652,16 +3568,7 @@ C64FDA981D6D9A2100F259B9 /* enterprise.c in Sources */, C64FDA991D6D9A2100F259B9 /* go_karts.c in Sources */, C606CCC01DB4054000FE4015 /* FunctionCall.cpp in Sources */, - C64FDA9A1D6D9A2100F259B9 /* launched_freefall.c in Sources */, - C64FDA9B1D6D9A2100F259B9 /* magic_carpet.c in Sources */, - C64FDA9C1D6D9A2100F259B9 /* motion_simulator.c in Sources */, - C64FDA9D1D6D9A2100F259B9 /* pirate_ship.c in Sources */, - C64FDA9E1D6D9A2100F259B9 /* roto_drop.c in Sources */, - C64FDA9F1D6D9A2100F259B9 /* swinging_inverter_ship.c in Sources */, - C64FDAA01D6D9A2100F259B9 /* top_spin.c in Sources */, - C64FDAA11D6D9A2100F259B9 /* twist.c in Sources */, C606CD261DB5120C00FE4015 /* TestPaint.cpp in Sources */, - C64FDAA21D6D9A2100F259B9 /* chairlift.c in Sources */, C606CCC71DB4054000FE4015 /* String.cpp in Sources */, C64FDAA31D6D9A2100F259B9 /* lift.c in Sources */, C64FDAA41D6D9A2100F259B9 /* miniature_railway.c in Sources */, @@ -2672,14 +3579,6 @@ C64FDAA81D6D9A2100F259B9 /* dingy_slide.c in Sources */, C64FDAA91D6D9A2100F259B9 /* log_flume.c in Sources */, C606CCC91DB4054000FE4015 /* Utils.cpp in Sources */, - C64FDAAB1D6D9A2100F259B9 /* river_rapids.c in Sources */, - C64FDAAC1D6D9A2100F259B9 /* splash_boats.c in Sources */, - C64FDAAD1D6D9A2100F259B9 /* submarine_ride.c in Sources */, - C64FDAAE1D6D9A2100F259B9 /* water_coaster.c in Sources */, - 6876808CD662C4B16392A9B4 /* Balloon.cpp in Sources */, - 7D02D519C9A56A1FB9854FE7 /* Climate.cpp in Sources */, - 689149B0417A68D6765F09CD /* banner.cpp in Sources */, - F408D5E134FE5B423BE5443F /* Duck.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3037,11 +3936,387 @@ F2CC500E17C9411FBA859888 /* Climate.cpp in Sources */, 8DED2F20E0D63A1DCFCE0197 /* banner.cpp in Sources */, B94C3C5FC4DBBB864434DE83 /* Duck.cpp in Sources */, + F76C88781EC5324E00FA49E2 /* AudioChannel.cpp in Sources */, + F76C88791EC5324E00FA49E2 /* AudioContext.cpp in Sources */, + F76C887A1EC5324E00FA49E2 /* AudioMixer.cpp in Sources */, + F76C887B1EC5324E00FA49E2 /* FileAudioSource.cpp in Sources */, + F76C887C1EC5324E00FA49E2 /* MemoryAudioSource.cpp in Sources */, + F76C887D1EC5324E00FA49E2 /* CursorData.cpp in Sources */, + F7D7747F1EC61E5100BE6EBC /* UiContext.macOS.mm in Sources */, + F76C887E1EC5324E00FA49E2 /* CursorRepository.cpp in Sources */, + F76C887F1EC5324E00FA49E2 /* CopyFramebufferShader.cpp in Sources */, + F76C88801EC5324E00FA49E2 /* DrawImageShader.cpp in Sources */, + F76C88811EC5324E00FA49E2 /* DrawLineShader.cpp in Sources */, + F76C88821EC5324E00FA49E2 /* FillRectShader.cpp in Sources */, + F76C88831EC5324E00FA49E2 /* OpenGLAPI.cpp in Sources */, + F76C88841EC5324E00FA49E2 /* OpenGLDrawingEngine.cpp in Sources */, + F76C88851EC5324E00FA49E2 /* OpenGLFramebuffer.cpp in Sources */, + F76C88861EC5324E00FA49E2 /* OpenGLShaderProgram.cpp in Sources */, + F76C88871EC5324E00FA49E2 /* SwapFramebuffer.cpp in Sources */, + F76C88881EC5324E00FA49E2 /* TextureCache.cpp in Sources */, + F76C88891EC5324E00FA49E2 /* SoftwareDrawingEngine.cpp in Sources */, + F76C888A1EC5324E00FA49E2 /* TextComposition.cpp in Sources */, + F76C888B1EC5324E00FA49E2 /* Ui.cpp in Sources */, + F76C888C1EC5324E00FA49E2 /* UiContext.cpp in Sources */, + F76C888D1EC5324E00FA49E2 /* UiContext.Linux.cpp in Sources */, + F76C888E1EC5324E00FA49E2 /* UiContext.Win32.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F76C80961EC4D9FA00FA49E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F7D7747B1EC5EB6D00BE6EBC /* lay_down_roller_coaster.c in Sources */, + F76C85B01EC4E88300FA49E2 /* audio.cpp in Sources */, + F76C85B41EC4E88300FA49E2 /* AudioMixer.cpp in Sources */, + F76C85B71EC4E88300FA49E2 /* NullAudioSource.cpp in Sources */, + F76C85B81EC4E88300FA49E2 /* cheats.c in Sources */, + F76C85BA1EC4E88300FA49E2 /* CommandLine.cpp in Sources */, + F76C85BC1EC4E88300FA49E2 /* ConvertCommand.cpp in Sources */, + F76C85BD1EC4E88300FA49E2 /* RootCommands.cpp in Sources */, + F76C85BE1EC4E88300FA49E2 /* ScreenshotCommands.cpp in Sources */, + F76C85BF1EC4E88300FA49E2 /* SpriteCommands.cpp in Sources */, + F76C85C01EC4E88300FA49E2 /* UriHandler.cpp in Sources */, + F76C85C11EC4E88300FA49E2 /* cmdline_sprite.c in Sources */, + F76C85C41EC4E88300FA49E2 /* Config.cpp in Sources */, + F76C85C71EC4E88300FA49E2 /* IniReader.cpp in Sources */, + F76C85C91EC4E88300FA49E2 /* IniWriter.cpp in Sources */, + F76C85CB1EC4E88300FA49E2 /* KeyboardShortcuts.cpp in Sources */, + F76C85CC1EC4E88300FA49E2 /* Context.cpp in Sources */, + F76C85CF1EC4E88300FA49E2 /* Console.cpp in Sources */, + F76C85D11EC4E88300FA49E2 /* Diagnostics.cpp in Sources */, + F76C85D41EC4E88300FA49E2 /* File.cpp in Sources */, + F76C85D61EC4E88300FA49E2 /* FileScanner.cpp in Sources */, + F76C85D91EC4E88300FA49E2 /* Guard.cpp in Sources */, + F76C85DB1EC4E88300FA49E2 /* IStream.cpp in Sources */, + F76C85DD1EC4E88300FA49E2 /* Json.cpp in Sources */, + F76C85E11EC4E88300FA49E2 /* MemoryStream.cpp in Sources */, + F76C85E41EC4E88300FA49E2 /* Path.cpp in Sources */, + F76C85E71EC4E88300FA49E2 /* String.cpp in Sources */, + F76C85EB1EC4E88300FA49E2 /* textinputbuffer.c in Sources */, + F76C85EE1EC4E88300FA49E2 /* Zip.cpp in Sources */, + F76C85F01EC4E88300FA49E2 /* diagnostic.c in Sources */, + F76C85F21EC4E88300FA49E2 /* drawing.c in Sources */, + F76C85F41EC4E88300FA49E2 /* drawing_fast.cpp in Sources */, + F76C85F51EC4E88300FA49E2 /* font.c in Sources */, + F76C85F91EC4E88300FA49E2 /* Image.cpp in Sources */, + F76C85FA1EC4E88300FA49E2 /* lightfx.c in Sources */, + F76C85FC1EC4E88300FA49E2 /* line.c in Sources */, + F76C85FD1EC4E88300FA49E2 /* NewDrawing.cpp in Sources */, + F76C85FF1EC4E88300FA49E2 /* Rain.cpp in Sources */, + F76C86011EC4E88300FA49E2 /* rect.c in Sources */, + F76C86021EC4E88300FA49E2 /* scrolling_text.c in Sources */, + F76C86031EC4E88300FA49E2 /* sprite.cpp in Sources */, + F76C86041EC4E88300FA49E2 /* string.c in Sources */, + F76C86051EC4E88300FA49E2 /* editor.c in Sources */, + F76C86071EC4E88300FA49E2 /* FileClassifier.cpp in Sources */, + F76C86091EC4E88300FA49E2 /* game.c in Sources */, + F76C860B1EC4E88300FA49E2 /* Imaging.cpp in Sources */, + F76C860D1EC4E88300FA49E2 /* input.c in Sources */, + F76C860F1EC4E88300FA49E2 /* chat.c in Sources */, + F76C86111EC4E88300FA49E2 /* colour.c in Sources */, + F76C86131EC4E88300FA49E2 /* console.c in Sources */, + F76C86161EC4E88300FA49E2 /* Fonts.cpp in Sources */, + F76C86181EC4E88300FA49E2 /* graph.c in Sources */, + F76C861A1EC4E88300FA49E2 /* keyboard_shortcut.c in Sources */, + F76C861C1EC4E88300FA49E2 /* screenshot.c in Sources */, + F76C861E1EC4E88300FA49E2 /* Theme.cpp in Sources */, + F76C86201EC4E88300FA49E2 /* viewport.c in Sources */, + F76C86221EC4E88300FA49E2 /* viewport_interaction.c in Sources */, + F76C86231EC4E88300FA49E2 /* widget.c in Sources */, + F76C86251EC4E88300FA49E2 /* window.c in Sources */, + F76C86271EC4E88300FA49E2 /* intro.c in Sources */, + F76C86291EC4E88300FA49E2 /* convert.c in Sources */, + F76C862A1EC4E88300FA49E2 /* currency.c in Sources */, + F76C862C1EC4E88300FA49E2 /* date.c in Sources */, + F76C862E1EC4E88300FA49E2 /* format_codes.c in Sources */, + F76C86301EC4E88300FA49E2 /* language.cpp in Sources */, + F76C86321EC4E88300FA49E2 /* LanguagePack.cpp in Sources */, + F76C86341EC4E88300FA49E2 /* localisation.c in Sources */, + F76C86361EC4E88300FA49E2 /* real_names.c in Sources */, + F76C86381EC4E88300FA49E2 /* user.c in Sources */, + F76C863A1EC4E88300FA49E2 /* utf8.c in Sources */, + F76C863B1EC4E88300FA49E2 /* award.c in Sources */, + F76C863D1EC4E88300FA49E2 /* finance.c in Sources */, + F76C863F1EC4E88300FA49E2 /* marketing.c in Sources */, + F76C86411EC4E88300FA49E2 /* news_item.c in Sources */, + F76C86431EC4E88300FA49E2 /* research.c in Sources */, + F76C86451EC4E88300FA49E2 /* http.cpp in Sources */, + F76C86471EC4E88300FA49E2 /* network.cpp in Sources */, + F76C86491EC4E88300FA49E2 /* NetworkAction.cpp in Sources */, + F76C864B1EC4E88300FA49E2 /* NetworkConnection.cpp in Sources */, + F76C864D1EC4E88300FA49E2 /* NetworkGroup.cpp in Sources */, + F76C864F1EC4E88300FA49E2 /* NetworkKey.cpp in Sources */, + F76C86511EC4E88300FA49E2 /* NetworkPacket.cpp in Sources */, + F76C86531EC4E88300FA49E2 /* NetworkPlayer.cpp in Sources */, + F76C86551EC4E88300FA49E2 /* NetworkServerAdvertiser.cpp in Sources */, + F76C86581EC4E88300FA49E2 /* NetworkUser.cpp in Sources */, + F76C865A1EC4E88300FA49E2 /* ServerList.cpp in Sources */, + F76C865C1EC4E88300FA49E2 /* TcpSocket.cpp in Sources */, + F76C865E1EC4E88300FA49E2 /* twitch.cpp in Sources */, + F76C86601EC4E88300FA49E2 /* BannerObject.cpp in Sources */, + F76C86621EC4E88300FA49E2 /* EntranceObject.cpp in Sources */, + F76C86641EC4E88300FA49E2 /* FootpathItemObject.cpp in Sources */, + F76C86661EC4E88300FA49E2 /* FootpathObject.cpp in Sources */, + F76C86681EC4E88300FA49E2 /* ImageTable.cpp in Sources */, + F76C866A1EC4E88300FA49E2 /* LargeSceneryObject.cpp in Sources */, + F76C866C1EC4E88400FA49E2 /* Object.cpp in Sources */, + F76C866E1EC4E88400FA49E2 /* ObjectFactory.cpp in Sources */, + F76C86701EC4E88400FA49E2 /* ObjectManager.cpp in Sources */, + F76C86721EC4E88400FA49E2 /* ObjectRepository.cpp in Sources */, + F76C86741EC4E88400FA49E2 /* RideObject.cpp in Sources */, + F76C86761EC4E88400FA49E2 /* SceneryGroupObject.cpp in Sources */, + F76C86791EC4E88400FA49E2 /* SmallSceneryObject.cpp in Sources */, + F76C867B1EC4E88400FA49E2 /* StexObject.cpp in Sources */, + F76C867D1EC4E88400FA49E2 /* StringTable.cpp in Sources */, + F76C867F1EC4E88400FA49E2 /* WallObject.cpp in Sources */, + F76C86811EC4E88400FA49E2 /* WaterObject.cpp in Sources */, + F76C86841EC4E88400FA49E2 /* object_list.c in Sources */, + F76C86861EC4E88400FA49E2 /* OpenRCT2.cpp in Sources */, + F76C86881EC4E88400FA49E2 /* banner.c in Sources */, + F76C86891EC4E88400FA49E2 /* entrance.c in Sources */, + F76C868A1EC4E88400FA49E2 /* fence.c in Sources */, + F76C868B1EC4E88400FA49E2 /* map_element.c in Sources */, + F76C868D1EC4E88400FA49E2 /* path.c in Sources */, + F76C868E1EC4E88400FA49E2 /* scenery.c in Sources */, + F76C868F1EC4E88400FA49E2 /* scenery_multiple.c in Sources */, + F76C86901EC4E88400FA49E2 /* surface.c in Sources */, + F76C86921EC4E88400FA49E2 /* paint.c in Sources */, + F76C86941EC4E88400FA49E2 /* paint_helpers.c in Sources */, + F76C86951EC4E88400FA49E2 /* litter.c in Sources */, + F76C86961EC4E88400FA49E2 /* misc.c in Sources */, + F76C86971EC4E88400FA49E2 /* peep.c in Sources */, + F76C86981EC4E88400FA49E2 /* sprite.c in Sources */, + F76C869A1EC4E88400FA49E2 /* supports.c in Sources */, + F76C869C1EC4E88400FA49E2 /* ParkImporter.cpp in Sources */, + F76C869E1EC4E88400FA49E2 /* peep.c in Sources */, + F76C86A01EC4E88400FA49E2 /* peep_data.c in Sources */, + F76C86A11EC4E88400FA49E2 /* staff.c in Sources */, + F76C86A31EC4E88400FA49E2 /* crash.cpp in Sources */, + F76C86A51EC4E88400FA49E2 /* linux.c in Sources */, + F76C86A61EC4E88400FA49E2 /* macos.m in Sources */, + F76C86A81EC4E88400FA49E2 /* Platform2.cpp in Sources */, + F76C86AA1EC4E88400FA49E2 /* posix.c in Sources */, + F76C86AB1EC4E88400FA49E2 /* shared.c in Sources */, + F76C86AC1EC4E88400FA49E2 /* windows.c in Sources */, + F76C86AD1EC4E88400FA49E2 /* PlatformEnvironment.cpp in Sources */, + F76C86AF1EC4E88400FA49E2 /* S4Importer.cpp in Sources */, + F76C86B01EC4E88400FA49E2 /* tables.cpp in Sources */, + F76C86B21EC4E88400FA49E2 /* rct1.c in Sources */, + F76C86B41EC4E88400FA49E2 /* SawyerChunk.cpp in Sources */, + F76C86B61EC4E88400FA49E2 /* SawyerChunkReader.cpp in Sources */, + F76C86B81EC4E88400FA49E2 /* SawyerChunkWriter.cpp in Sources */, + F76C86BA1EC4E88400FA49E2 /* SawyerEncoding.cpp in Sources */, + F76C86BD1EC4E88400FA49E2 /* addresses.c in Sources */, + F76C86BF1EC4E88400FA49E2 /* hook.c in Sources */, + F76C86C11EC4E88400FA49E2 /* interop.c in Sources */, + F76C86C31EC4E88400FA49E2 /* S6Exporter.cpp in Sources */, + F76C86C51EC4E88400FA49E2 /* S6Importer.cpp in Sources */, + F76C86C61EC4E88400FA49E2 /* rct2.c in Sources */, + F76C86C81EC4E88400FA49E2 /* cable_lift.c in Sources */, + F76C86CA1EC4E88400FA49E2 /* air_powered_vertical_coaster.c in Sources */, + F76C86CB1EC4E88400FA49E2 /* bobsleigh_coaster.c in Sources */, + F76C86CC1EC4E88400FA49E2 /* bolliger_mabillard_track.c in Sources */, + F76C86CE1EC4E88400FA49E2 /* compact_inverted_coaster.c in Sources */, + F76C86CF1EC4E88400FA49E2 /* corkscrew_roller_coaster.c in Sources */, + F76C86D01EC4E88400FA49E2 /* flying_roller_coaster.c in Sources */, + F76C86D11EC4E88400FA49E2 /* giga_coaster.c in Sources */, + F76C86D21EC4E88400FA49E2 /* heartline_twister_coaster.c in Sources */, + F76C86D31EC4E88400FA49E2 /* inverted_hairpin_coaster.c in Sources */, + F76C86D41EC4E88400FA49E2 /* inverted_impulse_coaster.c in Sources */, + F76C86D51EC4E88400FA49E2 /* inverted_roller_coaster.c in Sources */, + F76C86D61EC4E88400FA49E2 /* junior_roller_coaster.c in Sources */, + F76C86D91EC4E88400FA49E2 /* lim_launched_roller_coaster.c in Sources */, + F76C86DA1EC4E88400FA49E2 /* looping_roller_coaster.c in Sources */, + F76C86DB1EC4E88400FA49E2 /* mine_ride.c in Sources */, + F76C86DC1EC4E88400FA49E2 /* mine_train_coaster.c in Sources */, + F76C86DD1EC4E88400FA49E2 /* mini_roller_coaster.c in Sources */, + F76C86DE1EC4E88400FA49E2 /* mini_suspended_coaster.c in Sources */, + F76C86DF1EC4E88400FA49E2 /* multi_dimension_roller_coaster.c in Sources */, + F76C86E01EC4E88400FA49E2 /* reverse_freefall_coaster.c in Sources */, + F76C86E11EC4E88400FA49E2 /* reverser_roller_coaster.c in Sources */, + F76C86E21EC4E88400FA49E2 /* side_friction_roller_coaster.c in Sources */, + F76C86E31EC4E88400FA49E2 /* stand_up_roller_coaster.c in Sources */, + F76C86E41EC4E88400FA49E2 /* steeplechase.c in Sources */, + F76C86E51EC4E88400FA49E2 /* suspended_swinging_coaster.c in Sources */, + F76C86E61EC4E88400FA49E2 /* twister_roller_coaster.c in Sources */, + F76C86E71EC4E88400FA49E2 /* vertical_drop_roller_coaster.c in Sources */, + F76C86E81EC4E88400FA49E2 /* virginia_reel.c in Sources */, + F76C86E91EC4E88400FA49E2 /* wild_mouse.c in Sources */, + F76C86EA1EC4E88400FA49E2 /* wooden_roller_coaster.c in Sources */, + F76C86EB1EC4E88400FA49E2 /* wooden_wild_mouse.c in Sources */, + F76C86EC1EC4E88400FA49E2 /* car_ride.c in Sources */, + F76C86ED1EC4E88400FA49E2 /* circus_show.c in Sources */, + F76C86EE1EC4E88400FA49E2 /* crooked_house.c in Sources */, + F76C86EF1EC4E88400FA49E2 /* dodgems.c in Sources */, + F76C86F01EC4E88400FA49E2 /* ferris_wheel.c in Sources */, + F76C86F11EC4E88400FA49E2 /* flying_saucers.c in Sources */, + F76C86F21EC4E88400FA49E2 /* ghost_train.c in Sources */, + F76C86F31EC4E88400FA49E2 /* haunted_house.c in Sources */, + F76C86F41EC4E88400FA49E2 /* maze.c in Sources */, + F76C86F51EC4E88400FA49E2 /* merry_go_round.c in Sources */, + F76C86F61EC4E88400FA49E2 /* mini_golf.c in Sources */, + F76C86F71EC4E88400FA49E2 /* mini_helicopters.c in Sources */, + F76C86F81EC4E88400FA49E2 /* monorail_cycles.c in Sources */, + F76C86F91EC4E88400FA49E2 /* observation_tower.c in Sources */, + F76C86FA1EC4E88400FA49E2 /* space_rings.c in Sources */, + F76C86FB1EC4E88400FA49E2 /* spiral_slide.c in Sources */, + F76C86FC1EC4E88400FA49E2 /* ride.c in Sources */, + F76C86FE1EC4E88400FA49E2 /* ride_data.c in Sources */, + F76C87001EC4E88400FA49E2 /* ride_ratings.c in Sources */, + F76C87021EC4E88400FA49E2 /* facility.c in Sources */, + F76C87031EC4E88400FA49E2 /* misc.c in Sources */, + F76C87041EC4E88400FA49E2 /* shop.c in Sources */, + F76C87051EC4E88400FA49E2 /* station.c in Sources */, + F76C87071EC4E88400FA49E2 /* 3d_cinema.c in Sources */, + F76C87081EC4E88400FA49E2 /* enterprise.c in Sources */, + F76C87091EC4E88400FA49E2 /* go_karts.c in Sources */, + F76C870A1EC4E88400FA49E2 /* launched_freefall.c in Sources */, + F76C870B1EC4E88400FA49E2 /* magic_carpet.c in Sources */, + F76C870C1EC4E88400FA49E2 /* motion_simulator.c in Sources */, + F76C870D1EC4E88400FA49E2 /* pirate_ship.c in Sources */, + F76C870E1EC4E88400FA49E2 /* roto_drop.c in Sources */, + F76C870F1EC4E88400FA49E2 /* swinging_inverter_ship.c in Sources */, + F76C87101EC4E88400FA49E2 /* top_spin.c in Sources */, + F76C87111EC4E88400FA49E2 /* twist.c in Sources */, + F76C87121EC4E88400FA49E2 /* track.c in Sources */, + F76C87141EC4E88400FA49E2 /* track_data.c in Sources */, + F76C87161EC4E88400FA49E2 /* track_data_old.c in Sources */, + F76C87171EC4E88400FA49E2 /* track_design.c in Sources */, + F76C87191EC4E88400FA49E2 /* track_design_save.c in Sources */, + F76C871A1EC4E88400FA49E2 /* track_paint.c in Sources */, + F76C871C1EC4E88400FA49E2 /* TrackDesignRepository.cpp in Sources */, + F76C871E1EC4E88400FA49E2 /* chairlift.c in Sources */, + F76C871F1EC4E88400FA49E2 /* lift.c in Sources */, + F76C87201EC4E88400FA49E2 /* miniature_railway.c in Sources */, + F76C87211EC4E88400FA49E2 /* monorail.c in Sources */, + F76C87221EC4E88400FA49E2 /* suspended_monorail.c in Sources */, + F76C87231EC4E88400FA49E2 /* vehicle.c in Sources */, + F76C87251EC4E88400FA49E2 /* vehicle_data.c in Sources */, + F76C87271EC4E88400FA49E2 /* vehicle_paint.c in Sources */, + F76C87291EC4E88400FA49E2 /* boat_ride.c in Sources */, + F76C872A1EC4E88400FA49E2 /* dingy_slide.c in Sources */, + F76C872B1EC4E88400FA49E2 /* log_flume.c in Sources */, + F76C872C1EC4E88400FA49E2 /* river_rafts.c in Sources */, + F76C872D1EC4E88400FA49E2 /* river_rapids.c in Sources */, + F76C872E1EC4E88400FA49E2 /* splash_boats.c in Sources */, + F76C872F1EC4E88400FA49E2 /* submarine_ride.c in Sources */, + F76C87301EC4E88400FA49E2 /* water_coaster.c in Sources */, + F76C87311EC4E88400FA49E2 /* scenario.c in Sources */, + F76C87331EC4E88400FA49E2 /* ScenarioRepository.cpp in Sources */, + F76C87351EC4E88400FA49E2 /* ScenarioSources.cpp in Sources */, + F76C87381EC4E88400FA49E2 /* TitleScreen.cpp in Sources */, + F76C873A1EC4E88400FA49E2 /* TitleSequence.cpp in Sources */, + F76C873C1EC4E88400FA49E2 /* TitleSequenceManager.cpp in Sources */, + F76C873E1EC4E88400FA49E2 /* TitleSequencePlayer.cpp in Sources */, + F76C87411EC4E88400FA49E2 /* sawyercoding.c in Sources */, + F76C87431EC4E88400FA49E2 /* util.c in Sources */, + F76C87451EC4E88400FA49E2 /* Version.cpp in Sources */, + F76C87471EC4E88400FA49E2 /* about.c in Sources */, + F76C87481EC4E88400FA49E2 /* banner.c in Sources */, + F76C87491EC4E88400FA49E2 /* changelog.c in Sources */, + F76C874A1EC4E88400FA49E2 /* cheats.c in Sources */, + F76C874B1EC4E88400FA49E2 /* clear_scenery.c in Sources */, + F76C874C1EC4E88400FA49E2 /* custom_currency.c in Sources */, + F76C874D1EC4E88400FA49E2 /* debug_paint.c in Sources */, + F76C874E1EC4E88400FA49E2 /* demolish_ride_prompt.c in Sources */, + F76C874F1EC4E88400FA49E2 /* dropdown.c in Sources */, + F76C87511EC4E88400FA49E2 /* editor_bottom_toolbar.c in Sources */, + F76C87521EC4E88400FA49E2 /* editor_inventions_list.c in Sources */, + F76C87531EC4E88400FA49E2 /* editor_main.c in Sources */, + F76C87541EC4E88400FA49E2 /* editor_object_selection.c in Sources */, + F76C87551EC4E88400FA49E2 /* editor_objective_options.c in Sources */, + F76C87561EC4E88400FA49E2 /* editor_scenario_options.c in Sources */, + F76C87571EC4E88400FA49E2 /* error.c in Sources */, + F76C87591EC4E88400FA49E2 /* finances.c in Sources */, + F76C875A1EC4E88400FA49E2 /* footpath.c in Sources */, + F76C875B1EC4E88400FA49E2 /* game_bottom_toolbar.c in Sources */, + F76C875C1EC4E88400FA49E2 /* guest.c in Sources */, + F76C875D1EC4E88400FA49E2 /* guest_list.c in Sources */, + F76C875E1EC4E88400FA49E2 /* install_track.c in Sources */, + F76C875F1EC4E88400FA49E2 /* land.c in Sources */, + F76C87601EC4E88400FA49E2 /* land_rights.c in Sources */, + F76C87611EC4E88400FA49E2 /* loadsave.c in Sources */, + F76C87621EC4E88400FA49E2 /* main.c in Sources */, + F76C87631EC4E88400FA49E2 /* map.c in Sources */, + F76C87641EC4E88400FA49E2 /* map_tooltip.c in Sources */, + F76C87651EC4E88400FA49E2 /* mapgen.c in Sources */, + F76C87661EC4E88400FA49E2 /* maze_construction.c in Sources */, + F76C87671EC4E88400FA49E2 /* multiplayer.c in Sources */, + F76C87681EC4E88400FA49E2 /* music_credits.c in Sources */, + F76C87691EC4E88400FA49E2 /* network_status.c in Sources */, + F76C876A1EC4E88400FA49E2 /* new_campaign.c in Sources */, + F76C876B1EC4E88400FA49E2 /* new_ride.c in Sources */, + F76C876C1EC4E88400FA49E2 /* news.c in Sources */, + F76C876D1EC4E88400FA49E2 /* news_options.c in Sources */, + F76C876E1EC4E88400FA49E2 /* options.c in Sources */, + F76C876F1EC4E88400FA49E2 /* park.c in Sources */, + F76C87701EC4E88400FA49E2 /* player.c in Sources */, + F76C87711EC4E88400FA49E2 /* publisher_credits.c in Sources */, + F76C87721EC4E88400FA49E2 /* research.c in Sources */, + F76C87731EC4E88400FA49E2 /* ride.c in Sources */, + F76C87741EC4E88400FA49E2 /* ride_construction.c in Sources */, + F76C87751EC4E88400FA49E2 /* ride_list.c in Sources */, + F76C87761EC4E88400FA49E2 /* save_prompt.c in Sources */, + F76C87771EC4E88400FA49E2 /* scenery.c in Sources */, + F76C87781EC4E88400FA49E2 /* server_list.cpp in Sources */, + F76C87791EC4E88400FA49E2 /* server_start.c in Sources */, + F76C877A1EC4E88400FA49E2 /* shortcut_key_change.c in Sources */, + F76C877B1EC4E88400FA49E2 /* shortcut_keys.c in Sources */, + F76C877C1EC4E88400FA49E2 /* sign.c in Sources */, + F76C877D1EC4E88400FA49E2 /* staff.c in Sources */, + F76C877E1EC4E88400FA49E2 /* staff_fire_prompt.c in Sources */, + F76C877F1EC4E88400FA49E2 /* staff_list.c in Sources */, + F76C87801EC4E88400FA49E2 /* text_input.c in Sources */, + F76C87811EC4E88400FA49E2 /* themes.c in Sources */, + F76C87821EC4E88400FA49E2 /* tile_inspector.c in Sources */, + F76C87841EC4E88400FA49E2 /* title_command_editor.c in Sources */, + F76C87851EC4E88400FA49E2 /* title_editor.c in Sources */, + F76C87861EC4E88400FA49E2 /* title_exit.c in Sources */, + F76C87871EC4E88400FA49E2 /* title_logo.c in Sources */, + F76C87881EC4E88400FA49E2 /* title_menu.c in Sources */, + F76C87891EC4E88400FA49E2 /* title_options.c in Sources */, + F76C878A1EC4E88400FA49E2 /* title_scenarioselect.c in Sources */, + F76C878B1EC4E88400FA49E2 /* tooltip.c in Sources */, + F76C878D1EC4E88400FA49E2 /* top_toolbar.c in Sources */, + F76C878E1EC4E88400FA49E2 /* track_list.c in Sources */, + F76C878F1EC4E88400FA49E2 /* track_manage.c in Sources */, + F76C87901EC4E88400FA49E2 /* track_place.c in Sources */, + F76C87911EC4E88400FA49E2 /* view_clipping.c in Sources */, + F76C87921EC4E88400FA49E2 /* viewport.c in Sources */, + F76C87931EC4E88400FA49E2 /* water.c in Sources */, + F76C87941EC4E88400FA49E2 /* Balloon.cpp in Sources */, + F76C87951EC4E88400FA49E2 /* banner.cpp in Sources */, + F76C87971EC4E88400FA49E2 /* Climate.cpp in Sources */, + F76C87991EC4E88400FA49E2 /* Duck.cpp in Sources */, + F76C879A1EC4E88400FA49E2 /* entrance.cpp in Sources */, + F76C879C1EC4E88400FA49E2 /* footpath.c in Sources */, + F76C879E1EC4E88400FA49E2 /* Fountain.cpp in Sources */, + F76C87A01EC4E88400FA49E2 /* map.c in Sources */, + F76C87A21EC4E88400FA49E2 /* map_animation.c in Sources */, + F76C87A41EC4E88500FA49E2 /* map_helpers.c in Sources */, + F76C87A61EC4E88500FA49E2 /* mapgen.c in Sources */, + F76C87A81EC4E88500FA49E2 /* money_effect.c in Sources */, + F76C87A91EC4E88500FA49E2 /* park.c in Sources */, + F76C87AB1EC4E88500FA49E2 /* particle.c in Sources */, + F76C87AC1EC4E88500FA49E2 /* scenery.c in Sources */, + F76C87AE1EC4E88500FA49E2 /* sprite.c in Sources */, + F76C87B01EC4E88500FA49E2 /* tile_inspector.c in Sources */, + F76C87B21EC4E88500FA49E2 /* wall.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + F76C88901EC5325700FA49E2 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = F76C80991EC4D9FA00FA49E2 /* libopenrct2 */; + targetProxy = F76C888F1EC5325700FA49E2 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + /* Begin XCBuildConfiguration section */ C64FDA611D6D99F400F259B9 /* Debug */ = { isa = XCBuildConfiguration; @@ -3237,9 +4512,13 @@ D497D08A1C20FD53002BF46A /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; CLANG_WARN_UNREACHABLE_CODE = NO; COMBINE_HIDPI_IMAGES = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; GCC_PREPROCESSOR_DEFINITIONS = ( "$(inherited)", NO_RCT2, @@ -3254,6 +4533,7 @@ "$(SRCROOT)/libxc/include/SDL2", "$(SRCROOT)/libxc/include/libpng16", "$(SRCROOT)/libxc/include/openssl", + "$(SRCROOT)/src/", ); INFOPLIST_FILE = "$(DERIVED_FILE_DIR)/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; @@ -3269,9 +4549,13 @@ D497D08B1C20FD53002BF46A /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; CLANG_WARN_UNREACHABLE_CODE = NO; COMBINE_HIDPI_IMAGES = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; GCC_PREPROCESSOR_DEFINITIONS = ( "$(inherited)", NO_RCT2, @@ -3286,6 +4570,7 @@ "$(SRCROOT)/libxc/include/SDL2", "$(SRCROOT)/libxc/include/libpng16", "$(SRCROOT)/libxc/include/openssl", + "$(SRCROOT)/src/", ); INFOPLIST_FILE = "$(DERIVED_FILE_DIR)/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; @@ -3298,6 +4583,84 @@ }; name = Release; }; + F76C809B1EC4D9FA00FA49E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_DOCUMENTATION_COMMENTS = NO; + CLANG_WARN_UNREACHABLE_CODE = NO; + CODE_SIGN_IDENTITY = "-"; + EXECUTABLE_PREFIX = ""; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + NO_RCT2, + __ENABLE_LIGHTFX__, + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = NO; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = NO; + GCC_WARN_UNUSED_VARIABLE = NO; + HEADER_SEARCH_PATHS = ( + "$(SRCROOT)/libxc/include", + "$(SRCROOT)/libxc/include/SDL2", + "$(SRCROOT)/libxc/include/libpng16", + "$(SRCROOT)/libxc/include/openssl", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/libxc/lib", + ); + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRIVATE_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/PrivateHeaders"; + PRODUCT_NAME = "$(TARGET_NAME)"; + PUBLIC_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Headers"; + }; + name = Debug; + }; + F76C809C1EC4D9FA00FA49E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_DOCUMENTATION_COMMENTS = NO; + CLANG_WARN_UNREACHABLE_CODE = NO; + CODE_SIGN_IDENTITY = "-"; + EXECUTABLE_PREFIX = ""; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_PREPROCESSOR_DEFINITIONS = ( + OPENGL_NO_LINK, + "OPENRCT2_BUILD_INFO_HEADER=\"\\\"$(DERIVED_FILE_DIR)/gitversion.h\\\"\"", + NO_RCT2, + __ENABLE_LIGHTFX__, + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = NO; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = NO; + GCC_WARN_UNUSED_VARIABLE = NO; + HEADER_SEARCH_PATHS = ( + "$(SRCROOT)/libxc/include", + "$(SRCROOT)/libxc/include/SDL2", + "$(SRCROOT)/libxc/include/libpng16", + "$(SRCROOT)/libxc/include/openssl", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/libxc/lib", + ); + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRIVATE_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/PrivateHeaders"; + PRODUCT_NAME = "$(TARGET_NAME)"; + PUBLIC_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Headers"; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -3328,6 +4691,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + F76C809D1EC4D9FA00FA49E2 /* Build configuration list for PBXNativeTarget "libopenrct2" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F76C809B1EC4D9FA00FA49E2 /* Debug */, + F76C809C1EC4D9FA00FA49E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = D497D0701C20FD52002BF46A /* Project object */; diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 95cabdfca9..ac1ab17f5f 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -14,7 +14,7 @@ *****************************************************************************/ #pragma endregion -#ifdef __linux__ +#if defined(__linux__) #include #include @@ -49,6 +49,9 @@ namespace OpenRCT2 { namespace Ui bool IsSteamOverlayAttached() override { + #ifdef __APPLE__ + return false; + #endif // See http://syprog.blogspot.ru/2011/12/listing-loaded-shared-objects-in-linux.html struct lmap { diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 8753b7a93f..141c494bbb 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -16,6 +16,8 @@ #include #include +#include +#include #include #include #include @@ -495,10 +497,11 @@ public: SDL_SetWindowMinimumSize(_window, 720, 480); SetCursorTrap(gConfigGeneral.trap_cursor); _platformUiContext->SetWindowIcon(_window); -#ifdef __MACOSX__ - macos_disallow_automatic_window_tabbing(); -#endif - + + #ifdef __MACOSX__ + + #endif + // Initialise the surface, palette and draw buffer OnResize(width, height); @@ -508,6 +511,8 @@ public: // Check if steam overlay renderer is loaded into the process _steamOverlayActive = _platformUiContext->IsSteamOverlayAttached(); TriggerResize(); + + } void CloseWindow() override diff --git a/src/openrct2-ui/UiContext.macOS.mm b/src/openrct2-ui/UiContext.macOS.mm new file mode 100644 index 0000000000..e73766f0bd --- /dev/null +++ b/src/openrct2-ui/UiContext.macOS.mm @@ -0,0 +1,186 @@ +#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#if defined(__APPLE__) && defined(__MACH__) + +#import + +#include +#include +#include +#include +#include +#include "UiContext.h" + +#include + +namespace OpenRCT2 { namespace Ui +{ + class macOSContext final : public IPlatformUiContext + { + private: + + public: + macOSContext() + { + @autoreleasepool { + if ([NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:)]) { + [NSWindow setAllowsAutomaticWindowTabbing:NO]; + } + } + } + + void SetWindowIcon(SDL_Window * window) override + { + } + + bool IsSteamOverlayAttached() override + { + STUB(); + return false; + } + + void ShowMessageBox(SDL_Window * window, const std::string &message) override + { + @autoreleasepool + { + NSAlert *alert = [[[NSAlert alloc] init] autorelease]; + [alert addButtonWithTitle:@"OK"]; + alert.messageText = [NSString stringWithUTF8String:message.c_str()]; + [alert runModal]; + } + } + + std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc &desc) override + { + @autoreleasepool + { + NSMutableArray *extensions = [NSMutableArray new]; + for (const OpenRCT2::Ui::FileDialogDesc::Filter &filter: desc.Filters) { + if (filter.Pattern != "") { + NSString *fp = [NSString stringWithUTF8String:filter.Pattern.c_str()]; + fp = [fp stringByReplacingOccurrencesOfString:@"*." withString:@""]; + [extensions addObjectsFromArray:[fp componentsSeparatedByString:@";"]]; + } + } + + NSString *directory; + NSSavePanel *panel; + if (desc.Type == FILE_DIALOG_TYPE::SAVE) + { + NSString *filePath = [NSString stringWithUTF8String:desc.DefaultFilename.c_str()]; + directory = filePath.stringByDeletingLastPathComponent; + NSString *basename = filePath.lastPathComponent; + panel = [NSSavePanel savePanel]; + panel.nameFieldStringValue = [NSString stringWithFormat:@"%@.%@", basename, extensions.firstObject]; + } + else if (desc.Type == FILE_DIALOG_TYPE::OPEN) + { + directory = [NSString stringWithUTF8String:desc.InitialDirectory.c_str()]; + NSOpenPanel *open = [NSOpenPanel openPanel]; + open.canChooseDirectories = false; + open.canChooseFiles = true; + open.allowsMultipleSelection = false; + panel = open; + } else { + return std::string(); + } + + panel.title = [NSString stringWithUTF8String:desc.Title.c_str()]; + panel.allowedFileTypes = extensions; + panel.directoryURL = [NSURL fileURLWithPath:directory]; + if ([panel runModal] == NSFileHandlingPanelCancelButton){ + return std::string(); + } else { + return panel.URL.path.UTF8String; + } + } + } + + std::string ShowDirectoryDialog(SDL_Window * window, const std::string &title) override + { + @autoreleasepool + { + NSOpenPanel *panel = [NSOpenPanel openPanel]; + panel.canChooseFiles = false; + panel.canChooseDirectories = true; + panel.allowsMultipleSelection = false; + utf8 *url = NULL; + if ([panel runModal] == NSFileHandlingPanelOKButton) + { + NSString *selectedPath = panel.URL.path; + const char *path = selectedPath.UTF8String; + url = _strdup(path); + } + return url; + } + } + + private: + static sint32 Execute(const std::string &command, std::string * output = nullptr) + { + log_verbose("executing \"%s\"...\n", command.c_str()); + FILE * fpipe = popen(command.c_str(), "r"); + if (fpipe == nullptr) + { + return -1; + } + + if (output != nullptr) + { + // Read output into buffer + std::vector outputBuffer; + char buffer[1024]; + size_t readBytes; + while ((readBytes = fread(buffer, 1, sizeof(buffer), fpipe)) > 0) + { + outputBuffer.insert(outputBuffer.begin(), buffer, buffer + readBytes); + } + + // Trim line breaks + size_t outputLength = outputBuffer.size(); + for (size_t i = outputLength - 1; i != SIZE_MAX; i--) + { + if (outputBuffer[i] == '\n') + { + outputLength = i; + } + else + { + break; + } + } + + // Convert to string + *output = std::string(outputBuffer.data(), outputLength); + } + else + { + fflush(fpipe); + } + + // Return exit code + return pclose(fpipe); + } + }; + + IPlatformUiContext * CreatePlatformUiContext() + { + return new macOSContext(); + } +} } + +#endif // __APPLE__ && __MACH__ diff --git a/src/openrct2/platform/macos.m b/src/openrct2/platform/macos.m index 97c1e74a7e..b8cbd08144 100644 --- a/src/openrct2/platform/macos.m +++ b/src/openrct2/platform/macos.m @@ -114,25 +114,6 @@ void platform_show_messagebox(const char * message) } } -utf8 *platform_open_directory_browser(const utf8 *title) -{ - @autoreleasepool - { - NSOpenPanel *panel = [NSOpenPanel openPanel]; - panel.canChooseFiles = false; - panel.canChooseDirectories = true; - panel.allowsMultipleSelection = false; - utf8 *url = NULL; - if ([panel runModal] == NSFileHandlingPanelOKButton) - { - NSString *selectedPath = panel.URL.path; - const char *path = selectedPath.UTF8String; - url = _strdup(path); - } - return url; - } -} - utf8* macos_str_decomp_to_precomp(utf8 *input) { @autoreleasepool @@ -146,54 +127,6 @@ utf8* macos_str_decomp_to_precomp(utf8 *input) } } -bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, size_t outSize) { - @autoreleasepool - { - NSMutableArray *extensions = [NSMutableArray new]; - for (int i=0; i < countof(desc->filters); ++i) { - if (desc->filters[i].pattern != NULL) { - NSString *fp = [NSString stringWithUTF8String:desc->filters[i].pattern]; - fp = [fp stringByReplacingOccurrencesOfString:@"*." withString:@""]; - [extensions addObjectsFromArray:[fp componentsSeparatedByString:@";"]]; - } - } - - NSString *directory; - NSSavePanel *panel; - if (desc->type == FD_SAVE) - { - NSString *filePath = [NSString stringWithUTF8String:desc->default_filename]; - directory = filePath.stringByDeletingLastPathComponent; - NSString *basename = filePath.lastPathComponent; - panel = [NSSavePanel savePanel]; - panel.nameFieldStringValue = [NSString stringWithFormat:@"%@.%@", basename, extensions.firstObject]; - } - else if (desc->type == FD_OPEN) - { - directory = [NSString stringWithUTF8String:desc->initial_directory]; - NSOpenPanel *open = [NSOpenPanel openPanel]; - open.canChooseDirectories = false; - open.canChooseFiles = true; - open.allowsMultipleSelection = false; - panel = open; - } else { - return false; - } - - panel.title = [NSString stringWithUTF8String:desc->title]; - panel.allowedFileTypes = extensions; - panel.directoryURL = [NSURL fileURLWithPath:directory]; - if ([panel runModal] == NSFileHandlingPanelCancelButton){ - SDL_RaiseWindow(gWindow); - return false; - } else { - safe_strcpy(outFilename, panel.URL.path.UTF8String, outSize); - SDL_RaiseWindow(gWindow); - return true; - } - } -} - bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size) { @autoreleasepool diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index e545285ecb..72e95d7d4a 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -47,6 +47,10 @@ #endif #endif +#if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) + mach_timebase_info_data_t _mach_base_info = { 0 }; +#endif + typedef void(*update_palette_func)(const uint8*, sint32, sint32); rct_palette_entry gPalette[256]; diff --git a/src/openrct2/windows/options.c b/src/openrct2/windows/options.c index 31edbf81e8..6977290e1b 100644 --- a/src/openrct2/windows/options.c +++ b/src/openrct2/windows/options.c @@ -1972,7 +1972,7 @@ static void window_options_paint(rct_window *w, rct_drawpixelinfo *dpi) w->x + window_options_misc_widgets[WIDX_WINDOW_LIMIT].left + 1, w->y + window_options_misc_widgets[WIDX_WINDOW_LIMIT].top ); - #ifdef __MACOSX__ + #ifdef __APPLE__ set_format_arg(0, uintptr_t, (uintptr_t)macos_str_decomp_to_precomp(gConfigGeneral.rct1_path)); #else set_format_arg(0, uintptr_t, (uintptr_t)gConfigGeneral.rct1_path); From c71fc2b5425fc9ce0fe1f5e2da7e065faea20e07 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 12 May 2017 23:08:27 +0100 Subject: [PATCH 167/670] Remove test code --- src/openrct2-ui/UiContext.Linux.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index ac1ab17f5f..95cabdfca9 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -14,7 +14,7 @@ *****************************************************************************/ #pragma endregion -#if defined(__linux__) +#ifdef __linux__ #include #include @@ -49,9 +49,6 @@ namespace OpenRCT2 { namespace Ui bool IsSteamOverlayAttached() override { - #ifdef __APPLE__ - return false; - #endif // See http://syprog.blogspot.ru/2011/12/listing-loaded-shared-objects-in-linux.html struct lmap { From 63771389c341993d951c4c9b601d237d17409ea5 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 12 May 2017 23:10:38 +0100 Subject: [PATCH 168/670] Remove whitespace in UiContext.cpp --- src/openrct2-ui/UiContext.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 141c494bbb..894aa17490 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -498,10 +498,6 @@ public: SetCursorTrap(gConfigGeneral.trap_cursor); _platformUiContext->SetWindowIcon(_window); - #ifdef __MACOSX__ - - #endif - // Initialise the surface, palette and draw buffer OnResize(width, height); @@ -511,8 +507,6 @@ public: // Check if steam overlay renderer is loaded into the process _steamOverlayActive = _platformUiContext->IsSteamOverlayAttached(); TriggerResize(); - - } void CloseWindow() override From f7f5cb754b1212532811ab175eb8fde2153087c8 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Fri, 12 May 2017 23:57:54 +0100 Subject: [PATCH 169/670] Add macOS target for CLI build --- OpenRCT2-cli/main.cpp | 15 ++ OpenRCT2.xcodeproj/project.pbxproj | 212 +++++++++++++++++++++++++++++ 2 files changed, 227 insertions(+) create mode 100644 OpenRCT2-cli/main.cpp diff --git a/OpenRCT2-cli/main.cpp b/OpenRCT2-cli/main.cpp new file mode 100644 index 0000000000..bb10b3c50e --- /dev/null +++ b/OpenRCT2-cli/main.cpp @@ -0,0 +1,15 @@ +// +// main.cpp +// OpenRCT2-cli +// +// Created by Richard Jenkins on 12/05/2017. +// Copyright © 2017 OpenRCT2. All rights reserved. +// + +#include + +int main(int argc, const char * argv[]) { + // insert code here... + std::cout << "Hello, World!\n"; + return 0; +} diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index 301238a41c..312de21e66 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -603,6 +603,30 @@ F76C88921EC539A300FA49E2 /* libopenrct2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; }; F7D7747B1EC5EB6D00BE6EBC /* lay_down_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84951EC4E7CC00FA49E2 /* lay_down_roller_coaster.c */; }; F7D7747F1EC61E5100BE6EBC /* UiContext.macOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */; }; + F7D7748D1EC66F8600BE6EBC /* libopenrct2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; }; + F7D7748E1EC66FA000BE6EBC /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B741C1C210A7A0080A7B9 /* libiconv.tbd */; }; + F7D7748F1EC66FA900BE6EBC /* libcurl.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B73EE1C2101890080A7B9 /* libcurl.tbd */; }; + F7D774901EC66FB000BE6EBC /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D47304D41C4FF8250015C0EA /* libz.tbd */; }; + F7D774911EC66FBA00BE6EBC /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B31CF3006400659A24 /* libcrypto.dylib */; }; + F7D774921EC66FBA00BE6EBC /* libfreetype.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B41CF3006400659A24 /* libfreetype.dylib */; }; + F7D774931EC66FBA00BE6EBC /* libjansson.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B51CF3006400659A24 /* libjansson.dylib */; }; + F7D774941EC66FBA00BE6EBC /* libpng16.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; }; + F7D774951EC66FBA00BE6EBC /* libspeexdsp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B91CF3006400659A24 /* libspeexdsp.dylib */; }; + F7D774961EC66FBA00BE6EBC /* libzip.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; }; + F7D774971EC6705F00BE6EBC /* libcrypto.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B31CF3006400659A24 /* libcrypto.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D774981EC6705F00BE6EBC /* libfreetype.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B41CF3006400659A24 /* libfreetype.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D774991EC6705F00BE6EBC /* libjansson.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B51CF3006400659A24 /* libjansson.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D7749A1EC6705F00BE6EBC /* libpng16.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D4A8B4B31DB41873007A2F29 /* libpng16.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D7749B1EC6705F00BE6EBC /* libspeexdsp.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B91CF3006400659A24 /* libspeexdsp.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D7749C1EC6705F00BE6EBC /* libzip.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D7749E1EC6713200BE6EBC /* Cli.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C857D1EC4E80E00FA49E2 /* Cli.cpp */; }; + F7D7749F1EC6714C00BE6EBC /* libSDL2_ttf.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B71CF3006400659A24 /* libSDL2_ttf.dylib */; }; + F7D774A01EC6714C00BE6EBC /* libSDL2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B81CF3006400659A24 /* libSDL2.dylib */; }; + F7D774A11EC6715C00BE6EBC /* libSDL2_ttf.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B71CF3006400659A24 /* libSDL2_ttf.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D774A21EC6715C00BE6EBC /* libSDL2.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D45A38B81CF3006400659A24 /* libSDL2.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; + F7D774AC1EC6741D00BE6EBC /* language in CopyFiles */ = {isa = PBXBuildFile; fileRef = D4EC48E41C2637710024B507 /* language */; }; + F7D774AD1EC6741D00BE6EBC /* shaders in CopyFiles */ = {isa = PBXBuildFile; fileRef = D43407E11D0E14CE00C2B3D4 /* shaders */; }; + F7D774AE1EC6741D00BE6EBC /* title in CopyFiles */ = {isa = PBXBuildFile; fileRef = D4EC48E51C2637710024B507 /* title */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -643,6 +667,36 @@ name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; + F7D774821EC66CD700BE6EBC /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 12; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + F7D774A11EC6715C00BE6EBC /* libSDL2_ttf.dylib in Embed Frameworks */, + F7D774A21EC6715C00BE6EBC /* libSDL2.dylib in Embed Frameworks */, + F7D774971EC6705F00BE6EBC /* libcrypto.dylib in Embed Frameworks */, + F7D774981EC6705F00BE6EBC /* libfreetype.dylib in Embed Frameworks */, + F7D774991EC6705F00BE6EBC /* libjansson.dylib in Embed Frameworks */, + F7D7749A1EC6705F00BE6EBC /* libpng16.dylib in Embed Frameworks */, + F7D7749B1EC6705F00BE6EBC /* libspeexdsp.dylib in Embed Frameworks */, + F7D7749C1EC6705F00BE6EBC /* libzip.dylib in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; + F7D774AA1EC6740D00BE6EBC /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 6; + files = ( + F7D774AC1EC6741D00BE6EBC /* language in CopyFiles */, + F7D774AD1EC6741D00BE6EBC /* shaders in CopyFiles */, + F7D774AE1EC6741D00BE6EBC /* title in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ @@ -1650,6 +1704,7 @@ F76C882B1EC4E91600FA49E2 /* OpenRCT2.rc */ = {isa = PBXFileReference; lastKnownFileType = text; path = OpenRCT2.rc; sourceTree = ""; }; F76C882C1EC4E91600FA49E2 /* resource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = resource.h; sourceTree = ""; }; F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; }; + F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "OpenRCT2-cli"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -1678,6 +1733,25 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + F7D774811EC66CD700BE6EBC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F7D7748D1EC66F8600BE6EBC /* libopenrct2.a in Frameworks */, + F7D774901EC66FB000BE6EBC /* libz.tbd in Frameworks */, + F7D7748F1EC66FA900BE6EBC /* libcurl.tbd in Frameworks */, + F7D7748E1EC66FA000BE6EBC /* libiconv.tbd in Frameworks */, + F7D774911EC66FBA00BE6EBC /* libcrypto.dylib in Frameworks */, + F7D774921EC66FBA00BE6EBC /* libfreetype.dylib in Frameworks */, + F7D774931EC66FBA00BE6EBC /* libjansson.dylib in Frameworks */, + F7D774941EC66FBA00BE6EBC /* libpng16.dylib in Frameworks */, + F7D774A01EC6714C00BE6EBC /* libSDL2.dylib in Frameworks */, + F7D7749F1EC6714C00BE6EBC /* libSDL2_ttf.dylib in Frameworks */, + F7D774951EC66FBA00BE6EBC /* libspeexdsp.dylib in Frameworks */, + F7D774961EC66FBA00BE6EBC /* libzip.dylib in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -2153,6 +2227,7 @@ D497D0781C20FD52002BF46A /* OpenRCT2.app */, C64FDA5D1D6D99F400F259B9 /* PaintTest */, F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */, + F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */, ); name = Products; sourceTree = ""; @@ -3339,6 +3414,26 @@ productReference = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; productType = "com.apple.product-type.library.static"; }; + F7D774831EC66CD700BE6EBC /* OpenRCT2-cli */ = { + isa = PBXNativeTarget; + buildConfigurationList = F7D7748A1EC66CD700BE6EBC /* Build configuration list for PBXNativeTarget "OpenRCT2-cli" */; + buildPhases = ( + F7D7748B1EC66E6600BE6EBC /* Download Libraries */, + F7D7748C1EC66E9300BE6EBC /* Get Git Variables */, + F7D774801EC66CD700BE6EBC /* Sources */, + F7D774811EC66CD700BE6EBC /* Frameworks */, + F7D774821EC66CD700BE6EBC /* Embed Frameworks */, + F7D774AA1EC6740D00BE6EBC /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "OpenRCT2-cli"; + productName = "OpenRCT2-cli"; + productReference = F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */; + productType = "com.apple.product-type.tool"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -3358,6 +3453,10 @@ CreatedOnToolsVersion = 8.3.2; ProvisioningStyle = Automatic; }; + F7D774831EC66CD700BE6EBC = { + CreatedOnToolsVersion = 8.3.2; + ProvisioningStyle = Automatic; + }; }; }; buildConfigurationList = D497D0731C20FD52002BF46A /* Build configuration list for PBXProject "OpenRCT2" */; @@ -3376,6 +3475,7 @@ D497D0771C20FD52002BF46A /* OpenRCT2 */, C64FDA5C1D6D99F400F259B9 /* PaintTest */, F76C80991EC4D9FA00FA49E2 /* libopenrct2 */, + F7D774831EC66CD700BE6EBC /* OpenRCT2-cli */, ); }; /* End PBXProject section */ @@ -3541,6 +3641,36 @@ shellPath = /bin/sh; shellScript = "echo \"#define\" OPENRCT2_BRANCH \\\"$(git rev-parse --abbrev-ref HEAD)\\\" > \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1 \\\"$(git rev-parse HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1_SHORT \\\"$(git rev-parse --short HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\ncp \"${SRCROOT}/distribution/macos/Info.plist\" \"${DERIVED_FILE_DIR}/Info.plist\"\nplutil -replace CFBundleVersion -string \"$(git rev-parse --short HEAD)\" \"${DERIVED_FILE_DIR}/Info.plist\""; }; + F7D7748B1EC66E6600BE6EBC /* Download Libraries */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Download Libraries"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "version=\"11\"\nzipname=\"openrct2-libs-macos.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\nmkdir \"${SRCROOT}/libxc\"\n\ncurl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\nrm \"${SRCROOT}/libxc/$zipname\"\n\necho $version > \"${SRCROOT}/libversion\"\nfi"; + }; + F7D7748C1EC66E9300BE6EBC /* Get Git Variables */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Get Git Variables"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/gitversion.h", + "$(DERIVED_FILE_DIR)/Info.plist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"#define\" OPENRCT2_BRANCH \\\"$(git rev-parse --abbrev-ref HEAD)\\\" > \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1 \\\"$(git rev-parse HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1_SHORT \\\"$(git rev-parse --short HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\ncp \"${SRCROOT}/distribution/macos/Info.plist\" \"${DERIVED_FILE_DIR}/Info.plist\"\nplutil -replace CFBundleVersion -string \"$(git rev-parse --short HEAD)\" \"${DERIVED_FILE_DIR}/Info.plist\""; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -4307,6 +4437,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + F7D774801EC66CD700BE6EBC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F7D7749E1EC6713200BE6EBC /* Cli.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -4661,6 +4799,72 @@ }; name = Release; }; + F7D774881EC66CD700BE6EBC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_DOCUMENTATION_COMMENTS = NO; + CODE_SIGN_IDENTITY = ""; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + NO_RCT2, + __ENABLE_LIGHTFX__, + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = NO; + HEADER_SEARCH_PATHS = ( + "$(SRCROOT)/libxc/include", + "$(SRCROOT)/libxc/include/SDL2", + "$(SRCROOT)/libxc/include/libpng16", + "$(SRCROOT)/libxc/include/openssl", + "$(SRCROOT)/src/", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/libxc/lib", + ); + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + F7D774891EC66CD700BE6EBC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_ARC = NO; + CLANG_WARN_DOCUMENTATION_COMMENTS = NO; + CODE_SIGN_IDENTITY = ""; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_PREPROCESSOR_DEFINITIONS = ( + OPENGL_NO_LINK, + "OPENRCT2_BUILD_INFO_HEADER=\"\\\"$(DERIVED_FILE_DIR)/gitversion.h\\\"\"", + NO_RCT2, + __ENABLE_LIGHTFX__, + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = NO; + HEADER_SEARCH_PATHS = ( + "$(SRCROOT)/libxc/include", + "$(SRCROOT)/libxc/include/SDL2", + "$(SRCROOT)/libxc/include/libpng16", + "$(SRCROOT)/libxc/include/openssl", + "$(SRCROOT)/src/", + ); + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/libxc/lib", + ); + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -4700,6 +4904,14 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + F7D7748A1EC66CD700BE6EBC /* Build configuration list for PBXNativeTarget "OpenRCT2-cli" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F7D774881EC66CD700BE6EBC /* Debug */, + F7D774891EC66CD700BE6EBC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; /* End XCConfigurationList section */ }; rootObject = D497D0701C20FD52002BF46A /* Project object */; From ee9aa550831adb83f4bb60053ad68b57e860b760 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 13 May 2017 20:06:46 +0100 Subject: [PATCH 170/670] Fix more warnings --- src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp | 2 +- src/openrct2/audio/AudioMixer.cpp | 2 -- src/openrct2/audio/AudioMixer.h | 2 ++ src/openrct2/common.h | 1 + src/openrct2/localisation/localisation.c | 2 ++ 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index daff9fa039..7cc0657692 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include diff --git a/src/openrct2/audio/AudioMixer.cpp b/src/openrct2/audio/AudioMixer.cpp index 3594c4a151..ec4c060dbf 100644 --- a/src/openrct2/audio/AudioMixer.cpp +++ b/src/openrct2/audio/AudioMixer.cpp @@ -28,8 +28,6 @@ extern "C" #include "../rct2.h" } -#define SDL_MIX_MAXVOLUME 128 - using namespace OpenRCT2; using namespace OpenRCT2::Audio; diff --git a/src/openrct2/audio/AudioMixer.h b/src/openrct2/audio/AudioMixer.h index 51c65d3db3..1a9bbd2d3b 100644 --- a/src/openrct2/audio/AudioMixer.h +++ b/src/openrct2/audio/AudioMixer.h @@ -18,6 +18,8 @@ #include "../common.h" +#define SDL_MIX_MAXVOLUME 128 + #define MIXER_LOOP_NONE 0 #define MIXER_LOOP_INFINITE -1 diff --git a/src/openrct2/common.h b/src/openrct2/common.h index 14209e0ef3..2aae3fbad9 100644 --- a/src/openrct2/common.h +++ b/src/openrct2/common.h @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2/localisation/localisation.c b/src/openrct2/localisation/localisation.c index 61da4a4b13..51211875b1 100644 --- a/src/openrct2/localisation/localisation.c +++ b/src/openrct2/localisation/localisation.c @@ -16,6 +16,8 @@ #include "../common.h" +#include + #ifdef __WINDOWS__ #include #else From 90fbb29d9324cab08d413275099034c12061de48 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sat, 13 May 2017 21:09:21 +0200 Subject: [PATCH 171/670] Tidy up Xcode project --- OpenRCT2.xcodeproj/project.pbxproj | 502 ++++++++--------------------- 1 file changed, 126 insertions(+), 376 deletions(-) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index 312de21e66..237a0ba5db 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -6,6 +6,20 @@ objectVersion = 46; objects = { +/* Begin PBXAggregateTarget section */ + C68B2D431EC790690020651C /* Download Libraries */ = { + isa = PBXAggregateTarget; + buildConfigurationList = C68B2D461EC790690020651C /* Build configuration list for PBXAggregateTarget "Download Libraries" */; + buildPhases = ( + C68B2D471EC790710020651C /* Download Libraries */, + ); + dependencies = ( + ); + name = "Download Libraries"; + productName = "Download Libraries"; + }; +/* End PBXAggregateTarget section */ + /* Begin PBXBuildFile section */ C606CCBE1DB4054000FE4015 /* compat.c in Sources */ = {isa = PBXBuildFile; fileRef = C606CCAB1DB4054000FE4015 /* compat.c */; }; C606CCBF1DB4054000FE4015 /* data.c in Sources */ = {isa = PBXBuildFile; fileRef = C606CCAC1DB4054000FE4015 /* data.c */; }; @@ -630,6 +644,27 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + C68B2D481EC790970020651C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D497D0701C20FD52002BF46A /* Project object */; + proxyType = 1; + remoteGlobalIDString = C68B2D431EC790690020651C; + remoteInfo = "Download Libraries"; + }; + C68B2D4A1EC7909B0020651C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D497D0701C20FD52002BF46A /* Project object */; + proxyType = 1; + remoteGlobalIDString = C68B2D431EC790690020651C; + remoteInfo = "Download Libraries"; + }; + C68B2D4C1EC7909E0020651C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D497D0701C20FD52002BF46A /* Project object */; + proxyType = 1; + remoteGlobalIDString = F76C80991EC4D9FA00FA49E2; + remoteInfo = libopenrct2; + }; F76C888F1EC5325700FA49E2 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D497D0701C20FD52002BF46A /* Project object */; @@ -1031,8 +1066,6 @@ D4EC48E41C2637710024B507 /* language */ = {isa = PBXFileReference; lastKnownFileType = folder; name = language; path = data/language; sourceTree = SOURCE_ROOT; }; D4EC48E51C2637710024B507 /* title */ = {isa = PBXFileReference; lastKnownFileType = folder; name = title; path = data/title; sourceTree = SOURCE_ROOT; }; F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libopenrct2.a; sourceTree = BUILT_PRODUCTS_DIR; }; - F76C80A01EC4DD9400FA49E2 /* shaders */ = {isa = PBXFileReference; lastKnownFileType = folder; name = shaders; path = data/shaders; sourceTree = ""; }; - F76C82A11EC4E50D00FA49E2 /* resource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = resource.h; path = resources/resource.h; sourceTree = ""; }; F76C83571EC4E7CC00FA49E2 /* audio.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = audio.cpp; sourceTree = ""; }; F76C83581EC4E7CC00FA49E2 /* audio.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = audio.h; sourceTree = ""; }; F76C83591EC4E7CC00FA49E2 /* AudioChannel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AudioChannel.h; sourceTree = ""; }; @@ -1591,118 +1624,6 @@ F76C85AD1EC4E82600FA49E2 /* UiContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UiContext.h; sourceTree = ""; }; F76C85AE1EC4E82600FA49E2 /* UiContext.Linux.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Linux.cpp; sourceTree = ""; }; F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Win32.cpp; sourceTree = ""; }; - F76C87B61EC4E91500FA49E2 /* 7.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 7.png; sourceTree = ""; }; - F76C87B71EC4E91500FA49E2 /* empty.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = empty.png; sourceTree = ""; }; - F76C87B91EC4E91500FA49E2 /* 29.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 29.png; sourceTree = ""; }; - F76C87BA1EC4E91500FA49E2 /* 30.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 30.png; sourceTree = ""; }; - F76C87BB1EC4E91500FA49E2 /* 31.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 31.png; sourceTree = ""; }; - F76C87BC1EC4E91500FA49E2 /* 32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 32.png; sourceTree = ""; }; - F76C87BD1EC4E91500FA49E2 /* 58.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = 58.png; sourceTree = ""; }; - F76C87BE1EC4E91500FA49E2 /* cheats.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = cheats.png; sourceTree = ""; }; - F76C87BF1EC4E91500FA49E2 /* copy.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = copy.png; sourceTree = ""; }; - F76C87C01EC4E91500FA49E2 /* fast_forward.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = fast_forward.png; sourceTree = ""; }; - F76C87C11EC4E91500FA49E2 /* game_speed_indicator.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = game_speed_indicator.png; sourceTree = ""; }; - F76C87C21EC4E91500FA49E2 /* game_speed_indicator_double.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = game_speed_indicator_double.png; sourceTree = ""; }; - F76C87C31EC4E91500FA49E2 /* large_scenery.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = large_scenery.png; sourceTree = ""; }; - F76C87C41EC4E91500FA49E2 /* map_gen_land.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map_gen_land.png; sourceTree = ""; }; - F76C87C51EC4E91500FA49E2 /* map_gen_noise.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map_gen_noise.png; sourceTree = ""; }; - F76C87C61EC4E91500FA49E2 /* map_gen_trees.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = map_gen_trees.png; sourceTree = ""; }; - F76C87C71EC4E91500FA49E2 /* multiplayer.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = multiplayer.png; sourceTree = ""; }; - F76C87C81EC4E91500FA49E2 /* mute.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mute.png; sourceTree = ""; }; - F76C87C91EC4E91500FA49E2 /* mute_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mute_pressed.png; sourceTree = ""; }; - F76C87CA1EC4E91500FA49E2 /* paste.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = paste.png; sourceTree = ""; }; - F76C87CB1EC4E91500FA49E2 /* paths.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = paths.png; sourceTree = ""; }; - F76C87CC1EC4E91500FA49E2 /* rct1_close_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_off.png; sourceTree = ""; }; - F76C87CD1EC4E91500FA49E2 /* rct1_close_off_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_off_pressed.png; sourceTree = ""; }; - F76C87CE1EC4E91500FA49E2 /* rct1_close_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_on.png; sourceTree = ""; }; - F76C87CF1EC4E91500FA49E2 /* rct1_close_on_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_close_on_pressed.png; sourceTree = ""; }; - F76C87D01EC4E91500FA49E2 /* rct1_open_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_off.png; sourceTree = ""; }; - F76C87D11EC4E91500FA49E2 /* rct1_open_off_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_off_pressed.png; sourceTree = ""; }; - F76C87D21EC4E91500FA49E2 /* rct1_open_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_on.png; sourceTree = ""; }; - F76C87D31EC4E91500FA49E2 /* rct1_open_on_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_open_on_pressed.png; sourceTree = ""; }; - F76C87D41EC4E91500FA49E2 /* rct1_test_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_off.png; sourceTree = ""; }; - F76C87D51EC4E91500FA49E2 /* rct1_test_off_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_off_pressed.png; sourceTree = ""; }; - F76C87D61EC4E91500FA49E2 /* rct1_test_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_on.png; sourceTree = ""; }; - F76C87D71EC4E91500FA49E2 /* rct1_test_on_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = rct1_test_on_pressed.png; sourceTree = ""; }; - F76C87D81EC4E91500FA49E2 /* server_password.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = server_password.png; sourceTree = ""; }; - F76C87D91EC4E91500FA49E2 /* small_scenery.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = small_scenery.png; sourceTree = ""; }; - F76C87DA1EC4E91500FA49E2 /* sort.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sort.png; sourceTree = ""; }; - F76C87DB1EC4E91500FA49E2 /* tab_disabled.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tab_disabled.png; sourceTree = ""; }; - F76C87DC1EC4E91500FA49E2 /* twitch.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = twitch.png; sourceTree = ""; }; - F76C87DD1EC4E91500FA49E2 /* unmute.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = unmute.png; sourceTree = ""; }; - F76C87DE1EC4E91500FA49E2 /* unmute_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = unmute_pressed.png; sourceTree = ""; }; - F76C87DF1EC4E91500FA49E2 /* zoom_in.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_in.png; sourceTree = ""; }; - F76C87E01EC4E91500FA49E2 /* zoom_in_background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_in_background.png; sourceTree = ""; }; - F76C87E11EC4E91500FA49E2 /* zoom_out.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_out.png; sourceTree = ""; }; - F76C87E21EC4E91500FA49E2 /* zoom_out_background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoom_out_background.png; sourceTree = ""; }; - F76C87E31EC4E91500FA49E2 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = ""; }; - F76C87E41EC4E91500FA49E2 /* logo_text.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo_text.png; sourceTree = ""; }; - F76C87E51EC4E91500FA49E2 /* sprites.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = sprites.json; sourceTree = ""; }; - F76C87E81EC4E91500FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; - F76C87E91EC4E91500FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; - F76C87EB1EC4E91500FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; - F76C87EC1EC4E91500FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; - F76C87EE1EC4E91500FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; - F76C87EF1EC4E91500FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; - F76C87F01EC4E91500FA49E2 /* flat_to_steep_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_1.png; sourceTree = ""; }; - F76C87F11EC4E91500FA49E2 /* flat_to_steep_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_2_1.png; sourceTree = ""; }; - F76C87F21EC4E91500FA49E2 /* flat_to_steep_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_2_2.png; sourceTree = ""; }; - F76C87F31EC4E91500FA49E2 /* flat_to_steep_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_3_1.png; sourceTree = ""; }; - F76C87F41EC4E91500FA49E2 /* flat_to_steep_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_3_2.png; sourceTree = ""; }; - F76C87F51EC4E91500FA49E2 /* flat_to_steep_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_4.png; sourceTree = ""; }; - F76C87F61EC4E91500FA49E2 /* flat_to_steep_diagonal_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_1.png; sourceTree = ""; }; - F76C87F71EC4E91500FA49E2 /* flat_to_steep_diagonal_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_2.png; sourceTree = ""; }; - F76C87F81EC4E91500FA49E2 /* flat_to_steep_diagonal_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_3.png; sourceTree = ""; }; - F76C87F91EC4E91500FA49E2 /* flat_to_steep_diagonal_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_4.png; sourceTree = ""; }; - F76C87FA1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_1.png; sourceTree = ""; }; - F76C87FB1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_2.png; sourceTree = ""; }; - F76C87FC1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_3.png; sourceTree = ""; }; - F76C87FD1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_diagonal_lift_4.png; sourceTree = ""; }; - F76C87FE1EC4E91500FA49E2 /* flat_to_steep_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_1.png; sourceTree = ""; }; - F76C87FF1EC4E91500FA49E2 /* flat_to_steep_lift_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_2_1.png; sourceTree = ""; }; - F76C88001EC4E91500FA49E2 /* flat_to_steep_lift_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_2_2.png; sourceTree = ""; }; - F76C88011EC4E91500FA49E2 /* flat_to_steep_lift_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_3_1.png; sourceTree = ""; }; - F76C88021EC4E91500FA49E2 /* flat_to_steep_lift_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_3_2.png; sourceTree = ""; }; - F76C88031EC4E91500FA49E2 /* flat_to_steep_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flat_to_steep_lift_4.png; sourceTree = ""; }; - F76C88041EC4E91500FA49E2 /* steep_to_flat_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_1.png; sourceTree = ""; }; - F76C88051EC4E91600FA49E2 /* steep_to_flat_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_2_1.png; sourceTree = ""; }; - F76C88061EC4E91600FA49E2 /* steep_to_flat_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_2_2.png; sourceTree = ""; }; - F76C88071EC4E91600FA49E2 /* steep_to_flat_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_3_1.png; sourceTree = ""; }; - F76C88081EC4E91600FA49E2 /* steep_to_flat_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_3_2.png; sourceTree = ""; }; - F76C88091EC4E91600FA49E2 /* steep_to_flat_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_4.png; sourceTree = ""; }; - F76C880A1EC4E91600FA49E2 /* steep_to_flat_diagonal_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_1.png; sourceTree = ""; }; - F76C880B1EC4E91600FA49E2 /* steep_to_flat_diagonal_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_2.png; sourceTree = ""; }; - F76C880C1EC4E91600FA49E2 /* steep_to_flat_diagonal_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_3.png; sourceTree = ""; }; - F76C880D1EC4E91600FA49E2 /* steep_to_flat_diagonal_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_4.png; sourceTree = ""; }; - F76C880E1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_1.png; sourceTree = ""; }; - F76C880F1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_2.png; sourceTree = ""; }; - F76C88101EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_3.png; sourceTree = ""; }; - F76C88111EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_diagonal_lift_4.png; sourceTree = ""; }; - F76C88121EC4E91600FA49E2 /* steep_to_flat_lift_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_1.png; sourceTree = ""; }; - F76C88131EC4E91600FA49E2 /* steep_to_flat_lift_2_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_2_1.png; sourceTree = ""; }; - F76C88141EC4E91600FA49E2 /* steep_to_flat_lift_2_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_2_2.png; sourceTree = ""; }; - F76C88151EC4E91600FA49E2 /* steep_to_flat_lift_3_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_3_1.png; sourceTree = ""; }; - F76C88161EC4E91600FA49E2 /* steep_to_flat_lift_3_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_3_2.png; sourceTree = ""; }; - F76C88171EC4E91600FA49E2 /* steep_to_flat_lift_4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = steep_to_flat_lift_4.png; sourceTree = ""; }; - F76C88191EC4E91600FA49E2 /* booster_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_1.png; sourceTree = ""; }; - F76C881A1EC4E91600FA49E2 /* booster_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = booster_2.png; sourceTree = ""; }; - F76C881C1EC4E91600FA49E2 /* icon.ico */ = {isa = PBXFileReference; lastKnownFileType = image.ico; path = icon.ico; sourceTree = ""; }; - F76C881D1EC4E91600FA49E2 /* icon_flag.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = icon_flag.svg; sourceTree = ""; }; - F76C881E1EC4E91600FA49E2 /* icon_noflag.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = icon_noflag.svg; sourceTree = ""; }; - F76C881F1EC4E91600FA49E2 /* icon_x1024.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x1024.png; sourceTree = ""; }; - F76C88201EC4E91600FA49E2 /* icon_x128.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x128.png; sourceTree = ""; }; - F76C88211EC4E91600FA49E2 /* icon_x16.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x16.png; sourceTree = ""; }; - F76C88221EC4E91600FA49E2 /* icon_x2048.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x2048.png; sourceTree = ""; }; - F76C88231EC4E91600FA49E2 /* icon_x256.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x256.png; sourceTree = ""; }; - F76C88241EC4E91600FA49E2 /* icon_x32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x32.png; sourceTree = ""; }; - F76C88251EC4E91600FA49E2 /* icon_x4.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x4.png; sourceTree = ""; }; - F76C88261EC4E91600FA49E2 /* icon_x40.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x40.png; sourceTree = ""; }; - F76C88271EC4E91600FA49E2 /* icon_x512.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x512.png; sourceTree = ""; }; - F76C88281EC4E91600FA49E2 /* icon_x64.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x64.png; sourceTree = ""; }; - F76C88291EC4E91600FA49E2 /* icon_x8.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon_x8.png; sourceTree = ""; }; - F76C882A1EC4E91600FA49E2 /* makeico.linq */ = {isa = PBXFileReference; lastKnownFileType = text; path = makeico.linq; sourceTree = ""; }; - F76C882B1EC4E91600FA49E2 /* OpenRCT2.rc */ = {isa = PBXFileReference; lastKnownFileType = text; path = OpenRCT2.rc; sourceTree = ""; }; - F76C882C1EC4E91600FA49E2 /* resource.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = resource.h; sourceTree = ""; }; F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; }; F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "OpenRCT2-cli"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -2016,7 +1937,6 @@ D41B72431C21015A0080A7B9 /* Sources */ = { isa = PBXGroup; children = ( - F76C87B41EC4E91500FA49E2 /* resources */, F76C85801EC4E82600FA49E2 /* openrct2-ui */, F76C857C1EC4E80E00FA49E2 /* openrct2-cli */, F76C83551EC4E7CC00FA49E2 /* libopenrct2 */, @@ -2210,8 +2130,6 @@ D497D06F1C20FD52002BF46A = { isa = PBXGroup; children = ( - F76C82A11EC4E50D00FA49E2 /* resource.h */, - F76C80A01EC4DD9400FA49E2 /* shaders */, D41B72431C21015A0080A7B9 /* Sources */, D497D07A1C20FD52002BF46A /* Resources */, 8546F74A1D7E1D220004004C /* Tests */, @@ -2299,19 +2217,37 @@ isa = PBXGroup; children = ( F76C83561EC4E7CC00FA49E2 /* audio */, + F76C83621EC4E7CC00FA49E2 /* cmdline */, + F76C836D1EC4E7CC00FA49E2 /* config */, + F76C83781EC4E7CC00FA49E2 /* core */, + F76C839D1EC4E7CC00FA49E2 /* drawing */, + F76C83BB1EC4E7CC00FA49E2 /* interface */, + F76C83D71EC4E7CC00FA49E2 /* localisation */, + F76C83EA1EC4E7CC00FA49E2 /* management */, + F76C83F51EC4E7CC00FA49E2 /* network */, + F76C84111EC4E7CC00FA49E2 /* object */, + F76C843A1EC4E7CC00FA49E2 /* paint */, + F76C84531EC4E7CC00FA49E2 /* peep */, + F76C84591EC4E7CC00FA49E2 /* platform */, + F76C84661EC4E7CC00FA49E2 /* rct1 */, + F76C846C1EC4E7CC00FA49E2 /* rct12 */, + F76C84761EC4E7CC00FA49E2 /* rct2 */, + F76C84831EC4E7CC00FA49E2 /* ride */, + F76C84F31EC4E7CD00FA49E2 /* scenario */, + F76C84FB1EC4E7CD00FA49E2 /* title */, + F76C85041EC4E7CD00FA49E2 /* ui */, + F76C85061EC4E7CD00FA49E2 /* util */, + F76C850D1EC4E7CD00FA49E2 /* windows */, + F76C855B1EC4E7CD00FA49E2 /* world */, F76C835F1EC4E7CC00FA49E2 /* cheats.c */, F76C83601EC4E7CC00FA49E2 /* cheats.h */, - F76C83621EC4E7CC00FA49E2 /* cmdline */, F76C836A1EC4E7CC00FA49E2 /* cmdline_sprite.c */, F76C836B1EC4E7CC00FA49E2 /* cmdline_sprite.h */, F76C836C1EC4E7CC00FA49E2 /* common.h */, - F76C836D1EC4E7CC00FA49E2 /* config */, F76C83761EC4E7CC00FA49E2 /* Context.cpp */, F76C83771EC4E7CC00FA49E2 /* Context.h */, - F76C83781EC4E7CC00FA49E2 /* core */, F76C839B1EC4E7CC00FA49E2 /* diagnostic.c */, F76C839C1EC4E7CC00FA49E2 /* diagnostic.h */, - F76C839D1EC4E7CC00FA49E2 /* drawing */, F76C83B11EC4E7CC00FA49E2 /* editor.c */, F76C83B21EC4E7CC00FA49E2 /* editor.h */, F76C83B31EC4E7CC00FA49E2 /* FileClassifier.cpp */, @@ -2322,43 +2258,25 @@ F76C83B81EC4E7CC00FA49E2 /* Imaging.h */, F76C83B91EC4E7CC00FA49E2 /* input.c */, F76C83BA1EC4E7CC00FA49E2 /* input.h */, - F76C83BB1EC4E7CC00FA49E2 /* interface */, F76C83D41EC4E7CC00FA49E2 /* intro.c */, F76C83D51EC4E7CC00FA49E2 /* intro.h */, - F76C83D71EC4E7CC00FA49E2 /* localisation */, - F76C83EA1EC4E7CC00FA49E2 /* management */, - F76C83F51EC4E7CC00FA49E2 /* network */, - F76C84111EC4E7CC00FA49E2 /* object */, F76C84351EC4E7CC00FA49E2 /* object.h */, F76C84361EC4E7CC00FA49E2 /* object_list.c */, F76C84371EC4E7CC00FA49E2 /* object_list.h */, F76C84381EC4E7CC00FA49E2 /* OpenRCT2.cpp */, F76C84391EC4E7CC00FA49E2 /* OpenRCT2.h */, - F76C843A1EC4E7CC00FA49E2 /* paint */, F76C84511EC4E7CC00FA49E2 /* ParkImporter.cpp */, F76C84521EC4E7CC00FA49E2 /* ParkImporter.h */, - F76C84531EC4E7CC00FA49E2 /* peep */, - F76C84591EC4E7CC00FA49E2 /* platform */, F76C84641EC4E7CC00FA49E2 /* PlatformEnvironment.cpp */, F76C84651EC4E7CC00FA49E2 /* PlatformEnvironment.h */, - F76C84661EC4E7CC00FA49E2 /* rct1 */, F76C846A1EC4E7CC00FA49E2 /* rct1.c */, F76C846B1EC4E7CC00FA49E2 /* rct1.h */, - F76C846C1EC4E7CC00FA49E2 /* rct12 */, F76C84751EC4E7CC00FA49E2 /* rct12.h */, - F76C84761EC4E7CC00FA49E2 /* rct2 */, F76C84801EC4E7CC00FA49E2 /* rct2.c */, F76C84811EC4E7CC00FA49E2 /* rct2.h */, - F76C84831EC4E7CC00FA49E2 /* ride */, - F76C84F31EC4E7CD00FA49E2 /* scenario */, F76C84FA1EC4E7CD00FA49E2 /* sprites.h */, - F76C84FB1EC4E7CD00FA49E2 /* title */, - F76C85041EC4E7CD00FA49E2 /* ui */, - F76C85061EC4E7CD00FA49E2 /* util */, F76C850B1EC4E7CD00FA49E2 /* Version.cpp */, F76C850C1EC4E7CD00FA49E2 /* Version.h */, - F76C850D1EC4E7CD00FA49E2 /* windows */, - F76C855B1EC4E7CD00FA49E2 /* world */, ); name = libopenrct2; sourceTree = ""; @@ -2627,10 +2545,10 @@ isa = PBXGroup; children = ( F76C843B1EC4E7CC00FA49E2 /* map_element */, + F76C84491EC4E7CC00FA49E2 /* sprite */, F76C84461EC4E7CC00FA49E2 /* paint.c */, F76C84471EC4E7CC00FA49E2 /* paint.h */, F76C84481EC4E7CC00FA49E2 /* paint_helpers.c */, - F76C84491EC4E7CC00FA49E2 /* sprite */, F76C844F1EC4E7CC00FA49E2 /* supports.c */, F76C84501EC4E7CC00FA49E2 /* supports.h */, ); @@ -2739,20 +2657,22 @@ F76C84831EC4E7CC00FA49E2 /* ride */ = { isa = PBXGroup; children = ( - F76C84841EC4E7CC00FA49E2 /* cable_lift.c */, - F76C84851EC4E7CC00FA49E2 /* cable_lift.h */, F76C84861EC4E7CC00FA49E2 /* coaster */, F76C84A91EC4E7CC00FA49E2 /* gentle */, + F76C84C01EC4E7CC00FA49E2 /* shops */, + F76C84C61EC4E7CC00FA49E2 /* thrill */, + F76C84DE1EC4E7CD00FA49E2 /* transport */, + F76C84EA1EC4E7CD00FA49E2 /* water */, + F76C84841EC4E7CC00FA49E2 /* cable_lift.c */, + F76C84851EC4E7CC00FA49E2 /* cable_lift.h */, F76C84BA1EC4E7CC00FA49E2 /* ride.c */, F76C84BB1EC4E7CC00FA49E2 /* ride.h */, F76C84BC1EC4E7CC00FA49E2 /* ride_data.c */, F76C84BD1EC4E7CC00FA49E2 /* ride_data.h */, F76C84BE1EC4E7CC00FA49E2 /* ride_ratings.c */, F76C84BF1EC4E7CC00FA49E2 /* ride_ratings.h */, - F76C84C01EC4E7CC00FA49E2 /* shops */, F76C84C41EC4E7CC00FA49E2 /* station.c */, F76C84C51EC4E7CC00FA49E2 /* station.h */, - F76C84C61EC4E7CC00FA49E2 /* thrill */, F76C84D21EC4E7CC00FA49E2 /* track.c */, F76C84D31EC4E7CC00FA49E2 /* track.h */, F76C84D41EC4E7CC00FA49E2 /* track_data.c */, @@ -2765,14 +2685,12 @@ F76C84DB1EC4E7CD00FA49E2 /* track_paint.h */, F76C84DC1EC4E7CD00FA49E2 /* TrackDesignRepository.cpp */, F76C84DD1EC4E7CD00FA49E2 /* TrackDesignRepository.h */, - F76C84DE1EC4E7CD00FA49E2 /* transport */, F76C84E41EC4E7CD00FA49E2 /* vehicle.c */, F76C84E51EC4E7CD00FA49E2 /* vehicle.h */, F76C84E61EC4E7CD00FA49E2 /* vehicle_data.c */, F76C84E71EC4E7CD00FA49E2 /* vehicle_data.h */, F76C84E81EC4E7CD00FA49E2 /* vehicle_paint.c */, F76C84E91EC4E7CD00FA49E2 /* vehicle_paint.h */, - F76C84EA1EC4E7CD00FA49E2 /* water */, ); path = ride; sourceTree = ""; @@ -3079,10 +2997,10 @@ isa = PBXGroup; children = ( F76C85811EC4E82600FA49E2 /* audio */, + F76C858D1EC4E82600FA49E2 /* drawing */, F76C858A1EC4E82600FA49E2 /* CursorData.cpp */, F76C858B1EC4E82600FA49E2 /* CursorRepository.cpp */, F76C858C1EC4E82600FA49E2 /* CursorRepository.h */, - F76C858D1EC4E82600FA49E2 /* drawing */, F76C85A81EC4E82600FA49E2 /* SDLException.h */, F76C85A91EC4E82600FA49E2 /* TextComposition.cpp */, F76C85AA1EC4E82600FA49E2 /* TextComposition.h */, @@ -3122,8 +3040,8 @@ F76C858E1EC4E82600FA49E2 /* engines */ = { isa = PBXGroup; children = ( - F76C858F1EC4E82600FA49E2 /* DrawingEngines.h */, F76C85901EC4E82600FA49E2 /* opengl */, + F76C858F1EC4E82600FA49E2 /* DrawingEngines.h */, F76C85A61EC4E82600FA49E2 /* SoftwareDrawingEngine.cpp */, ); path = engines; @@ -3157,189 +3075,6 @@ path = opengl; sourceTree = ""; }; - F76C87B41EC4E91500FA49E2 /* resources */ = { - isa = PBXGroup; - children = ( - F76C87B51EC4E91500FA49E2 /* g2 */, - F76C881B1EC4E91600FA49E2 /* logo */, - F76C882B1EC4E91600FA49E2 /* OpenRCT2.rc */, - F76C882C1EC4E91600FA49E2 /* resource.h */, - ); - path = resources; - sourceTree = SOURCE_ROOT; - }; - F76C87B51EC4E91500FA49E2 /* g2 */ = { - isa = PBXGroup; - children = ( - F76C87B61EC4E91500FA49E2 /* 7.png */, - F76C87B71EC4E91500FA49E2 /* empty.png */, - F76C87B81EC4E91500FA49E2 /* icons */, - F76C87E31EC4E91500FA49E2 /* logo.png */, - F76C87E41EC4E91500FA49E2 /* logo_text.png */, - F76C87E51EC4E91500FA49E2 /* sprites.json */, - F76C87E61EC4E91500FA49E2 /* track */, - ); - path = g2; - sourceTree = ""; - }; - F76C87B81EC4E91500FA49E2 /* icons */ = { - isa = PBXGroup; - children = ( - F76C87B91EC4E91500FA49E2 /* 29.png */, - F76C87BA1EC4E91500FA49E2 /* 30.png */, - F76C87BB1EC4E91500FA49E2 /* 31.png */, - F76C87BC1EC4E91500FA49E2 /* 32.png */, - F76C87BD1EC4E91500FA49E2 /* 58.png */, - F76C87BE1EC4E91500FA49E2 /* cheats.png */, - F76C87BF1EC4E91500FA49E2 /* copy.png */, - F76C87C01EC4E91500FA49E2 /* fast_forward.png */, - F76C87C11EC4E91500FA49E2 /* game_speed_indicator.png */, - F76C87C21EC4E91500FA49E2 /* game_speed_indicator_double.png */, - F76C87C31EC4E91500FA49E2 /* large_scenery.png */, - F76C87C41EC4E91500FA49E2 /* map_gen_land.png */, - F76C87C51EC4E91500FA49E2 /* map_gen_noise.png */, - F76C87C61EC4E91500FA49E2 /* map_gen_trees.png */, - F76C87C71EC4E91500FA49E2 /* multiplayer.png */, - F76C87C81EC4E91500FA49E2 /* mute.png */, - F76C87C91EC4E91500FA49E2 /* mute_pressed.png */, - F76C87CA1EC4E91500FA49E2 /* paste.png */, - F76C87CB1EC4E91500FA49E2 /* paths.png */, - F76C87CC1EC4E91500FA49E2 /* rct1_close_off.png */, - F76C87CD1EC4E91500FA49E2 /* rct1_close_off_pressed.png */, - F76C87CE1EC4E91500FA49E2 /* rct1_close_on.png */, - F76C87CF1EC4E91500FA49E2 /* rct1_close_on_pressed.png */, - F76C87D01EC4E91500FA49E2 /* rct1_open_off.png */, - F76C87D11EC4E91500FA49E2 /* rct1_open_off_pressed.png */, - F76C87D21EC4E91500FA49E2 /* rct1_open_on.png */, - F76C87D31EC4E91500FA49E2 /* rct1_open_on_pressed.png */, - F76C87D41EC4E91500FA49E2 /* rct1_test_off.png */, - F76C87D51EC4E91500FA49E2 /* rct1_test_off_pressed.png */, - F76C87D61EC4E91500FA49E2 /* rct1_test_on.png */, - F76C87D71EC4E91500FA49E2 /* rct1_test_on_pressed.png */, - F76C87D81EC4E91500FA49E2 /* server_password.png */, - F76C87D91EC4E91500FA49E2 /* small_scenery.png */, - F76C87DA1EC4E91500FA49E2 /* sort.png */, - F76C87DB1EC4E91500FA49E2 /* tab_disabled.png */, - F76C87DC1EC4E91500FA49E2 /* twitch.png */, - F76C87DD1EC4E91500FA49E2 /* unmute.png */, - F76C87DE1EC4E91500FA49E2 /* unmute_pressed.png */, - F76C87DF1EC4E91500FA49E2 /* zoom_in.png */, - F76C87E01EC4E91500FA49E2 /* zoom_in_background.png */, - F76C87E11EC4E91500FA49E2 /* zoom_out.png */, - F76C87E21EC4E91500FA49E2 /* zoom_out_background.png */, - ); - path = icons; - sourceTree = ""; - }; - F76C87E61EC4E91500FA49E2 /* track */ = { - isa = PBXGroup; - children = ( - F76C87E71EC4E91500FA49E2 /* bm */, - F76C87EA1EC4E91500FA49E2 /* intamin */, - F76C87ED1EC4E91500FA49E2 /* junior */, - F76C88181EC4E91600FA49E2 /* mini */, - ); - path = track; - sourceTree = ""; - }; - F76C87E71EC4E91500FA49E2 /* bm */ = { - isa = PBXGroup; - children = ( - F76C87E81EC4E91500FA49E2 /* booster_1.png */, - F76C87E91EC4E91500FA49E2 /* booster_2.png */, - ); - path = bm; - sourceTree = ""; - }; - F76C87EA1EC4E91500FA49E2 /* intamin */ = { - isa = PBXGroup; - children = ( - F76C87EB1EC4E91500FA49E2 /* booster_1.png */, - F76C87EC1EC4E91500FA49E2 /* booster_2.png */, - ); - path = intamin; - sourceTree = ""; - }; - F76C87ED1EC4E91500FA49E2 /* junior */ = { - isa = PBXGroup; - children = ( - F76C87EE1EC4E91500FA49E2 /* booster_1.png */, - F76C87EF1EC4E91500FA49E2 /* booster_2.png */, - F76C87F01EC4E91500FA49E2 /* flat_to_steep_1.png */, - F76C87F11EC4E91500FA49E2 /* flat_to_steep_2_1.png */, - F76C87F21EC4E91500FA49E2 /* flat_to_steep_2_2.png */, - F76C87F31EC4E91500FA49E2 /* flat_to_steep_3_1.png */, - F76C87F41EC4E91500FA49E2 /* flat_to_steep_3_2.png */, - F76C87F51EC4E91500FA49E2 /* flat_to_steep_4.png */, - F76C87F61EC4E91500FA49E2 /* flat_to_steep_diagonal_1.png */, - F76C87F71EC4E91500FA49E2 /* flat_to_steep_diagonal_2.png */, - F76C87F81EC4E91500FA49E2 /* flat_to_steep_diagonal_3.png */, - F76C87F91EC4E91500FA49E2 /* flat_to_steep_diagonal_4.png */, - F76C87FA1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_1.png */, - F76C87FB1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_2.png */, - F76C87FC1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_3.png */, - F76C87FD1EC4E91500FA49E2 /* flat_to_steep_diagonal_lift_4.png */, - F76C87FE1EC4E91500FA49E2 /* flat_to_steep_lift_1.png */, - F76C87FF1EC4E91500FA49E2 /* flat_to_steep_lift_2_1.png */, - F76C88001EC4E91500FA49E2 /* flat_to_steep_lift_2_2.png */, - F76C88011EC4E91500FA49E2 /* flat_to_steep_lift_3_1.png */, - F76C88021EC4E91500FA49E2 /* flat_to_steep_lift_3_2.png */, - F76C88031EC4E91500FA49E2 /* flat_to_steep_lift_4.png */, - F76C88041EC4E91500FA49E2 /* steep_to_flat_1.png */, - F76C88051EC4E91600FA49E2 /* steep_to_flat_2_1.png */, - F76C88061EC4E91600FA49E2 /* steep_to_flat_2_2.png */, - F76C88071EC4E91600FA49E2 /* steep_to_flat_3_1.png */, - F76C88081EC4E91600FA49E2 /* steep_to_flat_3_2.png */, - F76C88091EC4E91600FA49E2 /* steep_to_flat_4.png */, - F76C880A1EC4E91600FA49E2 /* steep_to_flat_diagonal_1.png */, - F76C880B1EC4E91600FA49E2 /* steep_to_flat_diagonal_2.png */, - F76C880C1EC4E91600FA49E2 /* steep_to_flat_diagonal_3.png */, - F76C880D1EC4E91600FA49E2 /* steep_to_flat_diagonal_4.png */, - F76C880E1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_1.png */, - F76C880F1EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_2.png */, - F76C88101EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_3.png */, - F76C88111EC4E91600FA49E2 /* steep_to_flat_diagonal_lift_4.png */, - F76C88121EC4E91600FA49E2 /* steep_to_flat_lift_1.png */, - F76C88131EC4E91600FA49E2 /* steep_to_flat_lift_2_1.png */, - F76C88141EC4E91600FA49E2 /* steep_to_flat_lift_2_2.png */, - F76C88151EC4E91600FA49E2 /* steep_to_flat_lift_3_1.png */, - F76C88161EC4E91600FA49E2 /* steep_to_flat_lift_3_2.png */, - F76C88171EC4E91600FA49E2 /* steep_to_flat_lift_4.png */, - ); - path = junior; - sourceTree = ""; - }; - F76C88181EC4E91600FA49E2 /* mini */ = { - isa = PBXGroup; - children = ( - F76C88191EC4E91600FA49E2 /* booster_1.png */, - F76C881A1EC4E91600FA49E2 /* booster_2.png */, - ); - path = mini; - sourceTree = ""; - }; - F76C881B1EC4E91600FA49E2 /* logo */ = { - isa = PBXGroup; - children = ( - F76C881C1EC4E91600FA49E2 /* icon.ico */, - F76C881D1EC4E91600FA49E2 /* icon_flag.svg */, - F76C881E1EC4E91600FA49E2 /* icon_noflag.svg */, - F76C881F1EC4E91600FA49E2 /* icon_x1024.png */, - F76C88201EC4E91600FA49E2 /* icon_x128.png */, - F76C88211EC4E91600FA49E2 /* icon_x16.png */, - F76C88221EC4E91600FA49E2 /* icon_x2048.png */, - F76C88231EC4E91600FA49E2 /* icon_x256.png */, - F76C88241EC4E91600FA49E2 /* icon_x32.png */, - F76C88251EC4E91600FA49E2 /* icon_x4.png */, - F76C88261EC4E91600FA49E2 /* icon_x40.png */, - F76C88271EC4E91600FA49E2 /* icon_x512.png */, - F76C88281EC4E91600FA49E2 /* icon_x64.png */, - F76C88291EC4E91600FA49E2 /* icon_x8.png */, - F76C882A1EC4E91600FA49E2 /* makeico.linq */, - ); - path = logo; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -3375,7 +3110,6 @@ isa = PBXNativeTarget; buildConfigurationList = D497D0891C20FD53002BF46A /* Build configuration list for PBXNativeTarget "OpenRCT2" */; buildPhases = ( - D4EC48E91C264FC20024B507 /* Download Libraries */, D4E09E831E049C0600F53CE3 /* Download Title Sequences */, D4EC012A1C25532B00DAFE69 /* Setup AppIcon */, D4CA88671D4E962100060C11 /* Get Git Variables */, @@ -3389,6 +3123,7 @@ ); dependencies = ( F76C88901EC5325700FA49E2 /* PBXTargetDependency */, + C68B2D491EC790970020651C /* PBXTargetDependency */, ); name = OpenRCT2; productName = OpenRCT2; @@ -3399,7 +3134,6 @@ isa = PBXNativeTarget; buildConfigurationList = F76C809D1EC4D9FA00FA49E2 /* Build configuration list for PBXNativeTarget "libopenrct2" */; buildPhases = ( - F76C809E1EC4DAAB00FA49E2 /* Download Libraries */, F76C809F1EC4DB0300FA49E2 /* Get Git Variables */, F76C80961EC4D9FA00FA49E2 /* Sources */, F76C88381EC4EB5900FA49E2 /* Resources */, @@ -3408,6 +3142,7 @@ buildRules = ( ); dependencies = ( + C68B2D4B1EC7909B0020651C /* PBXTargetDependency */, ); name = libopenrct2; productName = libopenrct2; @@ -3418,7 +3153,6 @@ isa = PBXNativeTarget; buildConfigurationList = F7D7748A1EC66CD700BE6EBC /* Build configuration list for PBXNativeTarget "OpenRCT2-cli" */; buildPhases = ( - F7D7748B1EC66E6600BE6EBC /* Download Libraries */, F7D7748C1EC66E9300BE6EBC /* Get Git Variables */, F7D774801EC66CD700BE6EBC /* Sources */, F7D774811EC66CD700BE6EBC /* Frameworks */, @@ -3428,6 +3162,7 @@ buildRules = ( ); dependencies = ( + C68B2D4D1EC7909E0020651C /* PBXTargetDependency */, ); name = "OpenRCT2-cli"; productName = "OpenRCT2-cli"; @@ -3446,6 +3181,10 @@ C64FDA5C1D6D99F400F259B9 = { CreatedOnToolsVersion = 7.3.1; }; + C68B2D431EC790690020651C = { + CreatedOnToolsVersion = 8.2.1; + ProvisioningStyle = Automatic; + }; D497D0771C20FD52002BF46A = { CreatedOnToolsVersion = 7.2; }; @@ -3476,6 +3215,7 @@ C64FDA5C1D6D99F400F259B9 /* PaintTest */, F76C80991EC4D9FA00FA49E2 /* libopenrct2 */, F7D774831EC66CD700BE6EBC /* OpenRCT2-cli */, + C68B2D431EC790690020651C /* Download Libraries */, ); }; /* End PBXProject section */ @@ -3520,6 +3260,20 @@ shellPath = /bin/sh; shellScript = "dd if=\"${SRCROOT}/openrct2.exe\" of=\"${DERIVED_FILE_DIR}/openrct2_text\" bs=4096 skip=1 count=1187\ndd if=\"${SRCROOT}/openrct2.exe\" of=\"${DERIVED_FILE_DIR}/openrct2_data\" bs=4096 skip=1188 count=318\ndd if=/dev/zero of=\"${DERIVED_FILE_DIR}/openrct2_data\" bs=4096 seek=318 count=2630 conv=notrunc\ndd if=\"${SRCROOT}/openrct2.exe\" of=\"${DERIVED_FILE_DIR}/openrct2_data\" bs=4096 skip=1506 seek=2948 count=1 conv=notrunc"; }; + C68B2D471EC790710020651C /* Download Libraries */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Download Libraries"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "version=\"11\"\nzipname=\"openrct2-libs-macos.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\nmkdir \"${SRCROOT}/libxc\"\n\ncurl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\nrm \"${SRCROOT}/libxc/$zipname\"\n\necho $version > \"${SRCROOT}/libversion\"\nfi"; + }; D42C09D21C254F4E00309751 /* Build g2.dat */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -3597,34 +3351,6 @@ shellPath = /bin/sh; shellScript = "if [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_16x16.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x16.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_16x16.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_16x16@2x.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x32.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_16x16@2x.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_32x32.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x32.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_32x32.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x64.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_128x128.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x128.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_128x128.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x256.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_256x256.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x256.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_256x256.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x512.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_512x512.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x512.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_512x512.png\"; fi\nif [[ ! -e \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png\" ]]; then ln \"${SRCROOT}/resources/logo/icon_x1024.png\" \"${SRCROOT}/distribution/macos/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png\"; fi"; }; - D4EC48E91C264FC20024B507 /* Download Libraries */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Download Libraries"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "version=\"11\"\nzipname=\"openrct2-libs-macos.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\n if [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\n mkdir \"${SRCROOT}/libxc\"\n\n curl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\n unzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\n rm \"${SRCROOT}/libxc/$zipname\"\n\n echo $version > \"${SRCROOT}/libversion\"\nfi"; - }; - F76C809E1EC4DAAB00FA49E2 /* Download Libraries */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Download Libraries"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "version=\"11\"\nzipname=\"openrct2-libs-macos.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\nmkdir \"${SRCROOT}/libxc\"\n\ncurl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\nrm \"${SRCROOT}/libxc/$zipname\"\n\necho $version > \"${SRCROOT}/libversion\"\nfi"; - }; F76C809F1EC4DB0300FA49E2 /* Get Git Variables */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -3641,20 +3367,6 @@ shellPath = /bin/sh; shellScript = "echo \"#define\" OPENRCT2_BRANCH \\\"$(git rev-parse --abbrev-ref HEAD)\\\" > \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1 \\\"$(git rev-parse HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\necho \"#define\" OPENRCT2_COMMIT_SHA1_SHORT \\\"$(git rev-parse --short HEAD)\\\" >> \"${DERIVED_FILE_DIR}/gitversion.h\"\ncp \"${SRCROOT}/distribution/macos/Info.plist\" \"${DERIVED_FILE_DIR}/Info.plist\"\nplutil -replace CFBundleVersion -string \"$(git rev-parse --short HEAD)\" \"${DERIVED_FILE_DIR}/Info.plist\""; }; - F7D7748B1EC66E6600BE6EBC /* Download Libraries */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Download Libraries"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "version=\"11\"\nzipname=\"openrct2-libs-macos.zip\"\nliburl=\"https://github.com/OpenRCT2/Dependencies/releases/download/v$version/$zipname\"\n\n[[ ! -d \"${SRCROOT}/libxc\" || ! -e \"${SRCROOT}/libversion\" || $(head -n 1 \"${SRCROOT}/libversion\") != $version ]]\noutdated=$?\n\nif [[ $outdated -eq 0 ]]; then\nif [[ -d \"${SRCROOT}/libxc\" ]]; then rm -r \"${SRCROOT}/libxc\"; fi\nmkdir \"${SRCROOT}/libxc\"\n\ncurl -L -o \"${SRCROOT}/libxc/$zipname\" \"$liburl\"\nunzip -uaq -d \"${SRCROOT}/libxc\" \"${SRCROOT}/libxc/$zipname\"\nrm \"${SRCROOT}/libxc/$zipname\"\n\necho $version > \"${SRCROOT}/libversion\"\nfi"; - }; F7D7748C1EC66E9300BE6EBC /* Get Git Variables */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -4448,6 +4160,21 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + C68B2D491EC790970020651C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C68B2D431EC790690020651C /* Download Libraries */; + targetProxy = C68B2D481EC790970020651C /* PBXContainerItemProxy */; + }; + C68B2D4B1EC7909B0020651C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C68B2D431EC790690020651C /* Download Libraries */; + targetProxy = C68B2D4A1EC7909B0020651C /* PBXContainerItemProxy */; + }; + C68B2D4D1EC7909E0020651C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = F76C80991EC4D9FA00FA49E2 /* libopenrct2 */; + targetProxy = C68B2D4C1EC7909E0020651C /* PBXContainerItemProxy */; + }; F76C88901EC5325700FA49E2 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = F76C80991EC4D9FA00FA49E2 /* libopenrct2 */; @@ -4554,6 +4281,20 @@ }; name = Release; }; + C68B2D441EC790690020651C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + C68B2D451EC790690020651C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; D497D0871C20FD53002BF46A /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -4877,6 +4618,14 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + C68B2D461EC790690020651C /* Build configuration list for PBXAggregateTarget "Download Libraries" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C68B2D441EC790690020651C /* Debug */, + C68B2D451EC790690020651C /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; D497D0731C20FD52002BF46A /* Build configuration list for PBXProject "OpenRCT2" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -4911,6 +4660,7 @@ F7D774891EC66CD700BE6EBC /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; From 7608f7f189c2bf194bcf4f72802e480cad8a0219 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sun, 14 May 2017 21:07:16 +0200 Subject: [PATCH 172/670] Remove generated main.cpp --- OpenRCT2-cli/main.cpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 OpenRCT2-cli/main.cpp diff --git a/OpenRCT2-cli/main.cpp b/OpenRCT2-cli/main.cpp deleted file mode 100644 index bb10b3c50e..0000000000 --- a/OpenRCT2-cli/main.cpp +++ /dev/null @@ -1,15 +0,0 @@ -// -// main.cpp -// OpenRCT2-cli -// -// Created by Richard Jenkins on 12/05/2017. -// Copyright © 2017 OpenRCT2. All rights reserved. -// - -#include - -int main(int argc, const char * argv[]) { - // insert code here... - std::cout << "Hello, World!\n"; - return 0; -} From 3a194f30dc1f600308b357c362dd7baec2547f9e Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Mon, 15 May 2017 00:11:55 +0200 Subject: [PATCH 173/670] Fix macOS compilation of library --- src/openrct2/CMakeLists.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 3fa355600e..e9143188c7 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -54,7 +54,7 @@ if (NOT DISABLE_HTTP_TWITCH OR NOT DISABLE_NETWORK) PKG_CHECK_MODULES(LIBCURL REQUIRED libcurl) endif () if (NOT DISABLE_NETWORK) - PKG_CHECK_MODULES(SSL REQUIRED openssl>=1.0.0) + find_package(OpenSSL 1.0.0 REQUIRED) endif () # Third party libraries (which we want to eventually remove from libopenrct2) @@ -183,7 +183,7 @@ if (NOT DISABLE_NETWORK) ${SSL_STATIC_LIBRARIES}) else () target_link_libraries(${PROJECT} ${LIBCURL_LIBRARIES} - ${SSL_LIBRARIES}) + ${OPENSSL_LIBRARIES}) endif () endif () @@ -203,7 +203,7 @@ if (NOT DISABLE_TTF) endif () if (APPLE OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD") - find_library(ICONV_LIBRARIES NAMES c iconv libiconv libiconv-2) + find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c) target_link_libraries(${PROJECT} ${ICONV_LIBRARIES}) endif() @@ -218,12 +218,17 @@ if (NOT DISABLE_HTTP_TWITCH OR NOT DISABLE_NETWORK) target_include_directories(${PROJECT} PRIVATE ${LIBCURL_INCLUDE_DIRS}) endif () if (NOT DISABLE_NETWORK) - target_include_directories(${PROJECT} PRIVATE ${SSL_INCLUDE_DIRS}) + target_include_directories(${PROJECT} PUBLIC ${OPENSSL_INCLUDE_DIR}) endif () if (NOT DISABLE_TTF AND UNIX AND NOT APPLE) target_include_directories(${PROJECT} PRIVATE ${FONTCONFIG_INCLUDE_DIRS}) endif () +# macOS builds fail on the use of tmpnam otherwise (#4959) +if(APPLE) + set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-error=deprecated-declarations -Wno-error=objc-method-access") +endif() + # Compiler flags set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.") set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wno-unknown-pragmas -Wno-unused-function -Wno-missing-braces ") From 52552a9dc4bc55e708a84bdf23d0d664c7e0be3d Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Mon, 15 May 2017 00:12:30 +0200 Subject: [PATCH 174/670] Work on fixing openrct2-gui compilation --- src/openrct2-ui/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 1d514db2ab..535fa9f087 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -11,7 +11,6 @@ option(DISABLE_OPENGL "Disable OpenGL support.") include(FindPkgConfig) # Third party libraries -PKG_CHECK_MODULES(GL REQUIRED gl) PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) if (NOT DISABLE_OPENGL) # GL doesn't work nicely with macOS, while find_package doesn't work with multiarch on Ubuntu. @@ -29,10 +28,18 @@ file(GLOB_RECURSE OPENRCT2_UI_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.h" "${CMAKE_CURRENT_LIST_DIR}/*.hpp") +if (APPLE) + file(GLOB_RECURSE OPENRCT2_UI_M_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.m") + set_source_files_properties(${OPENRCT2_UI_M_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c -fmodules") + + file(GLOB_RECURSE OPENRCT2_UI_MM_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.mm") + set_source_files_properties(${OPENRCT2_UI_MM_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c++ -fmodules") +endif () + # Outputs set (PROJECT openrct2) project(${PROJECT}) -add_executable(${PROJECT} ${OPENRCT2_UI_SOURCES}) +add_executable(${PROJECT} ${OPENRCT2_UI_SOURCES} ${OPENRCT2_UI_M_SOURCES} ${OPENRCT2_UI_MM_SOURCES}) target_link_libraries(${PROJECT} "libopenrct2" ${SDL2_LIBRARIES} From 898ffdb8e0835ba86b2f47d2ff5e088c4c0cf845 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Wed, 17 May 2017 14:42:44 +0100 Subject: [PATCH 175/670] Fix #5487: Crash on deleting text --- src/openrct2-ui/TextComposition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/TextComposition.cpp b/src/openrct2-ui/TextComposition.cpp index f211cd7aef..ed4cc1a8f0 100644 --- a/src/openrct2-ui/TextComposition.cpp +++ b/src/openrct2-ui/TextComposition.cpp @@ -287,7 +287,7 @@ void TextComposition::Delete() utf8 * buffer = _session.Buffer; utf8 * targetShiftPtr = buffer + _session.SelectionStart; utf8 * sourceShiftPtr = targetShiftPtr + _session.SelectionSize; - size_t shiftSize = _session.SelectionSize - _session.SelectionStart - _session.SelectionSize + 1; + size_t shiftSize = _session.Size - (_session.SelectionStart - _session.SelectionSize + 1); memmove(targetShiftPtr, sourceShiftPtr, shiftSize); _session.SelectionSize = 0; RecalculateLength(); From 999a467b9accee8207506beec1a006a40952c700 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Wed, 17 May 2017 16:31:44 +0100 Subject: [PATCH 176/670] Add SetKeysPressed() function to UiContext --- src/openrct2-ui/TextComposition.cpp | 5 ++--- src/openrct2-ui/UiContext.cpp | 6 ++++++ src/openrct2/ui/UiContext.h | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/openrct2-ui/TextComposition.cpp b/src/openrct2-ui/TextComposition.cpp index ed4cc1a8f0..cf23667291 100644 --- a/src/openrct2-ui/TextComposition.cpp +++ b/src/openrct2-ui/TextComposition.cpp @@ -111,9 +111,8 @@ void TextComposition::HandleMessage(const SDL_Event * e) // Map Keypad enter to regular enter. key = SDLK_RETURN; } - - // _lastKeyPressed = e.key.keysym.sym; - // _keysPressed[e.key.keysym.scancode] = 1; + + GetContext()->GetUiContext()->SetKeysPressed(key, e->key.keysym.scancode); // Text input if (_session.Buffer == nullptr) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 894aa17490..492dade135 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -217,6 +217,12 @@ public: { SDL_SetWindowGrab(_window, value ? SDL_TRUE : SDL_FALSE); } + + void SetKeysPressed(uint32 keysym, uint8 scancode) override + { + _lastKeyPressed = keysym; + _keysPressed[scancode] = 1; + } // Drawing IDrawingEngine * CreateDrawingEngine(DRAWING_ENGINE_TYPE type) override diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 5a49cad541..9cb8cb980a 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -119,6 +119,7 @@ namespace OpenRCT2 virtual void SetCursorTrap(bool value) abstract; virtual const uint8 * GetKeysState() abstract; virtual const uint8 * GetKeysPressed() abstract; + virtual void SetKeysPressed(uint32 keysym, uint8 scancode) abstract; // Drawing virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) abstract; From aa5151503a780604e21878ea94b00ba3d2317d74 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Wed, 17 May 2017 16:36:53 +0100 Subject: [PATCH 177/670] Fix formatting --- src/openrct2-ui/TextComposition.cpp | 2 +- src/openrct2-ui/UiContext.cpp | 10 +++++----- src/openrct2/ui/UiContext.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openrct2-ui/TextComposition.cpp b/src/openrct2-ui/TextComposition.cpp index cf23667291..3a7b6ec4e3 100644 --- a/src/openrct2-ui/TextComposition.cpp +++ b/src/openrct2-ui/TextComposition.cpp @@ -112,7 +112,7 @@ void TextComposition::HandleMessage(const SDL_Event * e) key = SDLK_RETURN; } - GetContext()->GetUiContext()->SetKeysPressed(key, e->key.keysym.scancode); + GetContext()->GetUiContext()->SetKeysPressed(key, e->key.keysym.scancode); // Text input if (_session.Buffer == nullptr) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 492dade135..8782685331 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -218,11 +218,11 @@ public: SDL_SetWindowGrab(_window, value ? SDL_TRUE : SDL_FALSE); } - void SetKeysPressed(uint32 keysym, uint8 scancode) override - { - _lastKeyPressed = keysym; - _keysPressed[scancode] = 1; - } + void SetKeysPressed(uint32 keysym, uint8 scancode) override + { + _lastKeyPressed = keysym; + _keysPressed[scancode] = 1; + } // Drawing IDrawingEngine * CreateDrawingEngine(DRAWING_ENGINE_TYPE type) override diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 9cb8cb980a..1fb00eb0d5 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -119,7 +119,7 @@ namespace OpenRCT2 virtual void SetCursorTrap(bool value) abstract; virtual const uint8 * GetKeysState() abstract; virtual const uint8 * GetKeysPressed() abstract; - virtual void SetKeysPressed(uint32 keysym, uint8 scancode) abstract; + virtual void SetKeysPressed(uint32 keysym, uint8 scancode) abstract; // Drawing virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) abstract; From d4e5514f6bcf8b4d9c536bfb3bc7cf74ac3bbf9d Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Wed, 17 May 2017 18:22:25 +0100 Subject: [PATCH 178/670] Tabs-to-spaces on UiContext.macOS.mm --- OpenRCT2.xcodeproj/project.pbxproj | 3 +- src/openrct2-ui/UiContext.macOS.mm | 172 ++++++++++++++--------------- 2 files changed, 88 insertions(+), 87 deletions(-) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index 237a0ba5db..8b58f029d6 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -1624,7 +1624,7 @@ F76C85AD1EC4E82600FA49E2 /* UiContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UiContext.h; sourceTree = ""; }; F76C85AE1EC4E82600FA49E2 /* UiContext.Linux.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Linux.cpp; sourceTree = ""; }; F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Win32.cpp; sourceTree = ""; }; - F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; }; + F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; usesTabs = 0; }; F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "OpenRCT2-cli"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -4625,6 +4625,7 @@ C68B2D451EC790690020651C /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; D497D0731C20FD52002BF46A /* Build configuration list for PBXProject "OpenRCT2" */ = { isa = XCConfigurationList; diff --git a/src/openrct2-ui/UiContext.macOS.mm b/src/openrct2-ui/UiContext.macOS.mm index e73766f0bd..211e2de7b8 100644 --- a/src/openrct2-ui/UiContext.macOS.mm +++ b/src/openrct2-ui/UiContext.macOS.mm @@ -1,17 +1,17 @@ #pragma region Copyright (c) 2014-2016 OpenRCT2 Developers /***************************************************************************** -* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. -* -* 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 -* -* 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. -* -* A full copy of the GNU General Public License can be found in licence.txt -*****************************************************************************/ + * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. + * + * 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 + * + * 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. + * + * A full copy of the GNU General Public License can be found in licence.txt + *****************************************************************************/ #pragma endregion #if defined(__APPLE__) && defined(__MACH__) @@ -36,11 +36,11 @@ namespace OpenRCT2 { namespace Ui public: macOSContext() { - @autoreleasepool { - if ([NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:)]) { - [NSWindow setAllowsAutomaticWindowTabbing:NO]; - } - } + @autoreleasepool { + if ([NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:)]) { + [NSWindow setAllowsAutomaticWindowTabbing:NO]; + } + } } void SetWindowIcon(SDL_Window * window) override @@ -49,84 +49,84 @@ namespace OpenRCT2 { namespace Ui bool IsSteamOverlayAttached() override { - STUB(); - return false; + STUB(); + return false; } void ShowMessageBox(SDL_Window * window, const std::string &message) override { - @autoreleasepool - { - NSAlert *alert = [[[NSAlert alloc] init] autorelease]; - [alert addButtonWithTitle:@"OK"]; - alert.messageText = [NSString stringWithUTF8String:message.c_str()]; - [alert runModal]; - } + @autoreleasepool + { + NSAlert *alert = [[[NSAlert alloc] init] autorelease]; + [alert addButtonWithTitle:@"OK"]; + alert.messageText = [NSString stringWithUTF8String:message.c_str()]; + [alert runModal]; + } } std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc &desc) override { - @autoreleasepool - { - NSMutableArray *extensions = [NSMutableArray new]; - for (const OpenRCT2::Ui::FileDialogDesc::Filter &filter: desc.Filters) { - if (filter.Pattern != "") { - NSString *fp = [NSString stringWithUTF8String:filter.Pattern.c_str()]; - fp = [fp stringByReplacingOccurrencesOfString:@"*." withString:@""]; - [extensions addObjectsFromArray:[fp componentsSeparatedByString:@";"]]; - } - } - - NSString *directory; - NSSavePanel *panel; - if (desc.Type == FILE_DIALOG_TYPE::SAVE) - { - NSString *filePath = [NSString stringWithUTF8String:desc.DefaultFilename.c_str()]; - directory = filePath.stringByDeletingLastPathComponent; - NSString *basename = filePath.lastPathComponent; - panel = [NSSavePanel savePanel]; - panel.nameFieldStringValue = [NSString stringWithFormat:@"%@.%@", basename, extensions.firstObject]; - } - else if (desc.Type == FILE_DIALOG_TYPE::OPEN) - { - directory = [NSString stringWithUTF8String:desc.InitialDirectory.c_str()]; - NSOpenPanel *open = [NSOpenPanel openPanel]; - open.canChooseDirectories = false; - open.canChooseFiles = true; - open.allowsMultipleSelection = false; - panel = open; - } else { - return std::string(); - } - - panel.title = [NSString stringWithUTF8String:desc.Title.c_str()]; - panel.allowedFileTypes = extensions; - panel.directoryURL = [NSURL fileURLWithPath:directory]; - if ([panel runModal] == NSFileHandlingPanelCancelButton){ - return std::string(); - } else { - return panel.URL.path.UTF8String; - } - } + @autoreleasepool + { + NSMutableArray *extensions = [NSMutableArray new]; + for (const OpenRCT2::Ui::FileDialogDesc::Filter &filter: desc.Filters) { + if (filter.Pattern != "") { + NSString *fp = [NSString stringWithUTF8String:filter.Pattern.c_str()]; + fp = [fp stringByReplacingOccurrencesOfString:@"*." withString:@""]; + [extensions addObjectsFromArray:[fp componentsSeparatedByString:@";"]]; + } + } + + NSString *directory; + NSSavePanel *panel; + if (desc.Type == FILE_DIALOG_TYPE::SAVE) + { + NSString *filePath = [NSString stringWithUTF8String:desc.DefaultFilename.c_str()]; + directory = filePath.stringByDeletingLastPathComponent; + NSString *basename = filePath.lastPathComponent; + panel = [NSSavePanel savePanel]; + panel.nameFieldStringValue = [NSString stringWithFormat:@"%@.%@", basename, extensions.firstObject]; + } + else if (desc.Type == FILE_DIALOG_TYPE::OPEN) + { + directory = [NSString stringWithUTF8String:desc.InitialDirectory.c_str()]; + NSOpenPanel *open = [NSOpenPanel openPanel]; + open.canChooseDirectories = false; + open.canChooseFiles = true; + open.allowsMultipleSelection = false; + panel = open; + } else { + return std::string(); + } + + panel.title = [NSString stringWithUTF8String:desc.Title.c_str()]; + panel.allowedFileTypes = extensions; + panel.directoryURL = [NSURL fileURLWithPath:directory]; + if ([panel runModal] == NSFileHandlingPanelCancelButton){ + return std::string(); + } else { + return panel.URL.path.UTF8String; + } + } } std::string ShowDirectoryDialog(SDL_Window * window, const std::string &title) override { - @autoreleasepool - { - NSOpenPanel *panel = [NSOpenPanel openPanel]; - panel.canChooseFiles = false; - panel.canChooseDirectories = true; - panel.allowsMultipleSelection = false; - utf8 *url = NULL; - if ([panel runModal] == NSFileHandlingPanelOKButton) - { - NSString *selectedPath = panel.URL.path; - const char *path = selectedPath.UTF8String; - url = _strdup(path); - } - return url; - } + @autoreleasepool + { + NSOpenPanel *panel = [NSOpenPanel openPanel]; + panel.canChooseFiles = false; + panel.canChooseDirectories = true; + panel.allowsMultipleSelection = false; + utf8 *url = NULL; + if ([panel runModal] == NSFileHandlingPanelOKButton) + { + NSString *selectedPath = panel.URL.path; + const char *path = selectedPath.UTF8String; + url = _strdup(path); + } + return url; + } } private: @@ -163,7 +163,7 @@ namespace OpenRCT2 { namespace Ui break; } } - + // Convert to string *output = std::string(outputBuffer.data(), outputLength); } @@ -171,12 +171,12 @@ namespace OpenRCT2 { namespace Ui { fflush(fpipe); } - + // Return exit code return pclose(fpipe); } }; - + IPlatformUiContext * CreatePlatformUiContext() { return new macOSContext(); From e54bed73c637f38d89b5fbfdd0c17b5b93030351 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Wed, 17 May 2017 18:24:07 +0100 Subject: [PATCH 179/670] Remove stray spaces in header --- src/openrct2-ui/UiContext.macOS.mm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/openrct2-ui/UiContext.macOS.mm b/src/openrct2-ui/UiContext.macOS.mm index 211e2de7b8..4c622775cb 100644 --- a/src/openrct2-ui/UiContext.macOS.mm +++ b/src/openrct2-ui/UiContext.macOS.mm @@ -1,17 +1,17 @@ #pragma region Copyright (c) 2014-2016 OpenRCT2 Developers /***************************************************************************** - * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. - * - * 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 - * - * 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. - * - * A full copy of the GNU General Public License can be found in licence.txt - *****************************************************************************/ +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ #pragma endregion #if defined(__APPLE__) && defined(__MACH__) From 69feeafb3fde23f9d27dc48891160d1d62e3174f Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Sat, 20 May 2017 00:40:54 +0100 Subject: [PATCH 180/670] Clean up Xcode project post-rebase --- OpenRCT2.xcodeproj/project.pbxproj | 873 ----------------------------- 1 file changed, 873 deletions(-) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index 8b58f029d6..f45d1ff61e 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -36,55 +36,6 @@ C606CCD21DB4D7C800FE4015 /* SideTunnelCall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C606CCD01DB4D7C800FE4015 /* SideTunnelCall.cpp */; }; C606CCD51DB4DD6C00FE4015 /* VerticalTunnelCall.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C606CCD31DB4DD6C00FE4015 /* VerticalTunnelCall.cpp */; }; C606CD261DB5120C00FE4015 /* TestPaint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C606CD231DB5120900FE4015 /* TestPaint.cpp */; }; - C612A8991D64825300B634CA /* vehicle_data.c in Sources */ = {isa = PBXBuildFile; fileRef = C612A8971D64825300B634CA /* vehicle_data.c */; }; - C6136C551E21893500F3ED2B /* view_clipping.c in Sources */ = {isa = PBXBuildFile; fileRef = C6136C541E21893500F3ED2B /* view_clipping.c */; }; - C61FB7241CF86356004CE991 /* NetworkUser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C61FB7221CF86356004CE991 /* NetworkUser.cpp */; }; - C647C6911E1D0CA000C7FB21 /* AudioMixer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C647C68F1E1D0CA000C7FB21 /* AudioMixer.cpp */; }; - C649B3D41DF04ED2008AC826 /* format_codes.c in Sources */ = {isa = PBXBuildFile; fileRef = C649B3D31DF04ED2008AC826 /* format_codes.c */; }; - C64FDA641D6D9A2100F259B9 /* air_powered_vertical_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BB1CDBC3B7009F9BFC /* air_powered_vertical_coaster.c */; }; - C64FDA651D6D9A2100F259B9 /* bobsleigh_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BC1CDBC3B7009F9BFC /* bobsleigh_coaster.c */; }; - C64FDA661D6D9A2100F259B9 /* compact_inverted_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BD1CDBC3B7009F9BFC /* compact_inverted_coaster.c */; }; - C64FDA671D6D9A2100F259B9 /* corkscrew_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BE1CDBC3B7009F9BFC /* corkscrew_roller_coaster.c */; }; - C64FDA681D6D9A2100F259B9 /* flying_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BF1CDBC3B7009F9BFC /* flying_roller_coaster.c */; }; - C64FDA691D6D9A2100F259B9 /* giga_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C01CDBC3B7009F9BFC /* giga_coaster.c */; }; - C64FDA6A1D6D9A2100F259B9 /* heartline_twister_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C11CDBC3B7009F9BFC /* heartline_twister_coaster.c */; }; - C64FDA6B1D6D9A2100F259B9 /* inverted_hairpin_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C21CDBC3B7009F9BFC /* inverted_hairpin_coaster.c */; }; - C64FDA6C1D6D9A2100F259B9 /* inverted_impulse_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C31CDBC3B7009F9BFC /* inverted_impulse_coaster.c */; }; - C64FDA6D1D6D9A2100F259B9 /* inverted_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C41CDBC3B7009F9BFC /* inverted_roller_coaster.c */; }; - C64FDA6E1D6D9A2100F259B9 /* junior_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C51CDBC3B7009F9BFC /* junior_roller_coaster.c */; }; - C64FDA6F1D6D9A2100F259B9 /* lay_down_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C61CDBC3B7009F9BFC /* lay_down_roller_coaster.c */; }; - C64FDA701D6D9A2100F259B9 /* lim_launched_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C71CDBC3B7009F9BFC /* lim_launched_roller_coaster.c */; }; - C64FDA711D6D9A2100F259B9 /* looping_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C81CDBC3B7009F9BFC /* looping_roller_coaster.c */; }; - C64FDA721D6D9A2100F259B9 /* mine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C91CDBC3B7009F9BFC /* mine_ride.c */; }; - C64FDA731D6D9A2100F259B9 /* mine_train_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CA1CDBC3B7009F9BFC /* mine_train_coaster.c */; }; - C64FDA741D6D9A2100F259B9 /* mini_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CB1CDBC3B7009F9BFC /* mini_roller_coaster.c */; }; - C64FDA751D6D9A2100F259B9 /* mini_suspended_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CC1CDBC3B7009F9BFC /* mini_suspended_coaster.c */; }; - C64FDA761D6D9A2100F259B9 /* multi_dimension_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CD1CDBC3B7009F9BFC /* multi_dimension_roller_coaster.c */; }; - C64FDA771D6D9A2100F259B9 /* reverse_freefall_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CE1CDBC3B7009F9BFC /* reverse_freefall_coaster.c */; }; - C64FDA781D6D9A2100F259B9 /* reverser_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CF1CDBC3B7009F9BFC /* reverser_roller_coaster.c */; }; - C64FDA791D6D9A2100F259B9 /* side_friction_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D01CDBC3B7009F9BFC /* side_friction_roller_coaster.c */; }; - C64FDA7B1D6D9A2100F259B9 /* stand_up_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D21CDBC3B7009F9BFC /* stand_up_roller_coaster.c */; }; - C64FDA7C1D6D9A2100F259B9 /* steeplechase.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D31CDBC3B7009F9BFC /* steeplechase.c */; }; - C64FDA7D1D6D9A2100F259B9 /* suspended_swinging_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D41CDBC3B7009F9BFC /* suspended_swinging_coaster.c */; }; - C64FDA7E1D6D9A2100F259B9 /* twister_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D51CDBC3B7009F9BFC /* twister_roller_coaster.c */; }; - C64FDA7F1D6D9A2100F259B9 /* vertical_drop_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D61CDBC3B7009F9BFC /* vertical_drop_roller_coaster.c */; }; - C64FDA801D6D9A2100F259B9 /* virginia_reel.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D71CDBC3B7009F9BFC /* virginia_reel.c */; }; - C64FDA811D6D9A2100F259B9 /* wild_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D81CDBC3B7009F9BFC /* wild_mouse.c */; }; - C64FDA821D6D9A2100F259B9 /* wooden_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D91CDBC3B7009F9BFC /* wooden_roller_coaster.c */; }; - C64FDA831D6D9A2100F259B9 /* wooden_wild_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DA1CDBC3B7009F9BFC /* wooden_wild_mouse.c */; }; - C64FDA841D6D9A2100F259B9 /* car_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DC1CDBC3B7009F9BFC /* car_ride.c */; }; - C64FDA851D6D9A2100F259B9 /* circus_show.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DD1CDBC3B7009F9BFC /* circus_show.c */; }; - C64FDA861D6D9A2100F259B9 /* crooked_house.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DE1CDBC3B7009F9BFC /* crooked_house.c */; }; - C64FDA871D6D9A2100F259B9 /* dodgems.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DF1CDBC3B7009F9BFC /* dodgems.c */; }; - C64FDA881D6D9A2100F259B9 /* ferris_wheel.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E01CDBC3B7009F9BFC /* ferris_wheel.c */; }; - C64FDA891D6D9A2100F259B9 /* flying_saucers.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E11CDBC3B7009F9BFC /* flying_saucers.c */; }; - C64FDA8A1D6D9A2100F259B9 /* ghost_train.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E21CDBC3B7009F9BFC /* ghost_train.c */; }; - C64FDA8B1D6D9A2100F259B9 /* haunted_house.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E31CDBC3B7009F9BFC /* haunted_house.c */; }; - C64FDA8C1D6D9A2100F259B9 /* maze.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E41CDBC3B7009F9BFC /* maze.c */; }; - C64FDA8D1D6D9A2100F259B9 /* merry_go_round.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E51CDBC3B7009F9BFC /* merry_go_round.c */; }; - C64FDA8E1D6D9A2100F259B9 /* mini_golf.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E61CDBC3B7009F9BFC /* mini_golf.c */; }; - C64FDA8F1D6D9A2100F259B9 /* mini_helicopters.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E71CDBC3B7009F9BFC /* mini_helicopters.c */; }; - C64FDA901D6D9A2100F259B9 /* monorail_cycles.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E81CDBC3B7009F9BFC /* monorail_cycles.c */; }; C64FDA911D6D9A2100F259B9 /* observation_tower.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E91CDBC3B7009F9BFC /* observation_tower.c */; }; C64FDA921D6D9A2100F259B9 /* space_rings.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EA1CDBC3B7009F9BFC /* space_rings.c */; }; C64FDA931D6D9A2100F259B9 /* spiral_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EB1CDBC3B7009F9BFC /* spiral_slide.c */; }; @@ -93,15 +44,6 @@ C64FDA971D6D9A2100F259B9 /* 3d_cinema.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F11CDBC3B7009F9BFC /* 3d_cinema.c */; }; C64FDA981D6D9A2100F259B9 /* enterprise.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F21CDBC3B7009F9BFC /* enterprise.c */; }; C64FDA991D6D9A2100F259B9 /* go_karts.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F31CDBC3B7009F9BFC /* go_karts.c */; }; - C64FDA9A1D6D9A2100F259B9 /* launched_freefall.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F41CDBC3B7009F9BFC /* launched_freefall.c */; }; - C64FDA9B1D6D9A2100F259B9 /* magic_carpet.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F51CDBC3B7009F9BFC /* magic_carpet.c */; }; - C64FDA9C1D6D9A2100F259B9 /* motion_simulator.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F61CDBC3B7009F9BFC /* motion_simulator.c */; }; - C64FDA9D1D6D9A2100F259B9 /* pirate_ship.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F71CDBC3B7009F9BFC /* pirate_ship.c */; }; - C64FDA9E1D6D9A2100F259B9 /* roto_drop.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F81CDBC3B7009F9BFC /* roto_drop.c */; }; - C64FDA9F1D6D9A2100F259B9 /* swinging_inverter_ship.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F91CDBC3B7009F9BFC /* swinging_inverter_ship.c */; }; - C64FDAA01D6D9A2100F259B9 /* top_spin.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FA1CDBC3B7009F9BFC /* top_spin.c */; }; - C64FDAA11D6D9A2100F259B9 /* twist.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FB1CDBC3B7009F9BFC /* twist.c */; }; - C64FDAA21D6D9A2100F259B9 /* chairlift.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FD1CDBC3B7009F9BFC /* chairlift.c */; }; C64FDAA31D6D9A2100F259B9 /* lift.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FE1CDBC3B7009F9BFC /* lift.c */; }; C64FDAA41D6D9A2100F259B9 /* miniature_railway.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FF1CDBC3B7009F9BFC /* miniature_railway.c */; }; C64FDAA51D6D9A2100F259B9 /* monorail.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9001CDBC3B7009F9BFC /* monorail.c */; }; @@ -109,129 +51,6 @@ C64FDAA71D6D9A2100F259B9 /* boat_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9031CDBC3B7009F9BFC /* boat_ride.c */; }; C64FDAA81D6D9A2100F259B9 /* dingy_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9041CDBC3B7009F9BFC /* dingy_slide.c */; }; C64FDAA91D6D9A2100F259B9 /* log_flume.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9051CDBC3B7009F9BFC /* log_flume.c */; }; - C64FDAAB1D6D9A2100F259B9 /* river_rapids.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9071CDBC3B7009F9BFC /* river_rapids.c */; }; - C64FDAAC1D6D9A2100F259B9 /* splash_boats.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9081CDBC3B7009F9BFC /* splash_boats.c */; }; - C64FDAAD1D6D9A2100F259B9 /* submarine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9091CDBC3B7009F9BFC /* submarine_ride.c */; }; - C64FDAAE1D6D9A2100F259B9 /* water_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F90A1CDBC3B7009F9BFC /* water_coaster.c */; }; - C64FDABE1D6D9CD900F259B9 /* ride_data.c in Sources */ = {isa = PBXBuildFile; fileRef = D44271731CC81B3200D84D28 /* ride_data.c */; }; - C64FDABF1D6D9CEA00F259B9 /* map_element.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F89B1CDBC37E009F9BFC /* map_element.c */; }; - C64FDAC01D6D9E3B00F259B9 /* track_data.c in Sources */ = {isa = PBXBuildFile; fileRef = D442717B1CC81B3200D84D28 /* track_data.c */; }; - C64FDAC21D6DA0B800F259B9 /* diagnostic.c in Sources */ = {isa = PBXBuildFile; fileRef = D44270FE1CC81B3200D84D28 /* diagnostic.c */; }; - C64FDAC31D6DA41000F259B9 /* track_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = D442717D1CC81B3200D84D28 /* track_paint.c */; }; - C650B2191CCABBDD00B4D91C /* S4Importer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C650B2151CCABBDD00B4D91C /* S4Importer.cpp */; }; - C650B21A1CCABBDD00B4D91C /* tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C650B2171CCABBDD00B4D91C /* tables.cpp */; }; - C650B21C1CCABC4400B4D91C /* ConvertCommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C650B21B1CCABC4400B4D91C /* ConvertCommand.cpp */; }; - C6575A371D46AFBA00C3E79F /* debug_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = C6575A361D46AFBA00C3E79F /* debug_paint.c */; }; - C65A888A1E16859D000368D7 /* bolliger_mabillard_track.c in Sources */ = {isa = PBXBuildFile; fileRef = C65A88881E16859D000368D7 /* bolliger_mabillard_track.c */; }; - C65A88921E1B1148000368D7 /* AudioChannel.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C65A888B1E1B1148000368D7 /* AudioChannel.cpp */; }; - C65A88931E1B1148000368D7 /* FileAudioSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C65A888F1E1B1148000368D7 /* FileAudioSource.cpp */; }; - C65A88941E1B1148000368D7 /* MemoryAudioSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C65A88901E1B1148000368D7 /* MemoryAudioSource.cpp */; }; - C65A88951E1B1148000368D7 /* NullAudioSource.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C65A88911E1B1148000368D7 /* NullAudioSource.cpp */; }; - C6834A111DFDE8E300CE933A /* interop.c in Sources */ = {isa = PBXBuildFile; fileRef = C6834A0F1DFDE8E300CE933A /* interop.c */; }; - C686F8AC1CDBC37E009F9BFC /* banner.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8981CDBC37E009F9BFC /* banner.c */; }; - C686F8AD1CDBC37E009F9BFC /* entrance.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8991CDBC37E009F9BFC /* entrance.c */; }; - C686F8AE1CDBC37E009F9BFC /* fence.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F89A1CDBC37E009F9BFC /* fence.c */; }; - C686F8AF1CDBC37E009F9BFC /* map_element.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F89B1CDBC37E009F9BFC /* map_element.c */; }; - C686F8B01CDBC37E009F9BFC /* path.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F89D1CDBC37E009F9BFC /* path.c */; }; - C686F8B11CDBC37E009F9BFC /* scenery.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F89E1CDBC37E009F9BFC /* scenery.c */; }; - C686F8B21CDBC37E009F9BFC /* scenery_multiple.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F89F1CDBC37E009F9BFC /* scenery_multiple.c */; }; - C686F8B31CDBC37E009F9BFC /* surface.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8A01CDBC37E009F9BFC /* surface.c */; }; - C686F8B41CDBC37E009F9BFC /* paint.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8A21CDBC37E009F9BFC /* paint.c */; }; - C686F8B51CDBC37E009F9BFC /* litter.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8A51CDBC37E009F9BFC /* litter.c */; }; - C686F8B61CDBC37E009F9BFC /* misc.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8A61CDBC37E009F9BFC /* misc.c */; }; - C686F8B71CDBC37E009F9BFC /* peep.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8A71CDBC37E009F9BFC /* peep.c */; }; - C686F8B81CDBC37E009F9BFC /* sprite.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8A81CDBC37E009F9BFC /* sprite.c */; }; - C686F8B91CDBC37E009F9BFC /* supports.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8AA1CDBC37E009F9BFC /* supports.c */; }; - C686F90B1CDBC3B7009F9BFC /* air_powered_vertical_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BB1CDBC3B7009F9BFC /* air_powered_vertical_coaster.c */; }; - C686F90C1CDBC3B7009F9BFC /* bobsleigh_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BC1CDBC3B7009F9BFC /* bobsleigh_coaster.c */; }; - C686F90D1CDBC3B7009F9BFC /* compact_inverted_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BD1CDBC3B7009F9BFC /* compact_inverted_coaster.c */; }; - C686F90E1CDBC3B7009F9BFC /* corkscrew_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BE1CDBC3B7009F9BFC /* corkscrew_roller_coaster.c */; }; - C686F90F1CDBC3B7009F9BFC /* flying_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8BF1CDBC3B7009F9BFC /* flying_roller_coaster.c */; }; - C686F9101CDBC3B7009F9BFC /* giga_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C01CDBC3B7009F9BFC /* giga_coaster.c */; }; - C686F9111CDBC3B7009F9BFC /* heartline_twister_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C11CDBC3B7009F9BFC /* heartline_twister_coaster.c */; }; - C686F9121CDBC3B7009F9BFC /* inverted_hairpin_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C21CDBC3B7009F9BFC /* inverted_hairpin_coaster.c */; }; - C686F9131CDBC3B7009F9BFC /* inverted_impulse_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C31CDBC3B7009F9BFC /* inverted_impulse_coaster.c */; }; - C686F9141CDBC3B7009F9BFC /* inverted_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C41CDBC3B7009F9BFC /* inverted_roller_coaster.c */; }; - C686F9151CDBC3B7009F9BFC /* junior_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C51CDBC3B7009F9BFC /* junior_roller_coaster.c */; }; - C686F9161CDBC3B7009F9BFC /* lay_down_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C61CDBC3B7009F9BFC /* lay_down_roller_coaster.c */; }; - C686F9171CDBC3B7009F9BFC /* lim_launched_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C71CDBC3B7009F9BFC /* lim_launched_roller_coaster.c */; }; - C686F9181CDBC3B7009F9BFC /* looping_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C81CDBC3B7009F9BFC /* looping_roller_coaster.c */; }; - C686F9191CDBC3B7009F9BFC /* mine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8C91CDBC3B7009F9BFC /* mine_ride.c */; }; - C686F91A1CDBC3B7009F9BFC /* mine_train_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CA1CDBC3B7009F9BFC /* mine_train_coaster.c */; }; - C686F91B1CDBC3B7009F9BFC /* mini_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CB1CDBC3B7009F9BFC /* mini_roller_coaster.c */; }; - C686F91C1CDBC3B7009F9BFC /* mini_suspended_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CC1CDBC3B7009F9BFC /* mini_suspended_coaster.c */; }; - C686F91D1CDBC3B7009F9BFC /* multi_dimension_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CD1CDBC3B7009F9BFC /* multi_dimension_roller_coaster.c */; }; - C686F91E1CDBC3B7009F9BFC /* reverse_freefall_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CE1CDBC3B7009F9BFC /* reverse_freefall_coaster.c */; }; - C686F91F1CDBC3B7009F9BFC /* reverser_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8CF1CDBC3B7009F9BFC /* reverser_roller_coaster.c */; }; - C686F9201CDBC3B7009F9BFC /* side_friction_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D01CDBC3B7009F9BFC /* side_friction_roller_coaster.c */; }; - C686F9221CDBC3B7009F9BFC /* stand_up_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D21CDBC3B7009F9BFC /* stand_up_roller_coaster.c */; }; - C686F9231CDBC3B7009F9BFC /* steeplechase.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D31CDBC3B7009F9BFC /* steeplechase.c */; }; - C686F9241CDBC3B7009F9BFC /* suspended_swinging_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D41CDBC3B7009F9BFC /* suspended_swinging_coaster.c */; }; - C686F9251CDBC3B7009F9BFC /* twister_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D51CDBC3B7009F9BFC /* twister_roller_coaster.c */; }; - C686F9261CDBC3B7009F9BFC /* vertical_drop_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D61CDBC3B7009F9BFC /* vertical_drop_roller_coaster.c */; }; - C686F9271CDBC3B7009F9BFC /* virginia_reel.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D71CDBC3B7009F9BFC /* virginia_reel.c */; }; - C686F9281CDBC3B7009F9BFC /* wild_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D81CDBC3B7009F9BFC /* wild_mouse.c */; }; - C686F9291CDBC3B7009F9BFC /* wooden_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8D91CDBC3B7009F9BFC /* wooden_roller_coaster.c */; }; - C686F92A1CDBC3B7009F9BFC /* wooden_wild_mouse.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DA1CDBC3B7009F9BFC /* wooden_wild_mouse.c */; }; - C686F92B1CDBC3B7009F9BFC /* car_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DC1CDBC3B7009F9BFC /* car_ride.c */; }; - C686F92C1CDBC3B7009F9BFC /* circus_show.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DD1CDBC3B7009F9BFC /* circus_show.c */; }; - C686F92D1CDBC3B7009F9BFC /* crooked_house.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DE1CDBC3B7009F9BFC /* crooked_house.c */; }; - C686F92E1CDBC3B7009F9BFC /* dodgems.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8DF1CDBC3B7009F9BFC /* dodgems.c */; }; - C686F92F1CDBC3B7009F9BFC /* ferris_wheel.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E01CDBC3B7009F9BFC /* ferris_wheel.c */; }; - C686F9301CDBC3B7009F9BFC /* flying_saucers.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E11CDBC3B7009F9BFC /* flying_saucers.c */; }; - C686F9311CDBC3B7009F9BFC /* ghost_train.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E21CDBC3B7009F9BFC /* ghost_train.c */; }; - C686F9321CDBC3B7009F9BFC /* haunted_house.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E31CDBC3B7009F9BFC /* haunted_house.c */; }; - C686F9331CDBC3B7009F9BFC /* maze.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E41CDBC3B7009F9BFC /* maze.c */; }; - C686F9341CDBC3B7009F9BFC /* merry_go_round.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E51CDBC3B7009F9BFC /* merry_go_round.c */; }; - C686F9351CDBC3B7009F9BFC /* mini_golf.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E61CDBC3B7009F9BFC /* mini_golf.c */; }; - C686F9361CDBC3B7009F9BFC /* mini_helicopters.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E71CDBC3B7009F9BFC /* mini_helicopters.c */; }; - C686F9371CDBC3B7009F9BFC /* monorail_cycles.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E81CDBC3B7009F9BFC /* monorail_cycles.c */; }; - C686F9381CDBC3B7009F9BFC /* observation_tower.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8E91CDBC3B7009F9BFC /* observation_tower.c */; }; - C686F9391CDBC3B7009F9BFC /* space_rings.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EA1CDBC3B7009F9BFC /* space_rings.c */; }; - C686F93A1CDBC3B7009F9BFC /* spiral_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EB1CDBC3B7009F9BFC /* spiral_slide.c */; }; - C686F93B1CDBC3B7009F9BFC /* facility.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8ED1CDBC3B7009F9BFC /* facility.c */; }; - C686F93D1CDBC3B7009F9BFC /* shop.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8EF1CDBC3B7009F9BFC /* shop.c */; }; - C686F93E1CDBC3B7009F9BFC /* 3d_cinema.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F11CDBC3B7009F9BFC /* 3d_cinema.c */; }; - C686F93F1CDBC3B7009F9BFC /* enterprise.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F21CDBC3B7009F9BFC /* enterprise.c */; }; - C686F9401CDBC3B7009F9BFC /* go_karts.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F31CDBC3B7009F9BFC /* go_karts.c */; }; - C686F9411CDBC3B7009F9BFC /* launched_freefall.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F41CDBC3B7009F9BFC /* launched_freefall.c */; }; - C686F9421CDBC3B7009F9BFC /* magic_carpet.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F51CDBC3B7009F9BFC /* magic_carpet.c */; }; - C686F9431CDBC3B7009F9BFC /* motion_simulator.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F61CDBC3B7009F9BFC /* motion_simulator.c */; }; - C686F9441CDBC3B7009F9BFC /* pirate_ship.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F71CDBC3B7009F9BFC /* pirate_ship.c */; }; - C686F9451CDBC3B7009F9BFC /* roto_drop.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F81CDBC3B7009F9BFC /* roto_drop.c */; }; - C686F9461CDBC3B7009F9BFC /* swinging_inverter_ship.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8F91CDBC3B7009F9BFC /* swinging_inverter_ship.c */; }; - C686F9471CDBC3B7009F9BFC /* top_spin.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FA1CDBC3B7009F9BFC /* top_spin.c */; }; - C686F9481CDBC3B7009F9BFC /* twist.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FB1CDBC3B7009F9BFC /* twist.c */; }; - C686F9491CDBC3B7009F9BFC /* chairlift.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FD1CDBC3B7009F9BFC /* chairlift.c */; }; - C686F94A1CDBC3B7009F9BFC /* lift.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FE1CDBC3B7009F9BFC /* lift.c */; }; - C686F94B1CDBC3B7009F9BFC /* miniature_railway.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F8FF1CDBC3B7009F9BFC /* miniature_railway.c */; }; - C686F94C1CDBC3B7009F9BFC /* monorail.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9001CDBC3B7009F9BFC /* monorail.c */; }; - C686F94D1CDBC3B7009F9BFC /* suspended_monorail.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9011CDBC3B7009F9BFC /* suspended_monorail.c */; }; - C686F94E1CDBC3B7009F9BFC /* boat_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9031CDBC3B7009F9BFC /* boat_ride.c */; }; - C686F94F1CDBC3B7009F9BFC /* dingy_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9041CDBC3B7009F9BFC /* dingy_slide.c */; }; - C686F9501CDBC3B7009F9BFC /* log_flume.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9051CDBC3B7009F9BFC /* log_flume.c */; }; - C686F9521CDBC3B7009F9BFC /* river_rapids.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9071CDBC3B7009F9BFC /* river_rapids.c */; }; - C686F9531CDBC3B7009F9BFC /* splash_boats.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9081CDBC3B7009F9BFC /* splash_boats.c */; }; - C686F9541CDBC3B7009F9BFC /* submarine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9091CDBC3B7009F9BFC /* submarine_ride.c */; }; - C686F9551CDBC3B7009F9BFC /* water_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F90A1CDBC3B7009F9BFC /* water_coaster.c */; }; - C686F9581CDBC4C7009F9BFC /* vehicle_paint.c in Sources */ = {isa = PBXBuildFile; fileRef = C686F9561CDBC4C7009F9BFC /* vehicle_paint.c */; }; - C68B2CB51EB60DDE0020651C /* server_list.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C68B2CB41EB60DDE0020651C /* server_list.cpp */; }; - C6B5A7D41CDFE4CB00C9C006 /* S6Exporter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6B5A7D01CDFE4CB00C9C006 /* S6Exporter.cpp */; }; - C6B5A7D51CDFE4CB00C9C006 /* S6Importer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6B5A7D21CDFE4CB00C9C006 /* S6Importer.cpp */; }; - C6CABA7E1E13F11C00D33A6B /* hook.c in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E181E0406F00076A04F /* hook.c */; }; - C6CABA7F1E13F14F00D33A6B /* addresses.c in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E161E0406F00076A04F /* addresses.c */; }; - C6CABA821E1466D600D33A6B /* FileClassifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6CABA801E1466D600D33A6B /* FileClassifier.cpp */; }; - C6E96E121E04067A0076A04F /* File.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E101E04067A0076A04F /* File.cpp */; }; - C6E96E151E04069A0076A04F /* Zip.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E131E04069A0076A04F /* Zip.cpp */; }; - C6E96E1A1E0406F00076A04F /* addresses.c in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E161E0406F00076A04F /* addresses.c */; }; - C6E96E1B1E0406F00076A04F /* hook.c in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E181E0406F00076A04F /* hook.c */; }; - C6E96E231E04070E0076A04F /* scenario.c in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E1D1E04070E0076A04F /* scenario.c */; }; - C6E96E241E04070E0076A04F /* ScenarioRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E1F1E04070E0076A04F /* ScenarioRepository.cpp */; }; - C6E96E251E04070E0076A04F /* ScenarioSources.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E211E04070E0076A04F /* ScenarioSources.cpp */; }; - C6E96E2F1E04072F0076A04F /* TitleScreen.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E271E04072F0076A04F /* TitleScreen.cpp */; }; - C6E96E301E04072F0076A04F /* TitleSequence.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E291E04072F0076A04F /* TitleSequence.cpp */; }; - C6E96E311E04072F0076A04F /* TitleSequenceManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E2B1E04072F0076A04F /* TitleSequenceManager.cpp */; }; - C6E96E321E04072F0076A04F /* TitleSequencePlayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C6E96E2D1E04072F0076A04F /* TitleSequencePlayer.cpp */; }; C6E96E361E0408B40076A04F /* libzip.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; }; C6E96E371E040E040076A04F /* libzip.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C6E96E351E0408B40076A04F /* libzip.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; D41B73EF1C2101890080A7B9 /* libcurl.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D41B73EE1C2101890080A7B9 /* libcurl.tbd */; }; @@ -453,7 +272,6 @@ F76C86FE1EC4E88400FA49E2 /* ride_data.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84BC1EC4E7CC00FA49E2 /* ride_data.c */; }; F76C87001EC4E88400FA49E2 /* ride_ratings.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84BE1EC4E7CC00FA49E2 /* ride_ratings.c */; }; F76C87021EC4E88400FA49E2 /* facility.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C11EC4E7CC00FA49E2 /* facility.c */; }; - F76C87031EC4E88400FA49E2 /* misc.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C21EC4E7CC00FA49E2 /* misc.c */; }; F76C87041EC4E88400FA49E2 /* shop.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C31EC4E7CC00FA49E2 /* shop.c */; }; F76C87051EC4E88400FA49E2 /* station.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C41EC4E7CC00FA49E2 /* station.c */; }; F76C87071EC4E88400FA49E2 /* 3d_cinema.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84C71EC4E7CC00FA49E2 /* 3d_cinema.c */; }; @@ -485,7 +303,6 @@ F76C87291EC4E88400FA49E2 /* boat_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EB1EC4E7CD00FA49E2 /* boat_ride.c */; }; F76C872A1EC4E88400FA49E2 /* dingy_slide.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EC1EC4E7CD00FA49E2 /* dingy_slide.c */; }; F76C872B1EC4E88400FA49E2 /* log_flume.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84ED1EC4E7CD00FA49E2 /* log_flume.c */; }; - F76C872C1EC4E88400FA49E2 /* river_rafts.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EE1EC4E7CD00FA49E2 /* river_rafts.c */; }; F76C872D1EC4E88400FA49E2 /* river_rapids.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84EF1EC4E7CD00FA49E2 /* river_rapids.c */; }; F76C872E1EC4E88400FA49E2 /* splash_boats.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F01EC4E7CD00FA49E2 /* splash_boats.c */; }; F76C872F1EC4E88400FA49E2 /* submarine_ride.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84F11EC4E7CD00FA49E2 /* submarine_ride.c */; }; @@ -763,85 +580,6 @@ C606CD231DB5120900FE4015 /* TestPaint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TestPaint.cpp; sourceTree = ""; }; C606CD241DB5120900FE4015 /* TestPaint.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = TestPaint.hpp; sourceTree = ""; }; C64FDA5D1D6D99F400F259B9 /* PaintTest */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = PaintTest; sourceTree = BUILT_PRODUCTS_DIR; }; - C650B2151CCABBDD00B4D91C /* S4Importer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = S4Importer.cpp; sourceTree = ""; usesTabs = 0; }; - C650B2171CCABBDD00B4D91C /* tables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = tables.cpp; sourceTree = ""; usesTabs = 0; }; - C650B2181CCABBDD00B4D91C /* Tables.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = Tables.h; sourceTree = ""; usesTabs = 0; }; - C650B21B1CCABC4400B4D91C /* ConvertCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ConvertCommand.cpp; sourceTree = ""; usesTabs = 0; }; - C6575A361D46AFBA00C3E79F /* debug_paint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = debug_paint.c; sourceTree = ""; }; - C65A88881E16859D000368D7 /* bolliger_mabillard_track.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bolliger_mabillard_track.c; sourceTree = ""; }; - C65A88891E16859D000368D7 /* bolliger_mabillard_track.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bolliger_mabillard_track.h; sourceTree = ""; }; - C65A888B1E1B1148000368D7 /* AudioChannel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AudioChannel.cpp; sourceTree = ""; }; - C65A888C1E1B1148000368D7 /* AudioChannel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioChannel.h; sourceTree = ""; }; - C65A888D1E1B1148000368D7 /* AudioFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioFormat.h; sourceTree = ""; }; - C65A888E1E1B1148000368D7 /* AudioSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioSource.h; sourceTree = ""; }; - C65A888F1E1B1148000368D7 /* FileAudioSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FileAudioSource.cpp; sourceTree = ""; }; - C65A88901E1B1148000368D7 /* MemoryAudioSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MemoryAudioSource.cpp; sourceTree = ""; }; - C65A88911E1B1148000368D7 /* NullAudioSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NullAudioSource.cpp; sourceTree = ""; }; - C6834A0F1DFDE8E300CE933A /* interop.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = interop.c; sourceTree = ""; usesTabs = 1; }; - C6834A101DFDE8E300CE933A /* interop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = interop.h; sourceTree = ""; }; - C686F8981CDBC37E009F9BFC /* banner.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = banner.c; sourceTree = ""; }; - C686F8991CDBC37E009F9BFC /* entrance.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = entrance.c; sourceTree = ""; }; - C686F89A1CDBC37E009F9BFC /* fence.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fence.c; sourceTree = ""; }; - C686F89B1CDBC37E009F9BFC /* map_element.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = map_element.c; sourceTree = ""; }; - C686F89C1CDBC37E009F9BFC /* map_element.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = map_element.h; sourceTree = ""; }; - C686F89D1CDBC37E009F9BFC /* path.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = path.c; sourceTree = ""; }; - C686F89E1CDBC37E009F9BFC /* scenery.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scenery.c; sourceTree = ""; }; - C686F89F1CDBC37E009F9BFC /* scenery_multiple.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scenery_multiple.c; sourceTree = ""; }; - C686F8A01CDBC37E009F9BFC /* surface.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = surface.c; sourceTree = ""; }; - C686F8A11CDBC37E009F9BFC /* surface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = surface.h; sourceTree = ""; }; - C686F8A21CDBC37E009F9BFC /* paint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = paint.c; sourceTree = ""; }; - C686F8A31CDBC37E009F9BFC /* paint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = paint.h; sourceTree = ""; }; - C686F8A51CDBC37E009F9BFC /* litter.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = litter.c; sourceTree = ""; }; - C686F8A61CDBC37E009F9BFC /* misc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = misc.c; sourceTree = ""; }; - C686F8A71CDBC37E009F9BFC /* peep.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = peep.c; sourceTree = ""; }; - C686F8A81CDBC37E009F9BFC /* sprite.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sprite.c; sourceTree = ""; }; - C686F8A91CDBC37E009F9BFC /* sprite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sprite.h; sourceTree = ""; }; - C686F8AA1CDBC37E009F9BFC /* supports.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = supports.c; sourceTree = ""; }; - C686F8AB1CDBC37E009F9BFC /* supports.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = supports.h; sourceTree = ""; }; - C686F8BB1CDBC3B7009F9BFC /* air_powered_vertical_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = air_powered_vertical_coaster.c; sourceTree = ""; }; - C686F8BC1CDBC3B7009F9BFC /* bobsleigh_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bobsleigh_coaster.c; sourceTree = ""; }; - C686F8BD1CDBC3B7009F9BFC /* compact_inverted_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = compact_inverted_coaster.c; sourceTree = ""; }; - C686F8BE1CDBC3B7009F9BFC /* corkscrew_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = corkscrew_roller_coaster.c; sourceTree = ""; }; - C686F8BF1CDBC3B7009F9BFC /* flying_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = flying_roller_coaster.c; sourceTree = ""; }; - C686F8C01CDBC3B7009F9BFC /* giga_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = giga_coaster.c; sourceTree = ""; }; - C686F8C11CDBC3B7009F9BFC /* heartline_twister_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = heartline_twister_coaster.c; sourceTree = ""; }; - C686F8C21CDBC3B7009F9BFC /* inverted_hairpin_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = inverted_hairpin_coaster.c; sourceTree = ""; }; - C686F8C31CDBC3B7009F9BFC /* inverted_impulse_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = inverted_impulse_coaster.c; sourceTree = ""; }; - C686F8C41CDBC3B7009F9BFC /* inverted_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = inverted_roller_coaster.c; sourceTree = ""; }; - C686F8C51CDBC3B7009F9BFC /* junior_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = junior_roller_coaster.c; sourceTree = ""; }; - C686F8C61CDBC3B7009F9BFC /* lay_down_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = lay_down_roller_coaster.c; sourceTree = ""; }; - C686F8C71CDBC3B7009F9BFC /* lim_launched_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = lim_launched_roller_coaster.c; sourceTree = ""; }; - C686F8C81CDBC3B7009F9BFC /* looping_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = looping_roller_coaster.c; sourceTree = ""; }; - C686F8C91CDBC3B7009F9BFC /* mine_ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mine_ride.c; sourceTree = ""; }; - C686F8CA1CDBC3B7009F9BFC /* mine_train_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mine_train_coaster.c; sourceTree = ""; }; - C686F8CB1CDBC3B7009F9BFC /* mini_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mini_roller_coaster.c; sourceTree = ""; }; - C686F8CC1CDBC3B7009F9BFC /* mini_suspended_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mini_suspended_coaster.c; sourceTree = ""; }; - C686F8CD1CDBC3B7009F9BFC /* multi_dimension_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = multi_dimension_roller_coaster.c; sourceTree = ""; }; - C686F8CE1CDBC3B7009F9BFC /* reverse_freefall_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = reverse_freefall_coaster.c; sourceTree = ""; }; - C686F8CF1CDBC3B7009F9BFC /* reverser_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = reverser_roller_coaster.c; sourceTree = ""; }; - C686F8D01CDBC3B7009F9BFC /* side_friction_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = side_friction_roller_coaster.c; sourceTree = ""; }; - C686F8D21CDBC3B7009F9BFC /* stand_up_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = stand_up_roller_coaster.c; sourceTree = ""; }; - C686F8D31CDBC3B7009F9BFC /* steeplechase.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = steeplechase.c; sourceTree = ""; }; - C686F8D41CDBC3B7009F9BFC /* suspended_swinging_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = suspended_swinging_coaster.c; sourceTree = ""; }; - C686F8D51CDBC3B7009F9BFC /* twister_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = twister_roller_coaster.c; sourceTree = ""; }; - C686F8D61CDBC3B7009F9BFC /* vertical_drop_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = vertical_drop_roller_coaster.c; sourceTree = ""; }; - C686F8D71CDBC3B7009F9BFC /* virginia_reel.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = virginia_reel.c; sourceTree = ""; }; - C686F8D81CDBC3B7009F9BFC /* wild_mouse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = wild_mouse.c; sourceTree = ""; }; - C686F8D91CDBC3B7009F9BFC /* wooden_roller_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = wooden_roller_coaster.c; sourceTree = ""; }; - C686F8DA1CDBC3B7009F9BFC /* wooden_wild_mouse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = wooden_wild_mouse.c; sourceTree = ""; }; - C686F8DC1CDBC3B7009F9BFC /* car_ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = car_ride.c; sourceTree = ""; }; - C686F8DD1CDBC3B7009F9BFC /* circus_show.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = circus_show.c; sourceTree = ""; }; - C686F8DE1CDBC3B7009F9BFC /* crooked_house.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = crooked_house.c; sourceTree = ""; }; - C686F8DF1CDBC3B7009F9BFC /* dodgems.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = dodgems.c; sourceTree = ""; }; - C686F8E01CDBC3B7009F9BFC /* ferris_wheel.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ferris_wheel.c; sourceTree = ""; }; - C686F8E11CDBC3B7009F9BFC /* flying_saucers.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = flying_saucers.c; sourceTree = ""; }; - C686F8E21CDBC3B7009F9BFC /* ghost_train.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ghost_train.c; sourceTree = ""; }; - C686F8E31CDBC3B7009F9BFC /* haunted_house.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = haunted_house.c; sourceTree = ""; }; - C686F8E41CDBC3B7009F9BFC /* maze.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = maze.c; sourceTree = ""; }; - C686F8E51CDBC3B7009F9BFC /* merry_go_round.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = merry_go_round.c; sourceTree = ""; }; - C686F8E61CDBC3B7009F9BFC /* mini_golf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mini_golf.c; sourceTree = ""; }; - C686F8E71CDBC3B7009F9BFC /* mini_helicopters.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mini_helicopters.c; sourceTree = ""; }; - C686F8E81CDBC3B7009F9BFC /* monorail_cycles.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = monorail_cycles.c; sourceTree = ""; }; C686F8E91CDBC3B7009F9BFC /* observation_tower.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = observation_tower.c; sourceTree = ""; }; C686F8EA1CDBC3B7009F9BFC /* space_rings.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = space_rings.c; sourceTree = ""; }; C686F8EB1CDBC3B7009F9BFC /* spiral_slide.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = spiral_slide.c; sourceTree = ""; }; @@ -850,15 +588,6 @@ C686F8F11CDBC3B7009F9BFC /* 3d_cinema.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = 3d_cinema.c; sourceTree = ""; }; C686F8F21CDBC3B7009F9BFC /* enterprise.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = enterprise.c; sourceTree = ""; }; C686F8F31CDBC3B7009F9BFC /* go_karts.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = go_karts.c; sourceTree = ""; }; - C686F8F41CDBC3B7009F9BFC /* launched_freefall.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = launched_freefall.c; sourceTree = ""; }; - C686F8F51CDBC3B7009F9BFC /* magic_carpet.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = magic_carpet.c; sourceTree = ""; }; - C686F8F61CDBC3B7009F9BFC /* motion_simulator.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = motion_simulator.c; sourceTree = ""; }; - C686F8F71CDBC3B7009F9BFC /* pirate_ship.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = pirate_ship.c; sourceTree = ""; }; - C686F8F81CDBC3B7009F9BFC /* roto_drop.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = roto_drop.c; sourceTree = ""; }; - C686F8F91CDBC3B7009F9BFC /* swinging_inverter_ship.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = swinging_inverter_ship.c; sourceTree = ""; }; - C686F8FA1CDBC3B7009F9BFC /* top_spin.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = top_spin.c; sourceTree = ""; }; - C686F8FB1CDBC3B7009F9BFC /* twist.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = twist.c; sourceTree = ""; }; - C686F8FD1CDBC3B7009F9BFC /* chairlift.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = chairlift.c; sourceTree = ""; }; C686F8FE1CDBC3B7009F9BFC /* lift.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = lift.c; sourceTree = ""; }; C686F8FF1CDBC3B7009F9BFC /* miniature_railway.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = miniature_railway.c; sourceTree = ""; }; C686F9001CDBC3B7009F9BFC /* monorail.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = monorail.c; sourceTree = ""; }; @@ -866,40 +595,6 @@ C686F9031CDBC3B7009F9BFC /* boat_ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = boat_ride.c; sourceTree = ""; }; C686F9041CDBC3B7009F9BFC /* dingy_slide.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = dingy_slide.c; sourceTree = ""; }; C686F9051CDBC3B7009F9BFC /* log_flume.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = log_flume.c; sourceTree = ""; }; - C686F9071CDBC3B7009F9BFC /* river_rapids.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = river_rapids.c; sourceTree = ""; }; - C686F9081CDBC3B7009F9BFC /* splash_boats.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = splash_boats.c; sourceTree = ""; }; - C686F9091CDBC3B7009F9BFC /* submarine_ride.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = submarine_ride.c; sourceTree = ""; }; - C686F90A1CDBC3B7009F9BFC /* water_coaster.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = water_coaster.c; sourceTree = ""; }; - C686F9561CDBC4C7009F9BFC /* vehicle_paint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = vehicle_paint.c; sourceTree = ""; }; - C686F9571CDBC4C7009F9BFC /* vehicle_paint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = vehicle_paint.h; sourceTree = ""; }; - C68B2CB41EB60DDE0020651C /* server_list.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = server_list.cpp; sourceTree = ""; }; - C6B5A7D01CDFE4CB00C9C006 /* S6Exporter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = S6Exporter.cpp; sourceTree = ""; }; - C6B5A7D11CDFE4CB00C9C006 /* S6Exporter.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = S6Exporter.h; sourceTree = ""; }; - C6B5A7D21CDFE4CB00C9C006 /* S6Importer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = S6Importer.cpp; sourceTree = ""; }; - C6CABA801E1466D600D33A6B /* FileClassifier.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FileClassifier.cpp; sourceTree = ""; }; - C6CABA811E1466D600D33A6B /* FileClassifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FileClassifier.h; sourceTree = ""; }; - C6E96E101E04067A0076A04F /* File.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = File.cpp; sourceTree = ""; }; - C6E96E111E04067A0076A04F /* File.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = File.h; sourceTree = ""; }; - C6E96E131E04069A0076A04F /* Zip.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Zip.cpp; sourceTree = ""; usesTabs = 0; }; - C6E96E141E04069A0076A04F /* Zip.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Zip.h; sourceTree = ""; usesTabs = 0; }; - C6E96E161E0406F00076A04F /* addresses.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = addresses.c; sourceTree = ""; }; - C6E96E171E0406F00076A04F /* addresses.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = addresses.h; sourceTree = ""; }; - C6E96E181E0406F00076A04F /* hook.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = hook.c; sourceTree = ""; }; - C6E96E191E0406F00076A04F /* hook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = hook.h; sourceTree = ""; }; - C6E96E1D1E04070E0076A04F /* scenario.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = scenario.c; sourceTree = ""; }; - C6E96E1E1E04070E0076A04F /* scenario.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = scenario.h; sourceTree = ""; }; - C6E96E1F1E04070E0076A04F /* ScenarioRepository.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScenarioRepository.cpp; sourceTree = ""; usesTabs = 0; }; - C6E96E201E04070E0076A04F /* ScenarioRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScenarioRepository.h; sourceTree = ""; usesTabs = 0; }; - C6E96E211E04070E0076A04F /* ScenarioSources.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScenarioSources.cpp; sourceTree = ""; usesTabs = 0; }; - C6E96E221E04070E0076A04F /* ScenarioSources.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScenarioSources.h; sourceTree = ""; usesTabs = 0; }; - C6E96E271E04072F0076A04F /* TitleScreen.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TitleScreen.cpp; sourceTree = ""; usesTabs = 0; }; - C6E96E281E04072F0076A04F /* TitleScreen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TitleScreen.h; sourceTree = ""; usesTabs = 0; }; - C6E96E291E04072F0076A04F /* TitleSequence.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TitleSequence.cpp; sourceTree = ""; usesTabs = 0; }; - C6E96E2A1E04072F0076A04F /* TitleSequence.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TitleSequence.h; sourceTree = ""; usesTabs = 0; }; - C6E96E2B1E04072F0076A04F /* TitleSequenceManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TitleSequenceManager.cpp; sourceTree = ""; usesTabs = 0; }; - C6E96E2C1E04072F0076A04F /* TitleSequenceManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TitleSequenceManager.h; sourceTree = ""; usesTabs = 0; }; - C6E96E2D1E04072F0076A04F /* TitleSequencePlayer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TitleSequencePlayer.cpp; sourceTree = ""; usesTabs = 0; }; - C6E96E2E1E04072F0076A04F /* TitleSequencePlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TitleSequencePlayer.h; sourceTree = ""; usesTabs = 0; }; C6E96E331E0408A80076A04F /* zip.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zip.h; sourceTree = ""; }; C6E96E341E0408A80076A04F /* zipconf.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = zipconf.h; sourceTree = ""; }; C6E96E351E0408B40076A04F /* libzip.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libzip.dylib; sourceTree = ""; }; @@ -1719,221 +1414,6 @@ path = test/testpaint; sourceTree = ""; }; - C650B2141CCABBDD00B4D91C /* rct1 */ = { - isa = PBXGroup; - children = ( - C650B2151CCABBDD00B4D91C /* S4Importer.cpp */, - C650B2171CCABBDD00B4D91C /* tables.cpp */, - C650B2181CCABBDD00B4D91C /* Tables.h */, - ); - path = rct1; - sourceTree = ""; - }; - C686F8961CDBC37E009F9BFC /* paint */ = { - isa = PBXGroup; - children = ( - C686F8971CDBC37E009F9BFC /* map_element */, - C686F8A41CDBC37E009F9BFC /* sprite */, - 85B468FB1D96822F000F1DB5 /* paint_helpers.c */, - C686F8A21CDBC37E009F9BFC /* paint.c */, - C686F8AA1CDBC37E009F9BFC /* supports.c */, - C686F8A31CDBC37E009F9BFC /* paint.h */, - C686F8AB1CDBC37E009F9BFC /* supports.h */, - ); - path = paint; - sourceTree = ""; - }; - C686F8971CDBC37E009F9BFC /* map_element */ = { - isa = PBXGroup; - children = ( - C686F8981CDBC37E009F9BFC /* banner.c */, - C686F8991CDBC37E009F9BFC /* entrance.c */, - C686F89A1CDBC37E009F9BFC /* fence.c */, - C686F89B1CDBC37E009F9BFC /* map_element.c */, - C686F89C1CDBC37E009F9BFC /* map_element.h */, - C686F89D1CDBC37E009F9BFC /* path.c */, - C686F89F1CDBC37E009F9BFC /* scenery_multiple.c */, - C686F89E1CDBC37E009F9BFC /* scenery.c */, - C686F8A01CDBC37E009F9BFC /* surface.c */, - C686F8A11CDBC37E009F9BFC /* surface.h */, - ); - path = map_element; - sourceTree = ""; - }; - C686F8A41CDBC37E009F9BFC /* sprite */ = { - isa = PBXGroup; - children = ( - C686F8A51CDBC37E009F9BFC /* litter.c */, - C686F8A61CDBC37E009F9BFC /* misc.c */, - C686F8A71CDBC37E009F9BFC /* peep.c */, - C686F8A81CDBC37E009F9BFC /* sprite.c */, - C686F8A91CDBC37E009F9BFC /* sprite.h */, - ); - path = sprite; - sourceTree = ""; - }; - C686F8BA1CDBC3B7009F9BFC /* coaster */ = { - isa = PBXGroup; - children = ( - C686F8BB1CDBC3B7009F9BFC /* air_powered_vertical_coaster.c */, - C686F8BC1CDBC3B7009F9BFC /* bobsleigh_coaster.c */, - C65A88881E16859D000368D7 /* bolliger_mabillard_track.c */, - C65A88891E16859D000368D7 /* bolliger_mabillard_track.h */, - C686F8BD1CDBC3B7009F9BFC /* compact_inverted_coaster.c */, - C686F8BE1CDBC3B7009F9BFC /* corkscrew_roller_coaster.c */, - C686F8BF1CDBC3B7009F9BFC /* flying_roller_coaster.c */, - C686F8C01CDBC3B7009F9BFC /* giga_coaster.c */, - C686F8C11CDBC3B7009F9BFC /* heartline_twister_coaster.c */, - C686F8C21CDBC3B7009F9BFC /* inverted_hairpin_coaster.c */, - C686F8C31CDBC3B7009F9BFC /* inverted_impulse_coaster.c */, - C686F8C41CDBC3B7009F9BFC /* inverted_roller_coaster.c */, - C686F8C51CDBC3B7009F9BFC /* junior_roller_coaster.c */, - C6FF1BAD1DBCE1A10078DCB5 /* junior_roller_coaster.h */, - C686F8C61CDBC3B7009F9BFC /* lay_down_roller_coaster.c */, - C686F8C71CDBC3B7009F9BFC /* lim_launched_roller_coaster.c */, - C686F8C81CDBC3B7009F9BFC /* looping_roller_coaster.c */, - C686F8C91CDBC3B7009F9BFC /* mine_ride.c */, - C686F8CA1CDBC3B7009F9BFC /* mine_train_coaster.c */, - C686F8CB1CDBC3B7009F9BFC /* mini_roller_coaster.c */, - C686F8CC1CDBC3B7009F9BFC /* mini_suspended_coaster.c */, - C686F8CD1CDBC3B7009F9BFC /* multi_dimension_roller_coaster.c */, - C686F8CE1CDBC3B7009F9BFC /* reverse_freefall_coaster.c */, - C686F8CF1CDBC3B7009F9BFC /* reverser_roller_coaster.c */, - C686F8D01CDBC3B7009F9BFC /* side_friction_roller_coaster.c */, - C686F8D21CDBC3B7009F9BFC /* stand_up_roller_coaster.c */, - C686F8D31CDBC3B7009F9BFC /* steeplechase.c */, - C686F8D41CDBC3B7009F9BFC /* suspended_swinging_coaster.c */, - C686F8D51CDBC3B7009F9BFC /* twister_roller_coaster.c */, - C686F8D61CDBC3B7009F9BFC /* vertical_drop_roller_coaster.c */, - C686F8D71CDBC3B7009F9BFC /* virginia_reel.c */, - C686F8D81CDBC3B7009F9BFC /* wild_mouse.c */, - C686F8D91CDBC3B7009F9BFC /* wooden_roller_coaster.c */, - C686F8DA1CDBC3B7009F9BFC /* wooden_wild_mouse.c */, - ); - path = coaster; - sourceTree = ""; - }; - C686F8DB1CDBC3B7009F9BFC /* gentle */ = { - isa = PBXGroup; - children = ( - C686F8DC1CDBC3B7009F9BFC /* car_ride.c */, - C686F8DD1CDBC3B7009F9BFC /* circus_show.c */, - C686F8DE1CDBC3B7009F9BFC /* crooked_house.c */, - C686F8DF1CDBC3B7009F9BFC /* dodgems.c */, - C686F8E01CDBC3B7009F9BFC /* ferris_wheel.c */, - C686F8E11CDBC3B7009F9BFC /* flying_saucers.c */, - C686F8E21CDBC3B7009F9BFC /* ghost_train.c */, - C686F8E31CDBC3B7009F9BFC /* haunted_house.c */, - C686F8E41CDBC3B7009F9BFC /* maze.c */, - C686F8E51CDBC3B7009F9BFC /* merry_go_round.c */, - C686F8E61CDBC3B7009F9BFC /* mini_golf.c */, - C686F8E71CDBC3B7009F9BFC /* mini_helicopters.c */, - C686F8E81CDBC3B7009F9BFC /* monorail_cycles.c */, - C686F8E91CDBC3B7009F9BFC /* observation_tower.c */, - C686F8EA1CDBC3B7009F9BFC /* space_rings.c */, - C686F8EB1CDBC3B7009F9BFC /* spiral_slide.c */, - ); - path = gentle; - sourceTree = ""; - }; - C686F8EC1CDBC3B7009F9BFC /* shops */ = { - isa = PBXGroup; - children = ( - C686F8ED1CDBC3B7009F9BFC /* facility.c */, - C686F8EF1CDBC3B7009F9BFC /* shop.c */, - ); - path = shops; - sourceTree = ""; - }; - C686F8F01CDBC3B7009F9BFC /* thrill */ = { - isa = PBXGroup; - children = ( - C686F8F11CDBC3B7009F9BFC /* 3d_cinema.c */, - C686F8F21CDBC3B7009F9BFC /* enterprise.c */, - C686F8F31CDBC3B7009F9BFC /* go_karts.c */, - C686F8F41CDBC3B7009F9BFC /* launched_freefall.c */, - C686F8F51CDBC3B7009F9BFC /* magic_carpet.c */, - C686F8F61CDBC3B7009F9BFC /* motion_simulator.c */, - C686F8F71CDBC3B7009F9BFC /* pirate_ship.c */, - C686F8F81CDBC3B7009F9BFC /* roto_drop.c */, - C686F8F91CDBC3B7009F9BFC /* swinging_inverter_ship.c */, - C686F8FA1CDBC3B7009F9BFC /* top_spin.c */, - C686F8FB1CDBC3B7009F9BFC /* twist.c */, - ); - path = thrill; - sourceTree = ""; - }; - C686F8FC1CDBC3B7009F9BFC /* transport */ = { - isa = PBXGroup; - children = ( - C686F8FD1CDBC3B7009F9BFC /* chairlift.c */, - C686F8FE1CDBC3B7009F9BFC /* lift.c */, - C686F8FF1CDBC3B7009F9BFC /* miniature_railway.c */, - C686F9001CDBC3B7009F9BFC /* monorail.c */, - C686F9011CDBC3B7009F9BFC /* suspended_monorail.c */, - ); - path = transport; - sourceTree = ""; - }; - C686F9021CDBC3B7009F9BFC /* water */ = { - isa = PBXGroup; - children = ( - C686F9031CDBC3B7009F9BFC /* boat_ride.c */, - C686F9041CDBC3B7009F9BFC /* dingy_slide.c */, - C686F9051CDBC3B7009F9BFC /* log_flume.c */, - C686F9071CDBC3B7009F9BFC /* river_rapids.c */, - C686F9081CDBC3B7009F9BFC /* splash_boats.c */, - C686F9091CDBC3B7009F9BFC /* submarine_ride.c */, - C686F90A1CDBC3B7009F9BFC /* water_coaster.c */, - ); - path = water; - sourceTree = ""; - }; - C6B5A7CF1CDFE4CB00C9C006 /* rct2 */ = { - isa = PBXGroup; - children = ( - C6E96E161E0406F00076A04F /* addresses.c */, - C6E96E171E0406F00076A04F /* addresses.h */, - C6E96E181E0406F00076A04F /* hook.c */, - C6E96E191E0406F00076A04F /* hook.h */, - C6834A0F1DFDE8E300CE933A /* interop.c */, - C6834A101DFDE8E300CE933A /* interop.h */, - C6B5A7D01CDFE4CB00C9C006 /* S6Exporter.cpp */, - C6B5A7D11CDFE4CB00C9C006 /* S6Exporter.h */, - C6B5A7D21CDFE4CB00C9C006 /* S6Importer.cpp */, - ); - path = rct2; - sourceTree = ""; - usesTabs = 0; - }; - C6E96E1C1E04070E0076A04F /* scenario */ = { - isa = PBXGroup; - children = ( - C6E96E1D1E04070E0076A04F /* scenario.c */, - C6E96E1E1E04070E0076A04F /* scenario.h */, - C6E96E1F1E04070E0076A04F /* ScenarioRepository.cpp */, - C6E96E201E04070E0076A04F /* ScenarioRepository.h */, - C6E96E211E04070E0076A04F /* ScenarioSources.cpp */, - C6E96E221E04070E0076A04F /* ScenarioSources.h */, - ); - path = scenario; - sourceTree = ""; - }; - C6E96E261E04072F0076A04F /* title */ = { - isa = PBXGroup; - children = ( - C6E96E271E04072F0076A04F /* TitleScreen.cpp */, - C6E96E281E04072F0076A04F /* TitleScreen.h */, - C6E96E291E04072F0076A04F /* TitleSequence.cpp */, - C6E96E2A1E04072F0076A04F /* TitleSequence.h */, - C6E96E2B1E04072F0076A04F /* TitleSequenceManager.cpp */, - C6E96E2C1E04072F0076A04F /* TitleSequenceManager.h */, - C6E96E2D1E04072F0076A04F /* TitleSequencePlayer.cpp */, - C6E96E2E1E04072F0076A04F /* TitleSequencePlayer.h */, - ); - path = title; - sourceTree = ""; - }; D41B72431C21015A0080A7B9 /* Sources */ = { isa = PBXGroup; children = ( @@ -3416,7 +2896,6 @@ C64FDAA41D6D9A2100F259B9 /* miniature_railway.c in Sources */, C64FDAA51D6D9A2100F259B9 /* monorail.c in Sources */, C64FDAA61D6D9A2100F259B9 /* suspended_monorail.c in Sources */, - 85B468FD1D96822F000F1DB5 /* paint_helpers.c in Sources */, C64FDAA71D6D9A2100F259B9 /* boat_ride.c in Sources */, C64FDAA81D6D9A2100F259B9 /* dingy_slide.c in Sources */, C64FDAA91D6D9A2100F259B9 /* log_flume.c in Sources */, @@ -3428,356 +2907,6 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 008BF72B1CDAA5C30019A2AD /* track_design_save.c in Sources */, - D44272491CC81B3200D84D28 /* track.c in Sources */, - C686F9201CDBC3B7009F9BFC /* side_friction_roller_coaster.c in Sources */, - D44272561CC81B3200D84D28 /* cheats.c in Sources */, - C65A888A1E16859D000368D7 /* bolliger_mabillard_track.c in Sources */, - D442722B1CC81B3200D84D28 /* real_names.c in Sources */, - D442721C1CC81B3200D84D28 /* keyboard_shortcut.c in Sources */, - D442728F1CC81B3200D84D28 /* title_menu.c in Sources */, - C686F9381CDBC3B7009F9BFC /* observation_tower.c in Sources */, - D44272A41CC81B3200D84D28 /* park.c in Sources */, - C686F9391CDBC3B7009F9BFC /* space_rings.c in Sources */, - D464FEEF1D31A6AA00CBABAC /* RideObject.cpp in Sources */, - D464FEEA1D31A6AA00CBABAC /* LargeSceneryObject.cpp in Sources */, - C686F9371CDBC3B7009F9BFC /* monorail_cycles.c in Sources */, - D49766891D03BABB002222CD /* rain.cpp in Sources */, - 791166FB1D7486EF005912EA /* NetworkServerAdvertiser.cpp in Sources */, - D44272441CC81B3200D84D28 /* cable_lift.c in Sources */, - C647C6911E1D0CA000C7FB21 /* AudioMixer.cpp in Sources */, - C65A88921E1B1148000368D7 /* AudioChannel.cpp in Sources */, - C686F91D1CDBC3B7009F9BFC /* multi_dimension_roller_coaster.c in Sources */, - C686F8B31CDBC37E009F9BFC /* surface.c in Sources */, - C650B21C1CCABC4400B4D91C /* ConvertCommand.cpp in Sources */, - D44272211CC81B3200D84D28 /* viewport_interaction.c in Sources */, - D442721B1CC81B3200D84D28 /* graph.c in Sources */, - C686F9581CDBC4C7009F9BFC /* vehicle_paint.c in Sources */, - 658F3D911E44A6C200388550 /* ParkImporter.cpp in Sources */, - 007A05D11CFB2C8B00F419C3 /* NetworkPacket.cpp in Sources */, - 007A05CD1CFB2C8B00F419C3 /* NetworkAction.cpp in Sources */, - C686F8AE1CDBC37E009F9BFC /* fence.c in Sources */, - C686F8AC1CDBC37E009F9BFC /* banner.c in Sources */, - D44272671CC81B3200D84D28 /* land.c in Sources */, - D442726D1CC81B3200D84D28 /* mapgen.c in Sources */, - C686F9291CDBC3B7009F9BFC /* wooden_roller_coaster.c in Sources */, - D460DFD41E0123D1007BA2FE /* PlatformEnvironment.cpp in Sources */, - D44272A71CC81B3200D84D28 /* sprite.c in Sources */, - D44272941CC81B3200D84D28 /* track_list.c in Sources */, - D44272711CC81B3200D84D28 /* network_status.c in Sources */, - C686F9481CDBC3B7009F9BFC /* twist.c in Sources */, - D44272651CC81B3200D84D28 /* guest_list.c in Sources */, - D442723F1CC81B3200D84D28 /* shared.c in Sources */, - D442727E1CC81B3200D84D28 /* save_prompt.c in Sources */, - D464B3E01E4FBC850003F3B5 /* ServerList.cpp in Sources */, - D442726A1CC81B3200D84D28 /* main.c in Sources */, - 007A05CF1CFB2C8B00F419C3 /* NetworkConnection.cpp in Sources */, - C686F9341CDBC3B7009F9BFC /* merry_go_round.c in Sources */, - C686F8B81CDBC37E009F9BFC /* sprite.c in Sources */, - D45B202D1D1E92DB00B67CC7 /* custom_currency.c in Sources */, - D464FEEB1D31A6AA00CBABAC /* Object.cpp in Sources */, - C686F9221CDBC3B7009F9BFC /* stand_up_roller_coaster.c in Sources */, - D437A26F1DBC2937001CB2CF /* TrackDesignRepository.cpp in Sources */, - C686F94F1CDBC3B7009F9BFC /* dingy_slide.c in Sources */, - D44272341CC81B3200D84D28 /* network.cpp in Sources */, - C686F9151CDBC3B7009F9BFC /* junior_roller_coaster.c in Sources */, - C686F9131CDBC3B7009F9BFC /* inverted_impulse_coaster.c in Sources */, - D44272001CC81B3200D84D28 /* Diagnostics.cpp in Sources */, - D464FEF11D31A6AA00CBABAC /* SmallSceneryObject.cpp in Sources */, - D44272471CC81B3200D84D28 /* ride_ratings.c in Sources */, - D42E337D1E5C27D600D630AF /* Config.cpp in Sources */, - D44272721CC81B3200D84D28 /* new_campaign.c in Sources */, - C686F93A1CDBC3B7009F9BFC /* spiral_slide.c in Sources */, - C686F9421CDBC3B7009F9BFC /* magic_carpet.c in Sources */, - D44272021CC81B3200D84D28 /* Json.cpp in Sources */, - C649B3D41DF04ED2008AC826 /* format_codes.c in Sources */, - D44272591CC81B3200D84D28 /* dropdown.c in Sources */, - D43407DF1D0E14BE00C2B3D4 /* SwapFramebuffer.cpp in Sources */, - C686F8AF1CDBC37E009F9BFC /* map_element.c in Sources */, - D44272081CC81B3200D84D28 /* diagnostic.c in Sources */, - C6E96E1B1E0406F00076A04F /* hook.c in Sources */, - D44272A51CC81B3200D84D28 /* particle.c in Sources */, - D44272811CC81B3200D84D28 /* server_start.c in Sources */, - D44272611CC81B3200D84D28 /* finances.c in Sources */, - C6575A371D46AFBA00C3E79F /* debug_paint.c in Sources */, - D442722D1CC81B3200D84D28 /* utf8.c in Sources */, - C686F9461CDBC3B7009F9BFC /* swinging_inverter_ship.c in Sources */, - D442720B1CC81B3200D84D28 /* font.c in Sources */, - C686F90D1CDBC3B7009F9BFC /* compact_inverted_coaster.c in Sources */, - D464FEF31D31A6AA00CBABAC /* StringTable.cpp in Sources */, - C686F8B01CDBC37E009F9BFC /* path.c in Sources */, - D44272361CC81B3200D84D28 /* object_list.c in Sources */, - D44272581CC81B3200D84D28 /* demolish_ride_prompt.c in Sources */, - D442723E1CC81B3200D84D28 /* posix.c in Sources */, - D44271F91CC81B3200D84D28 /* CommandLine.cpp in Sources */, - 00EFEE721CF1D80B0035213B /* NetworkKey.cpp in Sources */, - C686F90B1CDBC3B7009F9BFC /* air_powered_vertical_coaster.c in Sources */, - D44272051CC81B3200D84D28 /* String.cpp in Sources */, - D442725A1CC81B3200D84D28 /* editor_bottom_toolbar.c in Sources */, - D442729D1CC81B3200D84D28 /* footpath.c in Sources */, - D43407DD1D0E14BE00C2B3D4 /* OpenGLFramebuffer.cpp in Sources */, - D442721D1CC81B3200D84D28 /* screenshot.c in Sources */, - C686F92C1CDBC3B7009F9BFC /* circus_show.c in Sources */, - D44271FD1CC81B3200D84D28 /* cmdline_sprite.c in Sources */, - D464FEEE1D31A6AA00CBABAC /* ObjectRepository.cpp in Sources */, - D464FEF51D31A6AA00CBABAC /* WaterObject.cpp in Sources */, - D442720C1CC81B3200D84D28 /* line.c in Sources */, - C686F9321CDBC3B7009F9BFC /* haunted_house.c in Sources */, - D442720A1CC81B3200D84D28 /* drawing_fast.cpp in Sources */, - C686F9521CDBC3B7009F9BFC /* river_rapids.c in Sources */, - 008BF72C1CDAA5C30019A2AD /* track_design.c in Sources */, - C61FB7241CF86356004CE991 /* NetworkUser.cpp in Sources */, - D44272191CC81B3200D84D28 /* colour.c in Sources */, - D442724C1CC81B3200D84D28 /* vehicle.c in Sources */, - C6136C551E21893500F3ED2B /* view_clipping.c in Sources */, - D464FEED1D31A6AA00CBABAC /* ObjectManager.cpp in Sources */, - D44272261CC81B3200D84D28 /* currency.c in Sources */, - C65A88931E1B1148000368D7 /* FileAudioSource.cpp in Sources */, - C6E96E301E04072F0076A04F /* TitleSequence.cpp in Sources */, - C686F92B1CDBC3B7009F9BFC /* car_ride.c in Sources */, - D44272921CC81B3200D84D28 /* tooltip.c in Sources */, - C686F91C1CDBC3B7009F9BFC /* mini_suspended_coaster.c in Sources */, - D44271FA1CC81B3200D84D28 /* RootCommands.cpp in Sources */, - D442726B1CC81B3200D84D28 /* map.c in Sources */, - 85B468FC1D96822F000F1DB5 /* paint_helpers.c in Sources */, - D464FEE71D31A6AA00CBABAC /* FootpathItemObject.cpp in Sources */, - D442721E1CC81B3200D84D28 /* Theme.cpp in Sources */, - D4F5B5EF1DAD8A4300AB6075 /* CursorData.cpp in Sources */, - C686F9271CDBC3B7009F9BFC /* virginia_reel.c in Sources */, - D44272271CC81B3200D84D28 /* date.c in Sources */, - D44272971CC81B3200D84D28 /* viewport.c in Sources */, - C686F90F1CDBC3B7009F9BFC /* flying_roller_coaster.c in Sources */, - D44272661CC81B3200D84D28 /* install_track.c in Sources */, - D49766831D03B9FE002222CD /* SoftwareDrawingEngine.cpp in Sources */, - C6E96E121E04067A0076A04F /* File.cpp in Sources */, - D464FEF21D31A6AA00CBABAC /* StexObject.cpp in Sources */, - D42E33801E5C27D600D630AF /* KeyboardShortcuts.cpp in Sources */, - C6E96E311E04072F0076A04F /* TitleSequenceManager.cpp in Sources */, - C686F9331CDBC3B7009F9BFC /* maze.c in Sources */, - C686F9241CDBC3B7009F9BFC /* suspended_swinging_coaster.c in Sources */, - C686F92D1CDBC3B7009F9BFC /* crooked_house.c in Sources */, - D442727F1CC81B3200D84D28 /* scenery.c in Sources */, - D429FF421E36ABCD009342A6 /* tile_inspector.c in Sources */, - D460DFD11E01239D007BA2FE /* OpenRCT2.cpp in Sources */, - C686F93C1CDBC3B7009F9BFC /* misc.c in Sources */, - D442723A1CC81B3200D84D28 /* staff.c in Sources */, - D44272931CC81B3200D84D28 /* top_toolbar.c in Sources */, - D43407DA1D0E14BE00C2B3D4 /* FillRectShader.cpp in Sources */, - D464FEBE1D31A66E00CBABAC /* MemoryStream.cpp in Sources */, - D442728A1CC81B3200D84D28 /* tile_inspector.c in Sources */, - D43407D91D0E14BE00C2B3D4 /* DrawLineShader.cpp in Sources */, - C686F9411CDBC3B7009F9BFC /* launched_freefall.c in Sources */, - D44272571CC81B3200D84D28 /* clear_scenery.c in Sources */, - D442727D1CC81B3200D84D28 /* ride_list.c in Sources */, - C686F94E1CDBC3B7009F9BFC /* boat_ride.c in Sources */, - D42E337F1E5C27D600D630AF /* IniWriter.cpp in Sources */, - D44272891CC81B3200D84D28 /* themes.c in Sources */, - C686F9531CDBC3B7009F9BFC /* splash_boats.c in Sources */, - C686F9441CDBC3B7009F9BFC /* pirate_ship.c in Sources */, - 652747EC1E41CE1B000F36FD /* SawyerEncoding.cpp in Sources */, - D44272791CC81B3200D84D28 /* publisher_credits.c in Sources */, - C686F91E1CDBC3B7009F9BFC /* reverse_freefall_coaster.c in Sources */, - D42E337E1E5C27D600D630AF /* IniReader.cpp in Sources */, - D442723B1CC81B3200D84D28 /* crash.cpp in Sources */, - C650B21A1CCABBDD00B4D91C /* tables.cpp in Sources */, - C68B2CB51EB60DDE0020651C /* server_list.cpp in Sources */, - D44272291CC81B3200D84D28 /* LanguagePack.cpp in Sources */, - D44272901CC81B3200D84D28 /* title_options.c in Sources */, - C6CABA821E1466D600D33A6B /* FileClassifier.cpp in Sources */, - C686F94A1CDBC3B7009F9BFC /* lift.c in Sources */, - C6E96E321E04072F0076A04F /* TitleSequencePlayer.cpp in Sources */, - D46F2A9E1D39A25A00A36AB7 /* peep_data.c in Sources */, - D44272A01CC81B3200D84D28 /* map_animation.c in Sources */, - C686F92A1CDBC3B7009F9BFC /* wooden_wild_mouse.c in Sources */, - C686F90C1CDBC3B7009F9BFC /* bobsleigh_coaster.c in Sources */, - C686F9541CDBC3B7009F9BFC /* submarine_ride.c in Sources */, - D44271F81CC81B3200D84D28 /* cheats.c in Sources */, - C686F9181CDBC3B7009F9BFC /* looping_roller_coaster.c in Sources */, - D44271FC1CC81B3200D84D28 /* SpriteCommands.cpp in Sources */, - C686F92E1CDBC3B7009F9BFC /* dodgems.c in Sources */, - D442728B1CC81B3200D84D28 /* title_command_editor.c in Sources */, - C686F9451CDBC3B7009F9BFC /* roto_drop.c in Sources */, - C686F9121CDBC3B7009F9BFC /* inverted_hairpin_coaster.c in Sources */, - D44272231CC81B3200D84D28 /* window.c in Sources */, - D44272451CC81B3200D84D28 /* ride.c in Sources */, - C686F8B91CDBC37E009F9BFC /* supports.c in Sources */, - D442726E1CC81B3200D84D28 /* maze_construction.c in Sources */, - D44272751CC81B3200D84D28 /* news_options.c in Sources */, - C6EABCC41E719691008C09AB /* UriHandler.cpp in Sources */, - D44272551CC81B3200D84D28 /* changelog.c in Sources */, - C686F9471CDBC3B7009F9BFC /* top_spin.c in Sources */, - D442720E1CC81B3200D84D28 /* rect.c in Sources */, - D437A2721DBC29B0001CB2CF /* FileScanner.cpp in Sources */, - C686F9171CDBC3B7009F9BFC /* lim_launched_roller_coaster.c in Sources */, - C686F9101CDBC3B7009F9BFC /* giga_coaster.c in Sources */, - C6B5A7D41CDFE4CB00C9C006 /* S6Exporter.cpp in Sources */, - D44272351CC81B3200D84D28 /* twitch.cpp in Sources */, - D44272691CC81B3200D84D28 /* loadsave.c in Sources */, - C6E96E251E04070E0076A04F /* ScenarioSources.cpp in Sources */, - D44272061CC81B3200D84D28 /* textinputbuffer.c in Sources */, - C686F9191CDBC3B7009F9BFC /* mine_ride.c in Sources */, - C650B2191CCABBDD00B4D91C /* S4Importer.cpp in Sources */, - D44272911CC81B3200D84D28 /* title_scenarioselect.c in Sources */, - C686F8B61CDBC37E009F9BFC /* misc.c in Sources */, - D44272411CC81B3200D84D28 /* rct1.c in Sources */, - D44272621CC81B3200D84D28 /* footpath.c in Sources */, - C65A88951E1B1148000368D7 /* NullAudioSource.cpp in Sources */, - D44272521CC81B3200D84D28 /* util.c in Sources */, - D44272A21CC81B3200D84D28 /* mapgen.c in Sources */, - D44272201CC81B3200D84D28 /* viewport.c in Sources */, - D442722F1CC81B3200D84D28 /* finance.c in Sources */, - D44272831CC81B3200D84D28 /* shortcut_keys.c in Sources */, - C686F9401CDBC3B7009F9BFC /* go_karts.c in Sources */, - 652076321E22EFE7000D0C04 /* Imaging.cpp in Sources */, - C686F8B51CDBC37E009F9BFC /* litter.c in Sources */, - D44272141CC81B3200D84D28 /* game.c in Sources */, - C686F91A1CDBC3B7009F9BFC /* mine_train_coaster.c in Sources */, - D44272A11CC81B3200D84D28 /* map_helpers.c in Sources */, - C686F9431CDBC3B7009F9BFC /* motion_simulator.c in Sources */, - D4469DAD1DEF84480039A779 /* Fonts.cpp in Sources */, - D44272281CC81B3200D84D28 /* language.cpp in Sources */, - D464FEC01D31A68800CBABAC /* Image.cpp in Sources */, - C686F9261CDBC3B7009F9BFC /* vertical_drop_roller_coaster.c in Sources */, - D464FEE91D31A6AA00CBABAC /* ImageTable.cpp in Sources */, - D442726F1CC81B3200D84D28 /* multiplayer.c in Sources */, - 007A05D21CFB2C8B00F419C3 /* NetworkPlayer.cpp in Sources */, - D442725B1CC81B3200D84D28 /* editor_inventions_list.c in Sources */, - D44272311CC81B3200D84D28 /* news_item.c in Sources */, - D464FEF41D31A6AA00CBABAC /* WallObject.cpp in Sources */, - D44272011CC81B3200D84D28 /* Guard.cpp in Sources */, - C6E96E1A1E0406F00076A04F /* addresses.c in Sources */, - D43407E01D0E14BE00C2B3D4 /* TextureCache.cpp in Sources */, - 8594C0601D885CF600235E93 /* track_data_old.c in Sources */, - D44272951CC81B3200D84D28 /* track_manage.c in Sources */, - D44272851CC81B3200D84D28 /* staff.c in Sources */, - C6E96E241E04070E0076A04F /* ScenarioRepository.cpp in Sources */, - D442725F1CC81B3200D84D28 /* editor_scenario_options.c in Sources */, - D44272331CC81B3200D84D28 /* http.cpp in Sources */, - D44272841CC81B3200D84D28 /* sign.c in Sources */, - D44272481CC81B3200D84D28 /* station.c in Sources */, - D44272511CC81B3200D84D28 /* sawyercoding.c in Sources */, - D49464781E4DB27B00DC690E /* sprite.cpp in Sources */, - C686F91F1CDBC3B7009F9BFC /* reverser_roller_coaster.c in Sources */, - D442728C1CC81B3200D84D28 /* title_editor.c in Sources */, - D44272171CC81B3200D84D28 /* input.c in Sources */, - D44272741CC81B3200D84D28 /* news.c in Sources */, - D442723C1CC81B3200D84D28 /* linux.c in Sources */, - D4F5B5F01DAD8A4300AB6075 /* Cursors.cpp in Sources */, - D44272421CC81B3200D84D28 /* rct2.c in Sources */, - C686F8B71CDBC37E009F9BFC /* peep.c in Sources */, - C686F8B11CDBC37E009F9BFC /* scenery.c in Sources */, - C686F9251CDBC3B7009F9BFC /* twister_roller_coaster.c in Sources */, - D44272251CC81B3200D84D28 /* convert.c in Sources */, - D464FEEC1D31A6AA00CBABAC /* ObjectFactory.cpp in Sources */, - D442727B1CC81B3200D84D28 /* ride.c in Sources */, - D44272031CC81B3200D84D28 /* Path.cpp in Sources */, - C686F9301CDBC3B7009F9BFC /* flying_saucers.c in Sources */, - D44272401CC81B3200D84D28 /* windows.c in Sources */, - D44272881CC81B3200D84D28 /* text_input.c in Sources */, - D442720F1CC81B3200D84D28 /* scrolling_text.c in Sources */, - D43407D81D0E14BE00C2B3D4 /* DrawImageShader.cpp in Sources */, - 007A05D01CFB2C8B00F419C3 /* NetworkGroup.cpp in Sources */, - 656F6C8E1E45BFC200E0F770 /* Version.cpp in Sources */, - C686F9491CDBC3B7009F9BFC /* chairlift.c in Sources */, - C686F9501CDBC3B7009F9BFC /* log_flume.c in Sources */, - D464FEE81D31A6AA00CBABAC /* FootpathObject.cpp in Sources */, - D41FA8641E5EA1E200215624 /* wall.cpp in Sources */, - D43407D61D0E14BE00C2B3D4 /* CopyFramebufferShader.cpp in Sources */, - C6E96E231E04070E0076A04F /* scenario.c in Sources */, - D44272241CC81B3200D84D28 /* intro.c in Sources */, - C6E96E151E04069A0076A04F /* Zip.cpp in Sources */, - D44272631CC81B3200D84D28 /* game_bottom_toolbar.c in Sources */, - D44272091CC81B3200D84D28 /* drawing.c in Sources */, - C686F94C1CDBC3B7009F9BFC /* monorail.c in Sources */, - C6E96E2F1E04072F0076A04F /* TitleScreen.cpp in Sources */, - D442728E1CC81B3200D84D28 /* title_logo.c in Sources */, - C686F8B21CDBC37E009F9BFC /* scenery_multiple.c in Sources */, - D433A5011E4A861F00D9A6DF /* SawyerChunkReader.cpp in Sources */, - D442725E1CC81B3200D84D28 /* editor_objective_options.c in Sources */, - D44272531CC81B3200D84D28 /* about.c in Sources */, - C686F9311CDBC3B7009F9BFC /* ghost_train.c in Sources */, - D44272821CC81B3200D84D28 /* shortcut_key_change.c in Sources */, - D442722A1CC81B3200D84D28 /* localisation.c in Sources */, - D44272731CC81B3200D84D28 /* new_ride.c in Sources */, - D442721A1CC81B3200D84D28 /* console.c in Sources */, - C612A8991D64825300B634CA /* vehicle_data.c in Sources */, - D44271FB1CC81B3200D84D28 /* ScreenshotCommands.cpp in Sources */, - D464FEBB1D31A65300CBABAC /* IStream.cpp in Sources */, - C686F94B1CDBC3B7009F9BFC /* miniature_railway.c in Sources */, - C686F94D1CDBC3B7009F9BFC /* suspended_monorail.c in Sources */, - D44272131CC81B3200D84D28 /* editor.c in Sources */, - D442729F1CC81B3200D84D28 /* map.c in Sources */, - D464FEF01D31A6AA00CBABAC /* SceneryGroupObject.cpp in Sources */, - C686F9351CDBC3B7009F9BFC /* mini_golf.c in Sources */, - D44272541CC81B3200D84D28 /* banner.c in Sources */, - D44272A31CC81B3200D84D28 /* money_effect.c in Sources */, - C65A88941E1B1148000368D7 /* MemoryAudioSource.cpp in Sources */, - D464FEE61D31A6AA00CBABAC /* EntranceObject.cpp in Sources */, - D43407DE1D0E14BE00C2B3D4 /* OpenGLShaderProgram.cpp in Sources */, - D4B21B6F1E343AF1004982C7 /* lightfx.c in Sources */, - D43407DC1D0E14BE00C2B3D4 /* OpenGLDrawingEngine.cpp in Sources */, - D44272761CC81B3200D84D28 /* options.c in Sources */, - C686F93D1CDBC3B7009F9BFC /* shop.c in Sources */, - C686F8AD1CDBC37E009F9BFC /* entrance.c in Sources */, - D433A5001E4A861F00D9A6DF /* SawyerChunk.cpp in Sources */, - D44272111CC81B3200D84D28 /* string.c in Sources */, - C686F93E1CDBC3B7009F9BFC /* 3d_cinema.c in Sources */, - D44272771CC81B3200D84D28 /* park.c in Sources */, - C686F9141CDBC3B7009F9BFC /* inverted_roller_coaster.c in Sources */, - C686F9551CDBC3B7009F9BFC /* water_coaster.c in Sources */, - D44272461CC81B3200D84D28 /* ride_data.c in Sources */, - D44272181CC81B3200D84D28 /* chat.c in Sources */, - C686F93B1CDBC3B7009F9BFC /* facility.c in Sources */, - D442724B1CC81B3200D84D28 /* track_paint.c in Sources */, - D44272641CC81B3200D84D28 /* guest.c in Sources */, - D44272961CC81B3200D84D28 /* track_place.c in Sources */, - D442727A1CC81B3200D84D28 /* research.c in Sources */, - D442722E1CC81B3200D84D28 /* award.c in Sources */, - D44272861CC81B3200D84D28 /* staff_fire_prompt.c in Sources */, - D49766861D03BAA5002222CD /* NewDrawing.cpp in Sources */, - C6B5A7D51CDFE4CB00C9C006 /* S6Importer.cpp in Sources */, - D44272221CC81B3200D84D28 /* widget.c in Sources */, - D442723D1CC81B3200D84D28 /* macos.m in Sources */, - D44271FF1CC81B3200D84D28 /* Console.cpp in Sources */, - D44272781CC81B3200D84D28 /* player.c in Sources */, - C686F9161CDBC3B7009F9BFC /* lay_down_roller_coaster.c in Sources */, - D442727C1CC81B3200D84D28 /* ride_construction.c in Sources */, - D442724A1CC81B3200D84D28 /* track_data.c in Sources */, - D442725C1CC81B3200D84D28 /* editor_main.c in Sources */, - C686F9361CDBC3B7009F9BFC /* mini_helicopters.c in Sources */, - C686F93F1CDBC3B7009F9BFC /* enterprise.c in Sources */, - C686F91B1CDBC3B7009F9BFC /* mini_roller_coaster.c in Sources */, - D48ABABA1E71EBD500A3E39C /* entrance.cpp in Sources */, - D44D93AE1E92DD28004D6B77 /* Fountain.cpp in Sources */, - D464FEE51D31A6AA00CBABAC /* BannerObject.cpp in Sources */, - D44272391CC81B3200D84D28 /* peep.c in Sources */, - D44272681CC81B3200D84D28 /* land_rights.c in Sources */, - D44272601CC81B3200D84D28 /* error.c in Sources */, - D464B3E21E4FBCC00003F3B5 /* audio.cpp in Sources */, - C686F8B41CDBC37E009F9BFC /* paint.c in Sources */, - D442728D1CC81B3200D84D28 /* title_exit.c in Sources */, - D48A8D831D00272F00649DA7 /* TcpSocket.cpp in Sources */, - D442722C1CC81B3200D84D28 /* user.c in Sources */, - C686F92F1CDBC3B7009F9BFC /* ferris_wheel.c in Sources */, - D44272301CC81B3200D84D28 /* marketing.c in Sources */, - D44272321CC81B3200D84D28 /* research.c in Sources */, - D442725D1CC81B3200D84D28 /* editor_object_selection.c in Sources */, - D43407DB1D0E14BE00C2B3D4 /* OpenGLAPI.cpp in Sources */, - D44272981CC81B3200D84D28 /* water.c in Sources */, - D442726C1CC81B3200D84D28 /* map_tooltip.c in Sources */, - C686F9281CDBC3B7009F9BFC /* wild_mouse.c in Sources */, - D44272701CC81B3200D84D28 /* music_credits.c in Sources */, - D433A5021E4A861F00D9A6DF /* SawyerChunkWriter.cpp in Sources */, - C686F90E1CDBC3B7009F9BFC /* corkscrew_roller_coaster.c in Sources */, - D44272A61CC81B3200D84D28 /* scenery.c in Sources */, - C686F9111CDBC3B7009F9BFC /* heartline_twister_coaster.c in Sources */, - C6834A111DFDE8E300CE933A /* interop.c in Sources */, - C686F9231CDBC3B7009F9BFC /* steeplechase.c in Sources */, - D44272871CC81B3200D84D28 /* staff_list.c in Sources */, - F61331C839858250899F1E9B /* Balloon.cpp in Sources */, - F2CC500E17C9411FBA859888 /* Climate.cpp in Sources */, - 8DED2F20E0D63A1DCFCE0197 /* banner.cpp in Sources */, - B94C3C5FC4DBBB864434DE83 /* Duck.cpp in Sources */, F76C88781EC5324E00FA49E2 /* AudioChannel.cpp in Sources */, F76C88791EC5324E00FA49E2 /* AudioContext.cpp in Sources */, F76C887A1EC5324E00FA49E2 /* AudioMixer.cpp in Sources */, @@ -4008,7 +3137,6 @@ F76C86FE1EC4E88400FA49E2 /* ride_data.c in Sources */, F76C87001EC4E88400FA49E2 /* ride_ratings.c in Sources */, F76C87021EC4E88400FA49E2 /* facility.c in Sources */, - F76C87031EC4E88400FA49E2 /* misc.c in Sources */, F76C87041EC4E88400FA49E2 /* shop.c in Sources */, F76C87051EC4E88400FA49E2 /* station.c in Sources */, F76C87071EC4E88400FA49E2 /* 3d_cinema.c in Sources */, @@ -4040,7 +3168,6 @@ F76C87291EC4E88400FA49E2 /* boat_ride.c in Sources */, F76C872A1EC4E88400FA49E2 /* dingy_slide.c in Sources */, F76C872B1EC4E88400FA49E2 /* log_flume.c in Sources */, - F76C872C1EC4E88400FA49E2 /* river_rafts.c in Sources */, F76C872D1EC4E88400FA49E2 /* river_rapids.c in Sources */, F76C872E1EC4E88400FA49E2 /* splash_boats.c in Sources */, F76C872F1EC4E88400FA49E2 /* submarine_ride.c in Sources */, From 3ebf5be3ea9577e74eea014abdbbe45b3f745498 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 20 May 2017 22:34:13 +0100 Subject: [PATCH 181/670] Fix mingw cmake --- CMakeLists.txt | 6 +++++- src/openrct2-ui/UiContext.Win32.cpp | 17 +++++++---------- src/openrct2/CMakeLists.txt | 6 ++++++ src/openrct2/platform/windows.c | 13 +------------ 4 files changed, 19 insertions(+), 23 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82b4d528dc..709ed10acc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,11 @@ install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" --build \"${CMAKE_CUR install(CODE "file(DOWNLOAD ${TITLE_SEQUENCE_URL} \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip EXPECTED_HASH SHA1=${TITLE_SEQUENCE_SHA1} SHOW_PROGRESS)") install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/ \"${CMAKE_COMMAND}\" -E tar xvf title-sequences.zip)") install(CODE "file(REMOVE \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip)") -install(TARGETS "libopenrct2" LIBRARY DESTINATION lib) +if (WIN32) + install(TARGETS "libopenrct2" RUNTIME DESTINATION bin) +else() + install(TARGETS "libopenrct2" LIBRARY DESTINATION lib) +endif() install(TARGETS "openrct2" RUNTIME DESTINATION bin) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION "share/openrct2") install(DIRECTORY "data/" DESTINATION "share/openrct2") diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp index 0c4e63519e..de9c00f1d8 100644 --- a/src/openrct2-ui/UiContext.Win32.cpp +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -16,6 +16,12 @@ #ifdef _WIN32 +#ifdef __MINGW32__ +// 0x0600 == vista +#define WINVER 0x0600 +#define _WIN32_WINNT 0x0600 +#endif // __MINGW32__ + #include #include #include @@ -31,7 +37,7 @@ #include // Native resource IDs -#include "../../../resources/resource.h" +#include "../../resources/resource.h" static std::wstring SHGetPathFromIDListLongPath(LPCITEMIDLIST pidl) { @@ -191,15 +197,6 @@ namespace OpenRCT2 { namespace Ui } result = wmInfo.info.win.window; -#ifdef __MINGW32__ - assert(sizeof(HWND) == sizeof(uint32)); - uint8 A = (uint32)result & 0xff000000 >> 24; - uint8 B = (uint32)result & 0xff0000 >> 16; - uint8 C = (uint32)result & 0xff00 >> 8; - uint8 D = (uint32)handle & 0xff; - result = (HWND)(D << 24 | A << 16 | B << 8 | C); - log_warning("twisting bits of handle, a workaround for mingw/sdl bug"); -#endif // __MINGW32__ } return result; } diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index e9143188c7..9020d55126 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -280,6 +280,9 @@ ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_FINAL_TYPES -Wsugge ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_FINAL_METHODS -Wsuggest-final-methods) ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_OVERRIDE -Wsuggest-override) ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_DUPLICATED_COND -Wduplicated-cond) +if (MINGW) + ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_SUGGEST_OVERRIDE -Wno-error=redundant-decls) +endif () # Items below are not supported by ICC ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_REDUNDANT_DECLS -Wredundant-decls) @@ -311,6 +314,9 @@ endif () if (ENABLE_LIGHTFX) add_definitions(-D__ENABLE_LIGHTFX__) endif () +if (DISABLE_RCT2) + add_definitions(-DNO_RCT2) +endif () if (NOT DISABLE_RCT2) # Disable optimizations for addresses.c for all compilers, to allow optimized diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 4d3a6c32be..46954a5e63 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -65,18 +65,7 @@ static HMODULE plaform_get_dll_module() return _dllModule; } -#ifdef NO_RCT2 - -#ifdef __MINGW32__ - -int main(int argc, char **argv) -{ - return RunOpenRCT2(argc, argv); -} - -#endif - -#else +#ifndef NO_RCT2 /* DllMain is already defined in one of static libraries we implicitly depend * on (libcrypto), which is their bug really, but since we don't do anything in From f998172674107e076959663669a2eaa179dd9e54 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 21 May 2017 14:30:22 +0100 Subject: [PATCH 182/670] Fix IME text input --- src/openrct2-ui/TextComposition.cpp | 4 +++- src/openrct2/Context.h | 2 ++ src/openrct2/drawing/drawing.h | 2 +- src/openrct2/drawing/string.c | 2 +- src/openrct2/windows/text_input.c | 26 ++++++++++++++------------ 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src/openrct2-ui/TextComposition.cpp b/src/openrct2-ui/TextComposition.cpp index 3a7b6ec4e3..e788c5ba60 100644 --- a/src/openrct2-ui/TextComposition.cpp +++ b/src/openrct2-ui/TextComposition.cpp @@ -57,6 +57,7 @@ TextInputSession * TextComposition::Start(utf8 * buffer, size_t bufferSize) _session.Size = strlen(buffer); _session.SelectionStart = _session.Size; _session.SelectionSize = 0; + _session.ImeBuffer = _imeBuffer; RecalculateLength(); return &_session; } @@ -65,6 +66,7 @@ void TextComposition::Stop() { SDL_StopTextInput(); _session.Buffer = nullptr; + _session.ImeBuffer = nullptr; _imeActive = false; } @@ -111,7 +113,7 @@ void TextComposition::HandleMessage(const SDL_Event * e) // Map Keypad enter to regular enter. key = SDLK_RETURN; } - + GetContext()->GetUiContext()->SetKeysPressed(key, e->key.keysym.scancode); // Text input diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index a8baea5968..947b7a1dbd 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -36,6 +36,8 @@ typedef struct TextInputSession size_t Length; // Number of codepoints size_t SelectionStart; // Selection start, in bytes size_t SelectionSize; // Selection length in bytes + + const utf8 * ImeBuffer; // IME UTF-8 stream } TextInputSession; struct Resolution diff --git a/src/openrct2/drawing/drawing.h b/src/openrct2/drawing/drawing.h index 362584c60d..37a11bc9a1 100644 --- a/src/openrct2/drawing/drawing.h +++ b/src/openrct2/drawing/drawing.h @@ -338,7 +338,7 @@ void FASTCALL gfx_draw_sprite_raw_masked_software(rct_drawpixelinfo *dpi, sint32 // string sint32 clip_text(char *buffer, sint32 width); sint32 gfx_wrap_string(char* buffer, sint32 width, sint32* num_lines, sint32* font_height); -sint32 gfx_get_string_width(char *buffer); +sint32 gfx_get_string_width(const utf8 * buffer); sint32 gfx_get_string_width_new_lined(char* buffer); void gfx_draw_string(rct_drawpixelinfo *dpi, char *buffer, sint32 colour, sint32 x, sint32 y); void gfx_draw_string_left(rct_drawpixelinfo *dpi, rct_string_id format, void *args, sint32 colour, sint32 x, sint32 y); diff --git a/src/openrct2/drawing/string.c b/src/openrct2/drawing/string.c index 9674affb99..22c2733cdd 100644 --- a/src/openrct2/drawing/string.c +++ b/src/openrct2/drawing/string.c @@ -101,7 +101,7 @@ sint32 gfx_get_string_width_new_lined(utf8 *text) * rct2: 0x006C2321 * buffer (esi) */ -sint32 gfx_get_string_width(char* buffer) +sint32 gfx_get_string_width(const utf8 * buffer) { return ttf_get_string_width(buffer); } diff --git a/src/openrct2/windows/text_input.c b/src/openrct2/windows/text_input.c index d5a8804195..9d892f42f9 100644 --- a/src/openrct2/windows/text_input.c +++ b/src/openrct2/windows/text_input.c @@ -53,7 +53,6 @@ static rct_widget window_text_input_widgets[] = { static void window_text_input_close(rct_window *w); static void window_text_input_mouseup(rct_window *w, rct_widgetindex widgetIndex); static void window_text_input_update7(rct_window *w); -static void window_text_input_text(sint32 key, rct_window* w); static void window_text_input_invalidate(rct_window *w); static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi); static void draw_ime_composition(rct_drawpixelinfo * dpi, int cursorX, int cursorY); @@ -281,6 +280,7 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) uint8 cur_drawn = 0; sint32 cursorX = 0; + sint32 cursorY = 0; for (sint32 line = 0; line <= no_lines; line++) { gfx_draw_string(dpi, wrap_pointer, w->colours[1], w->x + 12, y); @@ -291,6 +291,7 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) char temp_string[TEXT_INPUT_SIZE] = { 0 }; memcpy(temp_string, wrap_pointer, gTextInput->SelectionStart - char_count); cursorX = w->x + 13 + gfx_get_string_width(temp_string); + cursorY = y; sint32 width = 6; if (gTextInput->SelectionStart < strlen(text_input)){ @@ -321,12 +322,13 @@ static void window_text_input_paint(rct_window *w, rct_drawpixelinfo *dpi) if (!cur_drawn) { cursorX = gLastDrawStringX; + cursorY = y - 10; } // IME composition - // if (gTextInputCompositionActive) { - // draw_ime_composition(dpi, cursorX, cursorY); - // } + if (!str_is_null_or_empty(gTextInput->ImeBuffer)) { + draw_ime_composition(dpi, cursorX, cursorY); + } } void window_text_input_key(rct_window* w, sint32 key) @@ -400,13 +402,13 @@ static void window_text_input_invalidate(rct_window *w) static void draw_ime_composition(rct_drawpixelinfo * dpi, int cursorX, int cursorY) { - // int compositionWidth = gfx_get_string_width(gTextInputComposition); - // int x = cursorX - (compositionWidth / 2); - // int y = cursorY + 13; - // int width = compositionWidth; - // int height = 10; + int compositionWidth = gfx_get_string_width(gTextInput->ImeBuffer); + int x = cursorX - (compositionWidth / 2); + int y = cursorY + 13; + int width = compositionWidth; + int height = 10; - // gfx_fill_rect(dpi, x - 1, y - 1, x + width + 1, y + height + 1, PALETTE_INDEX_12); - // gfx_fill_rect(dpi, x, y, x + width, y + height, PALETTE_INDEX_0); - // gfx_draw_string(dpi, gTextInputComposition, COLOUR_DARK_GREEN, x, y); + gfx_fill_rect(dpi, x - 1, y - 1, x + width + 1, y + height + 1, PALETTE_INDEX_12); + gfx_fill_rect(dpi, x, y, x + width, y + height, PALETTE_INDEX_0); + gfx_draw_string(dpi, (char *)gTextInput->ImeBuffer, COLOUR_DARK_GREEN, x, y); } From 7a59eef47ebbee1344ae35bdc6086cb1b6574971 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Tue, 23 May 2017 15:37:03 +0100 Subject: [PATCH 183/670] Fix cmake for OpenRCT2-UI on macOS --- CMakeLists.txt | 1 + src/openrct2-ui/CMakeLists.txt | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 709ed10acc..6852a0e482 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif() set(ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}") +set(CMAKE_MACOSX_RPATH 1) set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/download/v0.0.5/title-sequence-v0.0.5.zip") set(TITLE_SEQUENCE_SHA1 "79ffb2585d12abcbfce205d7696e3472a504b005") diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 535fa9f087..7ff4d16ba3 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -12,6 +12,7 @@ include(FindPkgConfig) # Third party libraries PKG_CHECK_MODULES(SDL2 REQUIRED sdl2) +PKG_CHECK_MODULES(SPEEX REQUIRED speexdsp) if (NOT DISABLE_OPENGL) # GL doesn't work nicely with macOS, while find_package doesn't work with multiarch on Ubuntu. if (APPLE) @@ -43,7 +44,12 @@ add_executable(${PROJECT} ${OPENRCT2_UI_SOURCES} ${OPENRCT2_UI_M_SOURCES} ${OPEN target_link_libraries(${PROJECT} "libopenrct2" ${SDL2_LIBRARIES} - ${SDL2_TTF_LIBRARIES}) + ${SDL2_TTF_LIBRARIES} + ${SPEEX_LIBRARIES}) + +if (APPLE) + target_link_libraries(${PROJECT} "-framework Cocoa") +endif () if (NOT DISABLE_OPENGL) if (WIN32) @@ -57,7 +63,8 @@ endif () # Includes target_include_directories(${PROJECT} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.." - ${SDL2_INCLUDE_DIRS}) + ${SDL2_INCLUDE_DIRS} + ${SPEEX_INCLUDE_DIRS}) # Compiler flags if (FORCE32) From 1eb5ed0c93ae46fca995203a032b38018f6b57b1 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 27 May 2017 19:44:04 +0100 Subject: [PATCH 184/670] Update vscode debug configuration --- .vscode/launch.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 05028b4a95..6f0ed89e8b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,10 +7,15 @@ "request": "launch", "program": "${workspaceRoot}/bin/openrct2", "args": [], - "stopAtEntry": true, + "stopAtEntry": false, "cwd": "${workspaceRoot}/bin", "environment": [], "externalConsole": true, + "setupCommands": [ + { + "text": "-enable-pretty-printing" + } + ], "linux": { "MIMode": "gdb" }, @@ -27,6 +32,11 @@ "request": "attach", "program": "${workspaceRoot}/bin/openrct2", "processId": "${command.pickProcess}", + "setupCommands": [ + { + "text": "-enable-pretty-printing" + } + ], "linux": { "MIMode": "gdb" }, From e313568a27dfe1e7570352d1d3f0d170cbb76733 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 27 May 2017 19:59:59 +0100 Subject: [PATCH 185/670] Initialise UiContext input fields This was causing undefined data to appear in _keysPressed which caused shortcuts to be invoked on startup. --- src/openrct2-ui/UiContext.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 8782685331..4ff77cd9e4 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -75,12 +75,12 @@ private: // Input TextComposition _textComposition; - CursorState _cursorState; - uint32 _lastKeyPressed; - const uint8 * _keysState; - uint8 _keysPressed[256]; - uint32 _lastGestureTimestamp; - float _gestureRadius; + CursorState _cursorState = { 0 }; + uint32 _lastKeyPressed = 0; + const uint8 * _keysState = nullptr; + uint8 _keysPressed[256] = { 0 }; + uint32 _lastGestureTimestamp = 0; + float _gestureRadius = 0; public: UiContext() @@ -217,7 +217,7 @@ public: { SDL_SetWindowGrab(_window, value ? SDL_TRUE : SDL_FALSE); } - + void SetKeysPressed(uint32 keysym, uint8 scancode) override { _lastKeyPressed = keysym; From a15a226d7a82069d5d37fad4d8045475c2430f8b Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 27 May 2017 20:00:44 +0100 Subject: [PATCH 186/670] Fix zenity dialog logic --- src/openrct2-ui/UiContext.Linux.cpp | 33 +++++++++++++++-------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 95cabdfca9..2b6200c97e 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -130,7 +130,7 @@ namespace OpenRCT2 { namespace Ui desc.InitialDirectory.c_str(), filter.c_str()); std::string output; - if (Execute(cmd, &output) != 0) + if (Execute(cmd, &output) == 0) { result = output; } @@ -153,7 +153,7 @@ namespace OpenRCT2 { namespace Ui desc.Title.c_str(), filters.c_str()); std::string output; - if (Execute(cmd, &output) != 0) + if (Execute(cmd, &output) == 0) { result = output; } @@ -164,20 +164,21 @@ namespace OpenRCT2 { namespace Ui break; } - log_verbose("filename = %s", result.c_str()); - - if (desc.Type == FILE_DIALOG_TYPE::OPEN && access(result.c_str(), F_OK) == -1) + if (!result.empty()) { - std::string msg = String::StdFormat("\"%s\" not found: %s, please choose another file\n", result.c_str(), strerror(errno)); - ShowMessageBox(window, msg); - return ShowFileDialog(window, desc); - } - else if (desc.Type == FILE_DIALOG_TYPE::SAVE && access(result.c_str(), F_OK) != -1 && dtype == DIALOG_TYPE::KDIALOG) - { - std::string cmd = String::StdFormat("%s --yesno \"Overwrite %s?\"", executablePath.c_str(), result.c_str()); - if (Execute(cmd) != 0) + if (desc.Type == FILE_DIALOG_TYPE::OPEN && access(result.c_str(), F_OK) == -1) { - result = std::string(); + std::string msg = String::StdFormat("\"%s\" not found: %s, please choose another file\n", result.c_str(), strerror(errno)); + ShowMessageBox(window, msg); + return ShowFileDialog(window, desc); + } + else if (desc.Type == FILE_DIALOG_TYPE::SAVE && access(result.c_str(), F_OK) != -1 && dtype == DIALOG_TYPE::KDIALOG) + { + std::string cmd = String::StdFormat("%s --yesno \"Overwrite %s?\"", executablePath.c_str(), result.c_str()); + if (Execute(cmd) != 0) + { + result = std::string(); + } } } return result; @@ -323,8 +324,8 @@ namespace OpenRCT2 { namespace Ui else if (isalpha(c)) { filtersb << '[' - << toupper(c) - << tolower(c) + << (char)tolower(c) + << (char)toupper(c) << ']'; } else From 4932537a917521f801fd0b15c2b6ad8d909787ba Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 27 May 2017 21:53:40 +0100 Subject: [PATCH 187/670] Fix kdialog implementation --- src/openrct2-ui/UiContext.Linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 2b6200c97e..5d6f4bb129 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -123,7 +123,7 @@ namespace OpenRCT2 { namespace Ui (desc.Type == FILE_DIALOG_TYPE::OPEN) ? "--getopenfilename" : "--getsavefilename"; std::string filter = GetKDialogFilterString(desc.Filters); - std::string cmd = String::StdFormat("%s --title '%s' %s '%s/' ~ '%s'", + std::string cmd = String::StdFormat("%s --title '%s' %s '%s' '%s'", executablePath.c_str(), desc.Title.c_str(), action.c_str(), @@ -226,7 +226,7 @@ namespace OpenRCT2 { namespace Ui { return DIALOG_TYPE::ZENITY; } - if (Execute("which kdialog", executablePath)) + if (Execute("which kdialog", executablePath) == 0) { return DIALOG_TYPE::KDIALOG; } From 3ca1b4838427c508e5eea69f6afdb6ea2793f65f Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 27 May 2017 23:28:54 +0100 Subject: [PATCH 188/670] Open the game window on the last remembered display --- distribution/changelog.txt | 1 + src/openrct2-ui/UiContext.cpp | 28 ++++++++++++++++++++++++++-- src/openrct2/config/Config.cpp | 2 ++ src/openrct2/config/Config.h | 1 + 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 034e8b4df3..8db2975672 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.0.8 (in development) ------------------------------------------------------------------------ +- Feature: OpenRCT2 now starts up on the display it was last shown on. - Improved: Mouse can now be dragged to select scenery when saving track designs - Fix: [#3178, #5456] Paths with non-ASCII characters not handled properly on macOS. - Fix: [#3681] Steel Twister rollercoaster always shows all track designs diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 4ff77cd9e4..2ddabd104c 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -295,6 +296,24 @@ public: { OnResize(e.window.data1, e.window.data2); } + + switch (e.window.event) { + case SDL_WINDOWEVENT_SIZE_CHANGED: + case SDL_WINDOWEVENT_MOVED: + case SDL_WINDOWEVENT_MAXIMIZED: + case SDL_WINDOWEVENT_RESTORED: + { + // Update default display index + sint32 displayIndex = SDL_GetWindowDisplayIndex(_window); + if (displayIndex != gConfigGeneral.default_display) + { + gConfigGeneral.default_display = displayIndex; + config_save_default(); + } + break; + } + } + if (gConfigSound.audio_focus && gConfigSound.sound_enabled) { if (e.window.event == SDL_WINDOWEVENT_FOCUS_GAINED) @@ -481,6 +500,11 @@ public: // g1.dat is loaded. // sub_68371D(); + // Set window position to default display + sint32 defaultDisplay = Math::Clamp(0, gConfigGeneral.default_display, 0xFFFF); + sint32 x = SDL_WINDOWPOS_UNDEFINED_DISPLAY(defaultDisplay); + sint32 y = SDL_WINDOWPOS_UNDEFINED_DISPLAY(defaultDisplay); + // Get saved window size sint32 width = gConfigGeneral.window_width; sint32 height = gConfigGeneral.window_height; @@ -494,7 +518,7 @@ public: flags |= SDL_WINDOW_OPENGL; } - _window = SDL_CreateWindow(OPENRCT2_NAME, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, flags); + _window = SDL_CreateWindow(OPENRCT2_NAME, x, y, width, height, flags); if (_window == nullptr) { SDLException::Throw("SDL_CreateWindow(...)"); @@ -503,7 +527,7 @@ public: SDL_SetWindowMinimumSize(_window, 720, 480); SetCursorTrap(gConfigGeneral.trap_cursor); _platformUiContext->SetWindowIcon(_window); - + // Initialise the surface, palette and draw buffer OnResize(width, height); diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index ab7c0ba5f8..8c7d2d345b 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -160,6 +160,7 @@ namespace Config model->window_height = reader->GetSint32("window_height", -1); model->window_snap_proximity = reader->GetSint32("window_snap_proximity", 5); model->window_width = reader->GetSint32("window_width", -1); + model->default_display = reader->GetSint32("default_display", 0); model->drawing_engine = reader->GetEnum("drawing_engine", DRAWING_ENGINE_SOFTWARE, Enum_DrawingEngine); model->uncap_fps = reader->GetBoolean("uncap_fps", false); @@ -233,6 +234,7 @@ namespace Config writer->WriteSint32("window_height", model->window_height); writer->WriteSint32("window_snap_proximity", model->window_snap_proximity); writer->WriteSint32("window_width", model->window_width); + writer->WriteSint32("default_display", model->default_display); writer->WriteEnum("drawing_engine", model->drawing_engine, Enum_DrawingEngine); writer->WriteBoolean("uncap_fps", model->uncap_fps); writer->WriteBoolean("test_unfinished_tracks", model->test_unfinished_tracks); diff --git a/src/openrct2/config/Config.h b/src/openrct2/config/Config.h index 818e402bca..76eeba1757 100644 --- a/src/openrct2/config/Config.h +++ b/src/openrct2/config/Config.h @@ -25,6 +25,7 @@ typedef struct GeneralConfiguration utf8 * rct2_path; // Display + sint32 default_display; sint32 window_width; sint32 window_height; sint32 fullscreen_mode; From 61228fc4e89a655006ae94dcb8fb92224c2f8365 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 28 May 2017 23:46:25 +0100 Subject: [PATCH 189/670] Add all files filter --- src/openrct2/windows/loadsave.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/windows/loadsave.c b/src/openrct2/windows/loadsave.c index 755e485276..14042bcf4e 100644 --- a/src/openrct2/windows/loadsave.c +++ b/src/openrct2/windows/loadsave.c @@ -286,6 +286,10 @@ static bool browse(bool isSave, char *path, size_t pathSize) break; } + // Add 'all files' filter + desc.filters[1].name = language_get_string(STR_ALL_FILES); + desc.filters[1].pattern = "*"; + desc.title = language_get_string(title); return platform_open_common_file_dialog(path, &desc, pathSize); } From 615580dc0320904ec2e71b9ff7c875788e4b3cad Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Mon, 29 May 2017 10:47:52 +0200 Subject: [PATCH 190/670] Don't check for fontconfig on macOS --- src/openrct2/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2/CMakeLists.txt b/src/openrct2/CMakeLists.txt index 9020d55126..47b24c10b0 100644 --- a/src/openrct2/CMakeLists.txt +++ b/src/openrct2/CMakeLists.txt @@ -65,7 +65,9 @@ if (NOT DISABLE_TTF) # FreeType is required by SDL2_ttf, but not wired up properly in package PKG_CHECK_MODULES(FREETYPE REQUIRED freetype2) endif () - PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) + if (UNIX AND NOT APPLE) + PKG_CHECK_MODULES(FONTCONFIG REQUIRED fontconfig) + endif () PKG_CHECK_MODULES(SDL2_TTF REQUIRED SDL2_ttf) endif () From a43ee2b9877763b53a1ebb4e8afb8f16e40b776f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 29 May 2017 22:04:50 +0200 Subject: [PATCH 191/670] Fix copyright year and comment --- src/openrct2-cli/Cli.cpp | 2 +- src/openrct2/windows/loadsave.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-cli/Cli.cpp b/src/openrct2-cli/Cli.cpp index 4c1e52de49..a71e09b77b 100644 --- a/src/openrct2-cli/Cli.cpp +++ b/src/openrct2-cli/Cli.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/loadsave.c b/src/openrct2/windows/loadsave.c index 14042bcf4e..7cda60fa59 100644 --- a/src/openrct2/windows/loadsave.c +++ b/src/openrct2/windows/loadsave.c @@ -286,7 +286,7 @@ static bool browse(bool isSave, char *path, size_t pathSize) break; } - // Add 'all files' filter + // Add 'all files' filter. If the number of filters is increased, this code will need to be adjusted. desc.filters[1].name = language_get_string(STR_ALL_FILES); desc.filters[1].pattern = "*"; From de9adf54457cd3b75e7031076b8c57049e19ff8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 29 May 2017 22:13:46 +0200 Subject: [PATCH 192/670] Allow building headless version as a separate target --- CMakeLists.txt | 8 ++------ src/openrct2-cli/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6852a0e482..df831b8f11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,6 @@ set(TITLE_SEQUENCE_URL "https://github.com/OpenRCT2/title-sequences/releases/do set(TITLE_SEQUENCE_SHA1 "79ffb2585d12abcbfce205d7696e3472a504b005") option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") -option(CLI_ONLY "CLI only build of OpenRCT2") option(WITH_TESTS "Build tests") # Define current git branch @@ -49,11 +48,8 @@ endif() # Include sub-projects include("${ROOT_DIR}/src/openrct2/CMakeLists.txt" NO_POLICY_SCOPE) -if (CLI_ONLY) - include("${ROOT_DIR}/src/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) -else () - include("${ROOT_DIR}/src/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE) -endif () +include("${ROOT_DIR}/src/openrct2-cli/CMakeLists.txt" NO_POLICY_SCOPE) +include("${ROOT_DIR}/src/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE) # g2 add_custom_command( diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 3966b7f05b..0048c68909 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -18,9 +18,9 @@ file(GLOB_RECURSE OPENRCT2_CLI_SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.hpp") # Outputs -set (PROJECT openrct2) +set (PROJECT openrct2-cli) project(${PROJECT}) -add_executable(${PROJECT} ${OPENRCT2_CLI_SOURCES}) +add_executable(${PROJECT} EXCLUDE_FROM_ALL ${OPENRCT2_CLI_SOURCES}) target_link_libraries(${PROJECT} "libopenrct2") From 8cb24b21a7d5241463faddc74c65f1ea46fc9693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 29 May 2017 22:30:24 +0200 Subject: [PATCH 193/670] Add headless builds to travis configurations --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3bf45ad661..4e9ef7ac62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: c before_install: - - if [[ $TRAVIS_OS_NAME == "linux" ]]; then bash scripts/linux/install.sh; export OPENRCT_MAKE_OPTS="-j2 -k" ; fi + - if [[ $TRAVIS_OS_NAME == "linux" ]]; then bash scripts/linux/install.sh; export OPENRCT_MAKE_OPTS="-j2 -k all openrct2-cli" ; fi - if [[ $TRAVIS_OS_NAME == "osx" ]]; then sudo gem install xcpretty-travis-formatter; fi sudo: required From 5a93b67bd9e3c545f29d78b2a6674c14c1e37312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 29 May 2017 23:21:23 +0200 Subject: [PATCH 194/670] Update changelog.txt [ci skip] --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 8db2975672..d8a3aa5359 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -5,6 +5,7 @@ - Fix: [#3178, #5456] Paths with non-ASCII characters not handled properly on macOS. - Fix: [#3681] Steel Twister rollercoaster always shows all track designs - Fix: Track components added by OpenRCT2 are now usable in older scenarios. +- Technical: [#5458] Begin offering headless build with reduced compile- and run-time dependencies 0.0.7 (2017-05-03) ------------------------------------------------------------------------ From 1e550e905991c18a44e5d3ad65574392c109164d Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 30 May 2017 22:34:13 +0100 Subject: [PATCH 195/670] Create portable builds Which set rpath to $ORIGIN so it can be run out the box. --- .travis.yml | 4 ++-- CMakeLists.txt | 15 ++++++++++----- src/openrct2-ui/CMakeLists.txt | 5 +++++ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4e9ef7ac62..61ed0b283d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,13 +16,13 @@ matrix: services: - docker env: - - OPENRCT2_CMAKE_OPTS="-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=OpenRCT2" TARGET=ubuntu_amd64 + - OPENRCT2_CMAKE_OPTS="-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=OpenRCT2 -DPORTABLE=ON" TARGET=ubuntu_amd64 - secure: "S3u2VCE2Vy8KNXoeh+DhnzjCmgTX0r95uEZrXDU+IKANOOCKn7Dg4OFDZE3LY/i1y2/EUDpnR5yLC38Ks795EUP/sv/OoMl4tjQ20yERjqWh+gcIRrgx7SdVabuAh3t4aBdaLD4Pfnj5avxeCt6rL7yGnj0wdbrbJSBZPsgSnuQ=" after_success: - sudo chown -R $USER build - cd build # make install is done inside docker - - mv OpenRCT2/bin/openrct2 OpenRCT2/ && mv OpenRCT2/share/openrct2 OpenRCT2/data && mv OpenRCT2/share/doc/openrct2 OpenRCT2/doc + - mv OpenRCT2/bin/openrct2 OpenRCT2/ && mv OpenRCT2/bin/libopenrct2.so OpenRCT2/ && mv OpenRCT2/share/openrct2 OpenRCT2/data && mv OpenRCT2/share/doc/openrct2 OpenRCT2/doc - rm -rf OpenRCT2/bin OpenRCT2/share # remove empty dirs - tar cvzf openrct2-linux.tar.gz OpenRCT2/ - if [[ "z${TRAVIS_TAG}" != "z" ]] ; then diff --git a/CMakeLists.txt b/CMakeLists.txt index df831b8f11..e1d8c50121 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ set(TITLE_SEQUENCE_SHA1 "79ffb2585d12abcbfce205d7696e3472a504b005") option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") option(WITH_TESTS "Build tests") +option(PORTABLE "Create a portable build (-rpath=$ORIGIN)" OFF) # Define current git branch execute_process( @@ -81,11 +82,15 @@ install(CODE "file(DOWNLOAD ${TITLE_SEQUENCE_URL} \$ENV{DESTDIR}${CMAKE_INSTALL_ install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E chdir \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/ \"${CMAKE_COMMAND}\" -E tar xvf title-sequences.zip)") install(CODE "file(REMOVE \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/${PROJECT}/title/title-sequences.zip)") if (WIN32) - install(TARGETS "libopenrct2" RUNTIME DESTINATION bin) -else() - install(TARGETS "libopenrct2" LIBRARY DESTINATION lib) -endif() -install(TARGETS "openrct2" RUNTIME DESTINATION bin) + install(TARGETS "libopenrct2" RUNTIME DESTINATION "bin") +else () + if (PORTABLE) + install(TARGETS "libopenrct2" LIBRARY DESTINATION "bin") + else () + install(TARGETS "libopenrct2" LIBRARY DESTINATION "lib") + endif () +endif () +install(TARGETS "openrct2" RUNTIME DESTINATION "bin") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION "share/openrct2") install(DIRECTORY "data/" DESTINATION "share/openrct2") install(FILES ${DOC_FILES} DESTINATION "share/doc/openrct2") diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 7ff4d16ba3..091381affa 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -75,6 +75,11 @@ if (WIN32) # tell it that it is set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__USE_MINGW_ANSI_STDIO=1") endif () + +if (PORTABLE) + set(CMAKE_INSTALL_RPATH "$ORIGIN") +endif () + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 ${TARGET_M}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 ${TARGET_M}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TARGET_M}") From 25e50bf43c0b6a35e0688685efbe59f20d50c839 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Wed, 31 May 2017 19:39:38 +0100 Subject: [PATCH 196/670] Set CMAKE_INSTALL_RPATH before adding executables. --- src/openrct2-ui/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2-ui/CMakeLists.txt b/src/openrct2-ui/CMakeLists.txt index 091381affa..2ae3a9fb61 100644 --- a/src/openrct2-ui/CMakeLists.txt +++ b/src/openrct2-ui/CMakeLists.txt @@ -7,6 +7,10 @@ endif () # Options option(DISABLE_OPENGL "Disable OpenGL support.") +if (PORTABLE) + set(CMAKE_INSTALL_RPATH "$ORIGIN") +endif () + # CMake dependencies include(FindPkgConfig) @@ -76,10 +80,6 @@ if (WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__USE_MINGW_ANSI_STDIO=1") endif () -if (PORTABLE) - set(CMAKE_INSTALL_RPATH "$ORIGIN") -endif () - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 ${TARGET_M}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14 ${TARGET_M}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TARGET_M}") From 8d3b7f8c27cef5f265881f9812a22c950f2f2594 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Wed, 31 May 2017 20:29:37 +0100 Subject: [PATCH 197/670] Set CMAKE_INSTALL_RPATH to $ORIGIN on CLI build --- src/openrct2-cli/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index 0048c68909..a51cd6f22a 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -4,6 +4,10 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif () +if (PORTABLE) + set(CMAKE_INSTALL_RPATH "$ORIGIN") +endif () + # CMake dependencies include(FindPkgConfig) From bf16951341c630685729db6d736a22a9290f0651 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 1 Jun 2017 17:38:57 +0100 Subject: [PATCH 198/670] Fix #5522: Clicking Player Name field results in crash --- src/openrct2/interface/widget.c | 2 +- src/openrct2/interface/window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/interface/widget.c b/src/openrct2/interface/widget.c index a822fb859b..db6b4a7498 100644 --- a/src/openrct2/interface/widget.c +++ b/src/openrct2/interface/widget.c @@ -1080,7 +1080,7 @@ static void widget_text_box_draw(rct_drawpixelinfo *dpi, rct_window *w, rct_widg gCurrentFontSpriteBase = FONT_SPRITE_BASE_MEDIUM; gCurrentFontFlags = 0; - if (!active) { + if (!active || gTextInput == NULL) { if (w->widgets[widgetIndex].text != 0) { safe_strcpy(wrapped_string, w->widgets[widgetIndex].string, 512); diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 97824b2a85..52ba438b87 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -2513,7 +2513,7 @@ void window_start_textbox(rct_window *call_w, rct_widgetindex call_widget, rct_s // from crashing the game. gTextBoxInput[maxLength - 1] = '\0'; - context_start_text_input(gTextBoxInput, maxLength); + gTextInput = context_start_text_input(gTextBoxInput, maxLength); } void window_cancel_textbox() From ce0a4f141448b3568bead978391cd15b9bdbfc9d Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 31 May 2017 19:43:30 +0100 Subject: [PATCH 199/670] Add man page for OpenRCT2 --- distribution/man/openrct2.6 | 153 ++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 distribution/man/openrct2.6 diff --git a/distribution/man/openrct2.6 b/distribution/man/openrct2.6 new file mode 100644 index 0000000000..a7ad110c42 --- /dev/null +++ b/distribution/man/openrct2.6 @@ -0,0 +1,153 @@ +.Dd May 31, 2017 +.Dt OPENRCT2 6 +.Os +.Sh NAME +.Nm openrct2 +.Nd An open source re-implementation of \(lqRollerCoaster Tycoon 2\(rq. + +.Sh DESCRIPTION +OpenRCT2 is an open-source re-implementation of RollerCoaster Tycoon 2 (RCT2). +The gameplay revolves around building and maintaining an amusement park +containing attractions, shops and facilities. The player must try to make a +profit and maintain a good park reputation whilst keeping the guests happy. +OpenRCT2 allows for both scenario and sandbox play. Scenarios require the +player to complete a certain objective in a set time limit whilst sandbox +allows the player to build a more flexible park with optionally no +restrictions or finance. + +.Sh SYNOPSIS +.Nm +.Op Fl h | -help +.Op Fl v | -version +.Op Fl -verbose +.Nm +.Op uri +.Nm +.Ar edit +.Op uri +.Nm +.Ar intro +.Nm +.Ar host +uri +.Op Fl -port Ar port +.Op Fl -password Ar password +.Op Fl -headless +.Nm +.Ar join +hostname +.Op Fl -port Ar port +.Op Fl -password Ar password +.Nm +.Ar set-rct2 +path +.Nm +.Ar convert +source +destination +.Nm +.Ar scan-objects +.Nm +.Ar handle-uri +openrct2://.../ + +.Nm +.Ar screenshot +file output_image width height +.Op x y zoom rotation +.Nm +.Ar screenshot +file output_image +.Ar giant +zoom rotation + +.Nm +.Ar sprite append +spritefile input +.Op x_offset y_offset +.Op Fl m | -mode Ar default|closest|dithering +.Nm +.Ar sprite build +spritefile json_path +.Op silent +.Nm +.Ar sprite create +spritefile +.Nm +.Ar sprite details +spritefile +.Op idx +.Nm +.Ar sprite export +spritefile idx output +.Nm +.Ar sprite exportall +spritefile output_directory + +.Sh OPTIONS +.Bl -tag -width "-openrct-data-path path " + +.It Fl h | -help +Print a summary of all options to stdout and exit. + +.It Fl v | -version +Show version information and exit. + +.It Fl a | -all +Show help for all commands. + +.It Fl -about +Show information about +.Nm . + +.It Fl -verbose +Print diagnostic information to stdout. + +.It Fl -headless +run +.Nm +as a background process. + +.It Fl -port Ar port +Port to use for hosting or joining a server. + +.It Fl -password Ar password +Password needed to join the server. + +.It Fl -user-data-path Ar path +Path to the user data directory (containing +.Pa config.ini ) + +.It Fl -openrct-data-path Ar path +Path to the OpenRCT2 data directory (containing +.Pa languages ) + +.It Fl -rct2-data-path Ar path +Path to the RollerCoaster Tycoon 2 data directory (containing +.Pa data/g1.dat ) + +.Sh EXAMPLES +.Bl -tag -width "openrct2 https://openrct2.website/files/SnowyPark.sv6 " +.It openrct2 ./my_park.sv6 +Open a saved park. +.It openrct2 https://openrct2.website/files/SnowyPark.sv6 +Download and open a saved park. +.It host ./my_park.sv6 --port 11753 --headless +Run a headless server for a saved park. + +.Sh SEE ALSO +.Lk https://openrct2.website "Offical site" + +.Lk https://github.com/OpenRCT2/OpenRCT2 "GitHub" +.Sh HISTORY +RollerCoaster Tycoon 2 was originally written by Chris Sawyer in x86 assembly +and is the sequel to RollerCoaster Tycoon. The engine was based on +Transport Tycoon, an older game which also has an equivalent open-source +project, OpenTTD. OpenRCT2 attempts to provide everything from RCT2 as well as +many improvements and additional features, some of these include support for +modern platforms, an improved interface, improved guest and staff AI, more +editing tools, increased limits, and cooperative multiplayer. It also +re-introduces mechanics from RollerCoaster Tycoon that were not present in +RollerCoaster Tycoon 2. Some of those include; mountain tool in-game, the +"have fun" objective, launched coasters (not passing-through the station) and +several buttons on the toolbar. From 85652c3834e0ebfdd7ccc432a1c0f8f357e42e43 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 1 Jun 2017 18:45:40 +0100 Subject: [PATCH 200/670] Update cmake script to install man pages --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1d8c50121..b18a937afd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,3 +101,5 @@ install(FILES "resources/logo/icon_x128.png" DESTINATION "share/icons/hicolor/12 install(FILES "resources/logo/icon_x256.png" DESTINATION "share/icons/hicolor/256x256/apps RENAME openrct2.png") install(FILES "resources/logo/icon_flag.svg" DESTINATION "share/icons/hicolor/scalable/apps RENAME openrct2.svg") install(FILES "distribution/linux/openrct2.desktop" DESTINATION "share/applications") +install(DIRECTORY "distribution/man/" DESTINATION "share/man/man6" FILES_MATCHING PATTERN "*.6") +install(CODE "execute_process(COMMAND find \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/man/man6 -type f -exec gzip -f \"{}\" \;)") From 3761104ee22afe6be8e3bd659453ffe862868e4f Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Thu, 1 Jun 2017 19:23:23 +0100 Subject: [PATCH 201/670] Fix #5511: Backspace behaves inconsistently in track manager --- src/openrct2/windows/track_list.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 89bd81afe3..94b3a85c85 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -177,6 +177,17 @@ static void window_track_list_close(rct_window *w) } SafeFree(_trackDesigns); _trackDesignsCount = 0; + + // If gScreenAge is zero, we're already in the process + // of loading the track manager, so we shouldn't try + // to do it again. Otherwise, this window will get + // another close signal from the track manager load function, + // try to load the track manager again, and an infinite loop will result. + if ((gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) && gScreenAge != 0){ + window_close_by_number(WC_MANAGE_TRACK_DESIGN, w->number); + window_close_by_number(WC_TRACK_DELETE_PROMPT, w->number); + trackmanager_load(); + } } /** @@ -244,11 +255,6 @@ static void window_track_list_mouseup(rct_window *w, rct_widgetindex widgetIndex switch (widgetIndex) { case WIDX_CLOSE: window_close(w); - if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) { - window_close_by_number(WC_MANAGE_TRACK_DESIGN, w->number); - window_close_by_number(WC_TRACK_DELETE_PROMPT, w->number); - trackmanager_load(); - } break; case WIDX_ROTATE: _currentTrackPieceDirection++; @@ -262,11 +268,7 @@ static void window_track_list_mouseup(rct_window *w, rct_widgetindex widgetIndex break; case WIDX_BACK: window_close(w); - if (gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER) { - window_close_by_number(WC_MANAGE_TRACK_DESIGN, w->number); - window_close_by_number(WC_TRACK_DELETE_PROMPT, w->number); - trackmanager_load(); - } else { + if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) { window_new_ride_open(); } break; From 79d76759bb3c1979e8935272d6624a0a4e278ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Thu, 1 Jun 2017 21:55:10 +0200 Subject: [PATCH 202/670] Fix #5516: Update copyrights for 2017 Not all files were necessarily _changed_, but all were touched, see https://github.com/OpenRCT2/OpenRCT2/pull/4932 --- src/openrct2-cli/CMakeLists.txt | 2 +- src/openrct2-dll/openrct2-dll.cpp | 2 +- src/openrct2-ui/CursorData.cpp | 2 +- src/openrct2-ui/CursorRepository.cpp | 2 +- src/openrct2-ui/CursorRepository.h | 2 +- src/openrct2-ui/SDLException.h | 2 +- src/openrct2-ui/TextComposition.cpp | 2 +- src/openrct2-ui/TextComposition.h | 2 +- src/openrct2-ui/Ui.cpp | 2 +- src/openrct2-ui/UiContext.Linux.cpp | 2 +- src/openrct2-ui/UiContext.Win32.cpp | 2 +- src/openrct2-ui/UiContext.cpp | 2 +- src/openrct2-ui/UiContext.h | 2 +- src/openrct2-ui/UiContext.macOS.mm | 2 +- src/openrct2-ui/audio/AudioChannel.cpp | 2 +- src/openrct2-ui/audio/AudioContext.cpp | 2 +- src/openrct2-ui/audio/AudioFormat.h | 2 +- src/openrct2-ui/audio/AudioMixer.cpp | 2 +- src/openrct2-ui/audio/FileAudioSource.cpp | 2 +- src/openrct2-ui/audio/MemoryAudioSource.cpp | 2 +- src/openrct2-ui/drawing/engines/DrawingEngines.h | 2 +- src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp | 2 +- .../drawing/engines/opengl/CopyFramebufferShader.cpp | 2 +- .../drawing/engines/opengl/CopyFramebufferShader.h | 2 +- src/openrct2-ui/drawing/engines/opengl/DrawCommands.h | 2 +- src/openrct2-ui/drawing/engines/opengl/DrawImageShader.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/DrawImageShader.h | 2 +- src/openrct2-ui/drawing/engines/opengl/DrawLineShader.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/DrawLineShader.h | 2 +- src/openrct2-ui/drawing/engines/opengl/FillRectShader.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/FillRectShader.h | 2 +- src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h | 2 +- src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h | 2 +- .../drawing/engines/opengl/OpenGLDrawingEngine.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h | 2 +- .../drawing/engines/opengl/OpenGLShaderProgram.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h | 2 +- src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h | 2 +- src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp | 2 +- src/openrct2-ui/drawing/engines/opengl/TextureCache.h | 2 +- src/openrct2-win/openrct2-win.cpp | 2 +- src/openrct2/Context.cpp | 2 +- src/openrct2/Context.h | 2 +- src/openrct2/FileClassifier.cpp | 2 +- src/openrct2/FileClassifier.h | 2 +- src/openrct2/Imaging.cpp | 2 +- src/openrct2/Imaging.h | 2 +- src/openrct2/OpenRCT2.cpp | 2 +- src/openrct2/OpenRCT2.h | 2 +- src/openrct2/ParkImporter.cpp | 2 +- src/openrct2/ParkImporter.h | 2 +- src/openrct2/PlatformEnvironment.cpp | 2 +- src/openrct2/PlatformEnvironment.h | 2 +- src/openrct2/Version.cpp | 2 +- src/openrct2/Version.h | 2 +- src/openrct2/audio/AudioChannel.h | 2 +- src/openrct2/audio/AudioContext.h | 2 +- src/openrct2/audio/AudioMixer.cpp | 2 +- src/openrct2/audio/AudioMixer.h | 2 +- src/openrct2/audio/AudioSource.h | 2 +- src/openrct2/audio/NullAudioSource.cpp | 2 +- src/openrct2/audio/audio.cpp | 2 +- src/openrct2/audio/audio.h | 2 +- src/openrct2/cheats.c | 2 +- src/openrct2/cheats.h | 2 +- src/openrct2/cmdline/CommandLine.cpp | 2 +- src/openrct2/cmdline/CommandLine.hpp | 2 +- src/openrct2/cmdline/ConvertCommand.cpp | 2 +- src/openrct2/cmdline/RootCommands.cpp | 2 +- src/openrct2/cmdline/ScreenshotCommands.cpp | 2 +- src/openrct2/cmdline/SpriteCommands.cpp | 2 +- src/openrct2/cmdline/UriHandler.cpp | 2 +- src/openrct2/cmdline_sprite.c | 2 +- src/openrct2/cmdline_sprite.h | 2 +- src/openrct2/common.h | 2 +- src/openrct2/config/Config.cpp | 2 +- src/openrct2/config/Config.h | 2 +- src/openrct2/config/ConfigEnum.hpp | 2 +- src/openrct2/config/IniReader.cpp | 2 +- src/openrct2/config/IniReader.hpp | 2 +- src/openrct2/config/IniWriter.cpp | 2 +- src/openrct2/config/IniWriter.hpp | 2 +- src/openrct2/config/KeyboardShortcuts.cpp | 2 +- src/openrct2/core/Collections.hpp | 2 +- src/openrct2/core/Console.cpp | 2 +- src/openrct2/core/Console.hpp | 2 +- src/openrct2/core/Diagnostics.cpp | 2 +- src/openrct2/core/Diagnostics.hpp | 2 +- src/openrct2/core/Exception.hpp | 2 +- src/openrct2/core/File.cpp | 2 +- src/openrct2/core/File.h | 2 +- src/openrct2/core/FileScanner.cpp | 2 +- src/openrct2/core/FileScanner.h | 2 +- src/openrct2/core/FileStream.hpp | 2 +- src/openrct2/core/Guard.cpp | 2 +- src/openrct2/core/Guard.hpp | 2 +- src/openrct2/core/IStream.cpp | 2 +- src/openrct2/core/IStream.hpp | 2 +- src/openrct2/core/Json.cpp | 2 +- src/openrct2/core/Json.hpp | 2 +- src/openrct2/core/Math.hpp | 2 +- src/openrct2/core/Memory.hpp | 2 +- src/openrct2/core/MemoryStream.cpp | 2 +- src/openrct2/core/MemoryStream.h | 2 +- src/openrct2/core/Nullable.hpp | 2 +- src/openrct2/core/Path.cpp | 2 +- src/openrct2/core/Path.hpp | 2 +- src/openrct2/core/Registration.hpp | 2 +- src/openrct2/core/String.cpp | 2 +- src/openrct2/core/String.hpp | 2 +- src/openrct2/core/StringBuilder.hpp | 2 +- src/openrct2/core/StringReader.hpp | 2 +- src/openrct2/core/Util.hpp | 2 +- src/openrct2/core/Zip.cpp | 2 +- src/openrct2/core/Zip.h | 2 +- src/openrct2/core/textinputbuffer.c | 2 +- src/openrct2/core/textinputbuffer.h | 2 +- src/openrct2/diagnostic.c | 2 +- src/openrct2/diagnostic.h | 2 +- src/openrct2/drawing/IDrawingContext.h | 2 +- src/openrct2/drawing/IDrawingEngine.h | 2 +- src/openrct2/drawing/Image.cpp | 2 +- src/openrct2/drawing/NewDrawing.cpp | 2 +- src/openrct2/drawing/NewDrawing.h | 2 +- src/openrct2/drawing/Rain.cpp | 2 +- src/openrct2/drawing/Rain.h | 2 +- src/openrct2/drawing/drawing.c | 2 +- src/openrct2/drawing/drawing.h | 2 +- src/openrct2/drawing/drawing_fast.cpp | 2 +- src/openrct2/drawing/font.c | 2 +- src/openrct2/drawing/font.h | 2 +- src/openrct2/drawing/lightfx.c | 2 +- src/openrct2/drawing/lightfx.h | 2 +- src/openrct2/drawing/line.c | 2 +- src/openrct2/drawing/rect.c | 2 +- src/openrct2/drawing/scrolling_text.c | 2 +- src/openrct2/drawing/sprite.cpp | 2 +- src/openrct2/drawing/string.c | 2 +- src/openrct2/editor.c | 2 +- src/openrct2/editor.h | 2 +- src/openrct2/game.c | 2 +- src/openrct2/game.h | 2 +- src/openrct2/input.c | 2 +- src/openrct2/input.h | 2 +- src/openrct2/interface/Cursors.h | 2 +- src/openrct2/interface/Fonts.cpp | 2 +- src/openrct2/interface/Fonts.h | 2 +- src/openrct2/interface/Theme.cpp | 2 +- src/openrct2/interface/chat.c | 2 +- src/openrct2/interface/chat.h | 2 +- src/openrct2/interface/colour.c | 2 +- src/openrct2/interface/colour.h | 2 +- src/openrct2/interface/console.c | 2 +- src/openrct2/interface/console.h | 2 +- src/openrct2/interface/graph.c | 2 +- src/openrct2/interface/graph.h | 2 +- src/openrct2/interface/keyboard_shortcut.c | 2 +- src/openrct2/interface/keyboard_shortcut.h | 2 +- src/openrct2/interface/screenshot.c | 2 +- src/openrct2/interface/screenshot.h | 2 +- src/openrct2/interface/themes.h | 2 +- src/openrct2/interface/viewport.c | 2 +- src/openrct2/interface/viewport.h | 2 +- src/openrct2/interface/viewport_interaction.c | 2 +- src/openrct2/interface/widget.c | 2 +- src/openrct2/interface/widget.h | 2 +- src/openrct2/interface/window.c | 2 +- src/openrct2/interface/window.h | 2 +- src/openrct2/intro.c | 2 +- src/openrct2/intro.h | 2 +- src/openrct2/localisation/LanguagePack.cpp | 2 +- src/openrct2/localisation/LanguagePack.h | 2 +- src/openrct2/localisation/convert.c | 2 +- src/openrct2/localisation/currency.c | 2 +- src/openrct2/localisation/currency.h | 2 +- src/openrct2/localisation/date.c | 2 +- src/openrct2/localisation/date.h | 2 +- src/openrct2/localisation/format_codes.c | 2 +- src/openrct2/localisation/format_codes.h | 2 +- src/openrct2/localisation/language.cpp | 2 +- src/openrct2/localisation/language.h | 2 +- src/openrct2/localisation/localisation.c | 2 +- src/openrct2/localisation/localisation.h | 2 +- src/openrct2/localisation/real_names.c | 2 +- src/openrct2/localisation/string_ids.h | 2 +- src/openrct2/localisation/user.c | 2 +- src/openrct2/localisation/user.h | 2 +- src/openrct2/localisation/utf8.c | 2 +- src/openrct2/management/award.c | 2 +- src/openrct2/management/award.h | 2 +- src/openrct2/management/finance.c | 2 +- src/openrct2/management/finance.h | 2 +- src/openrct2/management/marketing.c | 2 +- src/openrct2/management/marketing.h | 2 +- src/openrct2/management/news_item.c | 2 +- src/openrct2/management/news_item.h | 2 +- src/openrct2/management/research.c | 2 +- src/openrct2/management/research.h | 2 +- src/openrct2/network/NetworkAction.cpp | 2 +- src/openrct2/network/NetworkAction.h | 2 +- src/openrct2/network/NetworkConnection.cpp | 2 +- src/openrct2/network/NetworkConnection.h | 2 +- src/openrct2/network/NetworkGroup.cpp | 2 +- src/openrct2/network/NetworkGroup.h | 2 +- src/openrct2/network/NetworkKey.cpp | 2 +- src/openrct2/network/NetworkKey.h | 2 +- src/openrct2/network/NetworkPacket.cpp | 2 +- src/openrct2/network/NetworkPacket.h | 2 +- src/openrct2/network/NetworkPlayer.cpp | 2 +- src/openrct2/network/NetworkPlayer.h | 2 +- src/openrct2/network/NetworkServerAdvertiser.cpp | 2 +- src/openrct2/network/NetworkServerAdvertiser.h | 2 +- src/openrct2/network/NetworkTypes.h | 2 +- src/openrct2/network/NetworkUser.cpp | 2 +- src/openrct2/network/NetworkUser.h | 2 +- src/openrct2/network/ServerList.cpp | 2 +- src/openrct2/network/ServerList.h | 2 +- src/openrct2/network/TcpSocket.cpp | 2 +- src/openrct2/network/TcpSocket.h | 2 +- src/openrct2/network/http.cpp | 2 +- src/openrct2/network/http.h | 2 +- src/openrct2/network/network.cpp | 2 +- src/openrct2/network/network.h | 2 +- src/openrct2/network/twitch.cpp | 2 +- src/openrct2/network/twitch.h | 2 +- src/openrct2/object.h | 2 +- src/openrct2/object/BannerObject.cpp | 2 +- src/openrct2/object/BannerObject.h | 2 +- src/openrct2/object/EntranceObject.cpp | 2 +- src/openrct2/object/EntranceObject.h | 2 +- src/openrct2/object/FootpathItemObject.cpp | 2 +- src/openrct2/object/FootpathItemObject.h | 2 +- src/openrct2/object/FootpathObject.cpp | 2 +- src/openrct2/object/FootpathObject.h | 2 +- src/openrct2/object/ImageTable.cpp | 2 +- src/openrct2/object/ImageTable.h | 2 +- src/openrct2/object/LargeSceneryObject.cpp | 2 +- src/openrct2/object/LargeSceneryObject.h | 2 +- src/openrct2/object/Object.cpp | 2 +- src/openrct2/object/Object.h | 2 +- src/openrct2/object/ObjectFactory.cpp | 2 +- src/openrct2/object/ObjectFactory.h | 2 +- src/openrct2/object/ObjectManager.cpp | 2 +- src/openrct2/object/ObjectManager.h | 2 +- src/openrct2/object/ObjectRepository.cpp | 2 +- src/openrct2/object/ObjectRepository.h | 2 +- src/openrct2/object/RideObject.cpp | 2 +- src/openrct2/object/RideObject.h | 2 +- src/openrct2/object/SceneryGroupObject.cpp | 2 +- src/openrct2/object/SceneryGroupObject.h | 2 +- src/openrct2/object/SceneryObject.h | 2 +- src/openrct2/object/SmallSceneryObject.cpp | 2 +- src/openrct2/object/SmallSceneryObject.h | 2 +- src/openrct2/object/StexObject.cpp | 2 +- src/openrct2/object/StexObject.h | 2 +- src/openrct2/object/StringTable.cpp | 2 +- src/openrct2/object/StringTable.h | 2 +- src/openrct2/object/WallObject.cpp | 2 +- src/openrct2/object/WallObject.h | 2 +- src/openrct2/object/WaterObject.cpp | 2 +- src/openrct2/object/WaterObject.h | 2 +- src/openrct2/object_list.c | 2 +- src/openrct2/paint/map_element/banner.c | 2 +- src/openrct2/paint/map_element/entrance.c | 2 +- src/openrct2/paint/map_element/fence.c | 2 +- src/openrct2/paint/map_element/map_element.c | 2 +- src/openrct2/paint/map_element/map_element.h | 2 +- src/openrct2/paint/map_element/path.c | 2 +- src/openrct2/paint/map_element/scenery.c | 2 +- src/openrct2/paint/map_element/scenery_multiple.c | 2 +- src/openrct2/paint/map_element/surface.c | 2 +- src/openrct2/paint/map_element/surface.h | 2 +- src/openrct2/paint/paint.c | 2 +- src/openrct2/paint/paint.h | 2 +- src/openrct2/paint/paint_helpers.c | 2 +- src/openrct2/paint/sprite/litter.c | 2 +- src/openrct2/paint/sprite/misc.c | 2 +- src/openrct2/paint/sprite/peep.c | 2 +- src/openrct2/paint/sprite/sprite.c | 2 +- src/openrct2/paint/sprite/sprite.h | 2 +- src/openrct2/paint/supports.c | 2 +- src/openrct2/paint/supports.h | 2 +- src/openrct2/peep/peep.c | 2 +- src/openrct2/peep/peep.h | 2 +- src/openrct2/peep/peep_data.c | 2 +- src/openrct2/peep/staff.c | 2 +- src/openrct2/peep/staff.h | 2 +- src/openrct2/platform/Platform2.cpp | 2 +- src/openrct2/platform/Platform2.h | 2 +- src/openrct2/platform/crash.cpp | 2 +- src/openrct2/platform/crash.h | 2 +- src/openrct2/platform/linux.c | 2 +- src/openrct2/platform/macos.m | 2 +- src/openrct2/platform/platform.h | 2 +- src/openrct2/platform/posix.c | 2 +- src/openrct2/platform/shared.c | 2 +- src/openrct2/platform/windows.c | 2 +- src/openrct2/rct1.c | 2 +- src/openrct2/rct1.h | 2 +- src/openrct2/rct1/S4Importer.cpp | 2 +- src/openrct2/rct1/Tables.h | 2 +- src/openrct2/rct1/tables.cpp | 2 +- src/openrct2/rct12.h | 2 +- src/openrct2/rct12/SawyerChunk.cpp | 2 +- src/openrct2/rct12/SawyerChunk.h | 2 +- src/openrct2/rct12/SawyerChunkReader.cpp | 2 +- src/openrct2/rct12/SawyerChunkReader.h | 2 +- src/openrct2/rct12/SawyerChunkWriter.cpp | 2 +- src/openrct2/rct12/SawyerChunkWriter.h | 2 +- src/openrct2/rct12/SawyerEncoding.cpp | 2 +- src/openrct2/rct12/SawyerEncoding.h | 2 +- src/openrct2/rct2.c | 2 +- src/openrct2/rct2.h | 2 +- src/openrct2/rct2/S6Exporter.h | 2 +- src/openrct2/rct2/addresses.c | 2 +- src/openrct2/rct2/addresses.h | 2 +- src/openrct2/rct2/hook.c | 2 +- src/openrct2/rct2/hook.h | 2 +- src/openrct2/rct2/interop.c | 2 +- src/openrct2/rct2/interop.h | 2 +- src/openrct2/ride/TrackDesignRepository.cpp | 2 +- src/openrct2/ride/TrackDesignRepository.h | 2 +- src/openrct2/ride/cable_lift.c | 2 +- src/openrct2/ride/cable_lift.h | 2 +- src/openrct2/ride/coaster/air_powered_vertical_coaster.c | 2 +- src/openrct2/ride/coaster/bobsleigh_coaster.c | 2 +- src/openrct2/ride/coaster/bolliger_mabillard_track.c | 2 +- src/openrct2/ride/coaster/bolliger_mabillard_track.h | 2 +- src/openrct2/ride/coaster/compact_inverted_coaster.c | 2 +- src/openrct2/ride/coaster/corkscrew_roller_coaster.c | 2 +- src/openrct2/ride/coaster/flying_roller_coaster.c | 2 +- src/openrct2/ride/coaster/giga_coaster.c | 2 +- src/openrct2/ride/coaster/heartline_twister_coaster.c | 2 +- src/openrct2/ride/coaster/inverted_hairpin_coaster.c | 2 +- src/openrct2/ride/coaster/inverted_impulse_coaster.c | 2 +- src/openrct2/ride/coaster/inverted_roller_coaster.c | 2 +- src/openrct2/ride/coaster/junior_roller_coaster.c | 2 +- src/openrct2/ride/coaster/junior_roller_coaster.h | 2 +- src/openrct2/ride/coaster/lay_down_roller_coaster.c | 2 +- src/openrct2/ride/coaster/lim_launched_roller_coaster.c | 2 +- src/openrct2/ride/coaster/looping_roller_coaster.c | 2 +- src/openrct2/ride/coaster/mine_ride.c | 2 +- src/openrct2/ride/coaster/mine_train_coaster.c | 2 +- src/openrct2/ride/coaster/mini_roller_coaster.c | 2 +- src/openrct2/ride/coaster/mini_suspended_coaster.c | 2 +- src/openrct2/ride/coaster/multi_dimension_roller_coaster.c | 2 +- src/openrct2/ride/coaster/reverse_freefall_coaster.c | 2 +- src/openrct2/ride/coaster/reverser_roller_coaster.c | 2 +- src/openrct2/ride/coaster/side_friction_roller_coaster.c | 2 +- src/openrct2/ride/coaster/stand_up_roller_coaster.c | 2 +- src/openrct2/ride/coaster/steeplechase.c | 2 +- src/openrct2/ride/coaster/suspended_swinging_coaster.c | 2 +- src/openrct2/ride/coaster/twister_roller_coaster.c | 2 +- src/openrct2/ride/coaster/vertical_drop_roller_coaster.c | 2 +- src/openrct2/ride/coaster/virginia_reel.c | 2 +- src/openrct2/ride/coaster/wild_mouse.c | 2 +- src/openrct2/ride/coaster/wooden_roller_coaster.c | 2 +- src/openrct2/ride/coaster/wooden_wild_mouse.c | 2 +- src/openrct2/ride/gentle/car_ride.c | 2 +- src/openrct2/ride/gentle/circus_show.c | 2 +- src/openrct2/ride/gentle/crooked_house.c | 2 +- src/openrct2/ride/gentle/dodgems.c | 2 +- src/openrct2/ride/gentle/ferris_wheel.c | 2 +- src/openrct2/ride/gentle/flying_saucers.c | 2 +- src/openrct2/ride/gentle/ghost_train.c | 2 +- src/openrct2/ride/gentle/haunted_house.c | 2 +- src/openrct2/ride/gentle/maze.c | 2 +- src/openrct2/ride/gentle/merry_go_round.c | 2 +- src/openrct2/ride/gentle/mini_golf.c | 2 +- src/openrct2/ride/gentle/mini_helicopters.c | 2 +- src/openrct2/ride/gentle/monorail_cycles.c | 2 +- src/openrct2/ride/gentle/observation_tower.c | 2 +- src/openrct2/ride/gentle/space_rings.c | 2 +- src/openrct2/ride/gentle/spiral_slide.c | 2 +- src/openrct2/ride/ride.c | 2 +- src/openrct2/ride/ride.h | 2 +- src/openrct2/ride/ride_data.c | 2 +- src/openrct2/ride/ride_data.h | 2 +- src/openrct2/ride/ride_ratings.c | 2 +- src/openrct2/ride/ride_ratings.h | 2 +- src/openrct2/ride/shops/facility.c | 2 +- src/openrct2/ride/shops/shop.c | 2 +- src/openrct2/ride/station.c | 2 +- src/openrct2/ride/station.h | 2 +- src/openrct2/ride/thrill/3d_cinema.c | 2 +- src/openrct2/ride/thrill/enterprise.c | 2 +- src/openrct2/ride/thrill/go_karts.c | 2 +- src/openrct2/ride/thrill/launched_freefall.c | 2 +- src/openrct2/ride/thrill/magic_carpet.c | 2 +- src/openrct2/ride/thrill/motion_simulator.c | 2 +- src/openrct2/ride/thrill/pirate_ship.c | 2 +- src/openrct2/ride/thrill/roto_drop.c | 2 +- src/openrct2/ride/thrill/swinging_inverter_ship.c | 2 +- src/openrct2/ride/thrill/top_spin.c | 2 +- src/openrct2/ride/thrill/twist.c | 2 +- src/openrct2/ride/track.c | 2 +- src/openrct2/ride/track.h | 2 +- src/openrct2/ride/track_data.c | 2 +- src/openrct2/ride/track_data.h | 2 +- src/openrct2/ride/track_data_old.c | 2 +- src/openrct2/ride/track_design.c | 2 +- src/openrct2/ride/track_design.h | 2 +- src/openrct2/ride/track_design_save.c | 2 +- src/openrct2/ride/track_paint.c | 2 +- src/openrct2/ride/track_paint.h | 2 +- src/openrct2/ride/transport/chairlift.c | 2 +- src/openrct2/ride/transport/lift.c | 2 +- src/openrct2/ride/transport/miniature_railway.c | 2 +- src/openrct2/ride/transport/monorail.c | 2 +- src/openrct2/ride/transport/suspended_monorail.c | 2 +- src/openrct2/ride/vehicle.c | 2 +- src/openrct2/ride/vehicle.h | 2 +- src/openrct2/ride/vehicle_data.c | 2 +- src/openrct2/ride/vehicle_data.h | 2 +- src/openrct2/ride/vehicle_paint.c | 2 +- src/openrct2/ride/vehicle_paint.h | 2 +- src/openrct2/ride/water/boat_ride.c | 2 +- src/openrct2/ride/water/dingy_slide.c | 2 +- src/openrct2/ride/water/log_flume.c | 2 +- src/openrct2/ride/water/river_rapids.c | 2 +- src/openrct2/ride/water/submarine_ride.c | 2 +- src/openrct2/ride/water/water_coaster.c | 2 +- src/openrct2/scenario/ScenarioRepository.cpp | 2 +- src/openrct2/scenario/ScenarioRepository.h | 2 +- src/openrct2/scenario/ScenarioSources.cpp | 2 +- src/openrct2/scenario/ScenarioSources.h | 2 +- src/openrct2/scenario/scenario.c | 2 +- src/openrct2/scenario/scenario.h | 2 +- src/openrct2/sprites.h | 2 +- src/openrct2/title/TitleScreen.cpp | 2 +- src/openrct2/title/TitleScreen.h | 2 +- src/openrct2/title/TitleSequence.cpp | 2 +- src/openrct2/title/TitleSequence.h | 2 +- src/openrct2/title/TitleSequenceManager.cpp | 2 +- src/openrct2/title/TitleSequenceManager.h | 2 +- src/openrct2/title/TitleSequencePlayer.cpp | 2 +- src/openrct2/title/TitleSequencePlayer.h | 2 +- src/openrct2/ui/UiContext.h | 2 +- src/openrct2/util/sawyercoding.c | 2 +- src/openrct2/util/sawyercoding.h | 2 +- src/openrct2/util/util.c | 2 +- src/openrct2/util/util.h | 2 +- src/openrct2/windows/about.c | 2 +- src/openrct2/windows/banner.c | 2 +- src/openrct2/windows/changelog.c | 2 +- src/openrct2/windows/cheats.c | 2 +- src/openrct2/windows/clear_scenery.c | 2 +- src/openrct2/windows/custom_currency.c | 2 +- src/openrct2/windows/debug_paint.c | 2 +- src/openrct2/windows/demolish_ride_prompt.c | 2 +- src/openrct2/windows/dropdown.c | 2 +- src/openrct2/windows/dropdown.h | 2 +- src/openrct2/windows/editor_bottom_toolbar.c | 2 +- src/openrct2/windows/editor_inventions_list.c | 2 +- src/openrct2/windows/editor_main.c | 2 +- src/openrct2/windows/editor_object_selection.c | 2 +- src/openrct2/windows/editor_objective_options.c | 2 +- src/openrct2/windows/editor_scenario_options.c | 2 +- src/openrct2/windows/error.c | 2 +- src/openrct2/windows/error.h | 2 +- src/openrct2/windows/finances.c | 2 +- src/openrct2/windows/footpath.c | 2 +- src/openrct2/windows/game_bottom_toolbar.c | 2 +- src/openrct2/windows/guest.c | 2 +- src/openrct2/windows/guest_list.c | 2 +- src/openrct2/windows/install_track.c | 2 +- src/openrct2/windows/land.c | 2 +- src/openrct2/windows/land_rights.c | 2 +- src/openrct2/windows/loadsave.c | 2 +- src/openrct2/windows/main.c | 2 +- src/openrct2/windows/map_tooltip.c | 2 +- src/openrct2/windows/mapgen.c | 2 +- src/openrct2/windows/maze_construction.c | 2 +- src/openrct2/windows/multiplayer.c | 2 +- src/openrct2/windows/music_credits.c | 2 +- src/openrct2/windows/network_status.c | 2 +- src/openrct2/windows/new_campaign.c | 2 +- src/openrct2/windows/new_ride.c | 2 +- src/openrct2/windows/news.c | 2 +- src/openrct2/windows/news_options.c | 2 +- src/openrct2/windows/options.c | 2 +- src/openrct2/windows/park.c | 2 +- src/openrct2/windows/player.c | 2 +- src/openrct2/windows/publisher_credits.c | 2 +- src/openrct2/windows/research.c | 2 +- src/openrct2/windows/ride.c | 2 +- src/openrct2/windows/ride_construction.c | 2 +- src/openrct2/windows/ride_list.c | 2 +- src/openrct2/windows/save_prompt.c | 2 +- src/openrct2/windows/scenery.c | 2 +- src/openrct2/windows/server_list.cpp | 2 +- src/openrct2/windows/server_start.c | 2 +- src/openrct2/windows/shortcut_key_change.c | 2 +- src/openrct2/windows/shortcut_keys.c | 2 +- src/openrct2/windows/sign.c | 2 +- src/openrct2/windows/staff.c | 2 +- src/openrct2/windows/staff_fire_prompt.c | 2 +- src/openrct2/windows/staff_list.c | 2 +- src/openrct2/windows/text_input.c | 2 +- src/openrct2/windows/themes.c | 2 +- src/openrct2/windows/tile_inspector.c | 2 +- src/openrct2/windows/tile_inspector.h | 2 +- src/openrct2/windows/title_command_editor.c | 2 +- src/openrct2/windows/title_editor.c | 2 +- src/openrct2/windows/title_exit.c | 2 +- src/openrct2/windows/title_logo.c | 2 +- src/openrct2/windows/title_menu.c | 2 +- src/openrct2/windows/title_options.c | 2 +- src/openrct2/windows/title_scenarioselect.c | 2 +- src/openrct2/windows/tooltip.c | 2 +- src/openrct2/windows/tooltip.h | 2 +- src/openrct2/windows/top_toolbar.c | 2 +- src/openrct2/windows/track_list.c | 2 +- src/openrct2/windows/track_manage.c | 2 +- src/openrct2/windows/track_place.c | 2 +- src/openrct2/windows/viewport.c | 2 +- src/openrct2/windows/water.c | 2 +- src/openrct2/world/Balloon.cpp | 2 +- src/openrct2/world/Climate.cpp | 2 +- src/openrct2/world/Climate.h | 2 +- src/openrct2/world/Duck.cpp | 2 +- src/openrct2/world/Fountain.cpp | 2 +- src/openrct2/world/Fountain.h | 2 +- src/openrct2/world/banner.cpp | 2 +- src/openrct2/world/banner.h | 2 +- src/openrct2/world/footpath.c | 2 +- src/openrct2/world/footpath.h | 2 +- src/openrct2/world/map.c | 2 +- src/openrct2/world/map.h | 2 +- src/openrct2/world/map_animation.c | 2 +- src/openrct2/world/map_animation.h | 2 +- src/openrct2/world/map_helpers.c | 2 +- src/openrct2/world/map_helpers.h | 2 +- src/openrct2/world/mapgen.c | 2 +- src/openrct2/world/mapgen.h | 2 +- src/openrct2/world/money_effect.c | 2 +- src/openrct2/world/park.c | 2 +- src/openrct2/world/park.h | 2 +- src/openrct2/world/particle.c | 2 +- src/openrct2/world/scenery.c | 2 +- src/openrct2/world/scenery.h | 2 +- src/openrct2/world/sprite.c | 2 +- src/openrct2/world/sprite.h | 2 +- src/openrct2/world/tile_inspector.h | 2 +- src/openrct2/world/wall.cpp | 2 +- src/openrct2/world/water.h | 2 +- test/testpaint/FunctionCall.cpp | 2 +- test/testpaint/FunctionCall.hpp | 2 +- test/testpaint/GeneralSupportHeightCall.cpp | 2 +- test/testpaint/GeneralSupportHeightCall.hpp | 2 +- test/testpaint/PaintIntercept.cpp | 2 +- test/testpaint/PaintIntercept.hpp | 2 +- test/testpaint/Printer.cpp | 2 +- test/testpaint/Printer.hpp | 2 +- test/testpaint/SegmentSupportHeightCall.cpp | 2 +- test/testpaint/SegmentSupportHeightCall.hpp | 2 +- test/testpaint/SideTunnelCall.cpp | 2 +- test/testpaint/SideTunnelCall.hpp | 2 +- test/testpaint/String.cpp | 2 +- test/testpaint/String.hpp | 2 +- test/testpaint/TestPaint.cpp | 2 +- test/testpaint/TestPaint.hpp | 2 +- test/testpaint/TestTrack.cpp | 2 +- test/testpaint/TestTrack.hpp | 2 +- test/testpaint/Utils.cpp | 2 +- test/testpaint/Utils.hpp | 2 +- test/testpaint/VerticalTunnelCall.cpp | 2 +- test/testpaint/VerticalTunnelCall.hpp | 2 +- test/testpaint/compat.c | 2 +- test/testpaint/data.c | 2 +- test/testpaint/data.h | 2 +- test/testpaint/generate.cpp | 4 ++-- test/testpaint/main.cpp | 2 +- 576 files changed, 577 insertions(+), 577 deletions(-) diff --git a/src/openrct2-cli/CMakeLists.txt b/src/openrct2-cli/CMakeLists.txt index a51cd6f22a..4f9f97d400 100644 --- a/src/openrct2-cli/CMakeLists.txt +++ b/src/openrct2-cli/CMakeLists.txt @@ -1,4 +1,4 @@ -# CMAKE project for openrct2-cli (CLI-only build of OpenRCT2) +# CMAKE project for openrct2-cli (CLI-only build of OpenRCT2) cmake_minimum_required(VERSION 2.6) if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") diff --git a/src/openrct2-dll/openrct2-dll.cpp b/src/openrct2-dll/openrct2-dll.cpp index 26d67061ad..b74e5af904 100644 --- a/src/openrct2-dll/openrct2-dll.cpp +++ b/src/openrct2-dll/openrct2-dll.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/CursorData.cpp b/src/openrct2-ui/CursorData.cpp index 2015f5d88b..b6e6481995 100644 --- a/src/openrct2-ui/CursorData.cpp +++ b/src/openrct2-ui/CursorData.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/CursorRepository.cpp b/src/openrct2-ui/CursorRepository.cpp index fc0a973e84..1b798012bf 100644 --- a/src/openrct2-ui/CursorRepository.cpp +++ b/src/openrct2-ui/CursorRepository.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/CursorRepository.h b/src/openrct2-ui/CursorRepository.h index 9a54c5ad30..dba0140c18 100644 --- a/src/openrct2-ui/CursorRepository.h +++ b/src/openrct2-ui/CursorRepository.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/SDLException.h b/src/openrct2-ui/SDLException.h index 9567a106d8..260a7612a5 100644 --- a/src/openrct2-ui/SDLException.h +++ b/src/openrct2-ui/SDLException.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/TextComposition.cpp b/src/openrct2-ui/TextComposition.cpp index e788c5ba60..5318cd17b7 100644 --- a/src/openrct2-ui/TextComposition.cpp +++ b/src/openrct2-ui/TextComposition.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/TextComposition.h b/src/openrct2-ui/TextComposition.h index e342723eca..eb9686a347 100644 --- a/src/openrct2-ui/TextComposition.h +++ b/src/openrct2-ui/TextComposition.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp index 5276f4c04d..fa403c25db 100644 --- a/src/openrct2-ui/Ui.cpp +++ b/src/openrct2-ui/Ui.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 5d6f4bb129..4a2ab96aa1 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/UiContext.Win32.cpp b/src/openrct2-ui/UiContext.Win32.cpp index de9c00f1d8..8db8cc49c3 100644 --- a/src/openrct2-ui/UiContext.Win32.cpp +++ b/src/openrct2-ui/UiContext.Win32.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 2ddabd104c..2facbf5a72 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h index f713d76596..d955df3097 100644 --- a/src/openrct2-ui/UiContext.h +++ b/src/openrct2-ui/UiContext.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/UiContext.macOS.mm b/src/openrct2-ui/UiContext.macOS.mm index 4c622775cb..5fb16e46aa 100644 --- a/src/openrct2-ui/UiContext.macOS.mm +++ b/src/openrct2-ui/UiContext.macOS.mm @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/audio/AudioChannel.cpp b/src/openrct2-ui/audio/AudioChannel.cpp index f92cfab767..b11aae2845 100644 --- a/src/openrct2-ui/audio/AudioChannel.cpp +++ b/src/openrct2-ui/audio/AudioChannel.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/audio/AudioContext.cpp b/src/openrct2-ui/audio/AudioContext.cpp index bf66fd90d8..8affc4378c 100644 --- a/src/openrct2-ui/audio/AudioContext.cpp +++ b/src/openrct2-ui/audio/AudioContext.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/audio/AudioFormat.h b/src/openrct2-ui/audio/AudioFormat.h index fb31ab503d..bd57a695a0 100644 --- a/src/openrct2-ui/audio/AudioFormat.h +++ b/src/openrct2-ui/audio/AudioFormat.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/audio/AudioMixer.cpp b/src/openrct2-ui/audio/AudioMixer.cpp index 897d83a903..41a773e5f1 100644 --- a/src/openrct2-ui/audio/AudioMixer.cpp +++ b/src/openrct2-ui/audio/AudioMixer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/audio/FileAudioSource.cpp b/src/openrct2-ui/audio/FileAudioSource.cpp index 498e26aabd..8a5eab1726 100644 --- a/src/openrct2-ui/audio/FileAudioSource.cpp +++ b/src/openrct2-ui/audio/FileAudioSource.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/audio/MemoryAudioSource.cpp b/src/openrct2-ui/audio/MemoryAudioSource.cpp index 2fbb152b95..d439ff306a 100644 --- a/src/openrct2-ui/audio/MemoryAudioSource.cpp +++ b/src/openrct2-ui/audio/MemoryAudioSource.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/DrawingEngines.h b/src/openrct2-ui/drawing/engines/DrawingEngines.h index 668ba596e7..e09cf62ba8 100644 --- a/src/openrct2-ui/drawing/engines/DrawingEngines.h +++ b/src/openrct2-ui/drawing/engines/DrawingEngines.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp index 3f967475b2..5e8eff2d15 100644 --- a/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/SoftwareDrawingEngine.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.cpp b/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.cpp index 108cb3bdf4..8148283d02 100644 --- a/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.h b/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.h index d1757b4bc4..54bc51f1ac 100644 --- a/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.h +++ b/src/openrct2-ui/drawing/engines/opengl/CopyFramebufferShader.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h b/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h index 46833b9e23..17d55f4660 100644 --- a/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h +++ b/src/openrct2-ui/drawing/engines/opengl/DrawCommands.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.cpp b/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.cpp index bc7277d2e6..824a40f582 100644 --- a/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.h b/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.h index 84f287c243..862624f604 100644 --- a/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.h +++ b/src/openrct2-ui/drawing/engines/opengl/DrawImageShader.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.cpp b/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.cpp index 24ec7f6b40..87e0e58ca3 100644 --- a/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.h b/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.h index 38c68a05e0..d2b69d761c 100644 --- a/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.h +++ b/src/openrct2-ui/drawing/engines/opengl/DrawLineShader.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/FillRectShader.cpp b/src/openrct2-ui/drawing/engines/opengl/FillRectShader.cpp index 47b4e88f45..5fc94b118a 100644 --- a/src/openrct2-ui/drawing/engines/opengl/FillRectShader.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/FillRectShader.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/FillRectShader.h b/src/openrct2-ui/drawing/engines/opengl/FillRectShader.h index 5d54d3c428..f32a60af19 100644 --- a/src/openrct2-ui/drawing/engines/opengl/FillRectShader.h +++ b/src/openrct2-ui/drawing/engines/opengl/FillRectShader.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h b/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h index ddaa0ddb2d..515e73a5cb 100644 --- a/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h +++ b/src/openrct2-ui/drawing/engines/opengl/GLSLTypes.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp index eb6ebb7b82..52ca07a75c 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h index 9d112f7897..bb505a46e6 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLAPI.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index 7cc0657692..5f80b7fd2f 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp index 0e7e284247..9aa2631a8f 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h index 855cc57de3..fb474605be 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLFramebuffer.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp index 7aede03d5a..f068e3e32f 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h index 9c06cab655..16cf496693 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLShaderProgram.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.cpp b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.cpp index f3567d09e7..6c3fee2881 100644 --- a/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h index d520689e2f..44fc3776b3 100644 --- a/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h +++ b/src/openrct2-ui/drawing/engines/opengl/SwapFramebuffer.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp b/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp index 8aba570172..a71ba47f10 100644 --- a/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-ui/drawing/engines/opengl/TextureCache.h b/src/openrct2-ui/drawing/engines/opengl/TextureCache.h index 6c39fd4b95..80907bb241 100644 --- a/src/openrct2-ui/drawing/engines/opengl/TextureCache.h +++ b/src/openrct2-ui/drawing/engines/opengl/TextureCache.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2-win/openrct2-win.cpp b/src/openrct2-win/openrct2-win.cpp index 24084a6c27..16d8b9818c 100644 --- a/src/openrct2-win/openrct2-win.cpp +++ b/src/openrct2-win/openrct2-win.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index a53270e67f..3e248768bf 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 947b7a1dbd..2aac65fce5 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/FileClassifier.cpp b/src/openrct2/FileClassifier.cpp index fa297b40e4..d10dd82e79 100644 --- a/src/openrct2/FileClassifier.cpp +++ b/src/openrct2/FileClassifier.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/FileClassifier.h b/src/openrct2/FileClassifier.h index daefcc5537..ac9e29c600 100644 --- a/src/openrct2/FileClassifier.h +++ b/src/openrct2/FileClassifier.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/Imaging.cpp b/src/openrct2/Imaging.cpp index d7db91d385..161ed8eb32 100644 --- a/src/openrct2/Imaging.cpp +++ b/src/openrct2/Imaging.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/Imaging.h b/src/openrct2/Imaging.h index f2fe5477a7..268c6a71fe 100644 --- a/src/openrct2/Imaging.h +++ b/src/openrct2/Imaging.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/OpenRCT2.cpp b/src/openrct2/OpenRCT2.cpp index 7edbdeb157..8f2ffce22d 100644 --- a/src/openrct2/OpenRCT2.cpp +++ b/src/openrct2/OpenRCT2.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/OpenRCT2.h b/src/openrct2/OpenRCT2.h index f1305c8c40..bf4150b6da 100644 --- a/src/openrct2/OpenRCT2.h +++ b/src/openrct2/OpenRCT2.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ParkImporter.cpp b/src/openrct2/ParkImporter.cpp index dea4b859cb..d3828563ef 100644 --- a/src/openrct2/ParkImporter.cpp +++ b/src/openrct2/ParkImporter.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ParkImporter.h b/src/openrct2/ParkImporter.h index eb9957fa46..409336ee7b 100644 --- a/src/openrct2/ParkImporter.h +++ b/src/openrct2/ParkImporter.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/PlatformEnvironment.cpp b/src/openrct2/PlatformEnvironment.cpp index 63da8406ec..3194cfedbe 100644 --- a/src/openrct2/PlatformEnvironment.cpp +++ b/src/openrct2/PlatformEnvironment.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/PlatformEnvironment.h b/src/openrct2/PlatformEnvironment.h index b4eb820b9e..0f4683053a 100644 --- a/src/openrct2/PlatformEnvironment.h +++ b/src/openrct2/PlatformEnvironment.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/Version.cpp b/src/openrct2/Version.cpp index fb66a11595..4b8901d4ad 100644 --- a/src/openrct2/Version.cpp +++ b/src/openrct2/Version.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/Version.h b/src/openrct2/Version.h index 4906830b11..009024a232 100644 --- a/src/openrct2/Version.h +++ b/src/openrct2/Version.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/AudioChannel.h b/src/openrct2/audio/AudioChannel.h index f5ed6f3998..5b65fcd4c7 100644 --- a/src/openrct2/audio/AudioChannel.h +++ b/src/openrct2/audio/AudioChannel.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/AudioContext.h b/src/openrct2/audio/AudioContext.h index bf13391c00..31d77c7dd5 100644 --- a/src/openrct2/audio/AudioContext.h +++ b/src/openrct2/audio/AudioContext.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/AudioMixer.cpp b/src/openrct2/audio/AudioMixer.cpp index ec4c060dbf..41039b990f 100644 --- a/src/openrct2/audio/AudioMixer.cpp +++ b/src/openrct2/audio/AudioMixer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/AudioMixer.h b/src/openrct2/audio/AudioMixer.h index 1a9bbd2d3b..233e78533f 100644 --- a/src/openrct2/audio/AudioMixer.h +++ b/src/openrct2/audio/AudioMixer.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/AudioSource.h b/src/openrct2/audio/AudioSource.h index 52d067d0a0..5302dab68e 100644 --- a/src/openrct2/audio/AudioSource.h +++ b/src/openrct2/audio/AudioSource.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/NullAudioSource.cpp b/src/openrct2/audio/NullAudioSource.cpp index 4a615ad05d..f396d7236a 100644 --- a/src/openrct2/audio/NullAudioSource.cpp +++ b/src/openrct2/audio/NullAudioSource.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/audio.cpp b/src/openrct2/audio/audio.cpp index fa0f8babee..e26e1750e4 100644 --- a/src/openrct2/audio/audio.cpp +++ b/src/openrct2/audio/audio.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/audio/audio.h b/src/openrct2/audio/audio.h index 537b33d324..9f161876bd 100644 --- a/src/openrct2/audio/audio.h +++ b/src/openrct2/audio/audio.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cheats.c b/src/openrct2/cheats.c index 4523f5b369..237f05b343 100644 --- a/src/openrct2/cheats.c +++ b/src/openrct2/cheats.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cheats.h b/src/openrct2/cheats.h index c44421c6c2..917840e50c 100644 --- a/src/openrct2/cheats.h +++ b/src/openrct2/cheats.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline/CommandLine.cpp b/src/openrct2/cmdline/CommandLine.cpp index dae2f01696..918da0d23c 100644 --- a/src/openrct2/cmdline/CommandLine.cpp +++ b/src/openrct2/cmdline/CommandLine.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline/CommandLine.hpp b/src/openrct2/cmdline/CommandLine.hpp index 2014326da6..d267462532 100644 --- a/src/openrct2/cmdline/CommandLine.hpp +++ b/src/openrct2/cmdline/CommandLine.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline/ConvertCommand.cpp b/src/openrct2/cmdline/ConvertCommand.cpp index c93c723407..3548b21773 100644 --- a/src/openrct2/cmdline/ConvertCommand.cpp +++ b/src/openrct2/cmdline/ConvertCommand.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline/RootCommands.cpp b/src/openrct2/cmdline/RootCommands.cpp index 1eb9bc722d..43b35c89e1 100644 --- a/src/openrct2/cmdline/RootCommands.cpp +++ b/src/openrct2/cmdline/RootCommands.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline/ScreenshotCommands.cpp b/src/openrct2/cmdline/ScreenshotCommands.cpp index 53bfc12c50..ab02eca0f9 100644 --- a/src/openrct2/cmdline/ScreenshotCommands.cpp +++ b/src/openrct2/cmdline/ScreenshotCommands.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline/SpriteCommands.cpp b/src/openrct2/cmdline/SpriteCommands.cpp index 52758066c0..25a272edb9 100644 --- a/src/openrct2/cmdline/SpriteCommands.cpp +++ b/src/openrct2/cmdline/SpriteCommands.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline/UriHandler.cpp b/src/openrct2/cmdline/UriHandler.cpp index 3890c76daa..51f386d503 100644 --- a/src/openrct2/cmdline/UriHandler.cpp +++ b/src/openrct2/cmdline/UriHandler.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline_sprite.c b/src/openrct2/cmdline_sprite.c index 9d2588c416..68661d83e7 100644 --- a/src/openrct2/cmdline_sprite.c +++ b/src/openrct2/cmdline_sprite.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/cmdline_sprite.h b/src/openrct2/cmdline_sprite.h index 09d3be3075..7f52265f80 100644 --- a/src/openrct2/cmdline_sprite.h +++ b/src/openrct2/cmdline_sprite.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/common.h b/src/openrct2/common.h index 2aae3fbad9..7305635a43 100644 --- a/src/openrct2/common.h +++ b/src/openrct2/common.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index 8c7d2d345b..b846ebaa46 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/Config.h b/src/openrct2/config/Config.h index 76eeba1757..bcaafa6623 100644 --- a/src/openrct2/config/Config.h +++ b/src/openrct2/config/Config.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/ConfigEnum.hpp b/src/openrct2/config/ConfigEnum.hpp index b29769f785..10b280ecae 100644 --- a/src/openrct2/config/ConfigEnum.hpp +++ b/src/openrct2/config/ConfigEnum.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/IniReader.cpp b/src/openrct2/config/IniReader.cpp index c668165d84..6fe7caf10e 100644 --- a/src/openrct2/config/IniReader.cpp +++ b/src/openrct2/config/IniReader.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/IniReader.hpp b/src/openrct2/config/IniReader.hpp index e5fee1c671..ff01b20e15 100644 --- a/src/openrct2/config/IniReader.hpp +++ b/src/openrct2/config/IniReader.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/IniWriter.cpp b/src/openrct2/config/IniWriter.cpp index e846018ed3..9b0d67f2ea 100644 --- a/src/openrct2/config/IniWriter.cpp +++ b/src/openrct2/config/IniWriter.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/IniWriter.hpp b/src/openrct2/config/IniWriter.hpp index 434d710116..31f2d5a01a 100644 --- a/src/openrct2/config/IniWriter.hpp +++ b/src/openrct2/config/IniWriter.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/config/KeyboardShortcuts.cpp b/src/openrct2/config/KeyboardShortcuts.cpp index 517344405b..797c2bc9c7 100644 --- a/src/openrct2/config/KeyboardShortcuts.cpp +++ b/src/openrct2/config/KeyboardShortcuts.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Collections.hpp b/src/openrct2/core/Collections.hpp index 5775e57718..5aa8f3bc4d 100644 --- a/src/openrct2/core/Collections.hpp +++ b/src/openrct2/core/Collections.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Console.cpp b/src/openrct2/core/Console.cpp index d9d90b1bf0..2f7de0f5e8 100644 --- a/src/openrct2/core/Console.cpp +++ b/src/openrct2/core/Console.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Console.hpp b/src/openrct2/core/Console.hpp index a763e6a056..bb7d69468c 100644 --- a/src/openrct2/core/Console.hpp +++ b/src/openrct2/core/Console.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Diagnostics.cpp b/src/openrct2/core/Diagnostics.cpp index 1d2c94941f..9ef48d0921 100644 --- a/src/openrct2/core/Diagnostics.cpp +++ b/src/openrct2/core/Diagnostics.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Diagnostics.hpp b/src/openrct2/core/Diagnostics.hpp index b271a6da4f..bd1b7c2515 100644 --- a/src/openrct2/core/Diagnostics.hpp +++ b/src/openrct2/core/Diagnostics.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Exception.hpp b/src/openrct2/core/Exception.hpp index 3446499e75..382c58c4b0 100644 --- a/src/openrct2/core/Exception.hpp +++ b/src/openrct2/core/Exception.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/File.cpp b/src/openrct2/core/File.cpp index db6b6457d0..93f92f0795 100644 --- a/src/openrct2/core/File.cpp +++ b/src/openrct2/core/File.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/File.h b/src/openrct2/core/File.h index 991a4addf7..3029838021 100644 --- a/src/openrct2/core/File.h +++ b/src/openrct2/core/File.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/FileScanner.cpp b/src/openrct2/core/FileScanner.cpp index afce2fce62..1d97715537 100644 --- a/src/openrct2/core/FileScanner.cpp +++ b/src/openrct2/core/FileScanner.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/FileScanner.h b/src/openrct2/core/FileScanner.h index aa92a57b29..ce9afab192 100644 --- a/src/openrct2/core/FileScanner.h +++ b/src/openrct2/core/FileScanner.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/FileStream.hpp b/src/openrct2/core/FileStream.hpp index 683540308e..6a64a99fc1 100644 --- a/src/openrct2/core/FileStream.hpp +++ b/src/openrct2/core/FileStream.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Guard.cpp b/src/openrct2/core/Guard.cpp index 1754d0ea35..bfddbd121e 100644 --- a/src/openrct2/core/Guard.cpp +++ b/src/openrct2/core/Guard.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Guard.hpp b/src/openrct2/core/Guard.hpp index 9c2c397fe8..11b819d441 100644 --- a/src/openrct2/core/Guard.hpp +++ b/src/openrct2/core/Guard.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/IStream.cpp b/src/openrct2/core/IStream.cpp index 423b41df59..e9b49d96ac 100644 --- a/src/openrct2/core/IStream.cpp +++ b/src/openrct2/core/IStream.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/IStream.hpp b/src/openrct2/core/IStream.hpp index fa3f795d67..1be8d4b3ff 100644 --- a/src/openrct2/core/IStream.hpp +++ b/src/openrct2/core/IStream.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Json.cpp b/src/openrct2/core/Json.cpp index e546aa9bcf..93c4669edd 100644 --- a/src/openrct2/core/Json.cpp +++ b/src/openrct2/core/Json.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Json.hpp b/src/openrct2/core/Json.hpp index 9480c5f032..726b2f00e4 100644 --- a/src/openrct2/core/Json.hpp +++ b/src/openrct2/core/Json.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Math.hpp b/src/openrct2/core/Math.hpp index 83d48fa997..713cf3f1a8 100644 --- a/src/openrct2/core/Math.hpp +++ b/src/openrct2/core/Math.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Memory.hpp b/src/openrct2/core/Memory.hpp index d4a29992bf..de702c27cf 100644 --- a/src/openrct2/core/Memory.hpp +++ b/src/openrct2/core/Memory.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/MemoryStream.cpp b/src/openrct2/core/MemoryStream.cpp index 9a7f66cd31..01877e30f3 100644 --- a/src/openrct2/core/MemoryStream.cpp +++ b/src/openrct2/core/MemoryStream.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/MemoryStream.h b/src/openrct2/core/MemoryStream.h index 81c6b64082..89439e646a 100644 --- a/src/openrct2/core/MemoryStream.h +++ b/src/openrct2/core/MemoryStream.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Nullable.hpp b/src/openrct2/core/Nullable.hpp index 869d6d8ebe..4732af9ebe 100644 --- a/src/openrct2/core/Nullable.hpp +++ b/src/openrct2/core/Nullable.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 849b78a50d..81c299686f 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Path.hpp b/src/openrct2/core/Path.hpp index b2abb9ec73..220c3046eb 100644 --- a/src/openrct2/core/Path.hpp +++ b/src/openrct2/core/Path.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Registration.hpp b/src/openrct2/core/Registration.hpp index de8ac29ea1..99e3657166 100644 --- a/src/openrct2/core/Registration.hpp +++ b/src/openrct2/core/Registration.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/String.cpp b/src/openrct2/core/String.cpp index 7976ae1b6f..650bbfca28 100644 --- a/src/openrct2/core/String.cpp +++ b/src/openrct2/core/String.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/String.hpp b/src/openrct2/core/String.hpp index a02423fc32..89459e59ed 100644 --- a/src/openrct2/core/String.hpp +++ b/src/openrct2/core/String.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/StringBuilder.hpp b/src/openrct2/core/StringBuilder.hpp index d34430b3d5..84bdea8833 100644 --- a/src/openrct2/core/StringBuilder.hpp +++ b/src/openrct2/core/StringBuilder.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/StringReader.hpp b/src/openrct2/core/StringReader.hpp index 0cf487a8c8..25db684067 100644 --- a/src/openrct2/core/StringReader.hpp +++ b/src/openrct2/core/StringReader.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Util.hpp b/src/openrct2/core/Util.hpp index 251a0b4514..91bedd9217 100644 --- a/src/openrct2/core/Util.hpp +++ b/src/openrct2/core/Util.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Zip.cpp b/src/openrct2/core/Zip.cpp index 4a5ad78495..ebee59bc2d 100644 --- a/src/openrct2/core/Zip.cpp +++ b/src/openrct2/core/Zip.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/Zip.h b/src/openrct2/core/Zip.h index 677110e78c..8d3e85efd0 100644 --- a/src/openrct2/core/Zip.h +++ b/src/openrct2/core/Zip.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/textinputbuffer.c b/src/openrct2/core/textinputbuffer.c index 371c11c10c..a279e2a1b0 100644 --- a/src/openrct2/core/textinputbuffer.c +++ b/src/openrct2/core/textinputbuffer.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/core/textinputbuffer.h b/src/openrct2/core/textinputbuffer.h index 787473609f..0f11142a63 100644 --- a/src/openrct2/core/textinputbuffer.h +++ b/src/openrct2/core/textinputbuffer.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/diagnostic.c b/src/openrct2/diagnostic.c index 10e9a8466a..7eaf638578 100644 --- a/src/openrct2/diagnostic.c +++ b/src/openrct2/diagnostic.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/diagnostic.h b/src/openrct2/diagnostic.h index 0df941c6b9..115e7b9e89 100644 --- a/src/openrct2/diagnostic.h +++ b/src/openrct2/diagnostic.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/IDrawingContext.h b/src/openrct2/drawing/IDrawingContext.h index 69287c003e..b440b01bf1 100644 --- a/src/openrct2/drawing/IDrawingContext.h +++ b/src/openrct2/drawing/IDrawingContext.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/IDrawingEngine.h b/src/openrct2/drawing/IDrawingEngine.h index 9ed9d61a7e..10e7043681 100644 --- a/src/openrct2/drawing/IDrawingEngine.h +++ b/src/openrct2/drawing/IDrawingEngine.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/Image.cpp b/src/openrct2/drawing/Image.cpp index 20cbf57914..54bab8d2c9 100644 --- a/src/openrct2/drawing/Image.cpp +++ b/src/openrct2/drawing/Image.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index c7d8629f76..14feacd67c 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/NewDrawing.h b/src/openrct2/drawing/NewDrawing.h index e37eb2fd5b..30ef3ea140 100644 --- a/src/openrct2/drawing/NewDrawing.h +++ b/src/openrct2/drawing/NewDrawing.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/Rain.cpp b/src/openrct2/drawing/Rain.cpp index b082144bd8..a4361c6ebc 100644 --- a/src/openrct2/drawing/Rain.cpp +++ b/src/openrct2/drawing/Rain.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/Rain.h b/src/openrct2/drawing/Rain.h index 6c07fa7f3d..97bfb60c91 100644 --- a/src/openrct2/drawing/Rain.h +++ b/src/openrct2/drawing/Rain.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/drawing.c b/src/openrct2/drawing/drawing.c index c5a6b2875b..0b73f6eac7 100644 --- a/src/openrct2/drawing/drawing.c +++ b/src/openrct2/drawing/drawing.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/drawing.h b/src/openrct2/drawing/drawing.h index 37a11bc9a1..4c33af205b 100644 --- a/src/openrct2/drawing/drawing.h +++ b/src/openrct2/drawing/drawing.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/drawing_fast.cpp b/src/openrct2/drawing/drawing_fast.cpp index 13f309db45..9f4a173fcc 100644 --- a/src/openrct2/drawing/drawing_fast.cpp +++ b/src/openrct2/drawing/drawing_fast.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/font.c b/src/openrct2/drawing/font.c index 59fd17d2d6..a298a581e0 100644 --- a/src/openrct2/drawing/font.c +++ b/src/openrct2/drawing/font.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/font.h b/src/openrct2/drawing/font.h index 69a4783c01..d03a81ac50 100644 --- a/src/openrct2/drawing/font.h +++ b/src/openrct2/drawing/font.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/lightfx.c b/src/openrct2/drawing/lightfx.c index 447f8189ca..6dca882e5b 100644 --- a/src/openrct2/drawing/lightfx.c +++ b/src/openrct2/drawing/lightfx.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/lightfx.h b/src/openrct2/drawing/lightfx.h index 1d59bbfa12..ee26f37413 100644 --- a/src/openrct2/drawing/lightfx.h +++ b/src/openrct2/drawing/lightfx.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/line.c b/src/openrct2/drawing/line.c index bad30e151b..8386a7da5c 100644 --- a/src/openrct2/drawing/line.c +++ b/src/openrct2/drawing/line.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/rect.c b/src/openrct2/drawing/rect.c index 0d1c2efd62..7b6458b200 100644 --- a/src/openrct2/drawing/rect.c +++ b/src/openrct2/drawing/rect.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/scrolling_text.c b/src/openrct2/drawing/scrolling_text.c index 746b8fd6ad..2fac26f53e 100644 --- a/src/openrct2/drawing/scrolling_text.c +++ b/src/openrct2/drawing/scrolling_text.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/sprite.cpp b/src/openrct2/drawing/sprite.cpp index 6a19d55121..2d886a9d1f 100644 --- a/src/openrct2/drawing/sprite.cpp +++ b/src/openrct2/drawing/sprite.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/drawing/string.c b/src/openrct2/drawing/string.c index 22c2733cdd..6b83c5556d 100644 --- a/src/openrct2/drawing/string.c +++ b/src/openrct2/drawing/string.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/editor.c b/src/openrct2/editor.c index 8799657887..7a0dd10d0e 100644 --- a/src/openrct2/editor.c +++ b/src/openrct2/editor.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/editor.h b/src/openrct2/editor.h index e6f0eeff45..5880ba600d 100644 --- a/src/openrct2/editor.h +++ b/src/openrct2/editor.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/game.c b/src/openrct2/game.c index dcc2e839ee..2a890b3392 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/game.h b/src/openrct2/game.h index fe41d82d94..f932ea69ec 100644 --- a/src/openrct2/game.h +++ b/src/openrct2/game.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/input.c b/src/openrct2/input.c index cf6f483450..285faf0474 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/input.h b/src/openrct2/input.h index 423e16fa20..9cbd3caedd 100644 --- a/src/openrct2/input.h +++ b/src/openrct2/input.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/Cursors.h b/src/openrct2/interface/Cursors.h index 125d1d9921..e70da4adb3 100644 --- a/src/openrct2/interface/Cursors.h +++ b/src/openrct2/interface/Cursors.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/Fonts.cpp b/src/openrct2/interface/Fonts.cpp index 79149cfab6..f241bf89ac 100644 --- a/src/openrct2/interface/Fonts.cpp +++ b/src/openrct2/interface/Fonts.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright(c) 2014 - 2016 OpenRCT2 Developers +#pragma region Copyright(c) 2014 - 2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/Fonts.h b/src/openrct2/interface/Fonts.h index 7ae6308317..0fe68a86ee 100644 --- a/src/openrct2/interface/Fonts.h +++ b/src/openrct2/interface/Fonts.h @@ -1,4 +1,4 @@ -#pragma region Copyright(c) 2014 - 2016 OpenRCT2 Developers +#pragma region Copyright(c) 2014 - 2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/Theme.cpp b/src/openrct2/interface/Theme.cpp index 1e48c4b13f..cfb4f04a02 100644 --- a/src/openrct2/interface/Theme.cpp +++ b/src/openrct2/interface/Theme.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/chat.c b/src/openrct2/interface/chat.c index f87b663616..d075c3d978 100644 --- a/src/openrct2/interface/chat.c +++ b/src/openrct2/interface/chat.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/chat.h b/src/openrct2/interface/chat.h index 183bb47e53..e3c17febb1 100644 --- a/src/openrct2/interface/chat.h +++ b/src/openrct2/interface/chat.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/colour.c b/src/openrct2/interface/colour.c index ab2346e0c3..1d679141d8 100644 --- a/src/openrct2/interface/colour.c +++ b/src/openrct2/interface/colour.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/colour.h b/src/openrct2/interface/colour.h index 74efd9f51c..55df7dfd2c 100644 --- a/src/openrct2/interface/colour.h +++ b/src/openrct2/interface/colour.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index 3fd9da5bfc..fab364c663 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/console.h b/src/openrct2/interface/console.h index 3269aaaa12..6f138652e2 100644 --- a/src/openrct2/interface/console.h +++ b/src/openrct2/interface/console.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/graph.c b/src/openrct2/interface/graph.c index b060eb4e5f..36e6a1b8a9 100644 --- a/src/openrct2/interface/graph.c +++ b/src/openrct2/interface/graph.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/graph.h b/src/openrct2/interface/graph.h index 2a347ac6b8..f060754768 100644 --- a/src/openrct2/interface/graph.h +++ b/src/openrct2/interface/graph.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/keyboard_shortcut.c b/src/openrct2/interface/keyboard_shortcut.c index dc0e0f0399..82314f798e 100644 --- a/src/openrct2/interface/keyboard_shortcut.c +++ b/src/openrct2/interface/keyboard_shortcut.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/keyboard_shortcut.h b/src/openrct2/interface/keyboard_shortcut.h index c5fef75d31..81d41ec2c1 100644 --- a/src/openrct2/interface/keyboard_shortcut.h +++ b/src/openrct2/interface/keyboard_shortcut.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/screenshot.c b/src/openrct2/interface/screenshot.c index 19f5fd383b..881685272a 100644 --- a/src/openrct2/interface/screenshot.c +++ b/src/openrct2/interface/screenshot.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/screenshot.h b/src/openrct2/interface/screenshot.h index 4cb3f80ed7..2c99809e87 100644 --- a/src/openrct2/interface/screenshot.h +++ b/src/openrct2/interface/screenshot.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/themes.h b/src/openrct2/interface/themes.h index dbc659f6ff..45bad6b8d6 100644 --- a/src/openrct2/interface/themes.h +++ b/src/openrct2/interface/themes.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/viewport.c b/src/openrct2/interface/viewport.c index 6227ae75f1..0143283071 100644 --- a/src/openrct2/interface/viewport.c +++ b/src/openrct2/interface/viewport.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/viewport.h b/src/openrct2/interface/viewport.h index 1aa293f887..bccf15f1de 100644 --- a/src/openrct2/interface/viewport.h +++ b/src/openrct2/interface/viewport.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/viewport_interaction.c b/src/openrct2/interface/viewport_interaction.c index 7f62cf55e5..b93f98b90d 100644 --- a/src/openrct2/interface/viewport_interaction.c +++ b/src/openrct2/interface/viewport_interaction.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/widget.c b/src/openrct2/interface/widget.c index db6b4a7498..18e4b5cda9 100644 --- a/src/openrct2/interface/widget.c +++ b/src/openrct2/interface/widget.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/widget.h b/src/openrct2/interface/widget.h index 39a0b3771e..a301f9ce65 100644 --- a/src/openrct2/interface/widget.h +++ b/src/openrct2/interface/widget.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 52ba438b87..57bfbcaa63 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/interface/window.h b/src/openrct2/interface/window.h index 06d83fb840..9a8ee65326 100644 --- a/src/openrct2/interface/window.h +++ b/src/openrct2/interface/window.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/intro.c b/src/openrct2/intro.c index abd28d8c1b..4c020f284c 100644 --- a/src/openrct2/intro.c +++ b/src/openrct2/intro.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/intro.h b/src/openrct2/intro.h index 6d76818ffb..22fbd0c1c7 100644 --- a/src/openrct2/intro.h +++ b/src/openrct2/intro.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/LanguagePack.cpp b/src/openrct2/localisation/LanguagePack.cpp index a1848ad332..c0537eec0e 100644 --- a/src/openrct2/localisation/LanguagePack.cpp +++ b/src/openrct2/localisation/LanguagePack.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/LanguagePack.h b/src/openrct2/localisation/LanguagePack.h index ba4701f2f8..c108575b84 100644 --- a/src/openrct2/localisation/LanguagePack.h +++ b/src/openrct2/localisation/LanguagePack.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/convert.c b/src/openrct2/localisation/convert.c index 9df0b04db5..2b495f8005 100644 --- a/src/openrct2/localisation/convert.c +++ b/src/openrct2/localisation/convert.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/currency.c b/src/openrct2/localisation/currency.c index fdf512ec2b..d9cb122aa0 100644 --- a/src/openrct2/localisation/currency.c +++ b/src/openrct2/localisation/currency.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/currency.h b/src/openrct2/localisation/currency.h index bb6a7fe9aa..18efc2c535 100644 --- a/src/openrct2/localisation/currency.h +++ b/src/openrct2/localisation/currency.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/date.c b/src/openrct2/localisation/date.c index 432ba60bab..f395af514f 100644 --- a/src/openrct2/localisation/date.c +++ b/src/openrct2/localisation/date.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/date.h b/src/openrct2/localisation/date.h index 0b96e030ce..1a67ebcc8e 100644 --- a/src/openrct2/localisation/date.h +++ b/src/openrct2/localisation/date.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/format_codes.c b/src/openrct2/localisation/format_codes.c index 04d1688da7..6f5d7060a3 100644 --- a/src/openrct2/localisation/format_codes.c +++ b/src/openrct2/localisation/format_codes.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/format_codes.h b/src/openrct2/localisation/format_codes.h index b7b00b8184..2ae2468f48 100644 --- a/src/openrct2/localisation/format_codes.h +++ b/src/openrct2/localisation/format_codes.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/language.cpp b/src/openrct2/localisation/language.cpp index e45af5637f..1509ef9531 100644 --- a/src/openrct2/localisation/language.cpp +++ b/src/openrct2/localisation/language.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/language.h b/src/openrct2/localisation/language.h index 997ac1f876..8ac6058093 100644 --- a/src/openrct2/localisation/language.h +++ b/src/openrct2/localisation/language.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/localisation.c b/src/openrct2/localisation/localisation.c index 51211875b1..c6307b28ec 100644 --- a/src/openrct2/localisation/localisation.c +++ b/src/openrct2/localisation/localisation.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/localisation.h b/src/openrct2/localisation/localisation.h index e857a34143..46512a87e8 100644 --- a/src/openrct2/localisation/localisation.h +++ b/src/openrct2/localisation/localisation.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/real_names.c b/src/openrct2/localisation/real_names.c index 2dd7768821..f85d5940bd 100644 --- a/src/openrct2/localisation/real_names.c +++ b/src/openrct2/localisation/real_names.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/string_ids.h b/src/openrct2/localisation/string_ids.h index ba89735563..8a59097563 100644 --- a/src/openrct2/localisation/string_ids.h +++ b/src/openrct2/localisation/string_ids.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/user.c b/src/openrct2/localisation/user.c index d70a6cc94d..7440c57ad0 100644 --- a/src/openrct2/localisation/user.c +++ b/src/openrct2/localisation/user.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/user.h b/src/openrct2/localisation/user.h index ba3da2bbc6..5fe3ce3535 100644 --- a/src/openrct2/localisation/user.h +++ b/src/openrct2/localisation/user.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/localisation/utf8.c b/src/openrct2/localisation/utf8.c index d6730cebd2..0e219bf32d 100644 --- a/src/openrct2/localisation/utf8.c +++ b/src/openrct2/localisation/utf8.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/award.c b/src/openrct2/management/award.c index 0cc0c6f159..34dbeca8fe 100644 --- a/src/openrct2/management/award.c +++ b/src/openrct2/management/award.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/award.h b/src/openrct2/management/award.h index 354066340e..26e1165a32 100644 --- a/src/openrct2/management/award.h +++ b/src/openrct2/management/award.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/finance.c b/src/openrct2/management/finance.c index cca43cfd86..589a27f04e 100644 --- a/src/openrct2/management/finance.c +++ b/src/openrct2/management/finance.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/finance.h b/src/openrct2/management/finance.h index b02a885083..f846199dac 100644 --- a/src/openrct2/management/finance.h +++ b/src/openrct2/management/finance.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/marketing.c b/src/openrct2/management/marketing.c index 343f4872e3..a03d560241 100644 --- a/src/openrct2/management/marketing.c +++ b/src/openrct2/management/marketing.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/marketing.h b/src/openrct2/management/marketing.h index 5ecd403837..6a30b08131 100644 --- a/src/openrct2/management/marketing.h +++ b/src/openrct2/management/marketing.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/news_item.c b/src/openrct2/management/news_item.c index 85ffbec1cd..27a371ea1a 100644 --- a/src/openrct2/management/news_item.c +++ b/src/openrct2/management/news_item.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/news_item.h b/src/openrct2/management/news_item.h index dad5da1fff..c22d6f695d 100644 --- a/src/openrct2/management/news_item.h +++ b/src/openrct2/management/news_item.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/research.c b/src/openrct2/management/research.c index fdc6701753..099a9feb6f 100644 --- a/src/openrct2/management/research.c +++ b/src/openrct2/management/research.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/management/research.h b/src/openrct2/management/research.h index 47a7e0b77e..dc8257abb6 100644 --- a/src/openrct2/management/research.h +++ b/src/openrct2/management/research.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkAction.cpp b/src/openrct2/network/NetworkAction.cpp index a3d1c4cd57..a96bfe0916 100644 --- a/src/openrct2/network/NetworkAction.cpp +++ b/src/openrct2/network/NetworkAction.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkAction.h b/src/openrct2/network/NetworkAction.h index 148b0bb076..1ea9c2c442 100644 --- a/src/openrct2/network/NetworkAction.h +++ b/src/openrct2/network/NetworkAction.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkConnection.cpp b/src/openrct2/network/NetworkConnection.cpp index 811d0d139f..e08dafc06f 100644 --- a/src/openrct2/network/NetworkConnection.cpp +++ b/src/openrct2/network/NetworkConnection.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkConnection.h b/src/openrct2/network/NetworkConnection.h index 7fa5e2644f..1d40eca766 100644 --- a/src/openrct2/network/NetworkConnection.h +++ b/src/openrct2/network/NetworkConnection.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkGroup.cpp b/src/openrct2/network/NetworkGroup.cpp index d6e632a60e..07ce5c6862 100644 --- a/src/openrct2/network/NetworkGroup.cpp +++ b/src/openrct2/network/NetworkGroup.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkGroup.h b/src/openrct2/network/NetworkGroup.h index b26bf761a2..79d38ef634 100644 --- a/src/openrct2/network/NetworkGroup.h +++ b/src/openrct2/network/NetworkGroup.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkKey.cpp b/src/openrct2/network/NetworkKey.cpp index 5509bfbd69..a6b241a6fa 100644 --- a/src/openrct2/network/NetworkKey.cpp +++ b/src/openrct2/network/NetworkKey.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkKey.h b/src/openrct2/network/NetworkKey.h index 3955ee789b..938719d5e2 100644 --- a/src/openrct2/network/NetworkKey.h +++ b/src/openrct2/network/NetworkKey.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkPacket.cpp b/src/openrct2/network/NetworkPacket.cpp index 3c2cdea1da..87afdc6601 100644 --- a/src/openrct2/network/NetworkPacket.cpp +++ b/src/openrct2/network/NetworkPacket.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkPacket.h b/src/openrct2/network/NetworkPacket.h index e71519f56f..bebc8dde7f 100644 --- a/src/openrct2/network/NetworkPacket.h +++ b/src/openrct2/network/NetworkPacket.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkPlayer.cpp b/src/openrct2/network/NetworkPlayer.cpp index d18e269e6c..fe5312169e 100644 --- a/src/openrct2/network/NetworkPlayer.cpp +++ b/src/openrct2/network/NetworkPlayer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkPlayer.h b/src/openrct2/network/NetworkPlayer.h index 90c91cdfe2..631f08c4bc 100644 --- a/src/openrct2/network/NetworkPlayer.h +++ b/src/openrct2/network/NetworkPlayer.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkServerAdvertiser.cpp b/src/openrct2/network/NetworkServerAdvertiser.cpp index 3fd3440121..5fdfcd0cfd 100644 --- a/src/openrct2/network/NetworkServerAdvertiser.cpp +++ b/src/openrct2/network/NetworkServerAdvertiser.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkServerAdvertiser.h b/src/openrct2/network/NetworkServerAdvertiser.h index b72bb3f60e..90df8a8151 100644 --- a/src/openrct2/network/NetworkServerAdvertiser.h +++ b/src/openrct2/network/NetworkServerAdvertiser.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkTypes.h b/src/openrct2/network/NetworkTypes.h index 3e22b1c934..0f5e715315 100644 --- a/src/openrct2/network/NetworkTypes.h +++ b/src/openrct2/network/NetworkTypes.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkUser.cpp b/src/openrct2/network/NetworkUser.cpp index 2d3689bc13..1fa2343c31 100644 --- a/src/openrct2/network/NetworkUser.cpp +++ b/src/openrct2/network/NetworkUser.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/NetworkUser.h b/src/openrct2/network/NetworkUser.h index 0c31341b03..00d22bccbb 100644 --- a/src/openrct2/network/NetworkUser.h +++ b/src/openrct2/network/NetworkUser.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/ServerList.cpp b/src/openrct2/network/ServerList.cpp index 1f1f6d740e..21258289f7 100644 --- a/src/openrct2/network/ServerList.cpp +++ b/src/openrct2/network/ServerList.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/ServerList.h b/src/openrct2/network/ServerList.h index 5ce8277130..5da0d19916 100644 --- a/src/openrct2/network/ServerList.h +++ b/src/openrct2/network/ServerList.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/TcpSocket.cpp b/src/openrct2/network/TcpSocket.cpp index 0170296d5e..dcc17b9eeb 100644 --- a/src/openrct2/network/TcpSocket.cpp +++ b/src/openrct2/network/TcpSocket.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/TcpSocket.h b/src/openrct2/network/TcpSocket.h index a13df908c1..895928dd00 100644 --- a/src/openrct2/network/TcpSocket.h +++ b/src/openrct2/network/TcpSocket.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/http.cpp b/src/openrct2/network/http.cpp index 11de25c7fa..87c222a15a 100644 --- a/src/openrct2/network/http.cpp +++ b/src/openrct2/network/http.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/http.h b/src/openrct2/network/http.h index 842f4fe276..1384dbbf7d 100644 --- a/src/openrct2/network/http.h +++ b/src/openrct2/network/http.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/network.cpp b/src/openrct2/network/network.cpp index 73966301a3..336eb49809 100644 --- a/src/openrct2/network/network.cpp +++ b/src/openrct2/network/network.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 233040e3db..4ab6b7abc1 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/twitch.cpp b/src/openrct2/network/twitch.cpp index 4bf1357e51..43dab9ee8c 100644 --- a/src/openrct2/network/twitch.cpp +++ b/src/openrct2/network/twitch.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/network/twitch.h b/src/openrct2/network/twitch.h index 62232cd6cd..87dc80464e 100644 --- a/src/openrct2/network/twitch.h +++ b/src/openrct2/network/twitch.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object.h b/src/openrct2/object.h index d7b36b94f8..eaa00e9617 100644 --- a/src/openrct2/object.h +++ b/src/openrct2/object.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/BannerObject.cpp b/src/openrct2/object/BannerObject.cpp index fad952bf42..c078deba0e 100644 --- a/src/openrct2/object/BannerObject.cpp +++ b/src/openrct2/object/BannerObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/BannerObject.h b/src/openrct2/object/BannerObject.h index 256075dad8..5ffb72aa29 100644 --- a/src/openrct2/object/BannerObject.h +++ b/src/openrct2/object/BannerObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/EntranceObject.cpp b/src/openrct2/object/EntranceObject.cpp index 031a2ed70d..d3154e3c8e 100644 --- a/src/openrct2/object/EntranceObject.cpp +++ b/src/openrct2/object/EntranceObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/EntranceObject.h b/src/openrct2/object/EntranceObject.h index 8f35e4a55d..ae3a66734d 100644 --- a/src/openrct2/object/EntranceObject.h +++ b/src/openrct2/object/EntranceObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/FootpathItemObject.cpp b/src/openrct2/object/FootpathItemObject.cpp index b00614ee78..4de95dd058 100644 --- a/src/openrct2/object/FootpathItemObject.cpp +++ b/src/openrct2/object/FootpathItemObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/FootpathItemObject.h b/src/openrct2/object/FootpathItemObject.h index 6cbf7834e1..9d49fa4c81 100644 --- a/src/openrct2/object/FootpathItemObject.h +++ b/src/openrct2/object/FootpathItemObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/FootpathObject.cpp b/src/openrct2/object/FootpathObject.cpp index ac89f49a2d..454c91bd5c 100644 --- a/src/openrct2/object/FootpathObject.cpp +++ b/src/openrct2/object/FootpathObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/FootpathObject.h b/src/openrct2/object/FootpathObject.h index 913e75fda7..47bfdc789e 100644 --- a/src/openrct2/object/FootpathObject.h +++ b/src/openrct2/object/FootpathObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ImageTable.cpp b/src/openrct2/object/ImageTable.cpp index 2bf8bc8929..1d1bf866f5 100644 --- a/src/openrct2/object/ImageTable.cpp +++ b/src/openrct2/object/ImageTable.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ImageTable.h b/src/openrct2/object/ImageTable.h index 80f549d06f..235d649fdf 100644 --- a/src/openrct2/object/ImageTable.h +++ b/src/openrct2/object/ImageTable.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/LargeSceneryObject.cpp b/src/openrct2/object/LargeSceneryObject.cpp index 0d67e9c035..c9e220ecc5 100644 --- a/src/openrct2/object/LargeSceneryObject.cpp +++ b/src/openrct2/object/LargeSceneryObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/LargeSceneryObject.h b/src/openrct2/object/LargeSceneryObject.h index 9a8420d5b6..6f37879a1c 100644 --- a/src/openrct2/object/LargeSceneryObject.h +++ b/src/openrct2/object/LargeSceneryObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/Object.cpp b/src/openrct2/object/Object.cpp index dcd81f7650..4687973e12 100644 --- a/src/openrct2/object/Object.cpp +++ b/src/openrct2/object/Object.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/Object.h b/src/openrct2/object/Object.h index 2f585c31a9..5b4e8d66cf 100644 --- a/src/openrct2/object/Object.h +++ b/src/openrct2/object/Object.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ObjectFactory.cpp b/src/openrct2/object/ObjectFactory.cpp index f214b0b039..f8d3e05a6d 100644 --- a/src/openrct2/object/ObjectFactory.cpp +++ b/src/openrct2/object/ObjectFactory.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ObjectFactory.h b/src/openrct2/object/ObjectFactory.h index 455fa256b9..c8b1793f1d 100644 --- a/src/openrct2/object/ObjectFactory.h +++ b/src/openrct2/object/ObjectFactory.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ObjectManager.cpp b/src/openrct2/object/ObjectManager.cpp index 257f9f6bcf..0d3c5982a7 100644 --- a/src/openrct2/object/ObjectManager.cpp +++ b/src/openrct2/object/ObjectManager.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ObjectManager.h b/src/openrct2/object/ObjectManager.h index 6de0d1c559..9a823589c4 100644 --- a/src/openrct2/object/ObjectManager.h +++ b/src/openrct2/object/ObjectManager.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ObjectRepository.cpp b/src/openrct2/object/ObjectRepository.cpp index ddad3659b3..a2361c9327 100644 --- a/src/openrct2/object/ObjectRepository.cpp +++ b/src/openrct2/object/ObjectRepository.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/ObjectRepository.h b/src/openrct2/object/ObjectRepository.h index 9cbdb58820..0db506d28b 100644 --- a/src/openrct2/object/ObjectRepository.h +++ b/src/openrct2/object/ObjectRepository.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/RideObject.cpp b/src/openrct2/object/RideObject.cpp index e11373a323..d674e0cac4 100644 --- a/src/openrct2/object/RideObject.cpp +++ b/src/openrct2/object/RideObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/RideObject.h b/src/openrct2/object/RideObject.h index 53c461cb6b..70809b41b5 100644 --- a/src/openrct2/object/RideObject.h +++ b/src/openrct2/object/RideObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/SceneryGroupObject.cpp b/src/openrct2/object/SceneryGroupObject.cpp index f75acbd574..247d407694 100644 --- a/src/openrct2/object/SceneryGroupObject.cpp +++ b/src/openrct2/object/SceneryGroupObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/SceneryGroupObject.h b/src/openrct2/object/SceneryGroupObject.h index 0b59597021..1c2048b2c5 100644 --- a/src/openrct2/object/SceneryGroupObject.h +++ b/src/openrct2/object/SceneryGroupObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/SceneryObject.h b/src/openrct2/object/SceneryObject.h index 612079f221..0132dade98 100644 --- a/src/openrct2/object/SceneryObject.h +++ b/src/openrct2/object/SceneryObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/SmallSceneryObject.cpp b/src/openrct2/object/SmallSceneryObject.cpp index 4aa4ac61a4..7f32c5d97c 100644 --- a/src/openrct2/object/SmallSceneryObject.cpp +++ b/src/openrct2/object/SmallSceneryObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/SmallSceneryObject.h b/src/openrct2/object/SmallSceneryObject.h index 4bb2670697..754a0b6189 100644 --- a/src/openrct2/object/SmallSceneryObject.h +++ b/src/openrct2/object/SmallSceneryObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/StexObject.cpp b/src/openrct2/object/StexObject.cpp index 6f51124685..f702ab0767 100644 --- a/src/openrct2/object/StexObject.cpp +++ b/src/openrct2/object/StexObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/StexObject.h b/src/openrct2/object/StexObject.h index 4fae232558..0bc274bab7 100644 --- a/src/openrct2/object/StexObject.h +++ b/src/openrct2/object/StexObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/StringTable.cpp b/src/openrct2/object/StringTable.cpp index 8035eab470..8c76e1953b 100644 --- a/src/openrct2/object/StringTable.cpp +++ b/src/openrct2/object/StringTable.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/StringTable.h b/src/openrct2/object/StringTable.h index 5a74fa676f..9262e90289 100644 --- a/src/openrct2/object/StringTable.h +++ b/src/openrct2/object/StringTable.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/WallObject.cpp b/src/openrct2/object/WallObject.cpp index f204655b2b..b5c157c169 100644 --- a/src/openrct2/object/WallObject.cpp +++ b/src/openrct2/object/WallObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/WallObject.h b/src/openrct2/object/WallObject.h index c4dbe1eefb..fa8f208619 100644 --- a/src/openrct2/object/WallObject.h +++ b/src/openrct2/object/WallObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/WaterObject.cpp b/src/openrct2/object/WaterObject.cpp index 62a213500a..6811f47610 100644 --- a/src/openrct2/object/WaterObject.cpp +++ b/src/openrct2/object/WaterObject.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object/WaterObject.h b/src/openrct2/object/WaterObject.h index 816a194379..468a6c211a 100644 --- a/src/openrct2/object/WaterObject.h +++ b/src/openrct2/object/WaterObject.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/object_list.c b/src/openrct2/object_list.c index c9b6d97b67..90c8a1a1bb 100644 --- a/src/openrct2/object_list.c +++ b/src/openrct2/object_list.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/banner.c b/src/openrct2/paint/map_element/banner.c index 86c11a017b..d7e40d5b2e 100644 --- a/src/openrct2/paint/map_element/banner.c +++ b/src/openrct2/paint/map_element/banner.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/entrance.c b/src/openrct2/paint/map_element/entrance.c index 9f24b28ff2..ddc0dfd5d4 100644 --- a/src/openrct2/paint/map_element/entrance.c +++ b/src/openrct2/paint/map_element/entrance.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/fence.c b/src/openrct2/paint/map_element/fence.c index 0c4e8f8665..cd95203b4c 100644 --- a/src/openrct2/paint/map_element/fence.c +++ b/src/openrct2/paint/map_element/fence.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/map_element.c b/src/openrct2/paint/map_element/map_element.c index de035300cd..a9fbe9ea12 100644 --- a/src/openrct2/paint/map_element/map_element.c +++ b/src/openrct2/paint/map_element/map_element.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/map_element.h b/src/openrct2/paint/map_element/map_element.h index 329e06bc75..d3810e85ef 100644 --- a/src/openrct2/paint/map_element/map_element.h +++ b/src/openrct2/paint/map_element/map_element.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/path.c b/src/openrct2/paint/map_element/path.c index 09f7bb8f4e..af90f1aab0 100644 --- a/src/openrct2/paint/map_element/path.c +++ b/src/openrct2/paint/map_element/path.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/scenery.c b/src/openrct2/paint/map_element/scenery.c index 165821a3ee..5050c86a8f 100644 --- a/src/openrct2/paint/map_element/scenery.c +++ b/src/openrct2/paint/map_element/scenery.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/scenery_multiple.c b/src/openrct2/paint/map_element/scenery_multiple.c index 2f83176796..022359c4e7 100644 --- a/src/openrct2/paint/map_element/scenery_multiple.c +++ b/src/openrct2/paint/map_element/scenery_multiple.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/surface.c b/src/openrct2/paint/map_element/surface.c index 09ce04da48..7c615167ee 100644 --- a/src/openrct2/paint/map_element/surface.c +++ b/src/openrct2/paint/map_element/surface.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/map_element/surface.h b/src/openrct2/paint/map_element/surface.h index 1f9e1b3c98..21212ecc1b 100644 --- a/src/openrct2/paint/map_element/surface.h +++ b/src/openrct2/paint/map_element/surface.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/paint.c b/src/openrct2/paint/paint.c index c426510142..9eae6adc0d 100644 --- a/src/openrct2/paint/paint.c +++ b/src/openrct2/paint/paint.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/paint.h b/src/openrct2/paint/paint.h index 2defef1976..69f99964ee 100644 --- a/src/openrct2/paint/paint.h +++ b/src/openrct2/paint/paint.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/paint_helpers.c b/src/openrct2/paint/paint_helpers.c index bb51862499..2c5680f7da 100644 --- a/src/openrct2/paint/paint_helpers.c +++ b/src/openrct2/paint/paint_helpers.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/sprite/litter.c b/src/openrct2/paint/sprite/litter.c index 1a09a7fa59..a2f7a1a25d 100644 --- a/src/openrct2/paint/sprite/litter.c +++ b/src/openrct2/paint/sprite/litter.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/sprite/misc.c b/src/openrct2/paint/sprite/misc.c index 33dd7613fd..e8b5f81c6d 100644 --- a/src/openrct2/paint/sprite/misc.c +++ b/src/openrct2/paint/sprite/misc.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/sprite/peep.c b/src/openrct2/paint/sprite/peep.c index 78629cb7b7..2958faeca6 100644 --- a/src/openrct2/paint/sprite/peep.c +++ b/src/openrct2/paint/sprite/peep.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/sprite/sprite.c b/src/openrct2/paint/sprite/sprite.c index 3bbf720dba..13f48c555b 100644 --- a/src/openrct2/paint/sprite/sprite.c +++ b/src/openrct2/paint/sprite/sprite.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/sprite/sprite.h b/src/openrct2/paint/sprite/sprite.h index 13ce77a472..d0135c0df0 100644 --- a/src/openrct2/paint/sprite/sprite.h +++ b/src/openrct2/paint/sprite/sprite.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/supports.c b/src/openrct2/paint/supports.c index fa6de7f4f2..243ec9467e 100644 --- a/src/openrct2/paint/supports.c +++ b/src/openrct2/paint/supports.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/paint/supports.h b/src/openrct2/paint/supports.h index 19fc95148f..eee18069af 100644 --- a/src/openrct2/paint/supports.h +++ b/src/openrct2/paint/supports.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/peep/peep.c b/src/openrct2/peep/peep.c index 22769e79bd..1e2b66ed84 100644 --- a/src/openrct2/peep/peep.c +++ b/src/openrct2/peep/peep.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/peep/peep.h b/src/openrct2/peep/peep.h index 280ec6906f..55c651849a 100644 --- a/src/openrct2/peep/peep.h +++ b/src/openrct2/peep/peep.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/peep/peep_data.c b/src/openrct2/peep/peep_data.c index 44f57831d9..80116cdede 100644 --- a/src/openrct2/peep/peep_data.c +++ b/src/openrct2/peep/peep_data.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/peep/staff.c b/src/openrct2/peep/staff.c index 566b699f68..faf194f3df 100644 --- a/src/openrct2/peep/staff.c +++ b/src/openrct2/peep/staff.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/peep/staff.h b/src/openrct2/peep/staff.h index 888434852c..d22bbb1a68 100644 --- a/src/openrct2/peep/staff.h +++ b/src/openrct2/peep/staff.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/Platform2.cpp b/src/openrct2/platform/Platform2.cpp index da7ae58f59..959d168bdd 100644 --- a/src/openrct2/platform/Platform2.cpp +++ b/src/openrct2/platform/Platform2.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/Platform2.h b/src/openrct2/platform/Platform2.h index 41299ea1fe..223f5dadbb 100644 --- a/src/openrct2/platform/Platform2.h +++ b/src/openrct2/platform/Platform2.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/crash.cpp b/src/openrct2/platform/crash.cpp index 0a8c343f32..b4005a32af 100644 --- a/src/openrct2/platform/crash.cpp +++ b/src/openrct2/platform/crash.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/crash.h b/src/openrct2/platform/crash.h index 4825223a73..890da227d6 100644 --- a/src/openrct2/platform/crash.h +++ b/src/openrct2/platform/crash.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/linux.c b/src/openrct2/platform/linux.c index f6da9bf162..b5bb058f80 100644 --- a/src/openrct2/platform/linux.c +++ b/src/openrct2/platform/linux.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/macos.m b/src/openrct2/platform/macos.m index b8cbd08144..499fd74285 100644 --- a/src/openrct2/platform/macos.m +++ b/src/openrct2/platform/macos.m @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/platform.h b/src/openrct2/platform/platform.h index bbdf1c26b7..f8b3c7fa9c 100644 --- a/src/openrct2/platform/platform.h +++ b/src/openrct2/platform/platform.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/posix.c b/src/openrct2/platform/posix.c index 4b8e572c00..6f28541328 100644 --- a/src/openrct2/platform/posix.c +++ b/src/openrct2/platform/posix.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 72e95d7d4a..8ee5e3047d 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/platform/windows.c b/src/openrct2/platform/windows.c index 46954a5e63..2dda401bac 100644 --- a/src/openrct2/platform/windows.c +++ b/src/openrct2/platform/windows.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct1.c b/src/openrct2/rct1.c index 7ffeef30a7..f9211ad9b1 100644 --- a/src/openrct2/rct1.c +++ b/src/openrct2/rct1.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct1.h b/src/openrct2/rct1.h index 34b20bd5d5..d43e1bd225 100644 --- a/src/openrct2/rct1.h +++ b/src/openrct2/rct1.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index c96c3d0b63..411110d2c0 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct1/Tables.h b/src/openrct2/rct1/Tables.h index f5963f02e1..c996abaf4f 100644 --- a/src/openrct2/rct1/Tables.h +++ b/src/openrct2/rct1/Tables.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct1/tables.cpp b/src/openrct2/rct1/tables.cpp index 1867fc8d7b..cd1640398d 100644 --- a/src/openrct2/rct1/tables.cpp +++ b/src/openrct2/rct1/tables.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12.h b/src/openrct2/rct12.h index c11c039c3f..e87b143ff8 100644 --- a/src/openrct2/rct12.h +++ b/src/openrct2/rct12.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerChunk.cpp b/src/openrct2/rct12/SawyerChunk.cpp index b26d1cf987..4daf5ef196 100644 --- a/src/openrct2/rct12/SawyerChunk.cpp +++ b/src/openrct2/rct12/SawyerChunk.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerChunk.h b/src/openrct2/rct12/SawyerChunk.h index e425152d66..0c982bb170 100644 --- a/src/openrct2/rct12/SawyerChunk.h +++ b/src/openrct2/rct12/SawyerChunk.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerChunkReader.cpp b/src/openrct2/rct12/SawyerChunkReader.cpp index 63ce7e8d07..dc40291d2c 100644 --- a/src/openrct2/rct12/SawyerChunkReader.cpp +++ b/src/openrct2/rct12/SawyerChunkReader.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerChunkReader.h b/src/openrct2/rct12/SawyerChunkReader.h index be616a5fb9..0bd4766d92 100644 --- a/src/openrct2/rct12/SawyerChunkReader.h +++ b/src/openrct2/rct12/SawyerChunkReader.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerChunkWriter.cpp b/src/openrct2/rct12/SawyerChunkWriter.cpp index 9498316148..e3a08d7233 100644 --- a/src/openrct2/rct12/SawyerChunkWriter.cpp +++ b/src/openrct2/rct12/SawyerChunkWriter.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerChunkWriter.h b/src/openrct2/rct12/SawyerChunkWriter.h index 18f31200b0..50db15e233 100644 --- a/src/openrct2/rct12/SawyerChunkWriter.h +++ b/src/openrct2/rct12/SawyerChunkWriter.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerEncoding.cpp b/src/openrct2/rct12/SawyerEncoding.cpp index 0a8d16c9a9..32602035bf 100644 --- a/src/openrct2/rct12/SawyerEncoding.cpp +++ b/src/openrct2/rct12/SawyerEncoding.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct12/SawyerEncoding.h b/src/openrct2/rct12/SawyerEncoding.h index 104106b514..e738d79804 100644 --- a/src/openrct2/rct12/SawyerEncoding.h +++ b/src/openrct2/rct12/SawyerEncoding.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2.c b/src/openrct2/rct2.c index 196f5244bb..74cb599f37 100644 --- a/src/openrct2/rct2.c +++ b/src/openrct2/rct2.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2.h b/src/openrct2/rct2.h index 002ded8c29..fb29d550b9 100644 --- a/src/openrct2/rct2.h +++ b/src/openrct2/rct2.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2/S6Exporter.h b/src/openrct2/rct2/S6Exporter.h index af0e691bb1..f4279463b8 100644 --- a/src/openrct2/rct2/S6Exporter.h +++ b/src/openrct2/rct2/S6Exporter.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2/addresses.c b/src/openrct2/rct2/addresses.c index 25957a73d3..e433801a1d 100644 --- a/src/openrct2/rct2/addresses.c +++ b/src/openrct2/rct2/addresses.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2/addresses.h b/src/openrct2/rct2/addresses.h index c86c1ce169..f2e3b3b5ed 100644 --- a/src/openrct2/rct2/addresses.h +++ b/src/openrct2/rct2/addresses.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2/hook.c b/src/openrct2/rct2/hook.c index 379058c2b2..16ffabcdac 100644 --- a/src/openrct2/rct2/hook.c +++ b/src/openrct2/rct2/hook.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2/hook.h b/src/openrct2/rct2/hook.h index 89e54955ea..9223214199 100644 --- a/src/openrct2/rct2/hook.h +++ b/src/openrct2/rct2/hook.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2/interop.c b/src/openrct2/rct2/interop.c index 3378edc84b..08d47f60d7 100644 --- a/src/openrct2/rct2/interop.c +++ b/src/openrct2/rct2/interop.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/rct2/interop.h b/src/openrct2/rct2/interop.h index 5f7c598cd7..eb424bab07 100644 --- a/src/openrct2/rct2/interop.h +++ b/src/openrct2/rct2/interop.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/TrackDesignRepository.cpp b/src/openrct2/ride/TrackDesignRepository.cpp index 82c2a24bf1..05d919cfac 100644 --- a/src/openrct2/ride/TrackDesignRepository.cpp +++ b/src/openrct2/ride/TrackDesignRepository.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/TrackDesignRepository.h b/src/openrct2/ride/TrackDesignRepository.h index b5d7548d02..08b4183f54 100644 --- a/src/openrct2/ride/TrackDesignRepository.h +++ b/src/openrct2/ride/TrackDesignRepository.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/cable_lift.c b/src/openrct2/ride/cable_lift.c index c0561c285f..daaaafe931 100644 --- a/src/openrct2/ride/cable_lift.c +++ b/src/openrct2/ride/cable_lift.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/cable_lift.h b/src/openrct2/ride/cable_lift.h index e4e1842ddb..f174192bb8 100644 --- a/src/openrct2/ride/cable_lift.h +++ b/src/openrct2/ride/cable_lift.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/air_powered_vertical_coaster.c b/src/openrct2/ride/coaster/air_powered_vertical_coaster.c index df89a01187..984342e78f 100644 --- a/src/openrct2/ride/coaster/air_powered_vertical_coaster.c +++ b/src/openrct2/ride/coaster/air_powered_vertical_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/bobsleigh_coaster.c b/src/openrct2/ride/coaster/bobsleigh_coaster.c index 6d409d38a0..c55b2d8280 100644 --- a/src/openrct2/ride/coaster/bobsleigh_coaster.c +++ b/src/openrct2/ride/coaster/bobsleigh_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/bolliger_mabillard_track.c b/src/openrct2/ride/coaster/bolliger_mabillard_track.c index 6a91b33c66..c5e493cdb6 100644 --- a/src/openrct2/ride/coaster/bolliger_mabillard_track.c +++ b/src/openrct2/ride/coaster/bolliger_mabillard_track.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/bolliger_mabillard_track.h b/src/openrct2/ride/coaster/bolliger_mabillard_track.h index 669da19b37..5b0b217929 100644 --- a/src/openrct2/ride/coaster/bolliger_mabillard_track.h +++ b/src/openrct2/ride/coaster/bolliger_mabillard_track.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/compact_inverted_coaster.c b/src/openrct2/ride/coaster/compact_inverted_coaster.c index c4058c485d..6cd866ac1b 100644 --- a/src/openrct2/ride/coaster/compact_inverted_coaster.c +++ b/src/openrct2/ride/coaster/compact_inverted_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/corkscrew_roller_coaster.c b/src/openrct2/ride/coaster/corkscrew_roller_coaster.c index 5b4fd42bef..72a2d98bcd 100644 --- a/src/openrct2/ride/coaster/corkscrew_roller_coaster.c +++ b/src/openrct2/ride/coaster/corkscrew_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/flying_roller_coaster.c b/src/openrct2/ride/coaster/flying_roller_coaster.c index ede664decb..c4872787b9 100644 --- a/src/openrct2/ride/coaster/flying_roller_coaster.c +++ b/src/openrct2/ride/coaster/flying_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/giga_coaster.c b/src/openrct2/ride/coaster/giga_coaster.c index d099ea4bc1..88e5b36751 100644 --- a/src/openrct2/ride/coaster/giga_coaster.c +++ b/src/openrct2/ride/coaster/giga_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/heartline_twister_coaster.c b/src/openrct2/ride/coaster/heartline_twister_coaster.c index da83945128..9f7edf410a 100644 --- a/src/openrct2/ride/coaster/heartline_twister_coaster.c +++ b/src/openrct2/ride/coaster/heartline_twister_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/inverted_hairpin_coaster.c b/src/openrct2/ride/coaster/inverted_hairpin_coaster.c index fe29de372a..86f386cadf 100644 --- a/src/openrct2/ride/coaster/inverted_hairpin_coaster.c +++ b/src/openrct2/ride/coaster/inverted_hairpin_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/inverted_impulse_coaster.c b/src/openrct2/ride/coaster/inverted_impulse_coaster.c index 1cef7191c1..20b1cf0e68 100644 --- a/src/openrct2/ride/coaster/inverted_impulse_coaster.c +++ b/src/openrct2/ride/coaster/inverted_impulse_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/inverted_roller_coaster.c b/src/openrct2/ride/coaster/inverted_roller_coaster.c index 2047c1435c..dafbd0a686 100644 --- a/src/openrct2/ride/coaster/inverted_roller_coaster.c +++ b/src/openrct2/ride/coaster/inverted_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/junior_roller_coaster.c b/src/openrct2/ride/coaster/junior_roller_coaster.c index d808a83085..691410329c 100644 --- a/src/openrct2/ride/coaster/junior_roller_coaster.c +++ b/src/openrct2/ride/coaster/junior_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/junior_roller_coaster.h b/src/openrct2/ride/coaster/junior_roller_coaster.h index 48e9a8177c..63db12bb16 100644 --- a/src/openrct2/ride/coaster/junior_roller_coaster.h +++ b/src/openrct2/ride/coaster/junior_roller_coaster.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/lay_down_roller_coaster.c b/src/openrct2/ride/coaster/lay_down_roller_coaster.c index b3824c44ef..97230cda0e 100644 --- a/src/openrct2/ride/coaster/lay_down_roller_coaster.c +++ b/src/openrct2/ride/coaster/lay_down_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/lim_launched_roller_coaster.c b/src/openrct2/ride/coaster/lim_launched_roller_coaster.c index 774565257b..d77a319a7c 100644 --- a/src/openrct2/ride/coaster/lim_launched_roller_coaster.c +++ b/src/openrct2/ride/coaster/lim_launched_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/looping_roller_coaster.c b/src/openrct2/ride/coaster/looping_roller_coaster.c index a2bc5e6170..31846d1c80 100644 --- a/src/openrct2/ride/coaster/looping_roller_coaster.c +++ b/src/openrct2/ride/coaster/looping_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/mine_ride.c b/src/openrct2/ride/coaster/mine_ride.c index 320f1e259c..4ff3abe1a6 100644 --- a/src/openrct2/ride/coaster/mine_ride.c +++ b/src/openrct2/ride/coaster/mine_ride.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/mine_train_coaster.c b/src/openrct2/ride/coaster/mine_train_coaster.c index 3c6ac89807..230cbb3a08 100644 --- a/src/openrct2/ride/coaster/mine_train_coaster.c +++ b/src/openrct2/ride/coaster/mine_train_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/mini_roller_coaster.c b/src/openrct2/ride/coaster/mini_roller_coaster.c index 444dbb1417..6307b57263 100644 --- a/src/openrct2/ride/coaster/mini_roller_coaster.c +++ b/src/openrct2/ride/coaster/mini_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/mini_suspended_coaster.c b/src/openrct2/ride/coaster/mini_suspended_coaster.c index 1681940632..4d2ed37c00 100644 --- a/src/openrct2/ride/coaster/mini_suspended_coaster.c +++ b/src/openrct2/ride/coaster/mini_suspended_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/multi_dimension_roller_coaster.c b/src/openrct2/ride/coaster/multi_dimension_roller_coaster.c index 39c9519b2d..28b00e24d5 100644 --- a/src/openrct2/ride/coaster/multi_dimension_roller_coaster.c +++ b/src/openrct2/ride/coaster/multi_dimension_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/reverse_freefall_coaster.c b/src/openrct2/ride/coaster/reverse_freefall_coaster.c index ffd6487397..f4d50836d1 100644 --- a/src/openrct2/ride/coaster/reverse_freefall_coaster.c +++ b/src/openrct2/ride/coaster/reverse_freefall_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/reverser_roller_coaster.c b/src/openrct2/ride/coaster/reverser_roller_coaster.c index 1210a06be0..9f3d27b818 100644 --- a/src/openrct2/ride/coaster/reverser_roller_coaster.c +++ b/src/openrct2/ride/coaster/reverser_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/side_friction_roller_coaster.c b/src/openrct2/ride/coaster/side_friction_roller_coaster.c index c0e5f265e2..3b004802c5 100644 --- a/src/openrct2/ride/coaster/side_friction_roller_coaster.c +++ b/src/openrct2/ride/coaster/side_friction_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/stand_up_roller_coaster.c b/src/openrct2/ride/coaster/stand_up_roller_coaster.c index 55dab80971..56fc18860e 100644 --- a/src/openrct2/ride/coaster/stand_up_roller_coaster.c +++ b/src/openrct2/ride/coaster/stand_up_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/steeplechase.c b/src/openrct2/ride/coaster/steeplechase.c index 014926da36..0a4c71c75f 100644 --- a/src/openrct2/ride/coaster/steeplechase.c +++ b/src/openrct2/ride/coaster/steeplechase.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/suspended_swinging_coaster.c b/src/openrct2/ride/coaster/suspended_swinging_coaster.c index 75de0af037..d3b5474537 100644 --- a/src/openrct2/ride/coaster/suspended_swinging_coaster.c +++ b/src/openrct2/ride/coaster/suspended_swinging_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/twister_roller_coaster.c b/src/openrct2/ride/coaster/twister_roller_coaster.c index b16c963187..f8290813dd 100644 --- a/src/openrct2/ride/coaster/twister_roller_coaster.c +++ b/src/openrct2/ride/coaster/twister_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/vertical_drop_roller_coaster.c b/src/openrct2/ride/coaster/vertical_drop_roller_coaster.c index de11a2aabb..8f9f02b9b8 100644 --- a/src/openrct2/ride/coaster/vertical_drop_roller_coaster.c +++ b/src/openrct2/ride/coaster/vertical_drop_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/virginia_reel.c b/src/openrct2/ride/coaster/virginia_reel.c index 88ef7912c8..e810162f09 100644 --- a/src/openrct2/ride/coaster/virginia_reel.c +++ b/src/openrct2/ride/coaster/virginia_reel.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/wild_mouse.c b/src/openrct2/ride/coaster/wild_mouse.c index 754cdbc2a7..e8dd547eb8 100644 --- a/src/openrct2/ride/coaster/wild_mouse.c +++ b/src/openrct2/ride/coaster/wild_mouse.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/wooden_roller_coaster.c b/src/openrct2/ride/coaster/wooden_roller_coaster.c index d7ff518a20..ab35d2ffd8 100644 --- a/src/openrct2/ride/coaster/wooden_roller_coaster.c +++ b/src/openrct2/ride/coaster/wooden_roller_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/coaster/wooden_wild_mouse.c b/src/openrct2/ride/coaster/wooden_wild_mouse.c index 65713096c5..07aa4d9789 100644 --- a/src/openrct2/ride/coaster/wooden_wild_mouse.c +++ b/src/openrct2/ride/coaster/wooden_wild_mouse.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/car_ride.c b/src/openrct2/ride/gentle/car_ride.c index bd21ba2a88..3d8b8dfa82 100644 --- a/src/openrct2/ride/gentle/car_ride.c +++ b/src/openrct2/ride/gentle/car_ride.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/circus_show.c b/src/openrct2/ride/gentle/circus_show.c index 876fb13c17..0a55e70043 100644 --- a/src/openrct2/ride/gentle/circus_show.c +++ b/src/openrct2/ride/gentle/circus_show.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/crooked_house.c b/src/openrct2/ride/gentle/crooked_house.c index 8aeaf24df4..82c624f54c 100644 --- a/src/openrct2/ride/gentle/crooked_house.c +++ b/src/openrct2/ride/gentle/crooked_house.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/dodgems.c b/src/openrct2/ride/gentle/dodgems.c index 32da2d259a..78feb245a7 100644 --- a/src/openrct2/ride/gentle/dodgems.c +++ b/src/openrct2/ride/gentle/dodgems.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/ferris_wheel.c b/src/openrct2/ride/gentle/ferris_wheel.c index 1e04c46aef..7219b546fb 100644 --- a/src/openrct2/ride/gentle/ferris_wheel.c +++ b/src/openrct2/ride/gentle/ferris_wheel.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/flying_saucers.c b/src/openrct2/ride/gentle/flying_saucers.c index 2bc51a7317..7a956ae791 100644 --- a/src/openrct2/ride/gentle/flying_saucers.c +++ b/src/openrct2/ride/gentle/flying_saucers.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/ghost_train.c b/src/openrct2/ride/gentle/ghost_train.c index 42f4a23f9c..c06a2c9dd3 100644 --- a/src/openrct2/ride/gentle/ghost_train.c +++ b/src/openrct2/ride/gentle/ghost_train.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/haunted_house.c b/src/openrct2/ride/gentle/haunted_house.c index 49982618d4..2d9b3e816f 100644 --- a/src/openrct2/ride/gentle/haunted_house.c +++ b/src/openrct2/ride/gentle/haunted_house.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/maze.c b/src/openrct2/ride/gentle/maze.c index 20803cfb90..620421dc7b 100644 --- a/src/openrct2/ride/gentle/maze.c +++ b/src/openrct2/ride/gentle/maze.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/merry_go_round.c b/src/openrct2/ride/gentle/merry_go_round.c index e8fa488643..73732816e6 100644 --- a/src/openrct2/ride/gentle/merry_go_round.c +++ b/src/openrct2/ride/gentle/merry_go_round.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/mini_golf.c b/src/openrct2/ride/gentle/mini_golf.c index fe4f327247..b20346cdc1 100644 --- a/src/openrct2/ride/gentle/mini_golf.c +++ b/src/openrct2/ride/gentle/mini_golf.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/mini_helicopters.c b/src/openrct2/ride/gentle/mini_helicopters.c index 0470bb2b52..c10892b791 100644 --- a/src/openrct2/ride/gentle/mini_helicopters.c +++ b/src/openrct2/ride/gentle/mini_helicopters.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/monorail_cycles.c b/src/openrct2/ride/gentle/monorail_cycles.c index 86c434a9a0..753dc366ef 100644 --- a/src/openrct2/ride/gentle/monorail_cycles.c +++ b/src/openrct2/ride/gentle/monorail_cycles.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/observation_tower.c b/src/openrct2/ride/gentle/observation_tower.c index c8e87ef9e7..3c1163aa5b 100644 --- a/src/openrct2/ride/gentle/observation_tower.c +++ b/src/openrct2/ride/gentle/observation_tower.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/space_rings.c b/src/openrct2/ride/gentle/space_rings.c index 7b3dfe238d..946ecba6e1 100644 --- a/src/openrct2/ride/gentle/space_rings.c +++ b/src/openrct2/ride/gentle/space_rings.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/gentle/spiral_slide.c b/src/openrct2/ride/gentle/spiral_slide.c index 317c04c8c1..0a643b06f4 100644 --- a/src/openrct2/ride/gentle/spiral_slide.c +++ b/src/openrct2/ride/gentle/spiral_slide.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 0ccc6a02f8..cfba05410a 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/ride.h b/src/openrct2/ride/ride.h index 605ba53df6..b2a9c1c283 100644 --- a/src/openrct2/ride/ride.h +++ b/src/openrct2/ride/ride.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/ride_data.c b/src/openrct2/ride/ride_data.c index 06f52590fd..688a173a61 100644 --- a/src/openrct2/ride/ride_data.c +++ b/src/openrct2/ride/ride_data.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/ride_data.h b/src/openrct2/ride/ride_data.h index 6892fae400..3d52b64a46 100644 --- a/src/openrct2/ride/ride_data.h +++ b/src/openrct2/ride/ride_data.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/ride_ratings.c b/src/openrct2/ride/ride_ratings.c index 51e6d351b9..0487394d88 100644 --- a/src/openrct2/ride/ride_ratings.c +++ b/src/openrct2/ride/ride_ratings.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/ride_ratings.h b/src/openrct2/ride/ride_ratings.h index 7969502991..fdb6afe403 100644 --- a/src/openrct2/ride/ride_ratings.h +++ b/src/openrct2/ride/ride_ratings.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/shops/facility.c b/src/openrct2/ride/shops/facility.c index 6e4bac4514..8191621726 100644 --- a/src/openrct2/ride/shops/facility.c +++ b/src/openrct2/ride/shops/facility.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/shops/shop.c b/src/openrct2/ride/shops/shop.c index e5ad3f7e66..5cebbcc0e5 100644 --- a/src/openrct2/ride/shops/shop.c +++ b/src/openrct2/ride/shops/shop.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/station.c b/src/openrct2/ride/station.c index b6341429b6..e3c02b659d 100644 --- a/src/openrct2/ride/station.c +++ b/src/openrct2/ride/station.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/station.h b/src/openrct2/ride/station.h index 6200ac337e..d6a2e49740 100644 --- a/src/openrct2/ride/station.h +++ b/src/openrct2/ride/station.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/3d_cinema.c b/src/openrct2/ride/thrill/3d_cinema.c index 236e5f6e05..9b142d3977 100644 --- a/src/openrct2/ride/thrill/3d_cinema.c +++ b/src/openrct2/ride/thrill/3d_cinema.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/enterprise.c b/src/openrct2/ride/thrill/enterprise.c index 0bc2200e61..b8aad5aee9 100644 --- a/src/openrct2/ride/thrill/enterprise.c +++ b/src/openrct2/ride/thrill/enterprise.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/go_karts.c b/src/openrct2/ride/thrill/go_karts.c index 1b1d22f67b..83d32c7224 100644 --- a/src/openrct2/ride/thrill/go_karts.c +++ b/src/openrct2/ride/thrill/go_karts.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/launched_freefall.c b/src/openrct2/ride/thrill/launched_freefall.c index 0afca53064..9218973235 100644 --- a/src/openrct2/ride/thrill/launched_freefall.c +++ b/src/openrct2/ride/thrill/launched_freefall.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/magic_carpet.c b/src/openrct2/ride/thrill/magic_carpet.c index e9d22a32fa..9ed5811bef 100644 --- a/src/openrct2/ride/thrill/magic_carpet.c +++ b/src/openrct2/ride/thrill/magic_carpet.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/motion_simulator.c b/src/openrct2/ride/thrill/motion_simulator.c index 1d74a8164a..31f0afa223 100644 --- a/src/openrct2/ride/thrill/motion_simulator.c +++ b/src/openrct2/ride/thrill/motion_simulator.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/pirate_ship.c b/src/openrct2/ride/thrill/pirate_ship.c index ebebc3ca00..a9b02079b9 100644 --- a/src/openrct2/ride/thrill/pirate_ship.c +++ b/src/openrct2/ride/thrill/pirate_ship.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/roto_drop.c b/src/openrct2/ride/thrill/roto_drop.c index 881670817d..50cee1e154 100644 --- a/src/openrct2/ride/thrill/roto_drop.c +++ b/src/openrct2/ride/thrill/roto_drop.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/swinging_inverter_ship.c b/src/openrct2/ride/thrill/swinging_inverter_ship.c index ae02b2574d..de62732754 100644 --- a/src/openrct2/ride/thrill/swinging_inverter_ship.c +++ b/src/openrct2/ride/thrill/swinging_inverter_ship.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/top_spin.c b/src/openrct2/ride/thrill/top_spin.c index 3aa0c7e480..907fc99316 100644 --- a/src/openrct2/ride/thrill/top_spin.c +++ b/src/openrct2/ride/thrill/top_spin.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/thrill/twist.c b/src/openrct2/ride/thrill/twist.c index e029dc4c99..3d84b61a0f 100644 --- a/src/openrct2/ride/thrill/twist.c +++ b/src/openrct2/ride/thrill/twist.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track.c b/src/openrct2/ride/track.c index 896f556bea..aab21172fb 100644 --- a/src/openrct2/ride/track.c +++ b/src/openrct2/ride/track.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track.h b/src/openrct2/ride/track.h index f532f7ae60..be608ff79f 100644 --- a/src/openrct2/ride/track.h +++ b/src/openrct2/ride/track.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_data.c b/src/openrct2/ride/track_data.c index 11d7fe5544..f99540ec1e 100644 --- a/src/openrct2/ride/track_data.c +++ b/src/openrct2/ride/track_data.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_data.h b/src/openrct2/ride/track_data.h index 109b0b86f6..d0c7358165 100644 --- a/src/openrct2/ride/track_data.h +++ b/src/openrct2/ride/track_data.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_data_old.c b/src/openrct2/ride/track_data_old.c index 1d799cb59b..4b14b7bf5c 100644 --- a/src/openrct2/ride/track_data_old.c +++ b/src/openrct2/ride/track_data_old.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_design.c b/src/openrct2/ride/track_design.c index ec835a957d..f6c84b5886 100644 --- a/src/openrct2/ride/track_design.c +++ b/src/openrct2/ride/track_design.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_design.h b/src/openrct2/ride/track_design.h index acaacdd581..67862c7ac1 100644 --- a/src/openrct2/ride/track_design.h +++ b/src/openrct2/ride/track_design.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_design_save.c b/src/openrct2/ride/track_design_save.c index 0170968fc5..47a5a18654 100644 --- a/src/openrct2/ride/track_design_save.c +++ b/src/openrct2/ride/track_design_save.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_paint.c b/src/openrct2/ride/track_paint.c index 922a74adb1..96c4a0282d 100644 --- a/src/openrct2/ride/track_paint.c +++ b/src/openrct2/ride/track_paint.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/track_paint.h b/src/openrct2/ride/track_paint.h index 4f3d0cf71c..d5e2a60dcd 100644 --- a/src/openrct2/ride/track_paint.h +++ b/src/openrct2/ride/track_paint.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/transport/chairlift.c b/src/openrct2/ride/transport/chairlift.c index cbafbf2620..85b5bb336b 100644 --- a/src/openrct2/ride/transport/chairlift.c +++ b/src/openrct2/ride/transport/chairlift.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/transport/lift.c b/src/openrct2/ride/transport/lift.c index 77e1c04d86..dcb3a047a8 100644 --- a/src/openrct2/ride/transport/lift.c +++ b/src/openrct2/ride/transport/lift.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/transport/miniature_railway.c b/src/openrct2/ride/transport/miniature_railway.c index 757e341509..8909b4cd07 100644 --- a/src/openrct2/ride/transport/miniature_railway.c +++ b/src/openrct2/ride/transport/miniature_railway.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/transport/monorail.c b/src/openrct2/ride/transport/monorail.c index 4b9eb0c6de..74da079763 100644 --- a/src/openrct2/ride/transport/monorail.c +++ b/src/openrct2/ride/transport/monorail.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/transport/suspended_monorail.c b/src/openrct2/ride/transport/suspended_monorail.c index b0a1024514..073ab3e206 100644 --- a/src/openrct2/ride/transport/suspended_monorail.c +++ b/src/openrct2/ride/transport/suspended_monorail.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/vehicle.c b/src/openrct2/ride/vehicle.c index c0b68850ca..a9c3ad23c1 100644 --- a/src/openrct2/ride/vehicle.c +++ b/src/openrct2/ride/vehicle.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/vehicle.h b/src/openrct2/ride/vehicle.h index 833f9373e1..f3846e3281 100644 --- a/src/openrct2/ride/vehicle.h +++ b/src/openrct2/ride/vehicle.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/vehicle_data.c b/src/openrct2/ride/vehicle_data.c index 225aa40a79..eb851fa23b 100644 --- a/src/openrct2/ride/vehicle_data.c +++ b/src/openrct2/ride/vehicle_data.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/vehicle_data.h b/src/openrct2/ride/vehicle_data.h index b22f1a3fb7..486d2f4c29 100644 --- a/src/openrct2/ride/vehicle_data.h +++ b/src/openrct2/ride/vehicle_data.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/vehicle_paint.c b/src/openrct2/ride/vehicle_paint.c index 5432ff20fd..252bc88333 100644 --- a/src/openrct2/ride/vehicle_paint.c +++ b/src/openrct2/ride/vehicle_paint.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/vehicle_paint.h b/src/openrct2/ride/vehicle_paint.h index 7f7fc9e2bd..05d7352239 100644 --- a/src/openrct2/ride/vehicle_paint.h +++ b/src/openrct2/ride/vehicle_paint.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/water/boat_ride.c b/src/openrct2/ride/water/boat_ride.c index d957738337..491b02a056 100644 --- a/src/openrct2/ride/water/boat_ride.c +++ b/src/openrct2/ride/water/boat_ride.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/water/dingy_slide.c b/src/openrct2/ride/water/dingy_slide.c index ed8cc40f41..7698b90517 100644 --- a/src/openrct2/ride/water/dingy_slide.c +++ b/src/openrct2/ride/water/dingy_slide.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/water/log_flume.c b/src/openrct2/ride/water/log_flume.c index 67968405df..83c6ff2544 100644 --- a/src/openrct2/ride/water/log_flume.c +++ b/src/openrct2/ride/water/log_flume.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/water/river_rapids.c b/src/openrct2/ride/water/river_rapids.c index 61ec7d4bd3..f051cf38b2 100644 --- a/src/openrct2/ride/water/river_rapids.c +++ b/src/openrct2/ride/water/river_rapids.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/water/submarine_ride.c b/src/openrct2/ride/water/submarine_ride.c index b5973241e1..9bd6696d8f 100644 --- a/src/openrct2/ride/water/submarine_ride.c +++ b/src/openrct2/ride/water/submarine_ride.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ride/water/water_coaster.c b/src/openrct2/ride/water/water_coaster.c index cdee864791..fd4cd6c708 100644 --- a/src/openrct2/ride/water/water_coaster.c +++ b/src/openrct2/ride/water/water_coaster.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/scenario/ScenarioRepository.cpp b/src/openrct2/scenario/ScenarioRepository.cpp index 0b13a013ef..0954db2f2f 100644 --- a/src/openrct2/scenario/ScenarioRepository.cpp +++ b/src/openrct2/scenario/ScenarioRepository.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/scenario/ScenarioRepository.h b/src/openrct2/scenario/ScenarioRepository.h index cd41539350..d005b99a9c 100644 --- a/src/openrct2/scenario/ScenarioRepository.h +++ b/src/openrct2/scenario/ScenarioRepository.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/scenario/ScenarioSources.cpp b/src/openrct2/scenario/ScenarioSources.cpp index 7fe645f95d..7558b15300 100644 --- a/src/openrct2/scenario/ScenarioSources.cpp +++ b/src/openrct2/scenario/ScenarioSources.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/scenario/ScenarioSources.h b/src/openrct2/scenario/ScenarioSources.h index f3b900254a..be920b0ef8 100644 --- a/src/openrct2/scenario/ScenarioSources.h +++ b/src/openrct2/scenario/ScenarioSources.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/scenario/scenario.c b/src/openrct2/scenario/scenario.c index 946140c4fe..02c3348748 100644 --- a/src/openrct2/scenario/scenario.c +++ b/src/openrct2/scenario/scenario.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/scenario/scenario.h b/src/openrct2/scenario/scenario.h index 3ca8a91945..7aa8665978 100644 --- a/src/openrct2/scenario/scenario.h +++ b/src/openrct2/scenario/scenario.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/sprites.h b/src/openrct2/sprites.h index 0033568932..02814db587 100644 --- a/src/openrct2/sprites.h +++ b/src/openrct2/sprites.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleScreen.cpp b/src/openrct2/title/TitleScreen.cpp index bee7457ead..cfa6cc65bb 100644 --- a/src/openrct2/title/TitleScreen.cpp +++ b/src/openrct2/title/TitleScreen.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleScreen.h b/src/openrct2/title/TitleScreen.h index 6671bd2733..58b94a7f2e 100644 --- a/src/openrct2/title/TitleScreen.h +++ b/src/openrct2/title/TitleScreen.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleSequence.cpp b/src/openrct2/title/TitleSequence.cpp index 0c82dae072..4de7d86b79 100644 --- a/src/openrct2/title/TitleSequence.cpp +++ b/src/openrct2/title/TitleSequence.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleSequence.h b/src/openrct2/title/TitleSequence.h index 6c1ed64858..b9c111ad8d 100644 --- a/src/openrct2/title/TitleSequence.h +++ b/src/openrct2/title/TitleSequence.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleSequenceManager.cpp b/src/openrct2/title/TitleSequenceManager.cpp index 7d32825cb3..cd8091f27d 100644 --- a/src/openrct2/title/TitleSequenceManager.cpp +++ b/src/openrct2/title/TitleSequenceManager.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleSequenceManager.h b/src/openrct2/title/TitleSequenceManager.h index 05ae0646d0..cde9622683 100644 --- a/src/openrct2/title/TitleSequenceManager.h +++ b/src/openrct2/title/TitleSequenceManager.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleSequencePlayer.cpp b/src/openrct2/title/TitleSequencePlayer.cpp index 29ec5db5fb..97c63b8b50 100644 --- a/src/openrct2/title/TitleSequencePlayer.cpp +++ b/src/openrct2/title/TitleSequencePlayer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/title/TitleSequencePlayer.h b/src/openrct2/title/TitleSequencePlayer.h index 2ac2f1b6d7..a7b4e95d0d 100644 --- a/src/openrct2/title/TitleSequencePlayer.h +++ b/src/openrct2/title/TitleSequencePlayer.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index 1fb00eb0d5..ec7f60628a 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/util/sawyercoding.c b/src/openrct2/util/sawyercoding.c index dac796bd48..6cebb40428 100644 --- a/src/openrct2/util/sawyercoding.c +++ b/src/openrct2/util/sawyercoding.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/util/sawyercoding.h b/src/openrct2/util/sawyercoding.h index f289154387..e0a5b0db24 100644 --- a/src/openrct2/util/sawyercoding.h +++ b/src/openrct2/util/sawyercoding.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/util/util.c b/src/openrct2/util/util.c index a7a4433e83..756778c503 100644 --- a/src/openrct2/util/util.c +++ b/src/openrct2/util/util.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/util/util.h b/src/openrct2/util/util.h index 388a0467bd..cc27af8690 100644 --- a/src/openrct2/util/util.h +++ b/src/openrct2/util/util.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/about.c b/src/openrct2/windows/about.c index 6dc44a88f9..7e099f431c 100644 --- a/src/openrct2/windows/about.c +++ b/src/openrct2/windows/about.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/banner.c b/src/openrct2/windows/banner.c index ae3b521d12..59b4907bb3 100644 --- a/src/openrct2/windows/banner.c +++ b/src/openrct2/windows/banner.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/changelog.c b/src/openrct2/windows/changelog.c index 57b8d0e178..3fb35d934b 100644 --- a/src/openrct2/windows/changelog.c +++ b/src/openrct2/windows/changelog.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/cheats.c b/src/openrct2/windows/cheats.c index 227dbb0cf7..9a9076634e 100644 --- a/src/openrct2/windows/cheats.c +++ b/src/openrct2/windows/cheats.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/clear_scenery.c b/src/openrct2/windows/clear_scenery.c index f9b3eb6c19..587fd89df2 100644 --- a/src/openrct2/windows/clear_scenery.c +++ b/src/openrct2/windows/clear_scenery.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/custom_currency.c b/src/openrct2/windows/custom_currency.c index 63effbc441..daf5206d9d 100644 --- a/src/openrct2/windows/custom_currency.c +++ b/src/openrct2/windows/custom_currency.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/debug_paint.c b/src/openrct2/windows/debug_paint.c index 7c3d434d0b..694b31d221 100644 --- a/src/openrct2/windows/debug_paint.c +++ b/src/openrct2/windows/debug_paint.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/demolish_ride_prompt.c b/src/openrct2/windows/demolish_ride_prompt.c index 8740eb973a..a04aaf144c 100644 --- a/src/openrct2/windows/demolish_ride_prompt.c +++ b/src/openrct2/windows/demolish_ride_prompt.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/dropdown.c b/src/openrct2/windows/dropdown.c index 103218af36..3bde1b7108 100644 --- a/src/openrct2/windows/dropdown.c +++ b/src/openrct2/windows/dropdown.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/dropdown.h b/src/openrct2/windows/dropdown.h index 222d77ae45..7cf1e6b325 100644 --- a/src/openrct2/windows/dropdown.h +++ b/src/openrct2/windows/dropdown.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/editor_bottom_toolbar.c b/src/openrct2/windows/editor_bottom_toolbar.c index 46a75d976e..7aac009baa 100644 --- a/src/openrct2/windows/editor_bottom_toolbar.c +++ b/src/openrct2/windows/editor_bottom_toolbar.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/editor_inventions_list.c b/src/openrct2/windows/editor_inventions_list.c index 854642ea37..a392c93310 100644 --- a/src/openrct2/windows/editor_inventions_list.c +++ b/src/openrct2/windows/editor_inventions_list.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/editor_main.c b/src/openrct2/windows/editor_main.c index d8397a43ba..8187214304 100644 --- a/src/openrct2/windows/editor_main.c +++ b/src/openrct2/windows/editor_main.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index ab6dd26fa3..6f7b4e91c9 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/editor_objective_options.c b/src/openrct2/windows/editor_objective_options.c index 1424044f13..4e45d93ff7 100644 --- a/src/openrct2/windows/editor_objective_options.c +++ b/src/openrct2/windows/editor_objective_options.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/editor_scenario_options.c b/src/openrct2/windows/editor_scenario_options.c index a9a27a0f84..d927f349f0 100644 --- a/src/openrct2/windows/editor_scenario_options.c +++ b/src/openrct2/windows/editor_scenario_options.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/error.c b/src/openrct2/windows/error.c index 3c980207db..7f53091740 100644 --- a/src/openrct2/windows/error.c +++ b/src/openrct2/windows/error.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/error.h b/src/openrct2/windows/error.h index dc59b9ee5d..7867a20fd9 100644 --- a/src/openrct2/windows/error.h +++ b/src/openrct2/windows/error.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/finances.c b/src/openrct2/windows/finances.c index d066303cdb..7cb22c714e 100644 --- a/src/openrct2/windows/finances.c +++ b/src/openrct2/windows/finances.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/footpath.c b/src/openrct2/windows/footpath.c index 3cb67dc750..254b88ebaf 100644 --- a/src/openrct2/windows/footpath.c +++ b/src/openrct2/windows/footpath.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/game_bottom_toolbar.c b/src/openrct2/windows/game_bottom_toolbar.c index 61ea4d855a..96fdc80c39 100644 --- a/src/openrct2/windows/game_bottom_toolbar.c +++ b/src/openrct2/windows/game_bottom_toolbar.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/guest.c b/src/openrct2/windows/guest.c index 4b687f8cc8..0022451f90 100644 --- a/src/openrct2/windows/guest.c +++ b/src/openrct2/windows/guest.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/guest_list.c b/src/openrct2/windows/guest_list.c index ba10e5d44a..03b1dcf837 100644 --- a/src/openrct2/windows/guest_list.c +++ b/src/openrct2/windows/guest_list.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/install_track.c b/src/openrct2/windows/install_track.c index 11ac600b76..940a287e42 100644 --- a/src/openrct2/windows/install_track.c +++ b/src/openrct2/windows/install_track.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/land.c b/src/openrct2/windows/land.c index e56d6c614e..e4f0837f96 100644 --- a/src/openrct2/windows/land.c +++ b/src/openrct2/windows/land.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/land_rights.c b/src/openrct2/windows/land_rights.c index f4ca519236..a8921a6ff2 100644 --- a/src/openrct2/windows/land_rights.c +++ b/src/openrct2/windows/land_rights.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/loadsave.c b/src/openrct2/windows/loadsave.c index 7cda60fa59..4fd6ac8964 100644 --- a/src/openrct2/windows/loadsave.c +++ b/src/openrct2/windows/loadsave.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/main.c b/src/openrct2/windows/main.c index 2f6e7dede1..b929c90ed6 100644 --- a/src/openrct2/windows/main.c +++ b/src/openrct2/windows/main.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/map_tooltip.c b/src/openrct2/windows/map_tooltip.c index 484b7f2244..4007a697b1 100644 --- a/src/openrct2/windows/map_tooltip.c +++ b/src/openrct2/windows/map_tooltip.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/mapgen.c b/src/openrct2/windows/mapgen.c index 2eb9680ed8..74d75def2b 100644 --- a/src/openrct2/windows/mapgen.c +++ b/src/openrct2/windows/mapgen.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/maze_construction.c b/src/openrct2/windows/maze_construction.c index fa26e1fb50..5a2043d20f 100644 --- a/src/openrct2/windows/maze_construction.c +++ b/src/openrct2/windows/maze_construction.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/multiplayer.c b/src/openrct2/windows/multiplayer.c index a63299bb9e..45c4be79ab 100644 --- a/src/openrct2/windows/multiplayer.c +++ b/src/openrct2/windows/multiplayer.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/music_credits.c b/src/openrct2/windows/music_credits.c index 7c27136e2c..f61da8fedd 100644 --- a/src/openrct2/windows/music_credits.c +++ b/src/openrct2/windows/music_credits.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/network_status.c b/src/openrct2/windows/network_status.c index 9408dd2e88..b29f6b5289 100644 --- a/src/openrct2/windows/network_status.c +++ b/src/openrct2/windows/network_status.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/new_campaign.c b/src/openrct2/windows/new_campaign.c index 09e8a7bbcb..fc3a8875a9 100644 --- a/src/openrct2/windows/new_campaign.c +++ b/src/openrct2/windows/new_campaign.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/new_ride.c b/src/openrct2/windows/new_ride.c index 7859426b9b..0e998cb970 100644 --- a/src/openrct2/windows/new_ride.c +++ b/src/openrct2/windows/new_ride.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/news.c b/src/openrct2/windows/news.c index eca56716b5..9373ba5c90 100644 --- a/src/openrct2/windows/news.c +++ b/src/openrct2/windows/news.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/news_options.c b/src/openrct2/windows/news_options.c index eb0071e13f..67900f6b99 100644 --- a/src/openrct2/windows/news_options.c +++ b/src/openrct2/windows/news_options.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/options.c b/src/openrct2/windows/options.c index 6977290e1b..4c40fff896 100644 --- a/src/openrct2/windows/options.c +++ b/src/openrct2/windows/options.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/park.c b/src/openrct2/windows/park.c index 646f643e72..42a7a655cd 100644 --- a/src/openrct2/windows/park.c +++ b/src/openrct2/windows/park.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/player.c b/src/openrct2/windows/player.c index 5d44a35424..4babd5a98f 100644 --- a/src/openrct2/windows/player.c +++ b/src/openrct2/windows/player.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/publisher_credits.c b/src/openrct2/windows/publisher_credits.c index e84b15a770..c21c09d9d3 100644 --- a/src/openrct2/windows/publisher_credits.c +++ b/src/openrct2/windows/publisher_credits.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/research.c b/src/openrct2/windows/research.c index c988bf2ba5..af7922ca8c 100644 --- a/src/openrct2/windows/research.c +++ b/src/openrct2/windows/research.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index fd922195c2..7c761145a2 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/ride_construction.c b/src/openrct2/windows/ride_construction.c index ed1432499b..aff48638ed 100644 --- a/src/openrct2/windows/ride_construction.c +++ b/src/openrct2/windows/ride_construction.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/ride_list.c b/src/openrct2/windows/ride_list.c index 509cbab759..b330f85349 100644 --- a/src/openrct2/windows/ride_list.c +++ b/src/openrct2/windows/ride_list.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/save_prompt.c b/src/openrct2/windows/save_prompt.c index 63c8a14605..99c7816e84 100644 --- a/src/openrct2/windows/save_prompt.c +++ b/src/openrct2/windows/save_prompt.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/scenery.c b/src/openrct2/windows/scenery.c index fb7a14cd2d..c548cdb229 100644 --- a/src/openrct2/windows/scenery.c +++ b/src/openrct2/windows/scenery.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/server_list.cpp b/src/openrct2/windows/server_list.cpp index fe2cfa7514..954ee09cad 100644 --- a/src/openrct2/windows/server_list.cpp +++ b/src/openrct2/windows/server_list.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/server_start.c b/src/openrct2/windows/server_start.c index b38aaaa7ab..ffd9e020f5 100644 --- a/src/openrct2/windows/server_start.c +++ b/src/openrct2/windows/server_start.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/shortcut_key_change.c b/src/openrct2/windows/shortcut_key_change.c index 6f90f2b28d..7eb9b37aa0 100644 --- a/src/openrct2/windows/shortcut_key_change.c +++ b/src/openrct2/windows/shortcut_key_change.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/shortcut_keys.c b/src/openrct2/windows/shortcut_keys.c index f5c20a7501..1a36494ccf 100644 --- a/src/openrct2/windows/shortcut_keys.c +++ b/src/openrct2/windows/shortcut_keys.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/sign.c b/src/openrct2/windows/sign.c index 3c61f216f2..50fb8291ff 100644 --- a/src/openrct2/windows/sign.c +++ b/src/openrct2/windows/sign.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/staff.c b/src/openrct2/windows/staff.c index e53893f5dd..92202298d9 100644 --- a/src/openrct2/windows/staff.c +++ b/src/openrct2/windows/staff.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/staff_fire_prompt.c b/src/openrct2/windows/staff_fire_prompt.c index 66578e62d5..20a26a3460 100644 --- a/src/openrct2/windows/staff_fire_prompt.c +++ b/src/openrct2/windows/staff_fire_prompt.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/staff_list.c b/src/openrct2/windows/staff_list.c index 636253753a..be95687576 100644 --- a/src/openrct2/windows/staff_list.c +++ b/src/openrct2/windows/staff_list.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/text_input.c b/src/openrct2/windows/text_input.c index 9d892f42f9..1bca29583c 100644 --- a/src/openrct2/windows/text_input.c +++ b/src/openrct2/windows/text_input.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/themes.c b/src/openrct2/windows/themes.c index b1136e83d5..15c659d4d6 100644 --- a/src/openrct2/windows/themes.c +++ b/src/openrct2/windows/themes.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/tile_inspector.c b/src/openrct2/windows/tile_inspector.c index 9bfa02b84a..768e53a025 100644 --- a/src/openrct2/windows/tile_inspector.c +++ b/src/openrct2/windows/tile_inspector.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/tile_inspector.h b/src/openrct2/windows/tile_inspector.h index a375e65add..3d43f0549c 100644 --- a/src/openrct2/windows/tile_inspector.h +++ b/src/openrct2/windows/tile_inspector.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/title_command_editor.c b/src/openrct2/windows/title_command_editor.c index f8b86eb9be..defa39f65a 100644 --- a/src/openrct2/windows/title_command_editor.c +++ b/src/openrct2/windows/title_command_editor.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/title_editor.c b/src/openrct2/windows/title_editor.c index 29f3d702c2..8d4cc9f78a 100644 --- a/src/openrct2/windows/title_editor.c +++ b/src/openrct2/windows/title_editor.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/title_exit.c b/src/openrct2/windows/title_exit.c index 4ed0482db8..0e69e95fe9 100644 --- a/src/openrct2/windows/title_exit.c +++ b/src/openrct2/windows/title_exit.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/title_logo.c b/src/openrct2/windows/title_logo.c index 5a5e27d5cc..f6b10247c6 100644 --- a/src/openrct2/windows/title_logo.c +++ b/src/openrct2/windows/title_logo.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/title_menu.c b/src/openrct2/windows/title_menu.c index 70eca7bdd8..bf7f716c63 100644 --- a/src/openrct2/windows/title_menu.c +++ b/src/openrct2/windows/title_menu.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/title_options.c b/src/openrct2/windows/title_options.c index 40af320e26..740280563f 100644 --- a/src/openrct2/windows/title_options.c +++ b/src/openrct2/windows/title_options.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/title_scenarioselect.c b/src/openrct2/windows/title_scenarioselect.c index 42b95539ee..a4905ccfd1 100644 --- a/src/openrct2/windows/title_scenarioselect.c +++ b/src/openrct2/windows/title_scenarioselect.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/tooltip.c b/src/openrct2/windows/tooltip.c index 975c1cb8bc..6f3b10ff52 100644 --- a/src/openrct2/windows/tooltip.c +++ b/src/openrct2/windows/tooltip.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/tooltip.h b/src/openrct2/windows/tooltip.h index 39499db0d4..4d394a350c 100644 --- a/src/openrct2/windows/tooltip.h +++ b/src/openrct2/windows/tooltip.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/top_toolbar.c b/src/openrct2/windows/top_toolbar.c index 51d7a246e9..8501888f19 100644 --- a/src/openrct2/windows/top_toolbar.c +++ b/src/openrct2/windows/top_toolbar.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 94b3a85c85..5d0030872c 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/track_manage.c b/src/openrct2/windows/track_manage.c index ac9599a894..14c33bebe6 100644 --- a/src/openrct2/windows/track_manage.c +++ b/src/openrct2/windows/track_manage.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/track_place.c b/src/openrct2/windows/track_place.c index 628ba4fc82..3a5a625261 100644 --- a/src/openrct2/windows/track_place.c +++ b/src/openrct2/windows/track_place.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/viewport.c b/src/openrct2/windows/viewport.c index 43f2c4ca33..66bdb1f660 100644 --- a/src/openrct2/windows/viewport.c +++ b/src/openrct2/windows/viewport.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/windows/water.c b/src/openrct2/windows/water.c index 4871a2c7ca..3063f40512 100644 --- a/src/openrct2/windows/water.c +++ b/src/openrct2/windows/water.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/Balloon.cpp b/src/openrct2/world/Balloon.cpp index 272e1dcdde..dd922ca75d 100644 --- a/src/openrct2/world/Balloon.cpp +++ b/src/openrct2/world/Balloon.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/Climate.cpp b/src/openrct2/world/Climate.cpp index ac5eafa96d..acc4480dbe 100644 --- a/src/openrct2/world/Climate.cpp +++ b/src/openrct2/world/Climate.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/Climate.h b/src/openrct2/world/Climate.h index bf38a9c6a4..3303c022fd 100644 --- a/src/openrct2/world/Climate.h +++ b/src/openrct2/world/Climate.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/Duck.cpp b/src/openrct2/world/Duck.cpp index 9e7798d045..a8ec00e18c 100644 --- a/src/openrct2/world/Duck.cpp +++ b/src/openrct2/world/Duck.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/Fountain.cpp b/src/openrct2/world/Fountain.cpp index ebacf7fc75..fc1b2cf6dd 100644 --- a/src/openrct2/world/Fountain.cpp +++ b/src/openrct2/world/Fountain.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/Fountain.h b/src/openrct2/world/Fountain.h index 0b70289715..75fd3b9efe 100644 --- a/src/openrct2/world/Fountain.h +++ b/src/openrct2/world/Fountain.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/banner.cpp b/src/openrct2/world/banner.cpp index 29e2d3fb10..23b550e58d 100644 --- a/src/openrct2/world/banner.cpp +++ b/src/openrct2/world/banner.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/banner.h b/src/openrct2/world/banner.h index ae2e74a34c..77110e229b 100644 --- a/src/openrct2/world/banner.h +++ b/src/openrct2/world/banner.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/footpath.c b/src/openrct2/world/footpath.c index 6b0b90b1fe..27916681f7 100644 --- a/src/openrct2/world/footpath.c +++ b/src/openrct2/world/footpath.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/footpath.h b/src/openrct2/world/footpath.h index c366ed08b0..60e2da8745 100644 --- a/src/openrct2/world/footpath.h +++ b/src/openrct2/world/footpath.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index b84478c3ac..bea5914737 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/map.h b/src/openrct2/world/map.h index ad8833559d..568adb86e9 100644 --- a/src/openrct2/world/map.h +++ b/src/openrct2/world/map.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/map_animation.c b/src/openrct2/world/map_animation.c index 51d8b099a2..11d02a1db7 100644 --- a/src/openrct2/world/map_animation.c +++ b/src/openrct2/world/map_animation.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/map_animation.h b/src/openrct2/world/map_animation.h index 49cc355d3f..338ba0bdd5 100644 --- a/src/openrct2/world/map_animation.h +++ b/src/openrct2/world/map_animation.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/map_helpers.c b/src/openrct2/world/map_helpers.c index 357d9cbe00..9d442c8bcb 100644 --- a/src/openrct2/world/map_helpers.c +++ b/src/openrct2/world/map_helpers.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/map_helpers.h b/src/openrct2/world/map_helpers.h index b72e253d94..7fb7c172fa 100644 --- a/src/openrct2/world/map_helpers.h +++ b/src/openrct2/world/map_helpers.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/mapgen.c b/src/openrct2/world/mapgen.c index 1242e794dd..7f8772838d 100644 --- a/src/openrct2/world/mapgen.c +++ b/src/openrct2/world/mapgen.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/mapgen.h b/src/openrct2/world/mapgen.h index 2492f151cc..22235facf8 100644 --- a/src/openrct2/world/mapgen.h +++ b/src/openrct2/world/mapgen.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/money_effect.c b/src/openrct2/world/money_effect.c index d38787828b..4e72d3ac28 100644 --- a/src/openrct2/world/money_effect.c +++ b/src/openrct2/world/money_effect.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/park.c b/src/openrct2/world/park.c index c0f1933ea8..f01fa97ece 100644 --- a/src/openrct2/world/park.c +++ b/src/openrct2/world/park.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/park.h b/src/openrct2/world/park.h index b56efd49f1..5c44a89847 100644 --- a/src/openrct2/world/park.h +++ b/src/openrct2/world/park.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/particle.c b/src/openrct2/world/particle.c index cc3cb70875..f4b13d3896 100644 --- a/src/openrct2/world/particle.c +++ b/src/openrct2/world/particle.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/scenery.c b/src/openrct2/world/scenery.c index 74aef6d582..756e1c5979 100644 --- a/src/openrct2/world/scenery.c +++ b/src/openrct2/world/scenery.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/scenery.h b/src/openrct2/world/scenery.h index 5985f95686..c8b7402c98 100644 --- a/src/openrct2/world/scenery.h +++ b/src/openrct2/world/scenery.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/sprite.c b/src/openrct2/world/sprite.c index 47ad51e5f5..5b97ef0a05 100644 --- a/src/openrct2/world/sprite.c +++ b/src/openrct2/world/sprite.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/sprite.h b/src/openrct2/world/sprite.h index 55da26d097..c800841e66 100644 --- a/src/openrct2/world/sprite.h +++ b/src/openrct2/world/sprite.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/tile_inspector.h b/src/openrct2/world/tile_inspector.h index ec6ebca074..3d299c7a84 100644 --- a/src/openrct2/world/tile_inspector.h +++ b/src/openrct2/world/tile_inspector.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/wall.cpp b/src/openrct2/world/wall.cpp index 0276a42596..448be3c057 100644 --- a/src/openrct2/world/wall.cpp +++ b/src/openrct2/world/wall.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/src/openrct2/world/water.h b/src/openrct2/world/water.h index d5d191bd8d..3ee0b90a74 100644 --- a/src/openrct2/world/water.h +++ b/src/openrct2/world/water.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/FunctionCall.cpp b/test/testpaint/FunctionCall.cpp index da06fdfd70..2c4f02d19a 100644 --- a/test/testpaint/FunctionCall.cpp +++ b/test/testpaint/FunctionCall.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/FunctionCall.hpp b/test/testpaint/FunctionCall.hpp index 828d320334..6605657086 100644 --- a/test/testpaint/FunctionCall.hpp +++ b/test/testpaint/FunctionCall.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/GeneralSupportHeightCall.cpp b/test/testpaint/GeneralSupportHeightCall.cpp index 4dded1cf2b..771abe7de4 100644 --- a/test/testpaint/GeneralSupportHeightCall.cpp +++ b/test/testpaint/GeneralSupportHeightCall.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/GeneralSupportHeightCall.hpp b/test/testpaint/GeneralSupportHeightCall.hpp index f497551c0e..26bb7c0e7f 100644 --- a/test/testpaint/GeneralSupportHeightCall.hpp +++ b/test/testpaint/GeneralSupportHeightCall.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/PaintIntercept.cpp b/test/testpaint/PaintIntercept.cpp index e8e7a77035..b204c8a2bd 100644 --- a/test/testpaint/PaintIntercept.cpp +++ b/test/testpaint/PaintIntercept.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/PaintIntercept.hpp b/test/testpaint/PaintIntercept.hpp index 921df4742b..72eaa239d5 100644 --- a/test/testpaint/PaintIntercept.hpp +++ b/test/testpaint/PaintIntercept.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/Printer.cpp b/test/testpaint/Printer.cpp index 190e235f14..2ac7a7e83b 100644 --- a/test/testpaint/Printer.cpp +++ b/test/testpaint/Printer.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/Printer.hpp b/test/testpaint/Printer.hpp index f387f6adfa..db956af940 100644 --- a/test/testpaint/Printer.hpp +++ b/test/testpaint/Printer.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/SegmentSupportHeightCall.cpp b/test/testpaint/SegmentSupportHeightCall.cpp index b8b8952d97..e4cdc88134 100644 --- a/test/testpaint/SegmentSupportHeightCall.cpp +++ b/test/testpaint/SegmentSupportHeightCall.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/SegmentSupportHeightCall.hpp b/test/testpaint/SegmentSupportHeightCall.hpp index d8a063be2f..e50749d110 100644 --- a/test/testpaint/SegmentSupportHeightCall.hpp +++ b/test/testpaint/SegmentSupportHeightCall.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/SideTunnelCall.cpp b/test/testpaint/SideTunnelCall.cpp index cca3c35a44..72c7c49d69 100644 --- a/test/testpaint/SideTunnelCall.cpp +++ b/test/testpaint/SideTunnelCall.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/SideTunnelCall.hpp b/test/testpaint/SideTunnelCall.hpp index 0aeedff5c3..9b63ee61b6 100644 --- a/test/testpaint/SideTunnelCall.hpp +++ b/test/testpaint/SideTunnelCall.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/String.cpp b/test/testpaint/String.cpp index 1c7c571c8f..97e5164eb1 100644 --- a/test/testpaint/String.cpp +++ b/test/testpaint/String.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/String.hpp b/test/testpaint/String.hpp index 67c232530a..a36b0d8675 100644 --- a/test/testpaint/String.hpp +++ b/test/testpaint/String.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/TestPaint.cpp b/test/testpaint/TestPaint.cpp index 49acf9f4c4..d84b337ecd 100644 --- a/test/testpaint/TestPaint.cpp +++ b/test/testpaint/TestPaint.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/TestPaint.hpp b/test/testpaint/TestPaint.hpp index eb39c60846..1a02915640 100644 --- a/test/testpaint/TestPaint.hpp +++ b/test/testpaint/TestPaint.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/TestTrack.cpp b/test/testpaint/TestTrack.cpp index b4b6ccbd1e..95dbf9b111 100644 --- a/test/testpaint/TestTrack.cpp +++ b/test/testpaint/TestTrack.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/TestTrack.hpp b/test/testpaint/TestTrack.hpp index 7c8a821f73..8403e5bb87 100644 --- a/test/testpaint/TestTrack.hpp +++ b/test/testpaint/TestTrack.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/Utils.cpp b/test/testpaint/Utils.cpp index 769bb81578..d444bfa89e 100644 --- a/test/testpaint/Utils.cpp +++ b/test/testpaint/Utils.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/Utils.hpp b/test/testpaint/Utils.hpp index a103b63748..f1a1f7bf27 100644 --- a/test/testpaint/Utils.hpp +++ b/test/testpaint/Utils.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/VerticalTunnelCall.cpp b/test/testpaint/VerticalTunnelCall.cpp index 129f248335..910d056f32 100644 --- a/test/testpaint/VerticalTunnelCall.cpp +++ b/test/testpaint/VerticalTunnelCall.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/VerticalTunnelCall.hpp b/test/testpaint/VerticalTunnelCall.hpp index 9f7a143275..44b58e08d9 100644 --- a/test/testpaint/VerticalTunnelCall.hpp +++ b/test/testpaint/VerticalTunnelCall.hpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/compat.c b/test/testpaint/compat.c index c1528722ad..37c8380b3f 100644 --- a/test/testpaint/compat.c +++ b/test/testpaint/compat.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/data.c b/test/testpaint/data.c index 73992471b9..1d345c4f50 100644 --- a/test/testpaint/data.c +++ b/test/testpaint/data.c @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/data.h b/test/testpaint/data.h index 229439ca2e..57b76d70af 100644 --- a/test/testpaint/data.h +++ b/test/testpaint/data.h @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * diff --git a/test/testpaint/generate.cpp b/test/testpaint/generate.cpp index 2ca4495fe6..ad9b63734d 100644 --- a/test/testpaint/generate.cpp +++ b/test/testpaint/generate.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * @@ -78,7 +78,7 @@ private: { const char * copyrights[] = { - "#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers", + "#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers", "/*****************************************************************************", " * OpenRCT2, an open source clone of Roller Coaster Tycoon 2.", " *", diff --git a/test/testpaint/main.cpp b/test/testpaint/main.cpp index 7602fb4c44..58fd201fe0 100644 --- a/test/testpaint/main.cpp +++ b/test/testpaint/main.cpp @@ -1,4 +1,4 @@ -#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * From 6dd3650426f42841ca697851485123aec9c1d4f5 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Thu, 1 Jun 2017 21:59:10 +0200 Subject: [PATCH 203/670] Prevent pushing macOS pull request builds to .org --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 61ed0b283d..fb0f0b92ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -81,7 +81,7 @@ matrix: export PUSH_BRANCH=master ; else export PUSH_BRANCH=$TRAVIS_BRANCH ; export FILENAME_PART=-${TRAVIS_BRANCH}-$(git rev-parse --short HEAD) ; fi - - if [[ "z$OPENRCT2_ORG_TOKEN" != "z" && ("${TRAVIS_BRANCH}" =~ ^(develop|push/) || "z${TRAVIS_TAG}" != "z") ]] ; then + - if [[ "z$OPENRCT2_ORG_TOKEN" != "z" && "$TRAVIS_PULL_REQUEST" == "false" && ("${TRAVIS_BRANCH}" =~ ^(develop|push/) || "z${TRAVIS_TAG}" != "z") ]] ; then curl -o - -v --form "key=$OPENRCT2_ORG_TOKEN" --form "fileName=OpenRCT2-${OPENRCT2_VERSION}${FILENAME_PART}-macos.zip" --form "version=${OPENRCT2_VERSION}" --form "gitHash=$TRAVIS_COMMIT" --form "gitBranch=$PUSH_BRANCH" --form "flavourId=3" --form "file=@openrct2-macos.zip" "https://openrct2.org/altapi/?command=push-build"; else curl --progress-bar --upload-file openrct2-macos.zip https://transfer.sh/openrct2-macos.zip -o link && cat link; fi From 7d9acca1e085503f3351a5fc4a4566282fa9df2f Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 1 Jun 2017 22:00:11 +0200 Subject: [PATCH 204/670] Create define for max ride types per ride entry, closes #5524 --- src/openrct2/interface/console.c | 2 +- src/openrct2/management/research.c | 16 +++---- src/openrct2/object/RideObject.cpp | 4 +- src/openrct2/rct1.c | 2 +- src/openrct2/ride/ride.c | 2 +- src/openrct2/ride/ride.h | 43 ++++++++++--------- src/openrct2/windows/editor_inventions_list.c | 29 +++++++++---- .../windows/editor_object_selection.c | 7 +-- src/openrct2/windows/ride.c | 4 +- 9 files changed, 61 insertions(+), 48 deletions(-) diff --git a/src/openrct2/interface/console.c b/src/openrct2/interface/console.c index fab364c663..373760a654 100644 --- a/src/openrct2/interface/console.c +++ b/src/openrct2/interface/console.c @@ -1126,7 +1126,7 @@ static sint32 cc_load_object(const utf8 **argv, sint32 argc) { rideEntry = get_ride_entry(groupIndex); - for (sint32 j = 0; j < 3; j++) { + for (sint32 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { rideType = rideEntry->ride_type[j]; if (rideType != 255) research_insert(true, 0x10000 | (rideType << 8) | groupIndex, rideEntry->category[0]); diff --git a/src/openrct2/management/research.c b/src/openrct2/management/research.c index 099a9feb6f..afa6871bae 100644 --- a/src/openrct2/management/research.c +++ b/src/openrct2/management/research.c @@ -199,11 +199,11 @@ void research_finish_item(sint32 entryIndex) if ((rideEntry2->flags & RIDE_ENTRY_FLAG_SEPARATE_RIDE)) continue; - if (rideEntry2->ride_type[0] == base_ride_type || - rideEntry2->ride_type[1] == base_ride_type || - rideEntry2->ride_type[2] == base_ride_type - ) { - ride_entry_set_invented(i); + for (uint8 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { + if (rideEntry2->ride_type[j] == base_ride_type) { + ride_entry_set_invented(i); + break; + } } } } @@ -493,7 +493,7 @@ void research_populate_list_random() continue; sint32 researched = (scenario_rand() & 0xFF) > 128; - for (sint32 j = 0; j < 3; j++) { + for (sint32 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { sint32 rideType = rideEntry->ride_type[j]; if (rideType != 255) research_insert(researched, 0x10000 | (rideType << 8) | i, rideEntry->category[0]); @@ -519,7 +519,7 @@ void research_populate_list_researched() if (rideEntry == (rct_ride_entry*)-1) continue; - for (sint32 j = 0; j < 3; j++) { + for (sint32 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { sint32 rideType = rideEntry->ride_type[j]; if (rideType != 255) research_insert(true, 0x10000 | (rideType << 8) | i, rideEntry->category[0]); @@ -581,7 +581,7 @@ void research_insert_ride_entry(uint8 entryIndex, bool researched) { rct_ride_entry *rideEntry = get_ride_entry(entryIndex); uint8 category = rideEntry->category[0]; - for (sint32 i = 0; i < 3; i++) { + for (sint32 i = 0; i < MAX_RIDE_TYPES_PER_RIDE_ENTRY; i++) { uint8 rideType = rideEntry->ride_type[i]; if (rideType != 255) { research_insert(researched, 0x10000 | (rideType << 8) | entryIndex, category); diff --git a/src/openrct2/object/RideObject.cpp b/src/openrct2/object/RideObject.cpp index d674e0cac4..4895930e7f 100644 --- a/src/openrct2/object/RideObject.cpp +++ b/src/openrct2/object/RideObject.cpp @@ -42,7 +42,7 @@ void RideObject::ReadLegacy(IReadObjectContext * context, IStream * stream) { stream->Seek(8, STREAM_SEEK_CURRENT); _legacyType.flags = stream->ReadValue(); - for (sint32 i = 0; i < 3; i++) + for (sint32 i = 0; i < MAX_RIDE_TYPES_PER_RIDE_ENTRY; i++) { _legacyType.ride_type[i] = stream->ReadValue(); } @@ -395,7 +395,7 @@ const utf8 * RideObject::GetCapacity() const void RideObject::SetRepositoryItem(ObjectRepositoryItem * item) const { - for (sint32 i = 0; i < 3; i++) + for (sint32 i = 0; i < MAX_RIDE_TYPES_PER_RIDE_ENTRY; i++) { item->RideType[i] = _legacyType.ride_type[i]; } diff --git a/src/openrct2/rct1.c b/src/openrct2/rct1.c index f9211ad9b1..a4439afa27 100644 --- a/src/openrct2/rct1.c +++ b/src/openrct2/rct1.c @@ -28,7 +28,7 @@ bool rideTypeShouldLoseSeparateFlag(const rct_ride_entry *rideEntry) } bool remove_flag = true; - for (sint32 j = 0; j < 3; j++) { + for (sint32 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { if (rideEntry->ride_type[j] == RIDE_TYPE_NULL) { continue; } diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index cfba05410a..b0468acde5 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -285,7 +285,7 @@ void reset_type_to_ride_entry_index_map() if (rideEntry == (rct_ride_entry *)-1) { continue; } - for (uint8 j = 0; j < 3; j++) { + for (uint8 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { uint8 rideType = rideEntry->ride_type[j]; if (rideType < RIDE_TYPE_COUNT) { uint8 * entryArray = &entryTypeTable[rideType * stride]; diff --git a/src/openrct2/ride/ride.h b/src/openrct2/ride/ride.h index b2a9c1c283..b3691d3df8 100644 --- a/src/openrct2/ride/ride.h +++ b/src/openrct2/ride/ride.h @@ -22,6 +22,7 @@ #include "../world/map.h" #include "vehicle.h" +#define MAX_RIDE_TYPES_PER_RIDE_ENTRY 3 typedef fixed16_2dp ride_rating; // Convenience function for writing ride ratings. The result is a 16 bit signed @@ -84,33 +85,33 @@ assert_struct_size(vehicle_colour_preset_list, (1 + 256 * 3)); * size: unknown */ typedef struct rct_ride_entry { - rct_string_id name; // 0x000 - rct_string_id description; // 0x002 - uint32 images_offset; // 0x004 - uint32 flags; // 0x008 - uint8 ride_type[3]; // 0x00C - uint8 min_cars_in_train; // 0x00F - uint8 max_cars_in_train; // 0x010 - uint8 cars_per_flat_ride; // 0x011 + rct_string_id name; // 0x000 + rct_string_id description; // 0x002 + uint32 images_offset; // 0x004 + uint32 flags; // 0x008 + uint8 ride_type[MAX_RIDE_TYPES_PER_RIDE_ENTRY]; // 0x00C + uint8 min_cars_in_train; // 0x00F + uint8 max_cars_in_train; // 0x010 + uint8 cars_per_flat_ride; // 0x011 // Number of cars that can't hold passengers - uint8 zero_cars; // 0x012 + uint8 zero_cars; // 0x012 // The index to the vehicle type displayed in // the vehicle tab. - uint8 tab_vehicle; // 0x013 - uint8 default_vehicle; // 0x014 + uint8 tab_vehicle; // 0x013 + uint8 default_vehicle; // 0x014 // Convert from first - fourth vehicle to // vehicle structure - uint8 front_vehicle; // 0x015 - uint8 second_vehicle; // 0x016 - uint8 rear_vehicle; // 0x017 - uint8 third_vehicle; // 0x018 - uint8 pad_019; - rct_ride_entry_vehicle vehicles[4]; // 0x1A + uint8 front_vehicle; // 0x015 + uint8 second_vehicle; // 0x016 + uint8 rear_vehicle; // 0x017 + uint8 third_vehicle; // 0x018 + uint8 pad_019; // 0x019 + rct_ride_entry_vehicle vehicles[4]; // 0x01A vehicle_colour_preset_list *vehicle_preset_list; // 0x1AE - sint8 excitement_multipler; // 0x1B2 - sint8 intensity_multipler; // 0x1B3 - sint8 nausea_multipler; // 0x1B4 - uint8 max_height; // 0x1B5 + sint8 excitement_multipler; // 0x1B2 + sint8 intensity_multipler; // 0x1B3 + sint8 nausea_multipler; // 0x1B4 + uint8 max_height; // 0x1B5 union { uint64 enabledTrackPieces; // 0x1B6 struct { diff --git a/src/openrct2/windows/editor_inventions_list.c b/src/openrct2/windows/editor_inventions_list.c index a392c93310..181cc60048 100644 --- a/src/openrct2/windows/editor_inventions_list.c +++ b/src/openrct2/windows/editor_inventions_list.c @@ -205,7 +205,7 @@ static void research_rides_setup(){ uint8 object_index = research->entryIndex & 0xFF; rct_ride_entry* ride_entry = get_ride_entry(object_index); - uint8 master_found = 0; + bool master_found = false; if (!(ride_entry->flags & RIDE_ENTRY_FLAG_SEPARATE_RIDE)){ for (uint8 rideType = 0; rideType < object_entry_group_counts[OBJECT_TYPE_RIDE]; rideType++){ @@ -220,10 +220,14 @@ static void research_rides_setup(){ if (!(gEditorSelectedObjects[OBJECT_TYPE_RIDE][rideType] & (1 << 0))) continue; - if (ride_base_type == master_ride->ride_type[0] || - ride_base_type == master_ride->ride_type[1] || - ride_base_type == master_ride->ride_type[2]){ - master_found = 1; + for (uint8 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { + if (master_ride->ride_type[j] == ride_base_type) { + master_found = true; + break; + } + } + + if (master_found) { break; } } @@ -231,11 +235,18 @@ static void research_rides_setup(){ if (!master_found){ // If not in use - if (!(gEditorSelectedObjects[OBJECT_TYPE_RIDE][object_index] & (1 << 0))) + if (!(gEditorSelectedObjects[OBJECT_TYPE_RIDE][object_index] & (1 << 0))) { continue; - if (ride_base_type != ride_entry->ride_type[0] && - ride_base_type != ride_entry->ride_type[1] && - ride_base_type != ride_entry->ride_type[2]){ + } + + bool foundBaseType = false; + for (uint8 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { + if (ride_entry->ride_type[j] == ride_base_type) { + foundBaseType = true; + } + } + + if (!foundBaseType) { continue; } } diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 6f7b4e91c9..94ccd5afe0 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -715,9 +715,10 @@ static void remove_selected_objects_from_research(const rct_object_entry* instal if (entry_type == OBJECT_TYPE_RIDE){ rct_ride_entry* rideEntry = (rct_ride_entry*)object_entry_groups[entry_type].chunks[entry_index]; - research_remove(entry_index | rideEntry->ride_type[0] << 8 | 0x10000); - research_remove(entry_index | rideEntry->ride_type[1] << 8 | 0x10000); - research_remove(entry_index | rideEntry->ride_type[2] << 8 | 0x10000); + + for (uint8 j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { + research_remove(entry_index | rideEntry->ride_type[j] << 8 | 0x10000); + } } else if (entry_type == OBJECT_TYPE_SCENERY_SETS){ research_remove(entry_index); diff --git a/src/openrct2/windows/ride.c b/src/openrct2/windows/ride.c index 7c761145a2..3d8bab1f89 100644 --- a/src/openrct2/windows/ride.c +++ b/src/openrct2/windows/ride.c @@ -3701,7 +3701,7 @@ static void window_ride_maintenance_mousedown(rct_widgetindex widgetIndex, rct_w case WIDX_FORCE_BREAKDOWN: num_items = 1; - for (j = 0; j < 3; j++) { + for (j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { if (ride_type->ride_type[j] != 0xFF) break; } @@ -3822,7 +3822,7 @@ static void window_ride_maintenance_dropdown(rct_window *w, rct_widgetindex widg } else { sint32 j; - for (j = 0; j < 3; j++) { + for (j = 0; j < MAX_RIDE_TYPES_PER_RIDE_ENTRY; j++) { if (ride_type->ride_type[j] != 0xFF) break; } From 9b041e0018adcad787e7b2aa68a273a052036a0b Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 1 Jun 2017 22:03:14 +0200 Subject: [PATCH 205/670] Name some sub_hex functions --- src/openrct2/input.c | 2 +- src/openrct2/interface/window.c | 46 ++++++++++++++++----------------- src/openrct2/interface/window.h | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/openrct2/input.c b/src/openrct2/input.c index 285faf0474..c3ed7e9c57 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -128,7 +128,7 @@ void game_handle_input() window_event_unknown_07_call(w); } - sub_6EA73F(); + invalidate_all_windows_after_input(); sint32 x, y, state; while ((state = game_get_next_input(&x, &y)) != MOUSE_STATE_RELEASED) { diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 57bfbcaa63..151acdd5ff 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -78,7 +78,7 @@ float window_scroll_locations[][2] = { {0.125f, 0.125f}, }; -static bool sub_6EA95D(sint32 x, sint32 y, sint32 width, sint32 height); +static bool window_fits_between_others(sint32 x, sint32 y, sint32 width, sint32 height); static void window_all_wheel_input(); static sint32 window_draw_split(rct_drawpixelinfo *dpi, rct_window *w, sint32 left, sint32 top, sint32 right, sint32 bottom); static void window_draw_single(rct_drawpixelinfo *dpi, rct_window *w, sint32 left, sint32 top, sint32 right, sint32 bottom); @@ -498,7 +498,7 @@ rct_window *window_create(sint32 x, sint32 y, sint32 width, sint32 height, rct_w * @param width (bx) * @param height (cx) */ -static bool sub_6EA8EC(sint32 x, sint32 y, sint32 width, sint32 height) +static bool window_fits_on_screen(sint32 x, sint32 y, sint32 width, sint32 height) { uint16 screenWidth = context_get_width(); uint16 screenHeight = context_get_height(); @@ -511,7 +511,7 @@ static bool sub_6EA8EC(sint32 x, sint32 y, sint32 width, sint32 height) if (y < 28) return false; unk = screenHeight - (height / 4); if (y > unk) return false; - return sub_6EA95D(x, y, width, height); + return window_fits_between_others(x, y, width, height); } /** @@ -523,13 +523,13 @@ static bool sub_6EA8EC(sint32 x, sint32 y, sint32 width, sint32 height) * @param width (bx) * @param height (cx) */ -static bool sub_6EA934(sint32 x, sint32 y, sint32 width, sint32 height) +static bool window_fits_within_space(sint32 x, sint32 y, sint32 width, sint32 height) { if (x < 0) return false; if (y < 28) return false; if (x + width > context_get_width()) return false; if (y + height > context_get_height()) return false; - return sub_6EA95D(x, y, width, height); + return window_fits_between_others(x, y, width, height); } /** @@ -541,7 +541,7 @@ static bool sub_6EA934(sint32 x, sint32 y, sint32 width, sint32 height) * @param width (bx) * @param height (cx) */ -static bool sub_6EA95D(sint32 x, sint32 y, sint32 width, sint32 height) +static bool window_fits_between_others(sint32 x, sint32 y, sint32 width, sint32 height) { for (rct_window *w = g_window_list; w < RCT2_LAST_WINDOW; w++) { if (w->flags & WF_STICK_TO_BACK) @@ -594,19 +594,19 @@ rct_window *window_create_auto_pos(sint32 width, sint32 height, rct_window_event // Place window in an empty corner of the screen sint32 x = 0; sint32 y = 30; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = screenWidth - width; y = 30; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = 0; y = screenHeight - 34 - height; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = screenWidth - width; y = screenHeight - 34 - height; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; // Place window next to another for (rct_window *w = g_window_list; w < RCT2_LAST_WINDOW; w++) { @@ -615,35 +615,35 @@ rct_window *window_create_auto_pos(sint32 width, sint32 height, rct_window_event x = w->x + w->width + 2; y = w->y; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = w->x - w->width - 2; y = w->y; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = w->x; y = w->y + w->height + 2; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = w->x; y = w->y - w->height - 2; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = w->x + w->width + 2; y = w->y - w->height - 2; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = w->x - w->width - 2; y = w->y - w->height - 2; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = w->x + w->width + 2; y = w->y + w->height + 2; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; x = w->x - w->width - 2; y = w->y + w->height + 2; - if (sub_6EA934(x, y, width, height)) goto foundSpace; + if (window_fits_within_space(x, y, width, height)) goto foundSpace; } // Overlap @@ -653,19 +653,19 @@ rct_window *window_create_auto_pos(sint32 width, sint32 height, rct_window_event x = w->x + w->width + 2; y = w->y; - if (sub_6EA8EC(x, y, width, height)) goto foundSpace; + if (window_fits_on_screen(x, y, width, height)) goto foundSpace; x = w->x - w->width - 2; y = w->y; - if (sub_6EA8EC(x, y, width, height)) goto foundSpace; + if (window_fits_on_screen(x, y, width, height)) goto foundSpace; x = w->x; y = w->y + w->height + 2; - if (sub_6EA8EC(x, y, width, height)) goto foundSpace; + if (window_fits_on_screen(x, y, width, height)) goto foundSpace; x = w->x; y = w->y - w->height - 2; - if (sub_6EA8EC(x, y, width, height)) goto foundSpace; + if (window_fits_on_screen(x, y, width, height)) goto foundSpace; } // Cascade @@ -2268,7 +2268,7 @@ static void window_invalidate_pressed_image_buttons(rct_window *w) * * rct2: 0x006EA73F */ -void sub_6EA73F() +void invalidate_all_windows_after_input() { for (rct_window *w = RCT2_LAST_WINDOW; w >= g_window_list; w--) { window_update_scroll_widgets(w); diff --git a/src/openrct2/interface/window.h b/src/openrct2/interface/window.h index 9a8ee65326..9ef7662863 100644 --- a/src/openrct2/interface/window.h +++ b/src/openrct2/interface/window.h @@ -824,7 +824,7 @@ void window_event_invalidate_call(rct_window* w); void window_event_paint_call(rct_window* w, rct_drawpixelinfo *dpi); void window_event_scroll_paint_call(rct_window* w, rct_drawpixelinfo *dpi, sint32 scrollIndex); -void sub_6EA73F(); +void invalidate_all_windows_after_input(); void textinput_cancel(); void window_move_and_snap(rct_window *w, sint32 newWindowX, sint32 newWindowY, sint32 snapProximity); From fad3c11827997340670033df0fd6bf0e88a69181 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Thu, 1 Jun 2017 22:20:50 +0200 Subject: [PATCH 206/670] Create define for top toolbar clearance and fix #837 --- src/openrct2/interface/window.c | 11 ++++++----- src/openrct2/interface/window.h | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 151acdd5ff..6c3c1f45e5 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -508,7 +508,7 @@ static bool window_fits_on_screen(sint32 x, sint32 y, sint32 width, sint32 heigh if (x < unk) return false; unk = screenWidth + (unk * 2); if (x > unk) return false; - if (y < 28) return false; + if (y < TOP_TOOLBAR_CLEARANCE && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)) return false; unk = screenHeight - (height / 4); if (y > unk) return false; return window_fits_between_others(x, y, width, height); @@ -526,7 +526,7 @@ static bool window_fits_on_screen(sint32 x, sint32 y, sint32 width, sint32 heigh static bool window_fits_within_space(sint32 x, sint32 y, sint32 width, sint32 height) { if (x < 0) return false; - if (y < 28) return false; + if (y < TOP_TOOLBAR_CLEARANCE && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)) return false; if (x + width > context_get_width()) return false; if (y + height > context_get_height()) return false; return window_fits_between_others(x, y, width, height); @@ -695,7 +695,7 @@ rct_window * window_create_centred(sint32 width, sint32 height, rct_window_event sint32 screenHeight = context_get_height(); sint32 x = (screenWidth - width) / 2; - sint32 y = max(28, (screenHeight - height) / 2); + sint32 y = max(TOP_TOOLBAR_CLEARANCE, (screenHeight - height) / 2); return window_create(x, y, width, height, event_handlers, cls, flags); } @@ -2117,7 +2117,7 @@ void window_relocate_windows(sint32 width, sint32 height){ sint32 x = w->x; sint32 y = w->y; w->x = new_location; - w->y = new_location + 28; + w->y = new_location + TOP_TOOLBAR_CLEARANCE; // Move the next new location so windows are not directly on top new_location += 8; @@ -2448,8 +2448,9 @@ void window_move_and_snap(rct_window *w, sint32 newWindowX, sint32 newWindowY, s { sint32 originalX = w->x; sint32 originalY = w->y; + sint32 minY = (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) ? 1 : TOP_TOOLBAR_CLEARANCE + 1; - newWindowY = clamp(29, newWindowY, context_get_height() - 34); + newWindowY = clamp(minY, newWindowY, context_get_height() - 34); if (snapProximity > 0) { w->x = newWindowX; diff --git a/src/openrct2/interface/window.h b/src/openrct2/interface/window.h index 9ef7662863..c12f9ce135 100644 --- a/src/openrct2/interface/window.h +++ b/src/openrct2/interface/window.h @@ -36,6 +36,7 @@ struct TitleSequence; struct TextInputSession; #define TEXT_INPUT_SIZE 1024 +#define TOP_TOOLBAR_CLEARANCE 28 extern uint16 TextInputDescriptionArgs[4]; extern char gTextBoxInput[TEXT_INPUT_SIZE]; From 2e40d90f5fa5cb0e508190cad7dec58b567decb1 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Thu, 1 Jun 2017 22:38:35 +0200 Subject: [PATCH 207/670] Replace more occurences of 28 --- src/openrct2/windows/install_track.c | 2 +- src/openrct2/windows/top_toolbar.c | 2 +- src/openrct2/windows/track_list.c | 4 ++-- src/openrct2/windows/track_manage.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openrct2/windows/install_track.c b/src/openrct2/windows/install_track.c index 940a287e42..164714c61a 100644 --- a/src/openrct2/windows/install_track.c +++ b/src/openrct2/windows/install_track.c @@ -129,7 +129,7 @@ void window_install_track_open(const utf8 *path) sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); sint32 x = screenWidth / 2 - 201; - sint32 y = max(28, screenHeight / 2 - 200); + sint32 y = max(TOP_TOOLBAR_CLEARANCE, screenHeight / 2 - 200); rct_window *w = window_create(x, y, 402, 400, &window_install_track_events, WC_INSTALL_TRACK, 0); w->widgets = window_install_track_widgets; diff --git a/src/openrct2/windows/top_toolbar.c b/src/openrct2/windows/top_toolbar.c index 8501888f19..28cef6b4e7 100644 --- a/src/openrct2/windows/top_toolbar.c +++ b/src/openrct2/windows/top_toolbar.c @@ -293,7 +293,7 @@ void window_top_toolbar_open() { rct_window * window = window_create( 0, 0, - context_get_width(), 28, + context_get_width(), TOP_TOOLBAR_CLEARANCE, &window_top_toolbar_events, WC_TOP_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 5d0030872c..6149ad1a56 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -125,10 +125,10 @@ void window_track_list_open(ride_list_item item) sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); x = screenWidth / 2 - 300; - y = max(28, screenHeight / 2 - 200); + y = max(TOP_TOOLBAR_CLEARANCE, screenHeight / 2 - 200); } else { x = 0; - y = 29; + y = TOP_TOOLBAR_CLEARANCE + 1; } rct_window *w = window_create( x, diff --git a/src/openrct2/windows/track_manage.c b/src/openrct2/windows/track_manage.c index 14c33bebe6..963322cb75 100644 --- a/src/openrct2/windows/track_manage.c +++ b/src/openrct2/windows/track_manage.c @@ -258,7 +258,7 @@ static void window_track_delete_prompt_open() sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); rct_window *w = window_create( - max(28, (screenWidth - 250) / 2), + max(TOP_TOOLBAR_CLEARANCE, (screenWidth - 250) / 2), (screenHeight - 44) / 2, 250, 74, From 9d16ad48a52e2a9fae91096dac181c27cac65263 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 2 Jun 2017 15:12:13 +0100 Subject: [PATCH 208/670] Update openrct2.6 --- distribution/man/openrct2.6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/man/openrct2.6 b/distribution/man/openrct2.6 index a7ad110c42..ac69e10384 100644 --- a/distribution/man/openrct2.6 +++ b/distribution/man/openrct2.6 @@ -106,7 +106,7 @@ Print diagnostic information to stdout. .It Fl -headless run .Nm -as a background process. +without a graphical window. .It Fl -port Ar port Port to use for hosting or joining a server. @@ -132,7 +132,7 @@ Path to the RollerCoaster Tycoon 2 data directory (containing Open a saved park. .It openrct2 https://openrct2.website/files/SnowyPark.sv6 Download and open a saved park. -.It host ./my_park.sv6 --port 11753 --headless +.It openrct2 host ./my_park.sv6 --port 11753 --headless Run a headless server for a saved park. .Sh SEE ALSO From dd8a0847e15ca5e089068a1c1a4a165279da2953 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 2 Jun 2017 16:34:30 +0200 Subject: [PATCH 209/670] Replace TOP_TOOLBAR_CLEARANCE with TOP_TOOLBAR_HEIGHT --- src/openrct2/interface/window.c | 10 +++--- src/openrct2/interface/window.h | 2 +- src/openrct2/windows/install_track.c | 2 +- src/openrct2/windows/top_toolbar.c | 54 ++++++++++++++-------------- src/openrct2/windows/track_list.c | 4 +-- src/openrct2/windows/track_manage.c | 2 +- 6 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/openrct2/interface/window.c b/src/openrct2/interface/window.c index 6c3c1f45e5..4cb0db0bfa 100644 --- a/src/openrct2/interface/window.c +++ b/src/openrct2/interface/window.c @@ -508,7 +508,7 @@ static bool window_fits_on_screen(sint32 x, sint32 y, sint32 width, sint32 heigh if (x < unk) return false; unk = screenWidth + (unk * 2); if (x > unk) return false; - if (y < TOP_TOOLBAR_CLEARANCE && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)) return false; + if (y <= TOP_TOOLBAR_HEIGHT && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)) return false; unk = screenHeight - (height / 4); if (y > unk) return false; return window_fits_between_others(x, y, width, height); @@ -526,7 +526,7 @@ static bool window_fits_on_screen(sint32 x, sint32 y, sint32 width, sint32 heigh static bool window_fits_within_space(sint32 x, sint32 y, sint32 width, sint32 height) { if (x < 0) return false; - if (y < TOP_TOOLBAR_CLEARANCE && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)) return false; + if (y <= TOP_TOOLBAR_HEIGHT && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)) return false; if (x + width > context_get_width()) return false; if (y + height > context_get_height()) return false; return window_fits_between_others(x, y, width, height); @@ -695,7 +695,7 @@ rct_window * window_create_centred(sint32 width, sint32 height, rct_window_event sint32 screenHeight = context_get_height(); sint32 x = (screenWidth - width) / 2; - sint32 y = max(TOP_TOOLBAR_CLEARANCE, (screenHeight - height) / 2); + sint32 y = max(TOP_TOOLBAR_HEIGHT + 1, (screenHeight - height) / 2); return window_create(x, y, width, height, event_handlers, cls, flags); } @@ -2117,7 +2117,7 @@ void window_relocate_windows(sint32 width, sint32 height){ sint32 x = w->x; sint32 y = w->y; w->x = new_location; - w->y = new_location + TOP_TOOLBAR_CLEARANCE; + w->y = new_location + TOP_TOOLBAR_HEIGHT + 1; // Move the next new location so windows are not directly on top new_location += 8; @@ -2448,7 +2448,7 @@ void window_move_and_snap(rct_window *w, sint32 newWindowX, sint32 newWindowY, s { sint32 originalX = w->x; sint32 originalY = w->y; - sint32 minY = (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) ? 1 : TOP_TOOLBAR_CLEARANCE + 1; + sint32 minY = (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO) ? 1 : TOP_TOOLBAR_HEIGHT + 2; newWindowY = clamp(minY, newWindowY, context_get_height() - 34); diff --git a/src/openrct2/interface/window.h b/src/openrct2/interface/window.h index c12f9ce135..a6921f9192 100644 --- a/src/openrct2/interface/window.h +++ b/src/openrct2/interface/window.h @@ -36,7 +36,7 @@ struct TitleSequence; struct TextInputSession; #define TEXT_INPUT_SIZE 1024 -#define TOP_TOOLBAR_CLEARANCE 28 +#define TOP_TOOLBAR_HEIGHT 27 extern uint16 TextInputDescriptionArgs[4]; extern char gTextBoxInput[TEXT_INPUT_SIZE]; diff --git a/src/openrct2/windows/install_track.c b/src/openrct2/windows/install_track.c index 164714c61a..941851c653 100644 --- a/src/openrct2/windows/install_track.c +++ b/src/openrct2/windows/install_track.c @@ -129,7 +129,7 @@ void window_install_track_open(const utf8 *path) sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); sint32 x = screenWidth / 2 - 201; - sint32 y = max(TOP_TOOLBAR_CLEARANCE, screenHeight / 2 - 200); + sint32 y = max(TOP_TOOLBAR_HEIGHT + 1, screenHeight / 2 - 200); rct_window *w = window_create(x, y, 402, 400, &window_install_track_events, WC_INSTALL_TRACK, 0); w->widgets = window_install_track_widgets; diff --git a/src/openrct2/windows/top_toolbar.c b/src/openrct2/windows/top_toolbar.c index 28cef6b4e7..fd577a2455 100644 --- a/src/openrct2/windows/top_toolbar.c +++ b/src/openrct2/windows/top_toolbar.c @@ -189,33 +189,33 @@ static const sint32 right_aligned_widgets_order[] = { #pragma endregion static rct_widget window_top_toolbar_widgets[] = { - { WWT_TRNBTN, 0, 0x0000, 0x001D, 0, 27, 0x20000000 | SPR_TOOLBAR_PAUSE, STR_PAUSE_GAME_TIP }, // Pause - { WWT_TRNBTN, 0, 0x001E + 30, 0x003B + 30, 0, 27, 0x20000000 | SPR_TOOLBAR_FILE, STR_DISC_AND_GAME_OPTIONS_TIP }, // File menu - { WWT_TRNBTN, 0, 0x00DC + 30, 0x00F9 + 30, 0, 27, 0x20000000 | SPR_G2_TOOLBAR_MUTE, STR_TOOLBAR_MUTE_TIP }, // Mute - { WWT_TRNBTN, 1, 0x0046 + 30, 0x0063 + 30, 0, 27, 0x20000000 | SPR_TOOLBAR_ZOOM_OUT, STR_ZOOM_OUT_TIP }, // Zoom out - { WWT_TRNBTN, 1, 0x0064 + 30, 0x0081 + 30, 0, 27, 0x20000000 | SPR_TOOLBAR_ZOOM_IN, STR_ZOOM_IN_TIP }, // Zoom in - { WWT_TRNBTN, 1, 0x0082 + 30, 0x009F + 30, 0, 27, 0x20000000 | SPR_TOOLBAR_ROTATE, STR_ROTATE_TIP }, // Rotate camera - { WWT_TRNBTN, 1, 0x00A0 + 30, 0x00BD + 30, 0, 27, 0x20000000 | SPR_TOOLBAR_VIEW, STR_VIEW_OPTIONS_TIP }, // Transparency menu - { WWT_TRNBTN, 1, 0x00BE + 30, 0x00DB + 30, 0, 27, 0x20000000 | SPR_TOOLBAR_MAP, STR_SHOW_MAP_TIP }, // Map - { WWT_TRNBTN, 2, 0x010B, 0x0128, 0, 27, 0x20000000 | SPR_TOOLBAR_LAND, STR_ADJUST_LAND_TIP }, // Land - { WWT_TRNBTN, 2, 0x0129, 0x0146, 0, 27, 0x20000000 | SPR_TOOLBAR_WATER, STR_ADJUST_WATER_TIP }, // Water - { WWT_TRNBTN, 2, 0x0147, 0x0164, 0, 27, 0x20000000 | SPR_TOOLBAR_SCENERY, STR_PLACE_SCENERY_TIP }, // Scenery - { WWT_TRNBTN, 2, 0x0165, 0x0182, 0, 27, 0x20000000 | SPR_TOOLBAR_FOOTPATH, STR_BUILD_FOOTPATH_TIP }, // Path - { WWT_TRNBTN, 2, 0x0183, 0x01A0, 0, 27, 0x20000000 | SPR_TOOLBAR_CONSTRUCT_RIDE, STR_BUILD_RIDE_TIP }, // Construct ride - { WWT_TRNBTN, 3, 0x01EA, 0x0207, 0, 27, 0x20000000 | SPR_TOOLBAR_RIDES, STR_RIDES_IN_PARK_TIP }, // Rides - { WWT_TRNBTN, 3, 0x0208, 0x0225, 0, 27, 0x20000000 | SPR_TOOLBAR_PARK, STR_PARK_INFORMATION_TIP }, // Park - { WWT_TRNBTN, 3, 0x0226, 0x0243, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_STAFF_TIP }, // Staff - { WWT_TRNBTN, 3, 0x0230, 0x024D, 0, 27, 0x20000000 | SPR_TOOLBAR_GUESTS, STR_GUESTS_TIP }, // Guests - { WWT_TRNBTN, 2, 0x0230, 0x024D, 0, 27, 0x20000000 | SPR_TOOLBAR_CLEAR_SCENERY, STR_CLEAR_SCENERY_TIP }, // Clear scenery - { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_GAME_SPEED_TIP }, // Fast forward - { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_CHEATS_TIP }, // Cheats - { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_DEBUG_TIP }, // Debug - { WWT_TRNBTN, 3, 0x001E, 0x003B, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_SCENARIO_OPTIONS_FINANCIAL_TIP },// Finances - { WWT_TRNBTN, 3, 0x001E, 0x003B, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_FINANCES_RESEARCH_TIP }, // Research - { WWT_TRNBTN, 3, 0x001E, 0x003B, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_SHOW_RECENT_MESSAGES_TIP }, // News - { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, 27, 0x20000000 | SPR_TAB_TOOLBAR, STR_SHOW_MULTIPLAYER_STATUS_TIP }, // Network + { WWT_TRNBTN, 0, 0x0000, 0x001D, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_PAUSE, STR_PAUSE_GAME_TIP }, // Pause + { WWT_TRNBTN, 0, 0x001E + 30, 0x003B + 30, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_FILE, STR_DISC_AND_GAME_OPTIONS_TIP }, // File menu + { WWT_TRNBTN, 0, 0x00DC + 30, 0x00F9 + 30, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_G2_TOOLBAR_MUTE, STR_TOOLBAR_MUTE_TIP }, // Mute + { WWT_TRNBTN, 1, 0x0046 + 30, 0x0063 + 30, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_ZOOM_OUT, STR_ZOOM_OUT_TIP }, // Zoom out + { WWT_TRNBTN, 1, 0x0064 + 30, 0x0081 + 30, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_ZOOM_IN, STR_ZOOM_IN_TIP }, // Zoom in + { WWT_TRNBTN, 1, 0x0082 + 30, 0x009F + 30, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_ROTATE, STR_ROTATE_TIP }, // Rotate camera + { WWT_TRNBTN, 1, 0x00A0 + 30, 0x00BD + 30, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_VIEW, STR_VIEW_OPTIONS_TIP }, // Transparency menu + { WWT_TRNBTN, 1, 0x00BE + 30, 0x00DB + 30, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_MAP, STR_SHOW_MAP_TIP }, // Map + { WWT_TRNBTN, 2, 0x010B, 0x0128, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_LAND, STR_ADJUST_LAND_TIP }, // Land + { WWT_TRNBTN, 2, 0x0129, 0x0146, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_WATER, STR_ADJUST_WATER_TIP }, // Water + { WWT_TRNBTN, 2, 0x0147, 0x0164, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_SCENERY, STR_PLACE_SCENERY_TIP }, // Scenery + { WWT_TRNBTN, 2, 0x0165, 0x0182, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_FOOTPATH, STR_BUILD_FOOTPATH_TIP }, // Path + { WWT_TRNBTN, 2, 0x0183, 0x01A0, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_CONSTRUCT_RIDE, STR_BUILD_RIDE_TIP }, // Construct ride + { WWT_TRNBTN, 3, 0x01EA, 0x0207, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_RIDES, STR_RIDES_IN_PARK_TIP }, // Rides + { WWT_TRNBTN, 3, 0x0208, 0x0225, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_PARK, STR_PARK_INFORMATION_TIP }, // Park + { WWT_TRNBTN, 3, 0x0226, 0x0243, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_STAFF_TIP }, // Staff + { WWT_TRNBTN, 3, 0x0230, 0x024D, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_GUESTS, STR_GUESTS_TIP }, // Guests + { WWT_TRNBTN, 2, 0x0230, 0x024D, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TOOLBAR_CLEAR_SCENERY, STR_CLEAR_SCENERY_TIP }, // Clear scenery + { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_GAME_SPEED_TIP }, // Fast forward + { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_CHEATS_TIP }, // Cheats + { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_DEBUG_TIP }, // Debug + { WWT_TRNBTN, 3, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_SCENARIO_OPTIONS_FINANCIAL_TIP },// Finances + { WWT_TRNBTN, 3, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_FINANCES_RESEARCH_TIP }, // Research + { WWT_TRNBTN, 3, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_SHOW_RECENT_MESSAGES_TIP }, // News + { WWT_TRNBTN, 0, 0x001E, 0x003B, 0, TOP_TOOLBAR_HEIGHT, 0x20000000 | SPR_TAB_TOOLBAR, STR_SHOW_MULTIPLAYER_STATUS_TIP }, // Network - { WWT_EMPTY, 0, 0, 10-1, 0, 0, 0xFFFFFFFF, STR_NONE }, // Artificial widget separator + { WWT_EMPTY, 0, 0, 10-1, 0, 0, 0xFFFFFFFF, STR_NONE }, // Artificial widget separator { WIDGETS_END }, }; @@ -293,7 +293,7 @@ void window_top_toolbar_open() { rct_window * window = window_create( 0, 0, - context_get_width(), TOP_TOOLBAR_CLEARANCE, + context_get_width(), TOP_TOOLBAR_HEIGHT + 1, &window_top_toolbar_events, WC_TOP_TOOLBAR, WF_STICK_TO_FRONT | WF_TRANSPARENT | WF_NO_BACKGROUND diff --git a/src/openrct2/windows/track_list.c b/src/openrct2/windows/track_list.c index 6149ad1a56..5286d4066f 100644 --- a/src/openrct2/windows/track_list.c +++ b/src/openrct2/windows/track_list.c @@ -125,10 +125,10 @@ void window_track_list_open(ride_list_item item) sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); x = screenWidth / 2 - 300; - y = max(TOP_TOOLBAR_CLEARANCE, screenHeight / 2 - 200); + y = max(TOP_TOOLBAR_HEIGHT + 1, screenHeight / 2 - 200); } else { x = 0; - y = TOP_TOOLBAR_CLEARANCE + 1; + y = TOP_TOOLBAR_HEIGHT + 2; } rct_window *w = window_create( x, diff --git a/src/openrct2/windows/track_manage.c b/src/openrct2/windows/track_manage.c index 963322cb75..f6b80fc1de 100644 --- a/src/openrct2/windows/track_manage.c +++ b/src/openrct2/windows/track_manage.c @@ -258,7 +258,7 @@ static void window_track_delete_prompt_open() sint32 screenWidth = context_get_width(); sint32 screenHeight = context_get_height(); rct_window *w = window_create( - max(TOP_TOOLBAR_CLEARANCE, (screenWidth - 250) / 2), + max(TOP_TOOLBAR_HEIGHT + 1, (screenWidth - 250) / 2), (screenHeight - 44) / 2, 250, 74, From 852ea898e795b05ff1d1784946ad52bda83ed94b Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 2 Jun 2017 18:36:21 +0100 Subject: [PATCH 210/670] Fix #5534: Unable to select any full screen resolutions --- src/openrct2-ui/UiContext.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 2facbf5a72..70571a0ccc 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -606,16 +606,18 @@ private: SDL_GetDesktopDisplayMode(displayIndex, &mode); // Get resolutions - auto resolutions = std::vector(numDisplayModes); + auto resolutions = std::vector(); float desktopAspectRatio = (float)mode.w / mode.h; for (sint32 i = 0; i < numDisplayModes; i++) { SDL_GetDisplayMode(displayIndex, i, &mode); - - float aspectRatio = (float)mode.w / mode.h; - if (_resolutionsAllowAnyAspectRatio || std::fabs(desktopAspectRatio - aspectRatio) < 0.0001f) + if (mode.w > 0 && mode.h > 0) { - resolutions.push_back({ mode.w, mode.h }); + float aspectRatio = (float)mode.w / mode.h; + if (_resolutionsAllowAnyAspectRatio || std::fabs(desktopAspectRatio - aspectRatio) < 0.0001f) + { + resolutions.push_back({ mode.w, mode.h }); + } } } @@ -642,6 +644,8 @@ private: gConfigGeneral.fullscreen_width = resolutions.back().Width; gConfigGeneral.fullscreen_height = resolutions.back().Height; } + + _fsResolutions = resolutions; } Resolution GetClosestResolution(sint32 inWidth, sint32 inHeight) From e048f527386bdf4e0066baa6ac3172b5c1bd95d9 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 2 Jun 2017 19:08:03 +0100 Subject: [PATCH 211/670] Fix #5537: SDL_Init(SDL_INIT_VIDEO) is called even when using --headless option Create a dummy UI context and use that if headless is enabled. Some extra guards added to deal with the return values from the dummy class. It may be temporary until the window and input code is moved to openrct2ui. --- src/openrct2-dll/openrct2-dll.cpp | 20 +------- src/openrct2-ui/Ui.cpp | 11 +++-- src/openrct2-ui/Ui.h | 19 ++++++++ src/openrct2-ui/libopenrct2ui.vcxproj | 1 + src/openrct2/game.c | 50 +++++++++++--------- src/openrct2/input.c | 4 ++ src/openrct2/ui/DummyUiContext.cpp | 68 +++++++++++++++++++++++++++ src/openrct2/ui/UiContext.h | 2 + 8 files changed, 129 insertions(+), 46 deletions(-) create mode 100644 src/openrct2-ui/Ui.h create mode 100644 src/openrct2/ui/DummyUiContext.cpp diff --git a/src/openrct2-dll/openrct2-dll.cpp b/src/openrct2-dll/openrct2-dll.cpp index b74e5af904..c9ba4c1f6d 100644 --- a/src/openrct2-dll/openrct2-dll.cpp +++ b/src/openrct2-dll/openrct2-dll.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include using namespace OpenRCT2; @@ -37,25 +38,6 @@ static char * * GetCommandLineArgs(int argc, wchar_t * * argvW); static void FreeCommandLineArgs(int argc, char * * argv); static char * ConvertUTF16toUTF8(const wchar_t * src); -static int NormalisedMain(int argc, char * * argv) -{ - core_init(); - int runGame = cmdline_run((const char * *)argv, argc); - if (runGame == 1) - { - IAudioContext * audioContext = CreateAudioContext(); - IUiContext * uiContext = CreateUiContext(); - IContext * context = CreateContext(audioContext, uiContext); - - context->RunOpenRCT2(argc, argv); - - delete context; - delete uiContext; - delete audioContext; - } - return gExitCode; -} - DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t * * argvW) { char * * argv = GetCommandLineArgs(argc, argvW); diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp index fa403c25db..c32f05b726 100644 --- a/src/openrct2-ui/Ui.cpp +++ b/src/openrct2-ui/Ui.cpp @@ -14,13 +14,12 @@ *****************************************************************************/ #pragma endregion -#ifndef _MSC_VER - #include #include #include #include #include "audio/AudioContext.h" +#include "Ui.h" #include "UiContext.h" using namespace OpenRCT2; @@ -30,7 +29,11 @@ using namespace OpenRCT2::Ui; /** * Main entry point for non-Windows sytems. Windows instead uses its own DLL proxy. */ +#ifdef _MSC_VER +int NormalisedMain(int argc, char * * argv) +#else int main(int argc, char * * argv) +#endif { core_init(); int runGame = cmdline_run((const char * *)argv, argc); @@ -38,7 +41,7 @@ int main(int argc, char * * argv) { // Run OpenRCT2 with a UI context IAudioContext * audioContext = CreateAudioContext(); - IUiContext * uiContext = CreateUiContext(); + IUiContext * uiContext = gOpenRCT2Headless ? CreateDummyUiContext() : CreateUiContext(); IContext * context = CreateContext(audioContext, uiContext); context->RunOpenRCT2(argc, argv); @@ -49,5 +52,3 @@ int main(int argc, char * * argv) } return gExitCode; } - -#endif diff --git a/src/openrct2-ui/Ui.h b/src/openrct2-ui/Ui.h new file mode 100644 index 0000000000..a4ecd9f9c7 --- /dev/null +++ b/src/openrct2-ui/Ui.h @@ -0,0 +1,19 @@ +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#ifdef _MSC_VER + int NormalisedMain(int argc, char * * argv); +#endif diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 37bce8edc8..9bd0b6ad68 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -64,6 +64,7 @@ + diff --git a/src/openrct2/game.c b/src/openrct2/game.c index 2a890b3392..18ad803dab 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -338,31 +338,34 @@ void game_update() gGameCommandNestLevel = 0; - input_set_flag(INPUT_FLAG_VIEWPORT_SCROLLING, false); + if (!gOpenRCT2Headless) + { + input_set_flag(INPUT_FLAG_VIEWPORT_SCROLLING, false); - // the flickering frequency is reduced by 4, compared to the original - // it was done due to inability to reproduce original frequency - // and decision that the original one looks too fast - if (gCurrentTicks % 4 == 0) - gWindowMapFlashingFlags ^= (1 << 15); + // the flickering frequency is reduced by 4, compared to the original + // it was done due to inability to reproduce original frequency + // and decision that the original one looks too fast + if (gCurrentTicks % 4 == 0) + gWindowMapFlashingFlags ^= (1 << 15); - // Handle guest map flashing - gWindowMapFlashingFlags &= ~(1 << 1); - if (gWindowMapFlashingFlags & (1 << 0)) - gWindowMapFlashingFlags |= (1 << 1); - gWindowMapFlashingFlags &= ~(1 << 0); + // Handle guest map flashing + gWindowMapFlashingFlags &= ~(1 << 1); + if (gWindowMapFlashingFlags & (1 << 0)) + gWindowMapFlashingFlags |= (1 << 1); + gWindowMapFlashingFlags &= ~(1 << 0); - // Handle staff map flashing - gWindowMapFlashingFlags &= ~(1 << 3); - if (gWindowMapFlashingFlags & (1 << 2)) - gWindowMapFlashingFlags |= (1 << 3); - gWindowMapFlashingFlags &= ~(1 << 2); + // Handle staff map flashing + gWindowMapFlashingFlags &= ~(1 << 3); + if (gWindowMapFlashingFlags & (1 << 2)) + gWindowMapFlashingFlags |= (1 << 3); + gWindowMapFlashingFlags &= ~(1 << 2); - window_map_tooltip_update_visibility(); + window_map_tooltip_update_visibility(); - // Input - gUnk141F568 = gUnk13CA740; - game_handle_input(); + // Input + gUnk141F568 = gUnk13CA740; + game_handle_input(); + } } void game_logic_update() @@ -915,8 +918,11 @@ void game_load_init() load_palette(); gfx_invalidate_screen(); - window_tile_inspector_clear_clipboard(); - window_update_all(); + + if (!gOpenRCT2Headless) { + window_tile_inspector_clear_clipboard(); + window_update_all(); + } gGameSpeed = 1; } diff --git a/src/openrct2/input.c b/src/openrct2/input.c index c3ed7e9c57..ac1e087300 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -1470,6 +1470,10 @@ void game_handle_keyboard_input() rct_window *w; sint32 key; + if (gOpenRCT2Headless) { + return; + } + if (!gConsoleOpen) { // Handle mouse scrolling if (_inputState == INPUT_STATE_NORMAL && gConfigGeneral.edge_scrolling) { diff --git a/src/openrct2/ui/DummyUiContext.cpp b/src/openrct2/ui/DummyUiContext.cpp new file mode 100644 index 0000000000..bc4346e015 --- /dev/null +++ b/src/openrct2/ui/DummyUiContext.cpp @@ -0,0 +1,68 @@ +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include "UiContext.h" + +namespace OpenRCT2 { namespace Ui +{ + /** + * Represents the window or screen that OpenRCT2 is presented on. + */ + class DummyUiContext final : public IUiContext + { + void CreateWindow() override { } + void CloseWindow() override { } + SDL_Window * GetWindow() override { return nullptr; } + sint32 GetWidth() override { return 0; } + sint32 GetHeight() override { return 0; } + void SetFullscreenMode(FULLSCREEN_MODE mode) override { } + std::vector GetFullscreenResolutions() override { return std::vector(); } + bool HasFocus() override { return false; } + bool IsMinimised() override { return false; } + bool IsSteamOverlayActive() override { return false; } + void ProcessMessages() override { } + void TriggerResize() override { } + + virtual void ShowMessageBox(const std::string &message) override { } + virtual std::string ShowFileDialog(const FileDialogDesc &desc) override { return std::string(); } + virtual std::string ShowDirectoryDialog(const std::string &title) override { return std::string(); } + + // Input + virtual const CursorState * GetCursorState() override { return nullptr; } + virtual CURSOR_ID GetCursor() override { return CURSOR_ARROW; } + virtual void SetCursor(CURSOR_ID cursor) override { } + virtual void SetCursorVisible(bool value) override { } + virtual void GetCursorPosition(sint32 * x, sint32 * y) override { } + virtual void SetCursorPosition(sint32 x, sint32 y) override { } + virtual void SetCursorTrap(bool value) override { } + virtual const uint8 * GetKeysState() override { return nullptr; } + virtual const uint8 * GetKeysPressed() override { return nullptr; } + virtual void SetKeysPressed(uint32 keysym, uint8 scancode) override { } + + // Drawing + virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) override { return nullptr; } + + // Text input + virtual bool IsTextInputActive() override { return false; } + virtual TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) override { return nullptr; } + virtual void StopTextInput() override { } + }; + + IUiContext * CreateDummyUiContext() + { + return new DummyUiContext(); + } +} } diff --git a/src/openrct2/ui/UiContext.h b/src/openrct2/ui/UiContext.h index ec7f60628a..aeef40d16d 100644 --- a/src/openrct2/ui/UiContext.h +++ b/src/openrct2/ui/UiContext.h @@ -129,5 +129,7 @@ namespace OpenRCT2 virtual TextInputSession * StartTextInput(utf8 * buffer, size_t bufferSize) abstract; virtual void StopTextInput() abstract; }; + + IUiContext * CreateDummyUiContext(); } } From c136dc85d23b78cd9e448b501ba9672bf18c4f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 3 Jun 2017 12:52:34 +0200 Subject: [PATCH 212/670] Provide define for maximum map edge size --- src/openrct2/ride/track_design.c | 2 +- src/openrct2/windows/map.c | 35 ++++++++--------- src/openrct2/windows/mapgen.c | 4 -- src/openrct2/world/map.c | 64 ++++++++++++++++---------------- src/openrct2/world/map.h | 12 ++++-- src/openrct2/world/mapgen.c | 6 +-- 6 files changed, 61 insertions(+), 62 deletions(-) diff --git a/src/openrct2/ride/track_design.c b/src/openrct2/ride/track_design.c index f6c84b5886..18187435d6 100644 --- a/src/openrct2/ride/track_design.c +++ b/src/openrct2/ride/track_design.c @@ -38,7 +38,7 @@ typedef struct map_backup { rct_map_element map_elements[MAX_MAP_ELEMENTS]; - rct_map_element *tile_pointers[256 * 256]; + rct_map_element *tile_pointers[MAX_TILE_MAP_ELEMENT_POINTERS]; rct_map_element *next_free_map_element; uint16 map_size_units; uint16 map_size_units_minus_2; diff --git a/src/openrct2/windows/map.c b/src/openrct2/windows/map.c index 2dbd3f019f..4ced5528f9 100644 --- a/src/openrct2/windows/map.c +++ b/src/openrct2/windows/map.c @@ -32,15 +32,12 @@ #define MINIMUM_TOOL_SIZE 1 #define MAXIMUM_TOOL_SIZE 64 -#define MINIMUM_MAP_SIZE_TECHNICAL 15 -#define MAXIMUM_MAP_SIZE_TECHNICAL 256 -#define MINIMUM_MAP_SIZE_PRACTICAL MINIMUM_MAP_SIZE_TECHNICAL-2 -#define MAXIMUM_MAP_SIZE_PRACTICAL MAXIMUM_MAP_SIZE_TECHNICAL-2 - #define MAP_COLOUR_2(colourA, colourB) ((colourA << 8) | colourB) #define MAP_COLOUR(colour) MAP_COLOUR_2(colour, colour) #define FALLBACK_COLOUR(colour) ((colour << 24) || colour << 16) +#define MAP_WINDOW_MAP_SIZE (MAXIMUM_MAP_SIZE_TECHNICAL * 2) + enum { PAGE_PEEPS, PAGE_RIDES @@ -176,7 +173,7 @@ static uint8 _activeTool; static uint32 _currentLine; /** rct2: 0x00F1AD68 */ -static uint8 (*_mapImageData)[512][512]; +static uint8 (*_mapImageData)[MAP_WINDOW_MAP_SIZE][MAP_WINDOW_MAP_SIZE]; static sint32 _nextPeepSpawnIndex = 0; @@ -888,8 +885,8 @@ static void window_map_scrollpaint(rct_window *w, rct_drawpixelinfo *dpi, sint32 pushed_g1_element = *g1_element; g1_element->offset = (uint8 *) _mapImageData; - g1_element->width = 512; - g1_element->height = 512; + g1_element->width = MAP_WINDOW_MAP_SIZE; + g1_element->height = MAP_WINDOW_MAP_SIZE; g1_element->x_offset = -8; g1_element->y_offset = -8; g1_element->flags = 0; @@ -1397,14 +1394,14 @@ static void window_map_set_peep_spawn_tool_down(sint32 x, sint32 y) */ static void map_window_increase_map_size() { - if (gMapSize >= 256) { + if (gMapSize >= MAXIMUM_MAP_SIZE_TECHNICAL) { window_error_open(STR_CANT_INCREASE_MAP_SIZE_ANY_FURTHER, STR_NONE); return; } gMapSize++; gMapSizeUnits = (gMapSize - 1) * 32; - gMapSizeMinus2 = (gMapSize * 32) + 254; + gMapSizeMinus2 = (gMapSize * 32) + MAXIMUM_MAP_SIZE_PRACTICAL; gMapSizeMaxXY = ((gMapSize - 1) * 32) - 1; map_extend_boundary_surface(); window_map_init_map(); @@ -1425,7 +1422,7 @@ static void map_window_decrease_map_size() gMapSize--; gMapSizeUnits = (gMapSize - 1) * 32; - gMapSizeMinus2 = (gMapSize * 32) + 254; + gMapSizeMinus2 = (gMapSize * 32) + MAXIMUM_MAP_SIZE_PRACTICAL; gMapSizeMaxXY = ((gMapSize - 1) * 32) - 1; map_remove_out_of_range_elements(); window_map_init_map(); @@ -1655,8 +1652,8 @@ static void map_window_set_pixels(rct_window *w) uint8 *destination; sint32 x = 0, y = 0, dx = 0, dy = 0; - sint32 pos = (_currentLine * 511) + 255; - rct_xy16 destinationPosition = {.y = pos/512, .x = pos % 512}; + sint32 pos = (_currentLine * (MAP_WINDOW_MAP_SIZE - 1)) + MAXIMUM_MAP_SIZE_TECHNICAL - 1; + rct_xy16 destinationPosition = {.y = pos/MAP_WINDOW_MAP_SIZE, .x = pos % MAP_WINDOW_MAP_SIZE}; destination = &(*_mapImageData)[destinationPosition.y][destinationPosition.x]; switch (get_current_rotation()) { case 0: @@ -1672,20 +1669,20 @@ static void map_window_set_pixels(rct_window *w) dy = 0; break; case 2: - x = (255 - _currentLine) * 32; + x = ((MAXIMUM_MAP_SIZE_TECHNICAL - 1) - _currentLine) * 32; y = 8192 - 32; dx = 0; dy = -32; break; case 3: x = 0; - y = (255 - _currentLine) * 32; + y = ((MAXIMUM_MAP_SIZE_TECHNICAL - 1) - _currentLine) * 32; dx = 32; dy = 0; break; } - for (sint32 i = 0; i < 256; i++) { + for (sint32 i = 0; i < MAXIMUM_MAP_SIZE_TECHNICAL; i++) { if ( x > 0 && y > 0 && @@ -1711,7 +1708,7 @@ static void map_window_set_pixels(rct_window *w) destination = &(*_mapImageData)[destinationPosition.y][destinationPosition.x]; } _currentLine++; - if (_currentLine >= 256) + if (_currentLine >= MAXIMUM_MAP_SIZE_TECHNICAL) _currentLine = 0; } @@ -1719,8 +1716,8 @@ static void map_window_screen_to_map(sint32 screenX, sint32 screenY, sint32 *map { sint32 x, y; - screenX = ((screenX + 8) - 256) / 2; - screenY = ((screenY + 8) ) / 2; + screenX = ((screenX + 8) - MAXIMUM_MAP_SIZE_TECHNICAL) / 2; + screenY = ((screenY + 8)) / 2; x = (screenY - screenX) * 32; y = (screenX + screenY) * 32; switch (get_current_rotation()) { diff --git a/src/openrct2/windows/mapgen.c b/src/openrct2/windows/mapgen.c index 74d75def2b..5996ea72d3 100644 --- a/src/openrct2/windows/mapgen.c +++ b/src/openrct2/windows/mapgen.c @@ -530,10 +530,6 @@ static const sint32 TabAnimationLoops[WINDOW_MAPGEN_PAGE_COUNT] = { 16, 16, 16, 0 }; -#define MINIMUM_MAP_SIZE_TECHNICAL 15 -#define MAXIMUM_MAP_SIZE_TECHNICAL 256 -#define MINIMUM_MAP_SIZE_PRACTICAL MINIMUM_MAP_SIZE_TECHNICAL-2 -#define MAXIMUM_MAP_SIZE_PRACTICAL MAXIMUM_MAP_SIZE_TECHNICAL-2 #define BASESIZE_MIN 0 #define BASESIZE_MAX 60 #define WATERLEVEL_MIN 0 diff --git a/src/openrct2/world/map.c b/src/openrct2/world/map.c index bea5914737..b196f18bdc 100644 --- a/src/openrct2/world/map.c +++ b/src/openrct2/world/map.c @@ -94,7 +94,7 @@ sint16 gMapSizeMaxXY; sint16 gMapBaseZ; #if defined(NO_RCT2) -rct_map_element gMapElements[0x30000]; +rct_map_element gMapElements[MAX_TILE_MAP_ELEMENT_POINTERS * 3]; rct_map_element *gMapElementTilePointers[MAX_TILE_MAP_ELEMENT_POINTERS]; #else rct_map_element *gMapElements = RCT2_ADDRESS(RCT2_ADDRESS_MAP_ELEMENTS, rct_map_element); @@ -202,13 +202,13 @@ sint32 map_element_iterator_next(map_element_iterator *it) return 1; } - if (it->x < 255) { + if (it->x < (MAXIMUM_MAP_SIZE_TECHNICAL - 1)) { it->x++; it->element = map_get_first_element_at(it->x, it->y); return 1; } - if (it->y < 255) { + if (it->y < (MAXIMUM_MAP_SIZE_TECHNICAL - 1)) { it->x = 0; it->y++; it->element = map_get_first_element_at(it->x, it->y); @@ -225,11 +225,11 @@ void map_element_iterator_restart_for_tile(map_element_iterator *it) rct_map_element *map_get_first_element_at(sint32 x, sint32 y) { - if (x < 0 || y < 0 || x > 255 || y > 255) { + if (x < 0 || y < 0 || x > (MAXIMUM_MAP_SIZE_TECHNICAL - 1) || y > (MAXIMUM_MAP_SIZE_TECHNICAL - 1)) { log_error("Trying to access element outside of range"); return NULL; } - return gMapElementTilePointers[x + y * 256]; + return gMapElementTilePointers[x + y * MAXIMUM_MAP_SIZE_TECHNICAL]; } rct_map_element *map_get_nth_element_at(sint32 x, sint32 y, sint32 n) @@ -257,11 +257,11 @@ rct_map_element *map_get_nth_element_at(sint32 x, sint32 y, sint32 n) void map_set_tile_elements(sint32 x, sint32 y, rct_map_element *elements) { - if (x < 0 || y < 0 || x > 255 || y > 255) { + if (x < 0 || y < 0 || x > (MAXIMUM_MAP_SIZE_TECHNICAL - 1) || y > (MAXIMUM_MAP_SIZE_TECHNICAL - 1)) { log_error("Trying to access element outside of range"); return; } - gMapElementTilePointers[x + y * 256] = elements; + gMapElementTilePointers[x + y * MAXIMUM_MAP_SIZE_TECHNICAL] = elements; } sint32 map_element_is_last_for_tile(const rct_map_element *element) @@ -439,8 +439,8 @@ void map_count_remaining_land_rights() gLandRemainingOwnershipSales = 0; gLandRemainingConstructionSales = 0; - for (sint32 x = 0; x <= 255; x++) { - for (sint32 y = 0; y <= 255; y++) { + for (sint32 x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) { + for (sint32 y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) { rct_map_element *element = map_get_surface_element_at(x, y); // Surface elements are sometimes hacked out to save some space for other map elements if (element == NULL) { @@ -472,7 +472,7 @@ void map_strip_ghost_flag_from_elements() rct_map_element *mapElement = gMapElements; do { mapElement->flags &= ~MAP_ELEMENT_FLAG_GHOST; - } while (++mapElement < gMapElements + 0x30000); + } while (++mapElement < gMapElements + MAX_MAP_ELEMENTS); } /** @@ -489,8 +489,8 @@ void map_update_tile_pointers() rct_map_element *mapElement = gMapElements; rct_map_element **tile = gMapElementTilePointers; - for (y = 0; y < 256; y++) { - for (x = 0; x < 256; x++) { + for (y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) { + for (x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) { *tile++ = mapElement; while (!map_element_is_last_for_tile(mapElement++)); } @@ -783,7 +783,7 @@ sint32 map_height_from_slope(sint32 x, sint32 y, sint32 slope) bool map_is_location_valid(sint32 x, sint32 y) { - if (x < (256 * 32) && x >= 0 && y < (256 * 32) && y >= 0) { + if (x < (MAXIMUM_MAP_SIZE_TECHNICAL * 32) && x >= 0 && y < (MAXIMUM_MAP_SIZE_TECHNICAL * 32) && y >= 0) { return true; } return false; @@ -1197,7 +1197,7 @@ void game_command_set_large_scenery_colour(sint32* eax, sint32* ebx, sint32* ecx baseTile.y = y - baseTile.y; for (sint32 i = 0; scenery_entry->large_scenery.tiles[i].x_offset != -1; ++i) { - assert(i < 256); + assert(i < MAXIMUM_MAP_SIZE_TECHNICAL); // Work out the current tile coordinates rct_xyz16 currentTile = { @@ -1337,8 +1337,8 @@ restart_from_beginning: static void map_reset_clear_large_scenery_flag(){ rct_map_element* mapElement; // TODO: Improve efficiency of this - for (sint32 y = 0; y <= 255; y++) { - for (sint32 x = 0; x <= 255; x++) { + for (sint32 y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) { + for (sint32 x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) { mapElement = map_get_first_element_at(x, y); do { if (map_element_get_type(mapElement) == MAP_ELEMENT_TYPE_SCENERY_MULTIPLE) { @@ -2281,8 +2281,8 @@ static money32 smooth_land(sint32 flags, sint32 centreX, sint32 centreY, sint32 // Cap bounds to map mapLeft = max(mapLeft, 32); mapTop = max(mapTop, 32); - mapRight = clamp(0, mapRight, 255 * 32); - mapBottom = clamp(0, mapBottom, 255 * 32); + mapRight = clamp(0, mapRight, (MAXIMUM_MAP_SIZE_TECHNICAL - 1) * 32); + mapBottom = clamp(0, mapBottom, (MAXIMUM_MAP_SIZE_TECHNICAL - 1) * 32); sint32 commandType; sint32 centreZ = map_element_height(centreX, centreY); @@ -2339,7 +2339,7 @@ static money32 smooth_land(sint32 flags, sint32 centreX, sint32 centreY, sint32 // Then do the smoothing // The coords go in circles around the selected tile(s) - for (; size <= 256; size += 2) { + for (; size <= MAXIMUM_MAP_SIZE_TECHNICAL; size += 2) { initialMinZ += 2; sint32 minZ = initialMinZ * 2; x -= 32; @@ -2944,7 +2944,7 @@ void game_command_place_scenery(sint32* eax, sint32* ebx, sint32* ecx, sint32* e bool map_is_location_at_edge(sint32 x, sint32 y) { - return x < 32 || y < 32 || x >= ((256 - 1) * 32) || y >= ((256 - 1) * 32); + return x < 32 || y < 32 || x >= ((MAXIMUM_MAP_SIZE_TECHNICAL - 1) * 32) || y >= ((MAXIMUM_MAP_SIZE_TECHNICAL - 1) * 32); } /** @@ -3322,7 +3322,7 @@ void map_reorganise_elements() { context_setcurrentcursor(CURSOR_ZZZ); - rct_map_element* new_map_elements = malloc(0x30000 * sizeof(rct_map_element)); + rct_map_element* new_map_elements = malloc(3 * (MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL) * sizeof(rct_map_element)); rct_map_element* new_elements_pointer = new_map_elements; if (new_map_elements == NULL) { @@ -3332,8 +3332,8 @@ void map_reorganise_elements() uint32 num_elements; - for (sint32 y = 0; y < 256; y++) { - for (sint32 x = 0; x < 256; x++) { + for (sint32 y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) { + for (sint32 x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) { rct_map_element *startElement = map_get_first_element_at(x, y); rct_map_element *endElement = startElement; while (!map_element_is_last_for_tile(endElement++)); @@ -3346,7 +3346,7 @@ void map_reorganise_elements() num_elements = (uint32)(new_elements_pointer - new_map_elements); memcpy(gMapElements, new_map_elements, num_elements * sizeof(rct_map_element)); - memset(gMapElements + num_elements, 0, (0x30000 - num_elements) * sizeof(rct_map_element)); + memset(gMapElements + num_elements, 0, (3 * (MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL) - num_elements) * sizeof(rct_map_element)); free(new_map_elements); @@ -3394,10 +3394,10 @@ rct_map_element *map_element_insert(sint32 x, sint32 y, sint32 z, sint32 flags) } newMapElement = gNextFreeMapElement; - originalMapElement = gMapElementTilePointers[y * 256 + x]; + originalMapElement = gMapElementTilePointers[y * MAXIMUM_MAP_SIZE_TECHNICAL + x]; // Set tile index pointer to point to new element block - gMapElementTilePointers[y * 256 + x] = newMapElement; + gMapElementTilePointers[y * MAXIMUM_MAP_SIZE_TECHNICAL + x] = newMapElement; // Copy all elements that are below the insert height while (z >= originalMapElement->base_height) { @@ -3823,8 +3823,8 @@ void map_remove_out_of_range_elements() { sint32 mapMaxXY = gMapSizeMaxXY; - for (sint32 y = 0; y < (256 * 32); y += 32) { - for (sint32 x = 0; x < (256 * 32); x += 32) { + for (sint32 y = 0; y < (MAXIMUM_MAP_SIZE_TECHNICAL * 32); y += 32) { + for (sint32 x = 0; x < (MAXIMUM_MAP_SIZE_TECHNICAL * 32); x += 32) { if (x == 0 || y == 0 || x >= mapMaxXY || y >= mapMaxXY) { map_buy_land_rights(x, y, x, y, 1, GAME_COMMAND_FLAG_APPLY); clear_elements_at(x, y); @@ -3843,7 +3843,7 @@ void map_extend_boundary_surface() sint32 x, y, z, slope; y = gMapSize - 2; - for (x = 0; x < 256; x++) { + for (x = 0; x < MAXIMUM_MAP_SIZE_TECHNICAL; x++) { existingMapElement = map_get_surface_element_at(x, y - 1); newMapElement = map_get_surface_element_at(x, y); @@ -3879,7 +3879,7 @@ void map_extend_boundary_surface() } x = gMapSize - 2; - for (y = 0; y < 256; y++) { + for (y = 0; y < MAXIMUM_MAP_SIZE_TECHNICAL; y++) { existingMapElement = map_get_surface_element_at(x - 1, y); newMapElement = map_get_surface_element_at(x, y); @@ -4351,8 +4351,8 @@ bool map_surface_is_blocked(sint16 x, sint16 y){ /* Clears all map elements, to be used before generating a new map */ void map_clear_all_elements() { - for (sint32 y = 0; y < (256 * 32); y += 32) { - for (sint32 x = 0; x < (256 * 32); x += 32) { + for (sint32 y = 0; y < (MAXIMUM_MAP_SIZE_TECHNICAL * 32); y += 32) { + for (sint32 x = 0; x < (MAXIMUM_MAP_SIZE_TECHNICAL * 32); x += 32) { clear_elements_at(x, y); } } diff --git a/src/openrct2/world/map.h b/src/openrct2/world/map.h index 568adb86e9..b03026eb20 100644 --- a/src/openrct2/world/map.h +++ b/src/openrct2/world/map.h @@ -245,11 +245,17 @@ enum { #define MAP_ELEMENT_WATER_HEIGHT_MASK 0x1F #define MAP_ELEMENT_SURFACE_TERRAIN_MASK 0xE0 -#define MAP_MINIMUM_X_Y -256 + +#define MINIMUM_MAP_SIZE_TECHNICAL 15 +#define MAXIMUM_MAP_SIZE_TECHNICAL 256 +#define MINIMUM_MAP_SIZE_PRACTICAL (MINIMUM_MAP_SIZE_TECHNICAL-2) +#define MAXIMUM_MAP_SIZE_PRACTICAL (MAXIMUM_MAP_SIZE_TECHNICAL-2) + +#define MAP_MINIMUM_X_Y -MAXIMUM_MAP_SIZE_TECHNICAL #define MAP_LOCATION_NULL ((sint16)(uint16)0x8000) -#define MAX_MAP_ELEMENTS 196096 -#define MAX_TILE_MAP_ELEMENT_POINTERS (256 * 256) +#define MAX_MAP_ELEMENTS 196096 // 0x30000 +#define MAX_TILE_MAP_ELEMENT_POINTERS (MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL) #define MAX_PEEP_SPAWNS 2 #define PEEP_SPAWN_UNDEFINED 0xFFFF diff --git a/src/openrct2/world/mapgen.c b/src/openrct2/world/mapgen.c index 7f8772838d..1442789d69 100644 --- a/src/openrct2/world/mapgen.c +++ b/src/openrct2/world/mapgen.c @@ -304,7 +304,7 @@ static void mapgen_place_trees() sint32 availablePositionsCount = 0; struct { sint32 x; sint32 y; } tmp, *pos, *availablePositions; - availablePositions = malloc(256 * 256 * sizeof(tmp)); + availablePositions = malloc(MAXIMUM_MAP_SIZE_TECHNICAL * MAXIMUM_MAP_SIZE_TECHNICAL * sizeof(tmp)); // Create list of available tiles for (sint32 y = 1; y < gMapSize - 1; y++) { @@ -843,9 +843,9 @@ bool mapgen_load_heightmap(const utf8 *path) return false; } - if (width > 254) { + if (width > MAXIMUM_MAP_SIZE_PRACTICAL) { window_error_open(STR_HEIGHT_MAP_ERROR, STR_ERROR_HEIHGT_MAP_TOO_BIG); - width = height = min(height, 254); + width = height = min(height, MAXIMUM_MAP_SIZE_PRACTICAL); } // Allocate memory for the height map values, one byte pixel From 9bd4284733ff54a3376b861076bdb7e0827c3d31 Mon Sep 17 00:00:00 2001 From: Graham Edgecombe Date: Sat, 3 Jun 2017 10:16:43 +0100 Subject: [PATCH 213/670] Fix icon install destination RENAME was included in the quotes in a previous commit, so cmake treated it as part of the destination path. --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b18a937afd..f62bcebe5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,12 +94,12 @@ install(TARGETS "openrct2" RUNTIME DESTINATION "bin") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION "share/openrct2") install(DIRECTORY "data/" DESTINATION "share/openrct2") install(FILES ${DOC_FILES} DESTINATION "share/doc/openrct2") -install(FILES "resources/logo/icon_x16.png" DESTINATION "share/icons/hicolor/16x16/apps RENAME openrct2.png") -install(FILES "resources/logo/icon_x32.png" DESTINATION "share/icons/hicolor/32x32/apps RENAME openrct2.png") -install(FILES "resources/logo/icon_x64.png" DESTINATION "share/icons/hicolor/64x64/apps RENAME openrct2.png") -install(FILES "resources/logo/icon_x128.png" DESTINATION "share/icons/hicolor/128x128/apps RENAME openrct2.png") -install(FILES "resources/logo/icon_x256.png" DESTINATION "share/icons/hicolor/256x256/apps RENAME openrct2.png") -install(FILES "resources/logo/icon_flag.svg" DESTINATION "share/icons/hicolor/scalable/apps RENAME openrct2.svg") +install(FILES "resources/logo/icon_x16.png" DESTINATION "share/icons/hicolor/16x16/apps" RENAME "openrct2.png") +install(FILES "resources/logo/icon_x32.png" DESTINATION "share/icons/hicolor/32x32/apps" RENAME "openrct2.png") +install(FILES "resources/logo/icon_x64.png" DESTINATION "share/icons/hicolor/64x64/apps" RENAME "openrct2.png") +install(FILES "resources/logo/icon_x128.png" DESTINATION "share/icons/hicolor/128x128/apps" RENAME "openrct2.png") +install(FILES "resources/logo/icon_x256.png" DESTINATION "share/icons/hicolor/256x256/apps" RENAME "openrct2.png") +install(FILES "resources/logo/icon_flag.svg" DESTINATION "share/icons/hicolor/scalable/apps" RENAME "openrct2.svg") install(FILES "distribution/linux/openrct2.desktop" DESTINATION "share/applications") install(DIRECTORY "distribution/man/" DESTINATION "share/man/man6" FILES_MATCHING PATTERN "*.6") install(CODE "execute_process(COMMAND find \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/man/man6 -type f -exec gzip -f \"{}\" \;)") From f469beacdb8e987edce6a3303106a2fa27aee0d1 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Sat, 3 Jun 2017 21:59:24 +0100 Subject: [PATCH 214/670] Xcode fix --- OpenRCT2.xcodeproj/project.pbxproj | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index f45d1ff61e..76e704e351 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -432,6 +432,8 @@ F76C888D1EC5324E00FA49E2 /* UiContext.Linux.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85AE1EC4E82600FA49E2 /* UiContext.Linux.cpp */; }; F76C888E1EC5324E00FA49E2 /* UiContext.Win32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */; }; F76C88921EC539A300FA49E2 /* libopenrct2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; }; + F775F5341EE35A6B001F00E7 /* DummyUiContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F775F5331EE35A6B001F00E7 /* DummyUiContext.cpp */; }; + F775F5351EE35A89001F00E7 /* DummyUiContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F775F5331EE35A6B001F00E7 /* DummyUiContext.cpp */; }; F7D7747B1EC5EB6D00BE6EBC /* lay_down_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84951EC4E7CC00FA49E2 /* lay_down_roller_coaster.c */; }; F7D7747F1EC61E5100BE6EBC /* UiContext.macOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */; }; F7D7748D1EC66F8600BE6EBC /* libopenrct2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; }; @@ -1319,6 +1321,8 @@ F76C85AD1EC4E82600FA49E2 /* UiContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UiContext.h; sourceTree = ""; }; F76C85AE1EC4E82600FA49E2 /* UiContext.Linux.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Linux.cpp; sourceTree = ""; }; F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Win32.cpp; sourceTree = ""; }; + F775F5321EE35A48001F00E7 /* Ui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ui.h; sourceTree = ""; }; + F775F5331EE35A6B001F00E7 /* DummyUiContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DummyUiContext.cpp; sourceTree = ""; }; F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; usesTabs = 0; }; F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "OpenRCT2-cli"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -2325,6 +2329,7 @@ F76C85041EC4E7CD00FA49E2 /* ui */ = { isa = PBXGroup; children = ( + F775F5331EE35A6B001F00E7 /* DummyUiContext.cpp */, F76C85051EC4E7CD00FA49E2 /* UiContext.h */, ); path = ui; @@ -2476,6 +2481,7 @@ F76C85801EC4E82600FA49E2 /* openrct2-ui */ = { isa = PBXGroup; children = ( + F775F5321EE35A48001F00E7 /* Ui.h */, F76C85811EC4E82600FA49E2 /* audio */, F76C858D1EC4E82600FA49E2 /* drawing */, F76C858A1EC4E82600FA49E2 /* CursorData.cpp */, @@ -2915,6 +2921,7 @@ F76C887D1EC5324E00FA49E2 /* CursorData.cpp in Sources */, F7D7747F1EC61E5100BE6EBC /* UiContext.macOS.mm in Sources */, F76C887E1EC5324E00FA49E2 /* CursorRepository.cpp in Sources */, + F775F5341EE35A6B001F00E7 /* DummyUiContext.cpp in Sources */, F76C887F1EC5324E00FA49E2 /* CopyFramebufferShader.cpp in Sources */, F76C88801EC5324E00FA49E2 /* DrawImageShader.cpp in Sources */, F76C88811EC5324E00FA49E2 /* DrawLineShader.cpp in Sources */, @@ -2938,6 +2945,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + F775F5351EE35A89001F00E7 /* DummyUiContext.cpp in Sources */, F7D7747B1EC5EB6D00BE6EBC /* lay_down_roller_coaster.c in Sources */, F76C85B01EC4E88300FA49E2 /* audio.cpp in Sources */, F76C85B41EC4E88300FA49E2 /* AudioMixer.cpp in Sources */, From af91b9f4b4c4aaf133e40548fd75c59e4c55e99a Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 3 Jun 2017 22:13:20 +0100 Subject: [PATCH 215/670] Fix #5521: Infinite loop on first run if neither Zenity nor kdialog are installed (#5526) --- src/openrct2-ui/UiContext.Linux.cpp | 10 ++++-- src/openrct2/Context.cpp | 49 ++++++++++++++++++++--------- src/openrct2/config/Config.cpp | 44 ++++++++++++++++---------- 3 files changed, 69 insertions(+), 34 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 4a2ab96aa1..d9697749ea 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -160,7 +161,7 @@ namespace OpenRCT2 { namespace Ui break; } default: - log_error("KDialog or Zenity not installed."); + ThrowMissingDialogApp(); break; } @@ -211,7 +212,7 @@ namespace OpenRCT2 { namespace Ui break; } default: - log_error("KDialog or Zenity not installed."); + ThrowMissingDialogApp(); break; } return result; @@ -337,6 +338,11 @@ namespace OpenRCT2 { namespace Ui } return filtersb.str(); } + + static void ThrowMissingDialogApp() + { + throw std::runtime_error("KDialog or Zenity not installed."); + } }; IPlatformUiContext * CreatePlatformUiContext() diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 3e248768bf..11c92ccc74 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -124,8 +124,10 @@ namespace OpenRCT2 sint32 RunOpenRCT2(int argc, char * * argv) override { - Initialise(); - Launch(); + if (Initialise()) + { + Launch(); + } return gExitCode; } @@ -677,26 +679,43 @@ extern "C" bool platform_open_common_file_dialog(utf8 * outFilename, file_dialog_desc * desc, size_t outSize) { - FileDialogDesc desc2; - desc2.Type = (FILE_DIALOG_TYPE)desc->type; - desc2.Title = String::ToStd(desc->title); - desc2.InitialDirectory = String::ToStd(desc->initial_directory); - desc2.DefaultFilename = String::ToStd(desc->default_filename); - for (const auto &filter : desc->filters) + try { - if (filter.name != nullptr) + FileDialogDesc desc2; + desc2.Type = (FILE_DIALOG_TYPE)desc->type; + desc2.Title = String::ToStd(desc->title); + desc2.InitialDirectory = String::ToStd(desc->initial_directory); + desc2.DefaultFilename = String::ToStd(desc->default_filename); + for (const auto &filter : desc->filters) { - desc2.Filters.push_back({ String::ToStd(filter.name), String::ToStd(filter.pattern) }); + if (filter.name != nullptr) + { + desc2.Filters.push_back({ String::ToStd(filter.name), String::ToStd(filter.pattern) }); + } } + std::string result = GetContext()->GetUiContext()->ShowFileDialog(desc2); + String::Set(outFilename, outSize, result.c_str()); + return !result.empty(); + } + catch (const std::exception &ex) + { + log_error(ex.what()); + outFilename[0] = '\0'; + return false; } - std::string result = GetContext()->GetUiContext()->ShowFileDialog(desc2); - String::Set(outFilename, outSize, result.c_str()); - return !result.empty(); } utf8 * platform_open_directory_browser(const utf8 * title) { - std::string result = GetContext()->GetUiContext()->ShowDirectoryDialog(title); - return String::Duplicate(result.c_str()); + try + { + std::string result = GetContext()->GetUiContext()->ShowDirectoryDialog(title); + return String::Duplicate(result.c_str()); + } + catch (const std::exception &ex) + { + log_error(ex.what()); + return nullptr; + } } } diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index b846ebaa46..eaa2f540d6 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -693,26 +693,36 @@ extern "C" { return false; } - while (1) + + try { - IUiContext * uiContext = GetContext()->GetUiContext(); - uiContext->ShowMessageBox("OpenRCT2 needs files from the original RollerCoaster Tycoon 2 in order to work. Please select the directory where you installed RollerCoaster Tycoon 2."); - utf8 * installPath = platform_open_directory_browser("Please select your RCT2 directory"); - if (installPath == nullptr) + while (true) { - return false; + IUiContext * uiContext = GetContext()->GetUiContext(); + uiContext->ShowMessageBox("OpenRCT2 needs files from the original RollerCoaster Tycoon 2 in order to work. Please select the directory where you installed RollerCoaster Tycoon 2."); + + std::string installPath = uiContext->ShowDirectoryDialog("Please select your RCT2 directory"); + if (installPath.empty()) + { + return false; + } + + Memory::Free(gConfigGeneral.rct2_path); + gConfigGeneral.rct2_path = String::Duplicate(installPath.c_str()); + + if (platform_original_game_data_exists(installPath.c_str())) + { + return true; + } + + std::string message = String::StdFormat("Could not find %s" PATH_SEPARATOR "Data" PATH_SEPARATOR "g1.dat at this path", installPath.c_str()); + uiContext->ShowMessageBox(message); } - - Memory::Free(gConfigGeneral.rct2_path); - gConfigGeneral.rct2_path = installPath; - - if (platform_original_game_data_exists(installPath)) - { - return true; - } - - std::string message = String::StdFormat("Could not find %s" PATH_SEPARATOR "Data" PATH_SEPARATOR "g1.dat at this path", installPath); - uiContext->ShowMessageBox(message); + } + catch (const std::exception &ex) + { + Console::Error::WriteLine(ex.what()); + return false; } } return true; From f47d7f27a5b825f9442ca48bf593eb86d653ce4e Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 3 Jun 2017 22:17:52 +0100 Subject: [PATCH 216/670] Suppress hotkey.cfg error if not found Running the game without hotkeys.cfg existing used to show a warning message. This is unnecessary as it will not exist on first install. --- src/openrct2/config/KeyboardShortcuts.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/openrct2/config/KeyboardShortcuts.cpp b/src/openrct2/config/KeyboardShortcuts.cpp index 797c2bc9c7..7ef482ef40 100644 --- a/src/openrct2/config/KeyboardShortcuts.cpp +++ b/src/openrct2/config/KeyboardShortcuts.cpp @@ -16,6 +16,7 @@ #include "../common.h" #include "../core/Console.hpp" +#include "../core/File.h" #include "../core/FileStream.hpp" #include "../core/Memory.hpp" #include "../core/Path.hpp" @@ -128,20 +129,18 @@ extern "C" try { std::string path = KeyboardShortcuts::GetPath(); - auto fs = FileStream(path, FILE_MODE_OPEN); - - uint16 version = fs.ReadValue(); - if (version == KeyboardShortcuts::CURRENT_FILE_VERSION) + if (File::Exists(path)) { - for (sint32 i = 0; i < SHORTCUT_COUNT; i++) + auto fs = FileStream(path, FILE_MODE_OPEN); + uint16 version = fs.ReadValue(); + if (version == KeyboardShortcuts::CURRENT_FILE_VERSION) { - gShortcutKeys[i] = fs.ReadValue(); + for (sint32 i = 0; i < SHORTCUT_COUNT; i++) + { + gShortcutKeys[i] = fs.ReadValue(); + } + result = true; } - result = true; - } - else - { - result = false; } } catch (const Exception &ex) From acd3b09c80f7b8176b106af1b2fa89aa5878b2b6 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Sat, 3 Jun 2017 22:21:47 +0100 Subject: [PATCH 217/670] Name sub_6DFED0(), remove magic numbers, minor refactor to research --- src/openrct2/game.c | 2 +- src/openrct2/management/research.c | 31 ++++++++++--- src/openrct2/management/research.h | 20 ++++++--- src/openrct2/scenario/scenario.h | 2 +- src/openrct2/windows/editor_bottom_toolbar.c | 44 ++++--------------- .../windows/editor_object_selection.c | 8 +--- src/openrct2/world/park.c | 4 +- 7 files changed, 51 insertions(+), 60 deletions(-) diff --git a/src/openrct2/game.c b/src/openrct2/game.c index 18ad803dab..9b1edb5048 100644 --- a/src/openrct2/game.c +++ b/src/openrct2/game.c @@ -815,7 +815,7 @@ void game_fix_save_vars() { } // Fix invalid research items - for (sint32 i = 0; i < 500; i++) { + for (sint32 i = 0; i < MAX_RESEARCH_ITEMS; i++) { rct_research_item *researchItem = &gResearchItems[i]; if (researchItem->entryIndex == RESEARCHED_ITEMS_SEPARATOR) continue; if (researchItem->entryIndex == RESEARCHED_ITEMS_END) continue; diff --git a/src/openrct2/management/research.c b/src/openrct2/management/research.c index afa6871bae..96e470502f 100644 --- a/src/openrct2/management/research.c +++ b/src/openrct2/management/research.c @@ -44,16 +44,16 @@ uint8 gResearchNextCategory; uint32 gResearchNextItem; // 0x01358844[500] -rct_research_item gResearchItems[500]; +rct_research_item gResearchItems[MAX_RESEARCH_ITEMS]; // 0x00EE787C uint8 gResearchUncompletedCategories; -uint32 gResearchedRideTypes[8]; -uint32 gResearchedRideEntries[8]; -uint32 gResearchedTrackTypesA[128]; -uint32 gResearchedTrackTypesB[128]; -uint32 gResearchedSceneryItems[56]; +uint32 gResearchedRideTypes[MAX_RESEARCHED_RIDE_TYPES]; +uint32 gResearchedRideEntries[MAX_RESEARCHED_RIDE_ENTRIES]; +uint32 gResearchedTrackTypesA[MAX_RESEARCHED_TRACK_TYPES]; +uint32 gResearchedTrackTypesB[MAX_RESEARCHED_TRACK_TYPES]; +uint32 gResearchedSceneryItems[MAX_RESEARCHED_SCENERY_ITEMS]; bool gSilentResearch = false; @@ -636,3 +636,22 @@ bool scenery_is_invented(uint16 sceneryItem) bool invented = (gResearchedSceneryItems[quadIndex] & ((uint32)1 << bitIndex)); return invented; } + +void reset_researched_scenery_items() +{ + for (sint32 i = 0; i < MAX_RESEARCHED_SCENERY_ITEMS; i++) { + gResearchedSceneryItems[i] = 0xFFFFFFFF; + } +} + +void reset_researched_ride_types_and_entries() +{ + // Iteration endpoint used to be 4 for unknown reasons, likely a mistake + for (sint32 i = 0; i < MAX_RESEARCHED_RIDE_TYPES; i++) { + gResearchedRideTypes[i] = 0xFFFFFFFF; + } + + for (sint32 i = 0; i < MAX_RESEARCHED_RIDE_ENTRIES; i++) { + gResearchedRideEntries[i] = 0xFFFFFFFF; + } +} diff --git a/src/openrct2/management/research.h b/src/openrct2/management/research.h index dc8257abb6..ffac63d613 100644 --- a/src/openrct2/management/research.h +++ b/src/openrct2/management/research.h @@ -40,6 +40,12 @@ enum{ // Extra end of list entry. Unsure why? #define RESEARCHED_ITEMS_END_2 -3 +#define MAX_RESEARCH_ITEMS 500 +#define MAX_RESEARCHED_SCENERY_ITEMS 56 +#define MAX_RESEARCHED_RIDE_TYPES 8 +#define MAX_RESEARCHED_RIDE_ENTRIES 8 +#define MAX_RESEARCHED_TRACK_TYPES 128 + enum { RESEARCH_FUNDING_NONE, RESEARCH_FUNDING_MINIMUM, @@ -75,13 +81,13 @@ extern uint8 gResearchExpectedDay; extern uint8 gResearchNextCategory; extern uint32 gResearchNextItem; -extern rct_research_item gResearchItems[500]; +extern rct_research_item gResearchItems[MAX_RESEARCH_ITEMS]; extern uint8 gResearchUncompletedCategories; -extern uint32 gResearchedRideTypes[8]; -extern uint32 gResearchedRideEntries[8]; -extern uint32 gResearchedTrackTypesA[128]; -extern uint32 gResearchedTrackTypesB[128]; -extern uint32 gResearchedSceneryItems[56]; +extern uint32 gResearchedRideTypes[MAX_RESEARCHED_RIDE_TYPES]; +extern uint32 gResearchedRideEntries[MAX_RESEARCHED_RIDE_ENTRIES]; +extern uint32 gResearchedTrackTypesA[MAX_RESEARCHED_TRACK_TYPES]; +extern uint32 gResearchedTrackTypesB[MAX_RESEARCHED_TRACK_TYPES]; +extern uint32 gResearchedSceneryItems[MAX_RESEARCHED_SCENERY_ITEMS]; extern bool gSilentResearch; void research_reset_items(); @@ -106,5 +112,7 @@ bool ride_type_is_invented(sint32 rideType); bool ride_entry_is_invented(sint32 rideEntryIndex); bool track_piece_is_available_for_ride_type(uint8 rideType, sint32 trackType); bool scenery_is_invented(uint16 sceneryItem); +void reset_researched_scenery_items(); +void reset_researched_ride_types_and_entries(); #endif diff --git a/src/openrct2/scenario/scenario.h b/src/openrct2/scenario/scenario.h index 7aa8665978..9c983cf1b4 100644 --- a/src/openrct2/scenario/scenario.h +++ b/src/openrct2/scenario/scenario.h @@ -238,7 +238,7 @@ typedef struct rct_s6_data { uint8 last_entrance_style; uint8 rct1_water_colour; uint8 pad_01358842[2]; - rct_research_item research_items[500]; + rct_research_item research_items[MAX_RESEARCH_ITEMS]; uint16 map_base_z; char scenario_name[64]; char scenario_description[256]; diff --git a/src/openrct2/windows/editor_bottom_toolbar.c b/src/openrct2/windows/editor_bottom_toolbar.c index 7aac009baa..3ebf5d25ab 100644 --- a/src/openrct2/windows/editor_bottom_toolbar.c +++ b/src/openrct2/windows/editor_bottom_toolbar.c @@ -23,6 +23,7 @@ #include "../scenario/scenario.h" #include "../sprites.h" #include "../localisation/localisation.h" +#include "../management/research.h" #include "../interface/themes.h" #include "../interface/viewport.h" #include "../interface/widget.h" @@ -128,8 +129,6 @@ static const rct_string_id EditorStepNames[] = { STR_EDITOR_STEP_TRACK_DESIGNS_MANAGER, }; -static void sub_6DFED0(); - /** * Creates the main editor top toolbar window. * rct2: 0x0066F052 (part of 0x0066EF38) @@ -149,7 +148,7 @@ void window_editor_bottom_toolbar_open() (1 << WIDX_NEXT_IMAGE); window_init_scroll_widgets(window); - sub_6DFED0(); + reset_researched_scenery_items(); } /** @@ -162,24 +161,13 @@ void window_editor_bottom_toolbar_jump_back_to_object_selection() { gfx_invalidate_screen(); } -/** - * - * rct2: 0x006DFED0 - */ -static void sub_6DFED0() -{ - for (sint32 i = 0; i < 56; i++) { - gResearchedSceneryItems[i] = 0xFFFFFFFF; - } -} - /** * * rct2: 0x0066F62C */ void window_editor_bottom_toolbar_jump_back_to_landscape_editor() { window_close_all(); - sub_6DFED0(); + reset_researched_scenery_items(); scenery_set_default_placement_configuration(); gS6Info.editor_step = EDITOR_STEP_LANDSCAPE_EDITOR; window_map_open(); @@ -242,25 +230,6 @@ static bool window_editor_bottom_toolbar_check_object_selection() return false; } -/** - * - * rct2: 0x0066F6E3 - */ -static void sub_66F6E3() -{ - for (sint32 i = 0; i < 4; i++) { - gResearchedRideTypes[i] = 0xFFFFFFFF; - } - - for (sint32 i = 0; i < 8; i++) { - gResearchedRideEntries[i] = 0xFFFFFFFF; - } - - window_new_ride_open(); - gS6Info.editor_step = EDITOR_STEP_ROLLERCOASTER_DESIGNER; - gfx_invalidate_screen(); -} - /** * * rct2: 0x0066F6B0 @@ -271,9 +240,12 @@ void window_editor_bottom_toolbar_jump_forward_from_object_selection() return; if (gScreenFlags & SCREEN_FLAGS_TRACK_DESIGNER) { - sub_66F6E3(); + reset_researched_ride_types_and_entries(); + window_new_ride_open(); + gS6Info.editor_step = EDITOR_STEP_ROLLERCOASTER_DESIGNER; + gfx_invalidate_screen(); } else { - sub_6DFED0(); + reset_researched_scenery_items(); scenery_set_default_placement_configuration(); gS6Info.editor_step = EDITOR_STEP_LANDSCAPE_EDITOR; window_map_open(); diff --git a/src/openrct2/windows/editor_object_selection.c b/src/openrct2/windows/editor_object_selection.c index 94ccd5afe0..9619778411 100644 --- a/src/openrct2/windows/editor_object_selection.c +++ b/src/openrct2/windows/editor_object_selection.c @@ -1684,13 +1684,7 @@ static sint32 get_object_from_object_selection(uint8 object_type, sint32 y) */ static void window_editor_object_selection_manage_tracks() { - for (sint32 i = 0; i < 4; i++) { - gResearchedRideTypes[i] = 0xFFFFFFFF; - } - - for (sint32 i = 0; i < 8; i++) { - gResearchedRideEntries[i] = 0xFFFFFFFF; - } + reset_researched_ride_types_and_entries(); gS6Info.editor_step = EDITOR_STEP_TRACK_DESIGNS_MANAGER; diff --git a/src/openrct2/world/park.c b/src/openrct2/world/park.c index f01fa97ece..a0bf6c646b 100644 --- a/src/openrct2/world/park.c +++ b/src/openrct2/world/park.c @@ -107,9 +107,7 @@ void park_init() for (i = 0; i < 2; i++) gResearchedRideTypes[i] = 0; - for (i = 0; i < 56; i++) { - gResearchedSceneryItems[i] = 0xFFFFFFFF; - } + reset_researched_scenery_items(); gParkEntranceFee = MONEY(10, 00); gPeepSpawns[0].x = PEEP_SPAWN_UNDEFINED; From 94e982289ebae7103c3aa0291144ceacd2f76612 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 3 Jun 2017 23:10:20 +0100 Subject: [PATCH 218/670] Fix openrct2-cli build By using a dummy audio context, we can now make openrct2-cli start a headless instance without any SDL2 calls. SDL2 is still a dependency until we remove out the input code to openrct2-ui. --- src/openrct2-cli/Cli.cpp | 17 ++++++-- src/openrct2-ui/Ui.cpp | 26 ++++++++---- src/openrct2/Context.cpp | 26 ++++++++++-- src/openrct2/Context.h | 2 + src/openrct2/audio/AudioContext.h | 2 + src/openrct2/audio/AudioMixer.cpp | 19 +++++---- src/openrct2/audio/DummyAudioContext.cpp | 52 ++++++++++++++++++++++++ src/openrct2/platform/shared.c | 20 +++++---- 8 files changed, 134 insertions(+), 30 deletions(-) create mode 100644 src/openrct2/audio/DummyAudioContext.cpp diff --git a/src/openrct2-cli/Cli.cpp b/src/openrct2-cli/Cli.cpp index a71e09b77b..b43d5dbf61 100644 --- a/src/openrct2-cli/Cli.cpp +++ b/src/openrct2-cli/Cli.cpp @@ -15,6 +15,7 @@ #pragma endregion #include +#include using namespace OpenRCT2; @@ -23,8 +24,16 @@ using namespace OpenRCT2; */ int main(int argc, char * * argv) { - IContext * context = CreateContext(); - int exitCode = context->RunOpenRCT2(argc, argv); - delete context; - return exitCode; + core_init(); + int runGame = cmdline_run((const char * *)argv, argc); + if (runGame == 1) + { + gOpenRCT2Headless = true; + + // Run OpenRCT2 with a plain context + auto context = CreateContext(); + context->RunOpenRCT2(argc, argv); + delete context; + } + return gExitCode; } diff --git a/src/openrct2-ui/Ui.cpp b/src/openrct2-ui/Ui.cpp index c32f05b726..7d8fae6c3e 100644 --- a/src/openrct2-ui/Ui.cpp +++ b/src/openrct2-ui/Ui.cpp @@ -39,16 +39,26 @@ int main(int argc, char * * argv) int runGame = cmdline_run((const char * *)argv, argc); if (runGame == 1) { - // Run OpenRCT2 with a UI context - IAudioContext * audioContext = CreateAudioContext(); - IUiContext * uiContext = gOpenRCT2Headless ? CreateDummyUiContext() : CreateUiContext(); - IContext * context = CreateContext(audioContext, uiContext); + if (gOpenRCT2Headless) + { + // Run OpenRCT2 with a plain context + auto context = CreateContext(); + context->RunOpenRCT2(argc, argv); + delete context; + } + else + { + // Run OpenRCT2 with a UI context + auto audioContext = CreateAudioContext(); + auto uiContext = CreateUiContext(); + auto context = CreateContext(audioContext, uiContext); - context->RunOpenRCT2(argc, argv); + context->RunOpenRCT2(argc, argv); - delete context; - delete uiContext; - delete audioContext; + delete context; + delete uiContext; + delete audioContext; + } } return gExitCode; } diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 11c92ccc74..65e95c1d1e 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -17,6 +17,7 @@ #include #include #include +#include "audio/AudioContext.h" #include "Context.h" #include "ui/UiContext.h" #include "core/Console.hpp" @@ -139,8 +140,7 @@ namespace OpenRCT2 _finished = true; } - private: - bool Initialise() + bool Initialise() final override { #ifndef DISABLE_NETWORK gHashCTX = EVP_MD_CTX_create(); @@ -233,6 +233,7 @@ namespace OpenRCT2 return true; } + private: IPlatformEnvironment * SetupEnvironment() { utf8 userPath[MAX_PATH]; @@ -544,11 +545,30 @@ namespace OpenRCT2 } }; + class PlainContext final : public Context + { + std::unique_ptr _audioContext; + std::unique_ptr _uiContext; + + public: + PlainContext() + : PlainContext(CreateDummyAudioContext(), CreateDummyUiContext()) + { + } + + PlainContext(IAudioContext * audioContext, IUiContext * uiContext) + : Context(audioContext, uiContext) + { + _audioContext = std::unique_ptr(audioContext); + _uiContext = std::unique_ptr(uiContext); + } + }; + Context * Context::Instance = nullptr; IContext * CreateContext() { - return new Context(nullptr, nullptr); + return new PlainContext(); } IContext * CreateContext(Audio::IAudioContext * audioContext, IUiContext * uiContext) diff --git a/src/openrct2/Context.h b/src/openrct2/Context.h index 2aac65fce5..737732d647 100644 --- a/src/openrct2/Context.h +++ b/src/openrct2/Context.h @@ -80,6 +80,8 @@ namespace OpenRCT2 virtual Ui::IUiContext * GetUiContext() abstract; virtual sint32 RunOpenRCT2(int argc, char * * argv) abstract; + + virtual bool Initialise() abstract; virtual void Finish() abstract; }; diff --git a/src/openrct2/audio/AudioContext.h b/src/openrct2/audio/AudioContext.h index 31d77c7dd5..a917015ed7 100644 --- a/src/openrct2/audio/AudioContext.h +++ b/src/openrct2/audio/AudioContext.h @@ -60,5 +60,7 @@ namespace OpenRCT2 virtual void StopTitleMusic() abstract; virtual void StopVehicleSounds() abstract; }; + + IAudioContext * CreateDummyAudioContext(); } } diff --git a/src/openrct2/audio/AudioMixer.cpp b/src/openrct2/audio/AudioMixer.cpp index 41039b990f..e71eb64780 100644 --- a/src/openrct2/audio/AudioMixer.cpp +++ b/src/openrct2/audio/AudioMixer.cpp @@ -59,16 +59,19 @@ void * Mixer_Play_Effect(size_t id, sint32 loop, sint32 volume, float pan, doubl else { IAudioMixer * mixer = GetMixer(); - mixer->Lock(); - IAudioSource * source = mixer->GetSoundSource((sint32)id); - channel = mixer->Play(source, loop, deleteondone != 0, false); - if (channel != nullptr) + if (mixer != nullptr) { - channel->SetVolume(volume); - channel->SetPan(pan); - channel->SetRate(rate); + mixer->Lock(); + IAudioSource * source = mixer->GetSoundSource((sint32)id); + channel = mixer->Play(source, loop, deleteondone != 0, false); + if (channel != nullptr) + { + channel->SetVolume(volume); + channel->SetPan(pan); + channel->SetRate(rate); + } + mixer->Unlock(); } - mixer->Unlock(); } } return channel; diff --git a/src/openrct2/audio/DummyAudioContext.cpp b/src/openrct2/audio/DummyAudioContext.cpp new file mode 100644 index 0000000000..9ef86ca439 --- /dev/null +++ b/src/openrct2/audio/DummyAudioContext.cpp @@ -0,0 +1,52 @@ +#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers +/***************************************************************************** +* OpenRCT2, an open source clone of Roller Coaster Tycoon 2. +* +* 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 +* +* 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. +* +* A full copy of the GNU General Public License can be found in licence.txt +*****************************************************************************/ +#pragma endregion + +#include "AudioContext.h" + +namespace OpenRCT2 { namespace Audio +{ + class DummyAudioContext final : public IAudioContext + { + IAudioMixer * GetMixer() override { return nullptr; } + + std::vector GetOutputDevices() override { return std::vector(); } + void SetOutputDevice(const std::string &deviceName) override { } + + IAudioSource * CreateStreamFromWAV(const std::string &path) override { return nullptr; } + + void StartTitleMusic() override { } + + IAudioChannel * PlaySound(sint32 soundId, sint32 volume, sint32 pan) override { return nullptr; } + IAudioChannel * PlaySoundAtLocation(sint32 soundId, sint16 x, sint16 y, sint16 z) override { return nullptr; } + IAudioChannel * PlaySoundPanned(sint32 soundId, sint32 pan, sint16 x, sint16 y, sint16 z) override { return nullptr; } + + void ToggleAllSounds() override { } + void PauseSounds() override { } + void UnpauseSounds() override { } + + void StopAll() override { } + void StopCrowdSound() override { } + void StopRainSound() override { } + void StopRideMusic() override { } + void StopTitleMusic() override { } + void StopVehicleSounds() override { } + }; + + IAudioContext * CreateDummyAudioContext() + { + return new DummyAudioContext(); + } +} } diff --git a/src/openrct2/platform/shared.c b/src/openrct2/platform/shared.c index 8ee5e3047d..669f88da7b 100644 --- a/src/openrct2/platform/shared.c +++ b/src/openrct2/platform/shared.c @@ -210,13 +210,19 @@ uint8 platform_get_currency_value(const char *currCode) { void core_init() { - bitcount_init(); - + static bool initialised = false; + if (!initialised) + { + initialised = true; + + bitcount_init(); + #if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200) - kern_return_t ret = mach_timebase_info(&_mach_base_info); - if (ret != 0) { - log_fatal("Unable to get mach_timebase_info."); - exit(-1); - } + kern_return_t ret = mach_timebase_info(&_mach_base_info); + if (ret != 0) { + log_fatal("Unable to get mach_timebase_info."); + exit(-1); + } #endif + } } From 3d459693a2b2ee0f11367dccddebec4a04b2e464 Mon Sep 17 00:00:00 2001 From: Richard Jenkins Date: Sat, 3 Jun 2017 23:41:24 +0100 Subject: [PATCH 219/670] Xcode fix --- OpenRCT2.xcodeproj/project.pbxproj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenRCT2.xcodeproj/project.pbxproj b/OpenRCT2.xcodeproj/project.pbxproj index 76e704e351..954c29de85 100644 --- a/OpenRCT2.xcodeproj/project.pbxproj +++ b/OpenRCT2.xcodeproj/project.pbxproj @@ -434,6 +434,8 @@ F76C88921EC539A300FA49E2 /* libopenrct2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; }; F775F5341EE35A6B001F00E7 /* DummyUiContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F775F5331EE35A6B001F00E7 /* DummyUiContext.cpp */; }; F775F5351EE35A89001F00E7 /* DummyUiContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F775F5331EE35A6B001F00E7 /* DummyUiContext.cpp */; }; + F775F5371EE3724F001F00E7 /* DummyAudioContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F775F5361EE3724F001F00E7 /* DummyAudioContext.cpp */; }; + F775F5381EE3725C001F00E7 /* DummyAudioContext.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F775F5361EE3724F001F00E7 /* DummyAudioContext.cpp */; }; F7D7747B1EC5EB6D00BE6EBC /* lay_down_roller_coaster.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C84951EC4E7CC00FA49E2 /* lay_down_roller_coaster.c */; }; F7D7747F1EC61E5100BE6EBC /* UiContext.macOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */; }; F7D7748D1EC66F8600BE6EBC /* libopenrct2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F76C809A1EC4D9FA00FA49E2 /* libopenrct2.a */; }; @@ -1323,6 +1325,7 @@ F76C85AF1EC4E82600FA49E2 /* UiContext.Win32.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UiContext.Win32.cpp; sourceTree = ""; }; F775F5321EE35A48001F00E7 /* Ui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ui.h; sourceTree = ""; }; F775F5331EE35A6B001F00E7 /* DummyUiContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DummyUiContext.cpp; sourceTree = ""; }; + F775F5361EE3724F001F00E7 /* DummyAudioContext.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DummyAudioContext.cpp; sourceTree = ""; }; F7D7747E1EC61E5100BE6EBC /* UiContext.macOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UiContext.macOS.mm; sourceTree = ""; usesTabs = 0; }; F7D774841EC66CD700BE6EBC /* OpenRCT2-cli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "OpenRCT2-cli"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -1768,6 +1771,7 @@ F76C83561EC4E7CC00FA49E2 /* audio */ = { isa = PBXGroup; children = ( + F775F5361EE3724F001F00E7 /* DummyAudioContext.cpp */, F76C83571EC4E7CC00FA49E2 /* audio.cpp */, F76C83581EC4E7CC00FA49E2 /* audio.h */, F76C83591EC4E7CC00FA49E2 /* AudioChannel.h */, @@ -2924,6 +2928,7 @@ F775F5341EE35A6B001F00E7 /* DummyUiContext.cpp in Sources */, F76C887F1EC5324E00FA49E2 /* CopyFramebufferShader.cpp in Sources */, F76C88801EC5324E00FA49E2 /* DrawImageShader.cpp in Sources */, + F775F5371EE3724F001F00E7 /* DummyAudioContext.cpp in Sources */, F76C88811EC5324E00FA49E2 /* DrawLineShader.cpp in Sources */, F76C88821EC5324E00FA49E2 /* FillRectShader.cpp in Sources */, F76C88831EC5324E00FA49E2 /* OpenGLAPI.cpp in Sources */, @@ -2945,6 +2950,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + F775F5381EE3725C001F00E7 /* DummyAudioContext.cpp in Sources */, F775F5351EE35A89001F00E7 /* DummyUiContext.cpp in Sources */, F7D7747B1EC5EB6D00BE6EBC /* lay_down_roller_coaster.c in Sources */, F76C85B01EC4E88300FA49E2 /* audio.cpp in Sources */, From 14c46a659cb1e7ad7cd9b79f2fc01619b9812112 Mon Sep 17 00:00:00 2001 From: Leurak Date: Wed, 3 May 2017 12:17:23 +0200 Subject: [PATCH 220/670] Add config option for socket listen address --- src/openrct2/config/Config.cpp | 6 ++++++ src/openrct2/config/Config.h | 1 + src/openrct2/network/network.cpp | 4 ++-- src/openrct2/network/network.h | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index eaa2f540d6..3c0e0e342a 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -343,6 +343,11 @@ namespace Config auto model = &gConfigNetwork; model->player_name = reader->GetCString("player_name", "Player"); model->default_port = reader->GetSint32("default_port", NETWORK_DEFAULT_PORT); + + model->listen_address = reader->GetCString("listen_address", ""); + if (strlen(model->listen_address) == 0) + model->listen_address = nullptr; + model->default_password = reader->GetCString("default_password", nullptr); model->stay_connected = reader->GetBoolean("stay_connected", true); model->advertise = reader->GetBoolean("advertise", true); @@ -365,6 +370,7 @@ namespace Config writer->WriteSection("network"); writer->WriteString("player_name", model->player_name); writer->WriteSint32("default_port", model->default_port); + writer->WriteString("listen_address", model->listen_address); writer->WriteString("default_password", model->default_password); writer->WriteBoolean("stay_connected", model->stay_connected); writer->WriteBoolean("advertise", model->advertise); diff --git a/src/openrct2/config/Config.h b/src/openrct2/config/Config.h index bcaafa6623..55fcace843 100644 --- a/src/openrct2/config/Config.h +++ b/src/openrct2/config/Config.h @@ -137,6 +137,7 @@ typedef struct NetworkConfiguration { utf8 * player_name; sint32 default_port; + char * listen_address; utf8 * default_password; bool stay_connected; bool advertise; diff --git a/src/openrct2/network/network.cpp b/src/openrct2/network/network.cpp index 336eb49809..7180a3d6b0 100644 --- a/src/openrct2/network/network.cpp +++ b/src/openrct2/network/network.cpp @@ -264,7 +264,7 @@ bool Network::BeginClient(const char* host, uint16 port) return true; } -bool Network::BeginServer(uint16 port, const char* address) +bool Network::BeginServer(uint16 port) { Close(); if (!Init()) @@ -280,7 +280,7 @@ bool Network::BeginServer(uint16 port, const char* address) listening_socket = CreateTcpSocket(); try { - listening_socket->Listen(address, port); + listening_socket->Listen(gConfigNetwork.listen_address, port); } catch (const Exception &ex) { diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 4ab6b7abc1..ed6103f9bd 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -95,7 +95,7 @@ public: bool Init(); void Close(); bool BeginClient(const char* host, uint16 port); - bool BeginServer(uint16 port, const char* address = NULL); + bool BeginServer(uint16 port); sint32 GetMode(); sint32 GetStatus(); sint32 GetAuthStatus(); From 7914484ea07a80e933955b1c777953b3cb45e3f0 Mon Sep 17 00:00:00 2001 From: Leurak Date: Wed, 3 May 2017 12:48:42 +0200 Subject: [PATCH 221/670] Fix indentation --- src/openrct2/config/Config.cpp | 8 ++++---- src/openrct2/config/Config.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index 3c0e0e342a..9a5c76de67 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -344,9 +344,9 @@ namespace Config model->player_name = reader->GetCString("player_name", "Player"); model->default_port = reader->GetSint32("default_port", NETWORK_DEFAULT_PORT); - model->listen_address = reader->GetCString("listen_address", ""); - if (strlen(model->listen_address) == 0) - model->listen_address = nullptr; + model->listen_address = reader->GetCString("listen_address", ""); + if (strlen(model->listen_address) == 0) + model->listen_address = nullptr; model->default_password = reader->GetCString("default_password", nullptr); model->stay_connected = reader->GetBoolean("stay_connected", true); @@ -370,7 +370,7 @@ namespace Config writer->WriteSection("network"); writer->WriteString("player_name", model->player_name); writer->WriteSint32("default_port", model->default_port); - writer->WriteString("listen_address", model->listen_address); + writer->WriteString("listen_address", model->listen_address); writer->WriteString("default_password", model->default_password); writer->WriteBoolean("stay_connected", model->stay_connected); writer->WriteBoolean("advertise", model->advertise); diff --git a/src/openrct2/config/Config.h b/src/openrct2/config/Config.h index 55fcace843..31ad33f4c0 100644 --- a/src/openrct2/config/Config.h +++ b/src/openrct2/config/Config.h @@ -137,7 +137,7 @@ typedef struct NetworkConfiguration { utf8 * player_name; sint32 default_port; - char * listen_address; + char * listen_address; utf8 * default_password; bool stay_connected; bool advertise; From c002df1abfe2201cdd63f9caf227e57bc656e333 Mon Sep 17 00:00:00 2001 From: Leurak Date: Thu, 4 May 2017 11:32:40 +0200 Subject: [PATCH 222/670] Keep address parameter in BeginServer --- src/openrct2/config/Config.cpp | 4 ---- src/openrct2/network/network.cpp | 10 +++++++--- src/openrct2/network/network.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index 9a5c76de67..ab44467fa3 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -343,11 +343,7 @@ namespace Config auto model = &gConfigNetwork; model->player_name = reader->GetCString("player_name", "Player"); model->default_port = reader->GetSint32("default_port", NETWORK_DEFAULT_PORT); - model->listen_address = reader->GetCString("listen_address", ""); - if (strlen(model->listen_address) == 0) - model->listen_address = nullptr; - model->default_password = reader->GetCString("default_password", nullptr); model->stay_connected = reader->GetBoolean("stay_connected", true); model->advertise = reader->GetBoolean("advertise", true); diff --git a/src/openrct2/network/network.cpp b/src/openrct2/network/network.cpp index 7180a3d6b0..f8d56eac38 100644 --- a/src/openrct2/network/network.cpp +++ b/src/openrct2/network/network.cpp @@ -264,7 +264,7 @@ bool Network::BeginClient(const char* host, uint16 port) return true; } -bool Network::BeginServer(uint16 port) +bool Network::BeginServer(uint16 port, const char* address) { Close(); if (!Init()) @@ -280,7 +280,7 @@ bool Network::BeginServer(uint16 port) listening_socket = CreateTcpSocket(); try { - listening_socket->Listen(gConfigNetwork.listen_address, port); + listening_socket->Listen(address, port); } catch (const Exception &ex) { @@ -2136,7 +2136,11 @@ sint32 network_begin_client(const char *host, sint32 port) sint32 network_begin_server(sint32 port) { - return gNetwork.BeginServer(port); + char *address = nullptr; + if (strlen(gConfigNetwork.listen_address) > 0) + address = gConfigNetwork.listen_address; + + return gNetwork.BeginServer(port, address); } void network_update() diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index ed6103f9bd..60aa181c9a 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -95,7 +95,7 @@ public: bool Init(); void Close(); bool BeginClient(const char* host, uint16 port); - bool BeginServer(uint16 port); + bool BeginServer(uint16 port, const char* address); sint32 GetMode(); sint32 GetStatus(); sint32 GetAuthStatus(); From 112f7b7a0dec5181e205cb00ce6162909e88dfdc Mon Sep 17 00:00:00 2001 From: Leurak Date: Thu, 4 May 2017 12:14:28 +0200 Subject: [PATCH 223/670] Add address parameter in network_begin_server --- src/openrct2/network/network.cpp | 11 +++++------ src/openrct2/network/network.h | 2 +- src/openrct2/windows/server_start.c | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/openrct2/network/network.cpp b/src/openrct2/network/network.cpp index f8d56eac38..94ec42b6f6 100644 --- a/src/openrct2/network/network.cpp +++ b/src/openrct2/network/network.cpp @@ -274,6 +274,9 @@ bool Network::BeginServer(uint16 port, const char* address) _userManager.Load(); + if (strlen(address) == 0) + address = nullptr; + log_verbose("Begin listening for clients"); assert(listening_socket == nullptr); @@ -2134,12 +2137,8 @@ sint32 network_begin_client(const char *host, sint32 port) return gNetwork.BeginClient(host, port); } -sint32 network_begin_server(sint32 port) +sint32 network_begin_server(sint32 port, const char* address) { - char *address = nullptr; - if (strlen(gConfigNetwork.listen_address) > 0) - address = gConfigNetwork.listen_address; - return gNetwork.BeginServer(port, address); } @@ -2674,7 +2673,7 @@ void network_send_gamecmd(uint32 eax, uint32 ebx, uint32 ecx, uint32 edx, uint32 void network_send_map() {} void network_update() {} sint32 network_begin_client(const char *host, sint32 port) { return 1; } -sint32 network_begin_server(sint32 port) { return 1; } +sint32 network_begin_server(sint32 port, const char * address) { return 1; } sint32 network_get_num_players() { return 1; } const char* network_get_player_name(uint32 index) { return "local (OpenRCT2 compiled without MP)"; } uint32 network_get_player_flags(uint32 index) { return 0; } diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index 60aa181c9a..ec5d657004 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -264,7 +264,7 @@ sint32 network_init(); void network_close(); void network_shutdown_client(); sint32 network_begin_client(const char *host, sint32 port); -sint32 network_begin_server(sint32 port); +sint32 network_begin_server(sint32 port, const char* address); sint32 network_get_mode(); sint32 network_get_status(); diff --git a/src/openrct2/windows/server_start.c b/src/openrct2/windows/server_start.c index ffd9e020f5..05731e14bc 100644 --- a/src/openrct2/windows/server_start.c +++ b/src/openrct2/windows/server_start.c @@ -166,7 +166,7 @@ static void window_server_start_scenarioselect_callback(const utf8 *path) { network_set_password(_password); if (scenario_load_and_play_from_path(path)) { - network_begin_server(gConfigNetwork.default_port); + network_begin_server(gConfigNetwork.default_port, gConfigNetwork.listen_address); } else { title_load(); } @@ -175,7 +175,7 @@ static void window_server_start_scenarioselect_callback(const utf8 *path) static void window_server_start_loadsave_callback(sint32 result, const utf8 * path) { if (result == MODAL_RESULT_OK && game_load_save_or_scenario(path)) { - network_begin_server(gConfigNetwork.default_port); + network_begin_server(gConfigNetwork.default_port, gConfigNetwork.listen_address); } } From babfa1e281c462895a7f50318f25c50296e811a7 Mon Sep 17 00:00:00 2001 From: Leurak Date: Thu, 4 May 2017 12:48:18 +0200 Subject: [PATCH 224/670] Add command line option for listen address --- src/openrct2/Context.cpp | 7 ++++++- src/openrct2/OpenRCT2.h | 1 + src/openrct2/cmdline/RootCommands.cpp | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 65e95c1d1e..4796c9e70d 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -345,6 +345,11 @@ namespace OpenRCT2 gNetworkStartPort = gConfigNetwork.default_port; } + if (String::IsNullOrEmpty(gNetworkStartAddress)) + { + gNetworkStartAddress = gConfigNetwork.listen_address; + } + if (String::IsNullOrEmpty(gCustomPassword)) { network_set_password(gConfigNetwork.default_password); @@ -353,7 +358,7 @@ namespace OpenRCT2 { network_set_password(gCustomPassword); } - network_begin_server(gNetworkStartPort); + network_begin_server(gNetworkStartPort, gNetworkStartAddress); } #endif // DISABLE_NETWORK break; diff --git a/src/openrct2/OpenRCT2.h b/src/openrct2/OpenRCT2.h index bf4150b6da..3d9810ddb6 100644 --- a/src/openrct2/OpenRCT2.h +++ b/src/openrct2/OpenRCT2.h @@ -67,6 +67,7 @@ extern "C" extern sint32 gNetworkStart; extern char gNetworkStartHost[128]; extern sint32 gNetworkStartPort; + extern char* gNetworkStartAddress; #endif void openrct2_write_full_version_info(utf8 * buffer, size_t bufferSize); diff --git a/src/openrct2/cmdline/RootCommands.cpp b/src/openrct2/cmdline/RootCommands.cpp index 43b35c89e1..2aa9243f17 100644 --- a/src/openrct2/cmdline/RootCommands.cpp +++ b/src/openrct2/cmdline/RootCommands.cpp @@ -44,8 +44,10 @@ extern "C" sint32 gNetworkStart = NETWORK_MODE_NONE; char gNetworkStartHost[128]; sint32 gNetworkStartPort = NETWORK_DEFAULT_PORT; +char* gNetworkStartAddress = nullptr; static uint32 _port = 0; +static char* _address = nullptr; #endif static bool _help = false; @@ -72,6 +74,7 @@ static const CommandLineOptionDefinition StandardOptions[] { CMDLINE_TYPE_SWITCH, &_headless, NAC, "headless", "run " OPENRCT2_NAME " headless" IMPLIES_SILENT_BREAKPAD }, #ifndef DISABLE_NETWORK { CMDLINE_TYPE_INTEGER, &_port, NAC, "port", "port to use for hosting or joining a server" }, + { CMDLINE_TYPE_STRING, &_address, NAC, "address", "address to listen on when hosting a server" }, #endif { CMDLINE_TYPE_STRING, &_password, NAC, "password", "password needed to join the server" }, { CMDLINE_TYPE_STRING, &_userDataPath, NAC, "user-data-path", "path to the user data directory (containing config.ini)" }, @@ -287,6 +290,8 @@ exitcode_t HandleCommandHost(CommandLineArgEnumerator * enumerator) gNetworkStart = NETWORK_MODE_SERVER; gNetworkStartPort = _port; + gNetworkStartAddress = _address; + return EXITCODE_CONTINUE; } From 41902243c70ffa944cb61c501c2a0c12b5c5539e Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 4 Jun 2017 00:33:48 +0100 Subject: [PATCH 225/670] Update man page --- distribution/man/openrct2.6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/distribution/man/openrct2.6 b/distribution/man/openrct2.6 index ac69e10384..1d7a550ff7 100644 --- a/distribution/man/openrct2.6 +++ b/distribution/man/openrct2.6 @@ -30,6 +30,7 @@ restrictions or finance. .Nm .Ar host uri +.Op Fl -address Ar address .Op Fl -port Ar port .Op Fl -password Ar password .Op Fl -headless @@ -111,6 +112,9 @@ without a graphical window. .It Fl -port Ar port Port to use for hosting or joining a server. +.It Fl -address Ar address +Address to bind to when hosting a server. + .It Fl -password Ar password Password needed to join the server. From c5306d72f78833f1b925e4fc1962759de7c29114 Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 10 Jan 2017 12:57:55 +0000 Subject: [PATCH 226/670] Add ride ratings test --- test/tests/RideRatings.cpp | 135 +++++++++++++++++++++++++++++++++++++ test/tests/tests.vcxproj | 1 + 2 files changed, 136 insertions(+) create mode 100644 test/tests/RideRatings.cpp diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp new file mode 100644 index 0000000000..358d7be382 --- /dev/null +++ b/test/tests/RideRatings.cpp @@ -0,0 +1,135 @@ +#include +#include +#include +#include +#include + +extern "C" +{ + #include + #include +} + +class RideRatings : public testing::Test +{ +protected: + static const char * ExpectedRideRatings[]; +}; + +TEST_F(RideRatings, all) +{ + std::string testdataPath = "testdata"; + std::string path = Path::Combine(testdataPath, "sfmm.sc6"); + + gOpenRCT2Headless = true; + core_init(); + openrct2_initialise(); + scenario_load_and_play_from_path(path.c_str()); + + // Check ride count to check load was successful + ASSERT_EQ(gRideCount, 77); + + // Check ride ratings + int expI = 0; + for (int rideId = 0; rideId < MAX_RIDES; rideId++) + { + rct_ride * ride = get_ride(rideId); + if (ride->type != RIDE_TYPE_NULL) + { + rating_tuple ratings = ride->ratings; + std::string actual = String::StdFormat("Ride type: %d, Ratings: %d, %d, %d", + (int)ride->type, + (int)ratings.excitement, + (int)ratings.intensity, + (int)ratings.nausea); + + const char * expected = ExpectedRideRatings[expI]; + ASSERT_STREQ(actual.c_str(), expected); + + expI++; + } + } + + openrct2_dispose(); +} + +const char * RideRatings::ExpectedRideRatings[] = +{ + "Ride type: 52, Ratings: 857, 979, 545", + "Ride type: 52, Ratings: 846, 928, 523", + "Ride type: 51, Ratings: 839, 702, 346", + "Ride type: 42, Ratings: 713, 886, 620", + "Ride type: 26, Ratings: 242, 245, 251", + "Ride type: 46, Ratings: 197, 157, 250", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 30, Ratings: -1, 0, 0", + "Ride type: 30, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 11, Ratings: 328, 58, 1", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 42, Ratings: 710, 890, 624", + "Ride type: 6, Ratings: 379, 38, 15", + "Ride type: 17, Ratings: 715, 628, 403", + "Ride type: 15, Ratings: 760, 579, 292", + "Ride type: 5, Ratings: 176, 11, 2", + "Ride type: 5, Ratings: 175, 11, 2", + "Ride type: 43, Ratings: 563, 35, 102", + "Ride type: 23, Ratings: 618, 217, 111", + "Ride type: 19, Ratings: 729, 937, 446", + "Ride type: 51, Ratings: 730, 734, 386", + "Ride type: 2, Ratings: 677, 678, 684", + "Ride type: 23, Ratings: 587, 248, 131", + "Ride type: 24, Ratings: 371, 113, 67", + "Ride type: 73, Ratings: 661, 947, 757", + "Ride type: 52, Ratings: 751, 968, 559", + "Ride type: 60, Ratings: 471, 242, 118", + "Ride type: 33, Ratings: 143, 60, 75", + "Ride type: 30, Ratings: -1, 0, 0", + "Ride type: 35, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 46, Ratings: 200, 157, 250", + "Ride type: 25, Ratings: 281, 80, 35", + "Ride type: 81, Ratings: 400, 647, 764", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 48, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 45, Ratings: -1, 0, 0", + "Ride type: 37, Ratings: 123, 50, 55", + "Ride type: 35, Ratings: -1, 0, 0", + "Ride type: 35, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 30, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 36, Ratings: -1, 0, 0", + "Ride type: 32, Ratings: -1, 0, 0", + "Ride type: 35, Ratings: -1, 0, 0", + "Ride type: 35, Ratings: -1, 0, 0", + "Ride type: 22, Ratings: 527, 254, 41", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 30, Ratings: -1, 0, 0", + "Ride type: 28, Ratings: -1, 0, 0", + "Ride type: 30, Ratings: -1, 0, 0", + "Ride type: 49, Ratings: 210, 30, 0", + "Ride type: 71, Ratings: 215, 62, 34", + "Ride type: 38, Ratings: 290, 350, 300", + "Ride type: 46, Ratings: 195, 157, 250", + "Ride type: 47, Ratings: 341, 153, 10", + "Ride type: 55, Ratings: 728, 850, 803", +}; diff --git a/test/tests/tests.vcxproj b/test/tests/tests.vcxproj index bbc3753f97..fff35a427f 100644 --- a/test/tests/tests.vcxproj +++ b/test/tests/tests.vcxproj @@ -53,6 +53,7 @@ + From 443e17c8fcf1ec861ff84d2360a105922359738e Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 10 Jan 2017 19:27:49 +0000 Subject: [PATCH 227/670] Force rating update on each ride before testing --- src/openrct2/ride/ride_ratings.c | 25 +++++++++++++++++++++++++ src/openrct2/ride/ride_ratings.h | 1 + test/tests/RideRatings.cpp | 2 ++ 3 files changed, 28 insertions(+) diff --git a/src/openrct2/ride/ride_ratings.c b/src/openrct2/ride/ride_ratings.c index 0487394d88..365112b1a1 100644 --- a/src/openrct2/ride/ride_ratings.c +++ b/src/openrct2/ride/ride_ratings.c @@ -68,6 +68,7 @@ rct_ride_rating_calc_data gRideRatingsCalcData; static const ride_ratings_calculation ride_ratings_calculate_func_table[RIDE_TYPE_COUNT]; +static void ride_ratings_update_state(); static void ride_ratings_update_state_0(); static void ride_ratings_update_state_1(); static void ride_ratings_update_state_2(); @@ -79,6 +80,25 @@ static void ride_ratings_calculate(rct_ride *ride); static void ride_ratings_calculate_value(rct_ride *ride); static void ride_ratings_score_close_proximity(rct_map_element *mapElement); +/** + * This is a small hack function to keep calling the ride rating processor until + * the given ride's ratings have been calculated. What ever is currently being + * processed will be overwritten. + * Only purpose of this function currently is for testing. + */ +void ride_ratings_update_ride(int rideIndex) +{ + rct_ride *ride = get_ride(rideIndex); + if (ride->type != RIDE_TYPE_NULL && ride->status != RIDE_STATUS_CLOSED) { + gRideRatingsCalcData.current_ride = rideIndex; + gRideRatingsCalcData.state = RIDE_RATINGS_STATE_INITIALISE; + while (gRideRatingsCalcData.state != RIDE_RATINGS_STATE_FIND_NEXT_RIDE) + { + ride_ratings_update_state(); + } + } +} + /** * * rct2: 0x006B5A2A @@ -88,6 +108,11 @@ void ride_ratings_update_all() if (gScreenFlags & SCREEN_FLAGS_SCENARIO_EDITOR) return; + ride_ratings_update_state(); +} + +static void ride_ratings_update_state() +{ switch (gRideRatingsCalcData.state) { case RIDE_RATINGS_STATE_FIND_NEXT_RIDE: ride_ratings_update_state_0(); diff --git a/src/openrct2/ride/ride_ratings.h b/src/openrct2/ride/ride_ratings.h index fdb6afe403..88969d3cde 100644 --- a/src/openrct2/ride/ride_ratings.h +++ b/src/openrct2/ride/ride_ratings.h @@ -44,6 +44,7 @@ typedef struct rct_ride_rating_calc_data { extern rct_ride_rating_calc_data gRideRatingsCalcData; +void ride_ratings_update_ride(int rideIndex); void ride_ratings_update_all(); #endif diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index 358d7be382..5f31ef1438 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -36,6 +36,8 @@ TEST_F(RideRatings, all) rct_ride * ride = get_ride(rideId); if (ride->type != RIDE_TYPE_NULL) { + ride_ratings_update_ride(rideId); + rating_tuple ratings = ride->ratings; std::string actual = String::StdFormat("Ride type: %d, Ratings: %d, %d, %d", (int)ride->type, From d65d31f63269581c28344b05f751346e503854e8 Mon Sep 17 00:00:00 2001 From: Ted John Date: Tue, 10 Jan 2017 19:54:43 +0000 Subject: [PATCH 228/670] Fix test expectations and describe ride types --- src/openrct2/common.h | 5 +- src/openrct2/ride/ride.c | 118 +++++++++++++++++++-- src/openrct2/ride/ride.h | 2 + test/tests/RideRatings.cpp | 207 +++++++++++++++++++++---------------- 4 files changed, 234 insertions(+), 98 deletions(-) diff --git a/src/openrct2/common.h b/src/openrct2/common.h index 7305635a43..64cbd4fc94 100644 --- a/src/openrct2/common.h +++ b/src/openrct2/common.h @@ -294,6 +294,9 @@ typedef struct registers { assert_struct_size(registers, 7 * 4); #pragma pack(pop) -#define UNUSED(x) ((void)(x)) +#define UNUSED(x) ((void)(x)) + +// Macro for turning symbol names into strings +#define SZ(x) #x #endif diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index b0468acde5..a16dc6976a 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -8221,15 +8221,15 @@ uint32 ride_customers_per_hour(const rct_ride *ride) { // Calculates the number of customers for this ride in the last 5 minutes (or more correctly 9600 game ticks) uint32 ride_customers_in_last_5_minutes(const rct_ride *ride) { uint32 sum = ride->num_customers[0] - + ride->num_customers[1] - + ride->num_customers[2] - + ride->num_customers[3] - + ride->num_customers[4] - + ride->num_customers[5] - + ride->num_customers[6] - + ride->num_customers[7] - + ride->num_customers[8] - + ride->num_customers[9]; + + ride->num_customers[1] + + ride->num_customers[2] + + ride->num_customers[3] + + ride->num_customers[4] + + ride->num_customers[5] + + ride->num_customers[6] + + ride->num_customers[7] + + ride->num_customers[8] + + ride->num_customers[9]; return sum; } @@ -8376,3 +8376,103 @@ bool ride_has_ratings(const rct_ride * ride) { return ride->excitement != RIDE_RATING_UNDEFINED; } + +const char * ride_type_get_enum_name(sint32 rideType) +{ + static const char * RideTypeEnumNames[RIDE_TYPE_COUNT] = + { + SZ(RIDE_TYPE_SPIRAL_ROLLER_COASTER), + SZ(RIDE_TYPE_STAND_UP_ROLLER_COASTER), + SZ(RIDE_TYPE_SUSPENDED_SWINGING_COASTER), + SZ(RIDE_TYPE_INVERTED_ROLLER_COASTER), + SZ(RIDE_TYPE_JUNIOR_ROLLER_COASTER), + SZ(RIDE_TYPE_MINIATURE_RAILWAY), + SZ(RIDE_TYPE_MONORAIL), + SZ(RIDE_TYPE_MINI_SUSPENDED_COASTER), + SZ(RIDE_TYPE_BOAT_RIDE), + SZ(RIDE_TYPE_WOODEN_WILD_MOUSE), + SZ(RIDE_TYPE_STEEPLECHASE), + SZ(RIDE_TYPE_CAR_RIDE), + SZ(RIDE_TYPE_LAUNCHED_FREEFALL), + SZ(RIDE_TYPE_BOBSLEIGH_COASTER), + SZ(RIDE_TYPE_OBSERVATION_TOWER), + SZ(RIDE_TYPE_LOOPING_ROLLER_COASTER), + SZ(RIDE_TYPE_DINGHY_SLIDE), + SZ(RIDE_TYPE_MINE_TRAIN_COASTER), + SZ(RIDE_TYPE_CHAIRLIFT), + SZ(RIDE_TYPE_CORKSCREW_ROLLER_COASTER), + SZ(RIDE_TYPE_MAZE), + SZ(RIDE_TYPE_SPIRAL_SLIDE), + SZ(RIDE_TYPE_GO_KARTS), + SZ(RIDE_TYPE_LOG_FLUME), + SZ(RIDE_TYPE_RIVER_RAPIDS), + SZ(RIDE_TYPE_DODGEMS), + SZ(RIDE_TYPE_PIRATE_SHIP), + SZ(RIDE_TYPE_SWINGING_INVERTER_SHIP), + SZ(RIDE_TYPE_FOOD_STALL), + SZ(RIDE_TYPE_1D), + SZ(RIDE_TYPE_DRINK_STALL), + SZ(RIDE_TYPE_1F), + SZ(RIDE_TYPE_SHOP), + SZ(RIDE_TYPE_MERRY_GO_ROUND), + SZ(RIDE_TYPE_22), + SZ(RIDE_TYPE_INFORMATION_KIOSK), + SZ(RIDE_TYPE_TOILETS), + SZ(RIDE_TYPE_FERRIS_WHEEL), + SZ(RIDE_TYPE_MOTION_SIMULATOR), + SZ(RIDE_TYPE_3D_CINEMA), + SZ(RIDE_TYPE_TOP_SPIN), + SZ(RIDE_TYPE_SPACE_RINGS), + SZ(RIDE_TYPE_REVERSE_FREEFALL_COASTER), + SZ(RIDE_TYPE_LIFT), + SZ(RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER), + SZ(RIDE_TYPE_CASH_MACHINE), + SZ(RIDE_TYPE_TWIST), + SZ(RIDE_TYPE_HAUNTED_HOUSE), + SZ(RIDE_TYPE_FIRST_AID), + SZ(RIDE_TYPE_CIRCUS_SHOW), + SZ(RIDE_TYPE_GHOST_TRAIN), + SZ(RIDE_TYPE_TWISTER_ROLLER_COASTER), + SZ(RIDE_TYPE_WOODEN_ROLLER_COASTER), + SZ(RIDE_TYPE_SIDE_FRICTION_ROLLER_COASTER), + SZ(RIDE_TYPE_WILD_MOUSE), + SZ(RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER), + SZ(RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER_ALT), + SZ(RIDE_TYPE_FLYING_ROLLER_COASTER), + SZ(RIDE_TYPE_FLYING_ROLLER_COASTER_ALT), + SZ(RIDE_TYPE_VIRGINIA_REEL), + SZ(RIDE_TYPE_SPLASH_BOATS), + SZ(RIDE_TYPE_MINI_HELICOPTERS), + SZ(RIDE_TYPE_LAY_DOWN_ROLLER_COASTER), + SZ(RIDE_TYPE_SUSPENDED_MONORAIL), + SZ(RIDE_TYPE_LAY_DOWN_ROLLER_COASTER_ALT), + SZ(RIDE_TYPE_REVERSER_ROLLER_COASTER), + SZ(RIDE_TYPE_HEARTLINE_TWISTER_COASTER), + SZ(RIDE_TYPE_MINI_GOLF), + SZ(RIDE_TYPE_GIGA_COASTER), + SZ(RIDE_TYPE_ROTO_DROP), + SZ(RIDE_TYPE_FLYING_SAUCERS), + SZ(RIDE_TYPE_CROOKED_HOUSE), + SZ(RIDE_TYPE_MONORAIL_CYCLES), + SZ(RIDE_TYPE_COMPACT_INVERTED_COASTER), + SZ(RIDE_TYPE_WATER_COASTER), + SZ(RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER), + SZ(RIDE_TYPE_INVERTED_HAIRPIN_COASTER), + SZ(RIDE_TYPE_MAGIC_CARPET), + SZ(RIDE_TYPE_SUBMARINE_RIDE), + SZ(RIDE_TYPE_RIVER_RAFTS), + SZ(RIDE_TYPE_50), + SZ(RIDE_TYPE_ENTERPRISE), + SZ(RIDE_TYPE_52), + SZ(RIDE_TYPE_53), + SZ(RIDE_TYPE_54), + SZ(RIDE_TYPE_55), + SZ(RIDE_TYPE_INVERTED_IMPULSE_COASTER), + SZ(RIDE_TYPE_MINI_ROLLER_COASTER), + SZ(RIDE_TYPE_MINE_RIDE), + SZ(RIDE_TYPE_59), + SZ(RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER), + }; + + return RideTypeEnumNames[rideType]; +} diff --git a/src/openrct2/ride/ride.h b/src/openrct2/ride/ride.h index b3691d3df8..6a0b3cec35 100644 --- a/src/openrct2/ride/ride.h +++ b/src/openrct2/ride/ride.h @@ -1164,4 +1164,6 @@ rct_map_element *get_station_platform(sint32 x, sint32 y, sint32 z, sint32 z_tol bool ride_has_adjacent_station(rct_ride *ride); bool ride_has_ratings(const rct_ride * ride); +const char * ride_type_get_enum_name(sint32 rideType); + #endif diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index 5f31ef1438..d9b5593e80 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -14,6 +14,43 @@ class RideRatings : public testing::Test { protected: static const char * ExpectedRideRatings[]; + + void CalculateRatingsForAllRides() + { + for (int rideId = 0; rideId < MAX_RIDES; rideId++) + { + rct_ride * ride = get_ride(rideId); + if (ride->type != RIDE_TYPE_NULL) + { + ride_ratings_update_ride(rideId); + } + } + } + + void DumpRatings() + { + int expI = 0; + for (int rideId = 0; rideId < MAX_RIDES; rideId++) + { + rct_ride * ride = get_ride(rideId); + if (ride->type != RIDE_TYPE_NULL) + { + std::string line = FormatRatings(ride); + printf("%s\n", line.c_str()); + } + } + } + + std::string FormatRatings(rct_ride * ride) + { + rating_tuple ratings = ride->ratings; + std::string line = String::StdFormat("%s: (%d, %d, %d)", + ride_type_get_enum_name(ride->type), + (int)ratings.excitement, + (int)ratings.intensity, + (int)ratings.nausea); + return line; + } }; TEST_F(RideRatings, all) @@ -29,6 +66,8 @@ TEST_F(RideRatings, all) // Check ride count to check load was successful ASSERT_EQ(gRideCount, 77); + CalculateRatingsForAllRides(); + // Check ride ratings int expI = 0; for (int rideId = 0; rideId < MAX_RIDES; rideId++) @@ -36,17 +75,9 @@ TEST_F(RideRatings, all) rct_ride * ride = get_ride(rideId); if (ride->type != RIDE_TYPE_NULL) { - ride_ratings_update_ride(rideId); - - rating_tuple ratings = ride->ratings; - std::string actual = String::StdFormat("Ride type: %d, Ratings: %d, %d, %d", - (int)ride->type, - (int)ratings.excitement, - (int)ratings.intensity, - (int)ratings.nausea); - - const char * expected = ExpectedRideRatings[expI]; - ASSERT_STREQ(actual.c_str(), expected); + std::string actual = FormatRatings(ride); + std::string expected = ExpectedRideRatings[expI]; + ASSERT_STREQ(actual.c_str(), expected.c_str()); expI++; } @@ -57,81 +88,81 @@ TEST_F(RideRatings, all) const char * RideRatings::ExpectedRideRatings[] = { - "Ride type: 52, Ratings: 857, 979, 545", - "Ride type: 52, Ratings: 846, 928, 523", - "Ride type: 51, Ratings: 839, 702, 346", - "Ride type: 42, Ratings: 713, 886, 620", - "Ride type: 26, Ratings: 242, 245, 251", - "Ride type: 46, Ratings: 197, 157, 250", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 30, Ratings: -1, 0, 0", - "Ride type: 30, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 11, Ratings: 328, 58, 1", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 42, Ratings: 710, 890, 624", - "Ride type: 6, Ratings: 379, 38, 15", - "Ride type: 17, Ratings: 715, 628, 403", - "Ride type: 15, Ratings: 760, 579, 292", - "Ride type: 5, Ratings: 176, 11, 2", - "Ride type: 5, Ratings: 175, 11, 2", - "Ride type: 43, Ratings: 563, 35, 102", - "Ride type: 23, Ratings: 618, 217, 111", - "Ride type: 19, Ratings: 729, 937, 446", - "Ride type: 51, Ratings: 730, 734, 386", - "Ride type: 2, Ratings: 677, 678, 684", - "Ride type: 23, Ratings: 587, 248, 131", - "Ride type: 24, Ratings: 371, 113, 67", - "Ride type: 73, Ratings: 661, 947, 757", - "Ride type: 52, Ratings: 751, 968, 559", - "Ride type: 60, Ratings: 471, 242, 118", - "Ride type: 33, Ratings: 143, 60, 75", - "Ride type: 30, Ratings: -1, 0, 0", - "Ride type: 35, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 46, Ratings: 200, 157, 250", - "Ride type: 25, Ratings: 281, 80, 35", - "Ride type: 81, Ratings: 400, 647, 764", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 48, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 45, Ratings: -1, 0, 0", - "Ride type: 37, Ratings: 123, 50, 55", - "Ride type: 35, Ratings: -1, 0, 0", - "Ride type: 35, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 30, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 36, Ratings: -1, 0, 0", - "Ride type: 32, Ratings: -1, 0, 0", - "Ride type: 35, Ratings: -1, 0, 0", - "Ride type: 35, Ratings: -1, 0, 0", - "Ride type: 22, Ratings: 527, 254, 41", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 30, Ratings: -1, 0, 0", - "Ride type: 28, Ratings: -1, 0, 0", - "Ride type: 30, Ratings: -1, 0, 0", - "Ride type: 49, Ratings: 210, 30, 0", - "Ride type: 71, Ratings: 215, 62, 34", - "Ride type: 38, Ratings: 290, 350, 300", - "Ride type: 46, Ratings: 195, 157, 250", - "Ride type: 47, Ratings: 341, 153, 10", - "Ride type: 55, Ratings: 728, 850, 803", + "RIDE_TYPE_WOODEN_ROLLER_COASTER: (838, 979, 545)", + "RIDE_TYPE_WOODEN_ROLLER_COASTER: (846, 928, 523)", + "RIDE_TYPE_TWISTER_ROLLER_COASTER: (822, 702, 346)", + "RIDE_TYPE_REVERSE_FREEFALL_COASTER: (727, 886, 620)", + "RIDE_TYPE_PIRATE_SHIP: (242, 245, 251)", + "RIDE_TYPE_TWIST: (197, 157, 250)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", + "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_CAR_RIDE: (328, 58, 1)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_REVERSE_FREEFALL_COASTER: (724, 890, 624)", + "RIDE_TYPE_MONORAIL: (385, 38, 15)", + "RIDE_TYPE_MINE_TRAIN_COASTER: (706, 628, 403)", + "RIDE_TYPE_LOOPING_ROLLER_COASTER: (742, 579, 292)", + "RIDE_TYPE_MINIATURE_RAILWAY: (175, 11, 2)", + "RIDE_TYPE_MINIATURE_RAILWAY: (174, 11, 2)", + "RIDE_TYPE_LIFT: (563, 35, 102)", + "RIDE_TYPE_LOG_FLUME: (599, 217, 111)", + "RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (717, 937, 448)", + "RIDE_TYPE_TWISTER_ROLLER_COASTER: (726, 734, 392)", + "RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (677, 678, 684)", + "RIDE_TYPE_LOG_FLUME: (580, 248, 131)", + "RIDE_TYPE_RIVER_RAPIDS: (393, 113, 67)", + "RIDE_TYPE_COMPACT_INVERTED_COASTER: (687, 947, 763)", + "RIDE_TYPE_WOODEN_ROLLER_COASTER: (751, 968, 559)", + "RIDE_TYPE_SPLASH_BOATS: (471, 242, 118)", + "RIDE_TYPE_MERRY_GO_ROUND: (143, 60, 75)", + "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", + "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_TWIST: (200, 157, 250)", + "RIDE_TYPE_DODGEMS: (281, 80, 35)", + "RIDE_TYPE_ENTERPRISE: (400, 647, 764)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_FIRST_AID: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_CASH_MACHINE: (-1, 0, 0)", + "RIDE_TYPE_FERRIS_WHEEL: (123, 50, 55)", + "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", + "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_TOILETS: (-1, 0, 0)", + "RIDE_TYPE_SHOP: (-1, 0, 0)", + "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", + "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", + "RIDE_TYPE_GO_KARTS: (527, 254, 41)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", + "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", + "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", + "RIDE_TYPE_CIRCUS_SHOW: (210, 30, 0)", + "RIDE_TYPE_CROOKED_HOUSE: (215, 62, 34)", + "RIDE_TYPE_MOTION_SIMULATOR: (290, 350, 300)", + "RIDE_TYPE_TWIST: (195, 157, 250)", + "RIDE_TYPE_HAUNTED_HOUSE: (341, 153, 10)", + "RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER: (733, 850, 809)", }; From cf7f1b733561b26a8517da86ac80734443ace1b5 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 11 Jan 2017 13:01:20 +0000 Subject: [PATCH 229/670] Change location of test data --- src/openrct2/core/Path.cpp | 9 +++++++++ src/openrct2/core/Path.hpp | 1 + test/tests/RideRatings.cpp | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 81c299686f..0ebf77e268 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -42,6 +42,15 @@ namespace Path return std::string(buffer); } + std::string Combine(const std::string &a, const std::string &b, const std::string &c) + { + utf8 buffer[MAX_PATH]; + String::Set(buffer, sizeof(buffer), a.c_str()); + Path::Append(buffer, sizeof(buffer), b.c_str()); + Path::Append(buffer, sizeof(buffer), c.c_str()); + return std::string(buffer); + } + std::string GetDirectory(const std::string &path) { const utf8* directory = GetDirectory(path.c_str()); diff --git a/src/openrct2/core/Path.hpp b/src/openrct2/core/Path.hpp index 220c3046eb..1ed29c8aea 100644 --- a/src/openrct2/core/Path.hpp +++ b/src/openrct2/core/Path.hpp @@ -23,6 +23,7 @@ namespace Path { utf8 * Append(utf8 * buffer, size_t bufferSize, const utf8 * src); std::string Combine(const std::string &a, const std::string &b); + std::string Combine(const std::string &a, const std::string &b, const std::string &c); std::string GetDirectory(const std::string &path); utf8 * GetDirectory(const utf8 * path); utf8 * GetDirectory(utf8 * buffer, size_t bufferSize, const utf8 * path); diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index d9b5593e80..76a7023a19 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -56,7 +56,7 @@ protected: TEST_F(RideRatings, all) { std::string testdataPath = "testdata"; - std::string path = Path::Combine(testdataPath, "sfmm.sc6"); + std::string path = Path::Combine(testdataPath, "parks", "sfmm.sc6"); gOpenRCT2Headless = true; core_init(); From b28fde6ae77fbab956b3d7bd72dd24f1da4cd2a6 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 11 Jan 2017 17:15:24 +0000 Subject: [PATCH 230/670] Create test data helpers --- test/tests/RideRatings.cpp | 4 ++-- test/tests/TestData.cpp | 16 ++++++++++++++++ test/tests/TestData.h | 9 +++++++++ test/tests/tests.vcxproj | 2 ++ 4 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 test/tests/TestData.cpp create mode 100644 test/tests/TestData.h diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index 76a7023a19..5c5574c4f4 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -3,6 +3,7 @@ #include #include #include +#include "TestData.h" extern "C" { @@ -55,8 +56,7 @@ protected: TEST_F(RideRatings, all) { - std::string testdataPath = "testdata"; - std::string path = Path::Combine(testdataPath, "parks", "sfmm.sc6"); + std::string path = TestData::GetParkPath("sfmm.sc6"); gOpenRCT2Headless = true; core_init(); diff --git a/test/tests/TestData.cpp b/test/tests/TestData.cpp new file mode 100644 index 0000000000..0ccfd8d1bf --- /dev/null +++ b/test/tests/TestData.cpp @@ -0,0 +1,16 @@ +#include +#include "TestData.h" + +namespace TestData +{ + std::string GetBasePath() + { + return "testdata"; + } + + std::string GetParkPath(std::string name) + { + std::string path = Path::Combine(GetBasePath(), "parks", name); + return path; + } +}; diff --git a/test/tests/TestData.h b/test/tests/TestData.h new file mode 100644 index 0000000000..94e86a3599 --- /dev/null +++ b/test/tests/TestData.h @@ -0,0 +1,9 @@ +#include + +#pragma once + +namespace TestData +{ + std::string GetBasePath(); + std::string GetParkPath(std::string name); +}; diff --git a/test/tests/tests.vcxproj b/test/tests/tests.vcxproj index fff35a427f..2d246e9a86 100644 --- a/test/tests/tests.vcxproj +++ b/test/tests/tests.vcxproj @@ -48,6 +48,7 @@ + @@ -56,6 +57,7 @@ + From 7ca1173bcb8ec8c3a7338bc4796af7e56422e678 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 17 May 2017 18:36:01 +0100 Subject: [PATCH 231/670] Fix warning --- test/tests/RideRatings.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index 5c5574c4f4..b1db431480 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -30,7 +30,6 @@ protected: void DumpRatings() { - int expI = 0; for (int rideId = 0; rideId < MAX_RIDES; rideId++) { rct_ride * ride = get_ride(rideId); From f5a23d77bdaee4e4b8afcf7c9761908f68250d6f Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 17 May 2017 19:11:42 +0100 Subject: [PATCH 232/670] Add File::ReadAllLines helper --- src/openrct2/core/File.cpp | 32 ++++++++++++++++++++++++++++++++ src/openrct2/core/File.h | 2 ++ 2 files changed, 34 insertions(+) diff --git a/src/openrct2/core/File.cpp b/src/openrct2/core/File.cpp index 93f92f0795..b33650b124 100644 --- a/src/openrct2/core/File.cpp +++ b/src/openrct2/core/File.cpp @@ -71,6 +71,38 @@ namespace File auto fs = FileStream(path, FILE_MODE_WRITE); fs.Write(buffer, length); } + + std::vector ReadAllLines(const std::string &path) + { + std::vector lines; + size_t length; + char * data = (char *)ReadAllBytes(path, &length); + char * lineStart = data; + char * ch = data; + char lastC = 0; + for (size_t i = 0; i < length; i++) + { + char c = *ch; + if (c == '\n' && lastC == '\r') + { + // Ignore \r\n + lineStart = ch + 1; + } + else if (c == '\n' || c == '\r') + { + lines.emplace_back(lineStart, ch - lineStart); + lineStart = ch + 1; + } + lastC = c; + ch++; + } + + // Last line + lines.emplace_back(lineStart, ch - lineStart); + + Memory::Free(data); + return lines; + } } extern "C" diff --git a/src/openrct2/core/File.h b/src/openrct2/core/File.h index 3029838021..d15481b3b3 100644 --- a/src/openrct2/core/File.h +++ b/src/openrct2/core/File.h @@ -17,6 +17,7 @@ #pragma once #include +#include #include "../common.h" namespace File @@ -27,4 +28,5 @@ namespace File bool Move(const std::string &srcPath, const std::string &dstPath); void * ReadAllBytes(const std::string &path, size_t * length); void WriteAllBytes(const std::string &path, const void * buffer, size_t length); + std::vector ReadAllLines(const std::string &path); } From e9898ba82f95a5e07d709a637fa75992a7f76712 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 17 May 2017 19:12:02 +0100 Subject: [PATCH 233/670] Use new rating test data --- test/tests/RideRatings.cpp | 98 ++++---------------------------------- 1 file changed, 10 insertions(+), 88 deletions(-) diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index b1db431480..2fc0327a4f 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -8,14 +9,12 @@ extern "C" { #include - #include + #include } class RideRatings : public testing::Test { protected: - static const char * ExpectedRideRatings[]; - void CalculateRatingsForAllRides() { for (int rideId = 0; rideId < MAX_RIDES; rideId++) @@ -55,18 +54,22 @@ protected: TEST_F(RideRatings, all) { - std::string path = TestData::GetParkPath("sfmm.sc6"); + std::string path = TestData::GetParkPath("bpb.sv6"); gOpenRCT2Headless = true; core_init(); openrct2_initialise(); - scenario_load_and_play_from_path(path.c_str()); + game_load_sv6_path(path.c_str()); // Check ride count to check load was successful - ASSERT_EQ(gRideCount, 77); + ASSERT_EQ(gRideCount, 134); CalculateRatingsForAllRides(); + // Load expected ratings + auto expectedDataPath = Path::Combine(TestData::GetBasePath(), "ratings", "bpb.sv6.txt"); + auto expectedRatings = File::ReadAllLines(expectedDataPath); + // Check ride ratings int expI = 0; for (int rideId = 0; rideId < MAX_RIDES; rideId++) @@ -75,7 +78,7 @@ TEST_F(RideRatings, all) if (ride->type != RIDE_TYPE_NULL) { std::string actual = FormatRatings(ride); - std::string expected = ExpectedRideRatings[expI]; + std::string expected = expectedRatings[expI]; ASSERT_STREQ(actual.c_str(), expected.c_str()); expI++; @@ -84,84 +87,3 @@ TEST_F(RideRatings, all) openrct2_dispose(); } - -const char * RideRatings::ExpectedRideRatings[] = -{ - "RIDE_TYPE_WOODEN_ROLLER_COASTER: (838, 979, 545)", - "RIDE_TYPE_WOODEN_ROLLER_COASTER: (846, 928, 523)", - "RIDE_TYPE_TWISTER_ROLLER_COASTER: (822, 702, 346)", - "RIDE_TYPE_REVERSE_FREEFALL_COASTER: (727, 886, 620)", - "RIDE_TYPE_PIRATE_SHIP: (242, 245, 251)", - "RIDE_TYPE_TWIST: (197, 157, 250)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", - "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_CAR_RIDE: (328, 58, 1)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_REVERSE_FREEFALL_COASTER: (724, 890, 624)", - "RIDE_TYPE_MONORAIL: (385, 38, 15)", - "RIDE_TYPE_MINE_TRAIN_COASTER: (706, 628, 403)", - "RIDE_TYPE_LOOPING_ROLLER_COASTER: (742, 579, 292)", - "RIDE_TYPE_MINIATURE_RAILWAY: (175, 11, 2)", - "RIDE_TYPE_MINIATURE_RAILWAY: (174, 11, 2)", - "RIDE_TYPE_LIFT: (563, 35, 102)", - "RIDE_TYPE_LOG_FLUME: (599, 217, 111)", - "RIDE_TYPE_CORKSCREW_ROLLER_COASTER: (717, 937, 448)", - "RIDE_TYPE_TWISTER_ROLLER_COASTER: (726, 734, 392)", - "RIDE_TYPE_SUSPENDED_SWINGING_COASTER: (677, 678, 684)", - "RIDE_TYPE_LOG_FLUME: (580, 248, 131)", - "RIDE_TYPE_RIVER_RAPIDS: (393, 113, 67)", - "RIDE_TYPE_COMPACT_INVERTED_COASTER: (687, 947, 763)", - "RIDE_TYPE_WOODEN_ROLLER_COASTER: (751, 968, 559)", - "RIDE_TYPE_SPLASH_BOATS: (471, 242, 118)", - "RIDE_TYPE_MERRY_GO_ROUND: (143, 60, 75)", - "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", - "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_TWIST: (200, 157, 250)", - "RIDE_TYPE_DODGEMS: (281, 80, 35)", - "RIDE_TYPE_ENTERPRISE: (400, 647, 764)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_FIRST_AID: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_CASH_MACHINE: (-1, 0, 0)", - "RIDE_TYPE_FERRIS_WHEEL: (123, 50, 55)", - "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", - "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_TOILETS: (-1, 0, 0)", - "RIDE_TYPE_SHOP: (-1, 0, 0)", - "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", - "RIDE_TYPE_INFORMATION_KIOSK: (-1, 0, 0)", - "RIDE_TYPE_GO_KARTS: (527, 254, 41)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", - "RIDE_TYPE_FOOD_STALL: (-1, 0, 0)", - "RIDE_TYPE_DRINK_STALL: (-1, 0, 0)", - "RIDE_TYPE_CIRCUS_SHOW: (210, 30, 0)", - "RIDE_TYPE_CROOKED_HOUSE: (215, 62, 34)", - "RIDE_TYPE_MOTION_SIMULATOR: (290, 350, 300)", - "RIDE_TYPE_TWIST: (195, 157, 250)", - "RIDE_TYPE_HAUNTED_HOUSE: (341, 153, 10)", - "RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER: (733, 850, 809)", -}; From f2524c07b3ad0fee353d3d92ea79b61424afc864 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 17 May 2017 19:20:10 +0100 Subject: [PATCH 234/670] Add rating test data --- test/tests/testdata/parks/bpb.sv6 | Bin 0 -> 1299760 bytes test/tests/testdata/ratings/bpb.sv6.txt | 134 ++++++++++++++++++++++++ test/tests/tests.vcxproj | 4 + 3 files changed, 138 insertions(+) create mode 100644 test/tests/testdata/parks/bpb.sv6 create mode 100644 test/tests/testdata/ratings/bpb.sv6.txt diff --git a/test/tests/testdata/parks/bpb.sv6 b/test/tests/testdata/parks/bpb.sv6 new file mode 100644 index 0000000000000000000000000000000000000000..3491efa93e0821a31a8dba266ce61798eacd0a0f GIT binary patch literal 1299760 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

wHcr^+2puj28R=@ zr9K~2AH;(elYuw)se{JH6CD39IQ+ktNs^rbGy;60z3D&ykN+b7AN*%y1g*#w|1b6b z=6@zo2gLzY<}!Qy7jXQ~@?Vhg0jM+;Wt3$7@4)yUw6EsBBLm3){h;2U$Nz`!PN3ll zPSBclvHwrp|0lTrXLA58n*z10ZvAI=Jizc@I^q8_cBcQWO#eL@Km%7D4F82dt5iTX z^gI4H0*!6_w*b#~{^$751j-%Y#n}I2K{FgO|K$@w^Xu$RprQiQG?o2t4BG$b@L%GE z(}e$h|J}L3>)Uxi$*%psJF8;?M3@J%Fw#lkfBT95(*NC~H9+F-Zjg2F|BXO{IS`$Y zwePM6{`Y}qdO)itoxoXM05rl+FSlJwX^+i0PUOywckN&e|bSum;(P3SwN||y@{b6G=Gz9)9 zRDcGHxeGu#KuHeVF7I;!Ej|SA=0y~?i~h&3gPY~xglFk+05oSV_+JZDnLzfla4>-C z8DnwO_%F`*pGUw_)0M;Ff4}p8 zbBFfU|Ml$*1ojN861T~o$XOid8rS2H(zOL#x;jf7EC3CbQ>%1s(l`pLzd%Kq;D5G? z|1Iqe8)}Blatb+Ckftq0LkfIe* zAv=OfR@MKS4|5-h{Jy-R|Thx z|NWc`|8xESU)%hjxe2te5i}Ii!yxcKJ}H7(U_s;m`4)`=phcjdC904^0n`M4Z@UP>Ky2krM^u=ww|5WE4xvKQAL_*Z{ooydBi#{cpqoYPGgE{O@m2 z_|M;tbfAhdcw(l5vBB!UJ$uW4(S-l3phoL|iFQ^{-_Q=e>-zr<$OKL!q<3~4d;kby z_>VmavSt}Nx;yiKReRHaK}FEwujAmgzwY4u#GrmZD0l@yebp$CgPJ7Un?W0o+d(Ow z=|3L_ctSqW@dUUT*Z``jX8dP!Wcbg|^#4C|F=#0Sc;PP7e|Dw^Z2wu9|BEpEzYN++ zDB!^OUvVbG1dbE`1)^9%=buzCCouhIVv}TN1TAO#&kd@;*g&1=-X<(%)PIhJD5ca) zhXV{8{{<5d{%4Q+&*{ME(gx}SG=k=@8bN&sq5u5u&K6D_-~tG=2$=^|!)Ul3fNZSc z2QRm30+&wz#Xa4f+S?c*6%jkjf3XI3MCkGZyx z4bPTksxwT4 z?{{K?k8+!VCh2q?{(lBd+&O>?Akn4+3ZUty{|`Dq2NxLx{Lf=&0SzaxF&|*~FT>!( z&;Z)S!R+wA|G&|HbI|0NBhn!O4h^799nOs#R{ZB{0(JUS|7-of`=71#MDzbX(7uj_ z|Dc5opkY;TPg#OBfhnQEp+XT{-Y|n!opEO{{*U_4Ch$KVIvCSaaZpKu!Px@5z_Y~( zT*&5tp+Sh}2@BF{flnFW}Apvx(59lll(2*mrz$FgoR5Dr6+RX!u|HTjf z=l#z*lLI`_1=?xW_MchcKhJ;nVu%0zps}p~t)Q6Y`|qIepY6Zxe-Xxn3rzpTL1Ut< zhrnBI!I~NqGU4Z|BtSJV82q>WFUptz+H(QYkN{WTg`^s0z6VJ8KX$hNEKD~*vkw1R zA{i3?v;AjhhgtXAUD^p$I&}PJad({I#?JB|v`YqjN*QD(s@5R_656i+`(6H5DS*Z< zz@-`!Xh#FIC$0@E(?IJ7h5rlwX9b;x0vfx3F1ze^_%8)2Gyb!Hy3gRvKcJ0l@EuB^ zrT3sMlEVKbAdAXC3&B83Mm<4|Lf-#E>?|Ch**)e9|C_+=XF*GMC-6v{Gjzvk!+&0e z5C65B9RBx$-0Sqe!wDQO;8jbYW1e38|6dF4^YRNw{*Ph*&piRuAY*F!&+)$l%bO+XO&sO$r$P=Yhs;@pXEsy1WKn0J=k(W-L@I0l_^!cF=e?Xf-yk2dI>D z3=O~8$=_h`1>#TpT**T3uqp@2{a!Fn(K1-&kJdoIsE7I03BomDhfNA zB0wb}1E`DppBFTDz}+wbbns6*Q$WT9$bxL}Xt&sZ$wYUj2B-gQ?VyvBz{LgAf&cuV zj>7+Ehd>3GE2xya(8T^7P;6jTgaKowTe=B&9m4)FyYYTJ3e|}F!P@AVwU<2fU zCU=*ePS8xv(%`u8Kd6rcYE5le0V>?skqS47gNmSGTW8Q3WL9v2*7TqEzd(aWJClGz z#eY#y$=2(12sHK34{Aq>w}VFbJO6`6p)N6j1{66Q!Fx}dK?T0le_3ZuaA9QeU%`Rl zz<*u`rhxy<4gV`-K;6%||AQJY{1!!~3b9^L$-o0%Y6=<;ZgTwJ2Hq9W(gZ&JLJ%}QDx%2n z-xib?-2aP%24~rll#AG4N(A z$d(aM+YGu0{y$qIsB;IJ+2qy$#fjE`CTAwF2fCeVK_`d={O<>yyaHbE4%++1+1~b_ z2h^LL@L%8s=)g8`gh2t z3#7Tp!GE?!22g*LK4W_5%{zB?3X3-ura*@O zte|E0e3Ar(+yz|zi#vgmB!k0_|6&##ppC|$(?i*v8(bS1c6k18uVwnr z&s@L&8qxxHO*tw+lh)l$7VY3g51_T7pgBa)02idp165I=LXQ(v==C;fv^P~Sfd)W8 zO(4ntDv|Dv0veA0#W@@&IB@)z0dLv`O_6dsK$_j|;PGJ4G$;5-tWe(n%uEOWOaE6g z08RY%{|9v^FMy7bW7SXqm3q7!2QPrwANb$?pZ~wmVNjzEynUp@>5#hvXzvJk{JN3jzu;j| zEeo1>>vK8;$^`%0K~r&{lfc>=|936`HB~QxX5BzTKA@~5)(jfYllm_QD$zjwK2S@{ z;XnI<|9lQiwf{N)b3pZj3M`@jAmyMTH5BFlyZ-YrI?QC4u;So<@eanu{~{+K<=TIF zXH5eQj{l${&;is$6ma;@#5mzUH>3O|{#N7XT z89}8QdlPue5@?|`xFH##`0szM2;+aA|7?+Tb-Lhi=VN^nqGGJpcI{Knp`#oIvyTy-tv2uI?Zyf&an| zplN;3sa@j#wL$Wr-9Mn_*&)zKTfd>e|Ars!4gUo|2Mn=8#&shkz}u!+nw0+k4*?Aq zf>YCfNd3eP+6sZFpWHx=I8Y4*t=Aa;3;h5eBP8;J^_T=`9bOaY_}&gs*nkSZ|6Kq1 z5+D5kujlSC!Ko5b;j~FGDoHT>PjHMlm>}S2@L&8GcmN)B1QMvg1Pz2P`u|^n<9|bo zrz;0&A!32W|2)Sw{F56*j==q32klt~?W|Hhx&iy%*$k8!4(RzOpd~<{ROo*0W+Z&PN4O3672uQnHoXEW38ZaioGS^zx01j76T0rCXfvU|M~tiFJy51 zFX8ZC(4E5(ysMU}78H%(i9YZ|7vGCY&^oe4j{kE1Z!;bMEe&7?EnJTK&*SvJ`@f_k zc+myF(|=ya3IDxw{zp9!02Qg=Whvky6;y13R4}(h51Se3U zYH>Pb0Gb&Ebyq<#}pTVRJ>x&LEV z0gY&LfKPW4``-cX&$c&!PcUWt@4^7u*{;C>n#>DiG|*u9f0Xe*OM^qhf0cs&tnJPJ z`9NEjK}lbjDM0eSE&G2S#{XiVJt+UBIN3l8*FlL+8?*$tw@I)G)Z#b*>w-pby!iKD zS_HHloaaBAqoEt9#&!J9;c(%9ReLihXnQWCIt4Z1!G+d;vH!iGCZKymK$B&I!~aIm z-dj+A5LQ%ymT4XUjmbh5uE9I6;Nyb+3pT+IG2-~o|DWfB0Vo`KnVdia$)XGelI)B> zKsy3jo;|SwI8-!Vc{U zjST-6f=+4qFT~yg8p~;5J*c7h-{J6oksqxb46VmO2Q2V|iZ}*|2mk+TJp3>81GGlE z=>Wt3HdyPvzsaK+(k2A$%wuUd0AA^!z(88*M${-CtZajyN&27fm;v|@4a|iq;MrTq zLO(>&20Dcvw4MZVZlD1uF8_nJg;+2h1b1`~Gr;B`KXpr1#rsMxw7N$T((5(4?!T&s<`7ub-u!HFYqXA?wETkXo1Tx6u zKVPKA{}x9M(1sMJrh5xq?x%@xi^uMLyzgz=Hdn0Hc7iish z3uu2xBe-J&Y6pT&%Hoq?`X2;32n|%yS%Bs&I5NN|;P!(qI^bjg9X#{@LPaCHLjt%o z0?q0&MK~8^{O98UZH@&UV$}Gbt?BT8mcvX5ObbBWGahhRq{sZ9nPtHY=i@EleI%gW z_Mmj<^caH!KUCp!r7a2nTbrb*p_W}h5 zsKkh9V9@vvn*5M5YW;tt@jqV#LjYvlgA+X2AMn2sG!LfDVeubi6)5_eL1hi1s8|SU z)ckKS05@wq-TsTWxBV9bkE$`bYcPUVr61Qs^b>nM82*ELrhMR)N*JXCD9FLfkl4X3 zN`e2Z0{^2x3w81D(9{zYnxIR-2s}vSSgn zZUTJfC}<`UJWa~)@SpF6B!dfR+_nXD7BuJoM#leIpn{+Yypt0Y{=A?$98jD>8euaP z96)VD@K)Yl&`Nb4_x~(T3qjk-xk0B5fI7UO-2R`P^Z!{!PPn*{%>{r_Lf=<&aq z+2Mb~QShlmunnp#paBua|GfHu;j=sY;K{{{cW6%Gb4 z{CB!=5bWLs{~ad$XJPR8-!$p}|7a|BID&0pb^y6l>_0XenEtbZEN}p=BgZhl0BZU~ zf&c#q{yQ`wB1icDe+@@?bsH@Sh#JWAISokw{S6_W$kw z%oYEWz|%FLqr<;if({qy_|Nai(FQv0g7ZIUpR`ze%m2QH{}K!m>>zu2yg*wu+dV+# zK;wVOg#VNNgW6r(5)S`)JD402panJaq5r*1O)Q`jQUw@4T$l;Y!_FI4{O93t{LeC@ z;6L93P!;r_qnV@CL-9X*d)t5ZTF_iY1LJ>Cx1Q^VGi0wHsEh_5JOoyQl^Lk) z1n;tqF9SMUkeH4sr-R3TF;7qn12j;|r{SdeUx?#J%M8%+i_)h5 zETDbA5)K0Y|J#Gcw*RyLKjPHj#NnvPu!H0Ofj00$5zrMRENuUeGX3u>VEC^M+TafA zZZYF4&JVgA&uj&)Tj2fA$_y&kTcBk+3ut-9*vm`B`_8ZEv+n{aB+~A@bbm}d<8O8{j zt%VfY|1}gri#!lbF~PK{|+4g z*&I6lH%{ukWn_^}N=Yf`}1^=xM{AU4`cTWHR z*B(6azv;gd!~gpS{`WZiZv$OQpa5E%lyKsIC+K*LD1-mv{~L~KKn~tZD6sf1`rv@T ze+z~GRRW;xTnGPqfQ|_)Xzche)C@YQTIs*u|Ahwstrq+j|L<_%zsi40hW}0s4hR0* zZ8-d&$Kija#Q%9t|5+GL{IAn+03BQoaf9IhPE;3&|8F=k1L6Xh39hyMv1Di{yEm<8&GutLI)0TgyfwGq>Q7Ki_Jpg^+#g@0%x$iU|R;tRk5 z*6=^70CelpQP89(SHOPDa)ckIo@E5@1F#&Y!F>~AhgeK6s&i_nYpo!Ub z7tkSC?myY(L7TimodTi%Vhh0yZ}7yg6=+bC@4rwa$N&E#uy%K&N5g*=1#mxIfboC( zfA(z91Rw+GXnJM`(D}2i|M?jI^McM30UuEW8sA<2U*Nw;zzc`}I_=OFwj>9*yl^-O zYGxB(B)fx-SOISk2JLoT2x?-po414axSXzuO=b!!D24FsG8AOoSGUM*zP z`hNq48~^`XfXh?Ro^i*8|2ZAn|MwyFZX5pdcl=jsJ_u=GI)Ij9vNV9&m!PAP{{1f# zVK^9Y;J?!bNb|Cx(9r`_*7`YOX}yX)0Iig;VEA9f@Sm08;D3k2{{@heu&)79K7o4F z3;v5lAWA}s|8^XhCEUPW%`8Z{hI23N*Ud*zsSi z^(bS@DTJ21xyOuB(dFEHr`CWF9a7?_L# zlW|}&2~4Je$t*CL2PTWaWEqH*UWRZ;u@ zc?bS0900X>J3$pk6a(mhoWB449sj!=8DZNvLBoXqIUwh^I{jz)-vH_p{7(P}12`%` z*GjBtJ<4c6LMYV2f`NXaAo3p(3Z<}MIC$bemQWBs_8)&Juz^FN=Kv(tIfA=|km^^W zfaAXixK3pJU-iF^Ap*2I22}qx1^&F)G zq2fO)D7pQ2Sopty(E!wi0$01x9CX0rKX_YP-2{jKP6m*wi~-as19$u;{-6E-zbc|K z6Z+u^iob)9z6yG6rU@EWVgN0|=KkM(;J?^^HPGOCk_9v9YNG#4pbHK_#Uo_l1ZZ4| zg@hVSmAG}QxH>BE8xpZz7YXgCfbRA9-vX}G_yxenZ-92>FoPxt|1*N_91MZXHnM^) zDPp;B;=e5DU{9fT=vcY{Xsij;i8=6}|HOaZL{JUM_@9qq2E%`LmH_7e+)S2?7Kbb~ z82|GytY84G`GeGS|Cw?hfNo9zokq$ulhJ}nfaO2m$p9A6;5lf(sTp(#3UrH_7$i9M{@=i602)Qo zYW!~vI*=8#xLg}F2@2ZlDJB3~?9TXK0^C>r0lGPE2b1N&38$A?lQsYKc7>i zLj!1BsTF)FQb!Xs$U&j!4+=fb|KP(ppi_2`Tj5yU1vEg*o*=Vi?Tr6<+y%g^oSYy_ zDw-Jo_cnreTQr?$hfD$g=lgG<`2W8yWF#ajUyvcp>MauBL_ zk7BKN!95U+YS$6m{cr#kbQTPt?iAyHSht|I?LT-KE~xlx0F{0P8UML{1pH4hsQAyp za3J8nQ$Pg6f6)aJu*#MJbbAW9buC6EQwypi|I?zb6+)_I{xA5?2g-}c|>|AZe5|9cp~wc>w1P|QJ{405r-e=&H)_}|I_+CV_KdBT6E z8=#8u0BCGc>c4Xb2ePZ3|M!5Jf_ndJ7lMNYv{1>x1Jq^Z`0pgZ=mEN&!{I2$f1}nD z|IJ)aATH-%{x9<1q2t4UOO6!+j2(!JI$BTs4{|+$dQk_+d)R!(0xIA^Z6S&Ope2Yb z2TuHNI=}&{k>lYtGQ_)L;3}E(e^ddqLQa5G$N@O&;{w9t4B`)~? zzt;Ibhx7j?1`AN%(%?UHGea}}z006gKOO(OIsWth7X$4rNMb(0462Jk%MTb_!7G1Q znjSQA{DSYFWX zDX_|pKzGOgd`+OU4j3UT_#&GAGdo!{fDSHW1XZOK;5D?`jR(Mo843Lt>vRAw^=SAn z0a~WR0a{eZ!gPY^0Mp?LaDB=QI*fqHjll`D|B%XA&T2>LE`2T-A z`+wI4P#^Wb$BX}L|8>|w7iCFtWPnB+xS9SlGdO@65bpmu92hMA=Yz%$%0Xv~w*60F z`_BogcA5V3f_DyriiXzz%%Hl|0et*vn|$}YOupcu^cY^`=8PSn!{~x{x6C&iY0<8{}{&)J% z9Pz&ZbQvmm^bOo|1Kj}t>1r?(F#H!s>T3KKM(S&*|NEcZ2OfTd^)>#Bf=f2g37%05 zNM#$?Du(~8V4JXx^P$-T?$WR^ocP}q_}~2B{~&k)$_uJ5uykoaB`DMuc91PR(1B9W zU|%DsmjpWQXF>ybn6$~^Kg0j}fB$14f%Jc#1IW<-Vn{(HiW*di&Jrk~z~g<8$u=?2 z)EM%JpMxP}b`0D}Qic`Epo^BEae44R&yS<+Zs1#rL9>L5{{7bn9q=ynUn~(cosbKInJJ4J(JEWBfz6D+Yl-Xb_i};%)z->p+ znu$b(|NnIz{x^V2YbVBo|2dfdH#J1yE0+H=`9A=)c>BSHG05N~c7_V3nV`XS0Z?)3 z!3yaIH83{+7jFh_7XhtDlwbnS_d_OiI*+$ISvWC4+u)1-|IcK1Vfud*v?Tw3di#IZ zCeWE1;L=u55p)PJC-|fx&=DZe6-C{S|J67k*ARkEmSP3(Jp(nHMM3=$22g?9-vsWD zfXWTfwPvi2kkXj>zk4lct4kmw=dWQc^ zPT=AMJa^OdpBJ=X7hE>Cf##z7nkoU3mWu7XJVLk6j(91m#07K}C;&O1_%^4HH4a)9nfx zLIIV^ph5vW552+QzYuf`1=MEyFAACzK_5hc&Kvvw{~ru1ACMbuuAr$N!T+qFLK)P^ zRr6l2d~pVR)2YAoE>pn*B~+&+9x`|SV!p4i;R3UM1J#BFGX{1-!AZ@>awZ_xSw zzha}u|7I4@as#B25W0Ma1-t@v(ZByPNX4KV2WYcK!+)leS*_snPL=+HE{FgvmSA)G zUm!quK_yX*QbHS=W3d;A;9fO!DP?=ZfB2D?;Dy%5K^NHn=Y(9tEdahY0JJCxdJZ}t zD0hR(q#gf-lK%g90+ov#KPsG{E0iK&NA5^~ibs?)D8N%9?VtiN5`4i8=#X~kGEAoj zpaC85)r#EkLb9>qKOY06oaA6?02Mu;t5HDbQiCT(j&Lw|9(S^61-Zomyr`>|1#}?$ z|D&$p;<23#)VkyV9rOL4NdSC`0w*Y@c>gnl_Oo<@_Oo#R?`^Vd1swwbTG0MqjR~|G z7}V%&a0RW$fy|eR{_kM4Xm3~mnpOi{)7tA4>F$`|q~HWD8zDv9%=Q*VKK6FxGL+@N zd#&q#LC~r9|GAx-89>YBSRkjOusVWQN`soN8sKdwpcXplq-PHBc{)ui{wx0%1hs2H zZQhpuZJ?cCOrQxstp^t1;*%Y;C0AYWAgIpx51#P`9c&>1T517m&N?tvGG1W%U(3Yu zUzDkVouPrz;XiYG6KDw?XuGn*j{kxT9`25f6`(bL?alw0{&RsQb37OwEWkU*K<8?L z_K~qb%F_RQPMHlAphdR-o7|AgQqakEptZ@p;L`LA=xhb<|Evc8r3~Btv;1cP9nh@w z|GzkUW5<7y|LUNc$sIgq}>z}*+D08gU%oP&nn4z zkOed*%lG5IH0atcfgk@lL5qS}{`36+4OMdeP!M3UI0{Mz4Ho|mBtT0&LAO`1{%>ao z8wI-1n4RJOA9i-o?Zyi1?F^u)B!>UL+4WdKlX$<`SsU0H|MP>lw{U~^2|F76=Yi+o zDoFhRs?JHw!bFbl63WDAw+Xg`FN6eb;sYfK(6V#Lj$F_&0j-Mc?f=*%82@vEP9FyK zl=_;$wKof>0u@sF|KAlf2nIe1mlt|$j0EJ^82Dn91OJ;&aQu(d`0wyP3A$Lt@jnZb z0Mq|=rUmRwpdKY?z|#H!)BnEz-2eF)Ca^PsR;xhNv@rc=Vm-n9A2h@ZT~i3QjU96E zZj%NirXU&C-32ss%8Ha>yCE5t89Bp(4q9t*0x#14-_+g&&#vnKA?uVQL7f)R5)8;9 zU{TN_U~ub(rD>vt!~bs3QdZDu&7gI8?M?q%m;^yxtmEw5|3UMR^8c0p^MKB0tOc+4 z1!n+3@cm(+_6$1{miA10(|?dIPD#)`MGByEb;URt{_`Y&*MkfGSO3p!@!whjbW)7y ze{IGC4F5rG8wSwP%pBk`Np6TjPImAu1E9tzm&S?k|KLTrj*ufAS{Xp+Kkyg6;9v%I zI(eB^GW_^22U>F7c;LV2e=QCt$gSv2|M?Ga{AUK`!ak=%?h&AMK|G+nDUdwa?=V5> z|9=Tkqecih2mTlN&jcE^{qN5EU)TY1X<0ewR_A~0x{Ut?e*9+!of9SWL*N)Fv$6f> zU;zp8u>42PZAe{2K8FANte~r?cnk6nW4zW}q_f8PHsj{n&V{!6tNfYt~! z{x?wk_g`A(e*?Mt$?E$>akg*>p=tY$R3;$;}8-PZFm_Ta@K+`S%SzS(m&Wq;;Z}n|q5&*3l0Pj@- zE$IdAmItlqg{~k#Kjj*_l^?WJy`KY|*NPZh-T#AfS_`Np?Ai{#x)HQ5kOy?aP%}dX zcr9luwClj`_+K4#Lc3_-_9fUg~GX#$-NcpSW8 z29&8}|0`JvSp07X9sS4(+W7(+`WO8#80ZMPm`t+0<$qf{3uv3ye-3c1$qCOypbbrY zJN~md{f=8<=pKhg(6(Ffu+AC|#{XOg91pvLj@_Xr zU)$xs#1H3&h^GHco{s-HRvZP{4_dga;Ni4`=@4il1X81cZkyI_s?)$rUjGaI_|MZW@!!1ZzrYXBp4bYG0LT9C>$o^mK zpbNVrg9Jx_VhK>l`NaF5 zGsxXl0^|$OC82`%>xjTc>F1VGQ(eIIq-riCeXGRq5tBbGtGDoKu$$tar|!$YRO80TC$GEL5)SwIDy)KX7}d*TowP> zK-U&?RDkPfZP1Z875}-IK%0v=od1jcC~(Rw$YA)N3fer_FHiy5#nY*AUOlQJFq&j!lCEdRl~ zQ$QKm=l}m&<^}B%|IdOl?|&X94F!e@jsPdnR+mnvR!0F2aPNcv0O%fT2L*@!Qyd!p z3t0Y_^ppU#b2VKK{1^Gp>hwRvp@G2}l5zj@G%$NGNjUx&_|HAl?LVtiM+3+I1CA3w z@h$Ve`aiqHe|uL6ch~={?*G}{T`m4IyZ`5P0_EQX&%Yq6VCk@G?ptV=6iQq%`68HkU;;CXc&Yr{n()&_Shc z|CwAM)u+4Le`Xg*rg9PBsBnka3OO3c`MS99mP3vPj2(=io%b9}jg0^QGpRpd2JJIpI0!mN4AeUZ zwMCpEN9coBr9)OODrWrup8~3=L6^fp7o{I>QfvW@_JKB&%>17Y>X3uaNYMse-1ooJ z3A6#N8*~^DH|Sh+L3mf3uagmcS_-Ju4qAN&x@)2pbYzgne-W#S|LvmSk_B?O6{xuZ zzTbYP#s79$umpPms5t>{qcFAo=WbGLZw4KV`kx(C0)fjN;r|j382|Ge@BqasYN-Rh z_pjo=8b^B*Xh8y~OAqQE3vht;#enZ7Zf6B`oVi#a4Rgq`>8XzY`Tq9@RQzYE_%CIs zAixQ#sW=-!O>$p2KIREE#Xkloa@t z_!J_@faRk9|Bc)KOEx7ifX>Ba_}}2+@L!ziAgJ}v2JdytFqmG6M7mxoUGcz1+IB@(Ia_4ZG0opYvCSdvB z9&`z(LgRl>k;T!xVMX(b|NI3O|11ADF#Pv&Iq2{od}pKq2WWIwkI}<{+2uczW21+I z0O$-7vHuMm76Ou-3Dw0JLdFVG|Lh8kS}VA4)R>G`L*Z-ngJ4LE=AaI}_-jcIN*sjo`)y zcmpisfBr^+|Cyj11n#lJ#s?H2;{&80e2BEHnN#Ec{}SY7%}2ny3Y!#Q{94*VBmsQ53%`M;qR+~EY393r5jDM2MiE&G37 z28aJ*pxRc7lMQs_AZQk`Ly*0Z0o3Ja`wu;#mapPJ8@S^SYQKp5mjLzrL7f)i1EAv+ zk(w|6xj{>&1^=tHH@Q24iV)DjC7h5FM1TdfQu{v_%YTU<|K*qz|GRPgVECWv=<&Zl zzyZ>5K@=kYc?H1D76HcpB2w)P|63VB#}l)%GyFf=0^VK23O)y)RFec%CY_y6B;lpQoq;PIc|fU*7mS;(-R0QeXK=Kl{F zjnIp-`3_A6c1!Q#r+ z$nXQ)HTutgfZ@M^!hhC(|3yHp8;eS4+eX5ny~X1{Yx`gJOh_}1A6!Z>gGvb&1z4#7 z8cXEw08P;6!Ak{hhK~PYhyL@hCH!Y;VE(_Kp&isuYyL0X@L!Bk0aR@KZ#c>Tnk8WP zpTLj>+8Ed0VDTSxRM!9ha_#7cD6}{KZ)*o{^fh4k@ALn^K6~r`_w8&P;PGlU7F>;; z|7<@PAg!IB1X?>7<-%`vLr}Q@yHZ-`Kd6J21-{PnKQrhm#$G1SoiZIvprhsu{`Z3p z#$)^cpOw8iK;l2||8{0}7RCSn+3niEH;VrF&&v+k^u`Pt0TN|!0A1N)@!wJ7!2gC5 z42MArQ2ulNXF6cHX>l@*|)CMOHBH~!~n`p?WL06K!r;eQ8cOrHh3ilq@WUHZS@33M_O zxL~OG&yP`xM1ao3S%A_90;~Nml+oSp4t6(^sn!sZlpzXwjm2Kdx-=*`Tv zte_D~e&+w&3?D$J^+@jx;;baz<()&|04ez1SV84a+81sU?4RXaVlZOMi%>XVPI6$kN@)-VeJDm70mT2*x$L+tsf0hPk4+m(u zFuMXAdQEH-Rp30#6|}f{P2K|De4*4Xnrivg?6rW6%IPC)0nXng4Sd z!AmHZ{tGnz=ND-E&%rDK9_?fRl?$K-G-Q?i|5|4b=M|3s+h;m})|NpBK0)JgP2l5w z`<*5>{%>fM0N?0$gu%msTLj{iFyz{hNZZd~hd zs%-s#pfMn$@xQhQXhx^stAWSsCOQ z_6hwLJ?Z>k;zxyZgJX-rf4(0aO`sL-B0pAuIuhLAi^L@V^SChlU;uYjI6xzIpetPi z{{L?f_JAB{(xU-hz-Gblp9M7KqvHrV!@J?=N(Kvw|KOu>{_}&T7XS18mlF8j14=#I z|5*>Yd;ITb2w3$0f33y;2GHeU3EzSL7f}$@*TeaP9Vh^pat6u|HT^qH#8Dn^IL1iinKzO^#o*9EDPu^ z06%8U|6D&fLEAnULHnhgB$yOHr#CZn942uMF$-v2g&#Bc1c8SZ{}uk92Q3Wb{xAAp zo%z31r$h7qhYjxk`9N8M=Rf}qPw*(p4nfxc363m>KzO zL0eMTLEA_`C*A(Wa(BcKzoKod0m|G@{Z&UF0W?!|`E zwPFXKHLne67J&vE6F_&j@PiDBXkz%!0XnuAG^r2TCnG8Vnh(-|=-@cW{Qp0bIdno* zqsc&{AOk!U%=4ec;Dv`mg2n$c|C<{AgUhV{XPZHn&NsBWgPW+}IWy_@|D2#xUrRuT zL{)-1#-NT?2B>|)x9H#hT5g8_lKsbM6AMqdhFXA|12P4OS z&|*xBgBG3tAO2SW-Cxbvgi^3EGl1JfpnS~E^uGbrCOXdk{~V~m109UTYxv&>bj_vU zq5oox6DlM*4}w}lhDSM|4i$Xy|35o;B{sMp#s}V+yq}%*KR-Kz0n`8g5`6!e|ATI4 zWQ82Z!h@omxt*QO<3BqKn*i&7ga7TIWhTEsr2;p&FUQODpB+@&F+d9kls1pZ{|1l$ z0#WV@Ts=T5{MtGGi&=n{e}ImC0nHeKZioKQ=Kj9}6hokSs@WD1{~H)Q5(6FobAgs# zL&i)P{uem>_W_-xz8;jNS^f(gEoc&R4n#7YqX z33kQ>jQ{zN%8Oc9dBFoJFI*v4)^Rd{*LSkAC@?~nhw^~WgF3=+koi9+LxTipHMhWj z=JsaL$^MKHutLF+`F}g;a;*Q_jG$tH15}E2f+hzfK%pq`ztOcl0DPGbXj~WMbdmo8 zY?7d*5ulOQ|GW4&V?LkvR;4(xSvH-&smhbLR7fI0AK|6Kq19R)y3L^w76yPG?L4o%^6YH~Q> z_+Q&Cz^MULq%yUhXwn3Yr-4sc>o-vN9}m8DtHKdHNWlos@=CBQ50I$0 z2aPC;D6)angU(Ax;P?-^jU7~wI)SDgYr!iHI6!A&g1cd!Nsgc)S6ET<-+#Dv zpYR`Y5oPy(rh@jyjK=@-!1=b%DZ(9c(~`$bN6E?7#H?cJMOje0T8Ww9M^|pwn0#{tG-%{GS6p zkmf(9$t09)Olu`s~k ze|spy{|1zz47Bz_7G z1v~Re(0NAx*$qGqA*cWBG7O-_ouD=L8&)(Q2QPvFH5Wmb32=gjh>F-17(i!~|8Eog z&%=0N2Lour2Q<0V_@4u`3r6(6*1`YQ2LBs47&@F9{z^CTEN@rK(VX{8c}s`Zv~Y^|1UCt&fwq`kc2c{TtLN^1GL!s&!Grf z=W_Hve_jV zUL_L+8tZB}%9gzD@oyY_#?wcNH{Qut} z&+wlIG>q_{-T4CeETu-+$?hynpyl2^|Nn=Bk9T(mH+raC2+6a6Zy^C)qTK)iX76+tak!DCGV&Y;twK&=Cb|KSq3cL%Mna948qF9|}q|o@1>HmQMQ1SHNp%&Co;`kpW5OC~&=YM`sn1RwV_y694|Kk63 zEf1^&O{_tN5=7Y`tFJ+4%0tSmc^u&DWWZ~)L5sFE9RDxe;mGj6j|p^a83*_-3sCn9 zw2EY}yVL)p4Gb0<4d9~_S(`x3X9>{67HFg!R9Llk{CD`D51x)-RQmrv3v_M4499@~ z?TjxZK!?`1fY)ZSg7@MGfp)azu>a=-T?MHq09p^gDgeGtT>5`2q|gJ+`-1OV^qXDQ8U~&G>_QT~r=)g9PX3)V~T#5q!ng4?)rlIB8Q4hyviKF1MOB{6S_RRn3 z?w}hexfwv+FiUoKMo_US3Rz*34r+aYPOJwNQK0f>251Q#J7|=BCTOo@2WSS&3EYcw z0(G_A9XTCAhikGk{+|#DDY8J5|sa9mociQeyw5{(}dyvq5b+&>bcc z;O#;Gc|bK{}R(Ds>xwJ={{tHO_=lLJN{-3qwLhJtn?f*d+3W5un|4g7#hOM2= zkQG$W@U^pnl93tST;AE2d?po4)0Kt~9PFdF>lbEy0;dhEY=+kfr| z&>GkOy$TYbMRSb@K^t5Tg0oBl!+(Jl0t_7gK@&^={-=sGZrH)lU;#bJn-MhV0-Bs^ zV*rgA3%479u0aNsNK69%@wRk8qpptsTbMw*4?q#!2D(TM*4)wi|6d+DtPLLP0hKbK z;VIiUX9C#OK|3x(GI z>`ec;1(+-tLDC`~|8@T}TR4GM7C8uj4ig3~k7{v>bOSZ1I|Do_0y-KQK!eku{Vh(K zP5%#AGzk1hDw6(-E`TfzW%$qQXz@P_bo38swb{as|11aG|F=3;fSNvRjtP$cyF45j zIG8}o>cPiMi~rxt(FnPd&V zzvzGI|I|^LE&4$;K%}sx&M6sIU@e^ID)6bKsizdR@i`4fk$${%^=19>Y!%Oe|PEs z91fsWE0qZr|7}3);K3V1;Y(r!K?T6^c6Vm*uGfChGWGxeS=ilO{xkn~=W(+D-4X{H zMHg!P|6hPt5>&KsH2u&2&)nYjAG%Tyw5bI=G6U*7f%mz9dr$oBj1o)%lHhU#G&!aC zpZWiP(9M{w?yd^%j?DiLu!9Dfz_a%(Gdcc?G9F=Z{4c3) zsQdqaCeTVWb4T!0<9~M(xBo2ejw@XL3%mU9^mh9%;iv%WFGzt49wu<%()PgOKM#us z=mG}D|9qhG#OMG2K!yWMj*Osw0W;`;Q0D*d8QLsb!FL;j)?tCR==XxIaA9t502Qt6 zf=CNfArm#7?jSczY_|Y)y$v`(2NNo?faZ7D{_{71R=I$(1;#2DSm}Yb$+r!u^zgt^ zdVq#O|MP+Ov&j8l!f<56VTq%lLIP5Tu>NNOw@twNKR}yrC0HFm2iN~+s^tJ}mGA#A z?D1bVAp$f^`JWxs&2j`^-R0N_I&7*Tpb<1M$OP_fDEt=-NQiJ-;MnkA#N)p(=$0Ez zr~d~8oIu?PW~X-0`IF#2lf-|X28SCb{tN!^+VP(SbS@Ei;oIIr?EhI=E-*TPCbAkt zok7FjpabWn|F=p&TPI9P|3NqXHh{M4aM+CqCh$1v6i6GSnYrOV zzr%lU8w0dlM)1FcLxdw}(rm(ib|uiBx(=uR4UQa6pa43`!Psm8x(5T?i}}w3$^Lnu z<+-B&r7YP&y)w|OH+bQUV+ClcrS(78f6$!i;MG z=QH^KpV92Ze{JUf;ztY}JO1mqp7?Lz%y{Cz$%h zp9Sgk1nFe>|DUn;#D8CA(3-RJppf!&EPx#y19IPg?*IG;Cj57r0CJzhfe4WE96$~8 z9}urH9r(|R=~G{q|GiL;{^$Au@hRw>-vj>z7f$$J{QnGSCQSJMYRNTtOEOwEt&kX#dB~$m;QrT>(6T+rSE%k^Rr_{GZJMv_eSaFlcGA+d+5N|Lp(W z8QmKHyED2;iCLr^F_W%3YSv>x;+c1FEwS$%>2tcO({TV=O+Chyl$QnwPnHK*+{Q^*-+4-M& zmn-P(Gf?Hp=lMVH|NkOT-{3z>(EoPE|J~f|ETDUkA#>jSu8;})c833;MqC1DMY$ZP zX82!82|HtCQu)M%9`$jFB%IC7&0Wl^QQv;*%&|z znm~=X|Nl)P{U6Xk6$5B&-}(P+2gs-kr1jSB2`VoBgZJ!%R->(80!@nL{r|7d{-3So z|9;3oH|7`=VzJO4c1iT5(a1$>Fs`DN2UN5k0F|r^;F7gp;6ML=aSdp>+5%cA+ra7! z>UV&;V}k$1{&Q6nI7a;E_|fqH|AJaj(bNQ*;QTMn@t>tBz_Wp|VL}rFxI_iDJU~V2 ze?f4W`TT3$QJN<73trlRi0Bs=Qb~wTCzl#C1 zI^q9O(3;uy21tq84mx%rpM3=*s6;ga^`k(=2~vp)^3)NDgU+A^R|DhB|KJ-oL9LZ3 zkka+PyAfyrR^Y$b|CtPsQk6A=`G1Gg2~hWk<45yB&??x&44~y4|0Vv*fal-b|FbKB zid4|x4-dNwXvz#^{sE5{juip_8~;oGm;FD@7dP$|Nk?y7i2Iy zfO>NOnRNa`8&&^#L8UEfaSE9+0|m6ef06%epcyk^P>I^^4w}3Kb?K!4t33dXJ0-w8 z4IX{sL@hwGSV5%0SyapAZJ@rEWjhGIeSTW&90nQSS7g6GgkXGV> zbwWx!kt2rxAw`}u^sFp+f%hMLycfuEkhy*aQs?GbPyF{|J@G$?6?y;`cU1TDhh%BvmFjNfO=b?Mul+``+rskM$iZr&;MeE|NX4)&i|bqKv_hzkpWzOgU%s4 z1Dfs;_&*zTaUY|GqXozR11J6~{AX!kT=f6H7sr3lY^R{(e|`bW|D~WQtN);@a(N`d z4NzA1|3@7_Z5fS)AW06;)`)5jf&Z%Ph~-KO^ z|L1M|&mHie>A%!Jc0-2$JWZe`6w`lDZ3wN70{*iEI)I7{a24W#UKjB|I*Oo^gF!i@ zoss?je-_98``Ow43$udKbKGUDE-p zYG#A_ZLn56Vz`k&Jp(;~8)dW+)ItRfatI#!&-Mde)qq?Au4^hlbxlI^|0AI5;y4;X z1zUmBf96A=JD>&ri&#_?fLrfO{}=pMbUFySbx)81GM=$2513X#ebF`j{p0d zm_U;qPXE~)Gr+lr8??h{8#)hr18H2bbBgzR1_2}2H=Xy0$fq`gDWa<+Z=S= zpa7_Dg49;d63(EywUOa}x5IzY`2Xz;pa#7QXpRLmGXd(#G&vr1hydSWs|{Hx($T~L zTJhW1-uAx_a$q$#!++3y46Th8;1zJ-stdGSRMJA=Kl^`4hyT+KfyNdH^0;lB$j=;+3d{~oLz z|GmIHgpU8<9s<~0UzoXm%>U0bcpPAE?D!wl?0DjT*wGXJqgp@<(c&Oi*=YPfU;#ST zjvu_X4Yb4Z`~h&~wgEKF#4`aAVDJu-C8CGq>+-)38ep&v5~$l?@nIIE)3D>eAh^@O z0_rn3fEL$li9$OKpbiYI(lKcGk6h>c=V$!y%m7l&Ao`Cz3e=V0WN81--N^928a&xv z%HHyy34Fqx2czSEwf|a)0snOz{x`USsyc@Md@~amKu62|7y4ffny>}cLk;b05$ufr z1sGohNP_w&;1Ool|NlMNTmSR7voknkfbLrPF96y)?g(05c;LT~fTd;|qeBMce?A6h zP!|@y5lJ0vx&+8{(9vJut(%??{{L5WclqDo*xnM+48BLqf$_qBe$ZYc#{a&cf>sAmJN zS~?GbmOHb7CJ@2>CZ_h*4$uw(Q1^vhjphGr@Zc3cLjq{Ej1Xwh$>G6&G0^EM?w}q1 ze4v#-dH?>aa5{jE>;BJT{?FVF8e`#LG+_GA^nVHH zCLMwQ!ioZo{~H(!nw%LxHyDAM8bbe7GC(oc$uQx+%mrqLf(*zoQ?a9^qX+0Lp#LHk z|8+oXR=9p}IQ&<1{NLWx(H;O=nFgNwO8)P_C;&dj(jo$64kx&@X5?W0e}GZoKR4*| zaL_o5JLnjp|E!J$keUfPT?L(^N2;1K9W)$4*G@xc(vU7o1>Nus+N-lL08~+FfM%J@ zCH}`?)>Hp^|Jx8#QT=bvXO3Y051PCe{of86e9Z^dD=iF70-!z=*N+4y$D^Q%40PGB z_J5`T@Z>(|;1y84)W;;r-uS--yb}dHN)4`>JQzMQz`9kSu_|`ZJQ(Nz%R~Pg!N*IoD?puQ7if*w>OfqGvYpqdAHKPjjKrT$<0KMzO(oc2Kp5L_jJ zc3$zYgYN?8`)}s(-`Ws#!a=Yji=)SX{{P0#j4t4PW!#|YQi1=~;6u$z+gtuOfJ?Ri zEJ($gf-5_ud5v7EF+*C{pb72&?4XV1phhn{XtL=)-~R}X|DY{jEKQ(w)c^fKnG)3E zc2J==_+M@L zUmdiY5p=u*D+A~N2X~iBhxV5L?Cp%87PyEas9dWA6(J1Z*=5jKyGW&*DC2*go&P03 zYb_g&D*k8t;ryRN19Zk}?|&wV9siGl0)g+p1A{_^yF&u_lq*Mu|GZ3*pm}`-c18v8 zIby7!vd-bZYfD0tgGDoVut^cL9g<1$Kl}gx-t6Gj$IPIuRsVS|fcCu}bNCNhvj5*8 z(Lv#V1A_$vq!$O8AwB$``+w7c7yq?87(TZD=WUX-01cvm_CEhN@c7U5|Gy)610u5% zBgTj9v2S}Od|DU7rzYJ(+tcFA51w^R`GKS$lpTvJ=h5!Hc+y6^| zcE?Kn=K)0lqFi*G2y4T4?*nEvyg_%HfjrQ#5%*CF{|you33!-K`* z#(!yMi~qtF3=ymw*cmDq{&RzOB`5!Ps9=}?Y5@uU7k6r4{4f3g(0`^z)(i##4^WZW z3mQpxh-5GTcOC^Cj<*|dYJm0=fl9zd|Na+%?ra4u9OwnL67$^~G(ac(I{fc*VsLi? zO@T4BgLhy#{O3~yH|#UO?fQuSjvfNX8av2n*8gv}hAevmtt~hV3O`X$9}Lv9aO7YF zP1>_dfJSZlA#L=T7T~!;@XAV#CYQkf?oy7RH3;BIMd(a3sF;)dFAE+H@&YATs5r;} z{{I^PwZT0?i}r?!rvIR$?b;nd>ncIMYns^J@SpQPXwjYoXvG5qcsW3S6C*hJwY&di zkARLgfu_x>!3X+*iaHKRQOAZT>f9qh_X0FIwEsT}zBv=Lq`CpL`wFCA3RFsf4$S#4 z3f>&q_@7Vl1?Z6E*8i-aMHkHfxfwv=Ad=+7!3ZkZKtl#R4v`!d|Cuc{zzeIBA_7Y zBhc*ee+TCS|M?vMb2v8s2aO$oPH=~ID;@uLI)I8cXek3azW`LiwV&Yl*#4iX5mbqS zZvJ$NGys)%;KOeR6!x_}S6j|ul4w@%s1{E7@4ky_D3;j2+ z08QQrxq}x@Is9jF`7iA5@L#Zj;s1Yu@R_e#89;M8e2So*%MPH?D1*cU?v0?}X0!Ou z3Yr#fHpn>epZmYIhk%9Se;$WKP`mLzpHqkP4v^^_3N95+pmW5yeh4)G=RZ)f2vmvv zZ;%A7$pNj`;spghw?GBtgz84{LS$3+{}PP@Kj&frlBCeS(?b}N?uvzh+${P@qz^q-p{%j#=!*|4F9+W^@Y{1^ML@}KF@|CST~B^x9fK~?h$X3+LJR#4MZ z_`d{0g1dm@e|`po|DeLp>AxswxEYkDoc;?`{6FO32-@Ke8boAsTnU=Cbo}4T-vmla zplNx~=Dq)Xi~j$wZU@z*{}DwWdqW1S=!Tj?g}|E=!M4X)rR6UbmVsPvQiFS`(a6dAnqYloJ8tk84k!HZ&>K*b-E zyORcZv1Tvmq$UfdK*s;=Op@%3|9P1jK?|yw4*qZb&vK9flzDXi^RqKKBshWg4r>0_ zl>nEV3hgcb)&J}KXJKanjihJL`Y>|0?XP|7HIxv9tb{PGD#K zFZo}NofWi`h8=WXkm!FYW>Awr?Z1{MWO+GghQzrYbak&-J1b}>BReao;lK{62?SXG zbNpca&-tH^^*`GW*8lAPc|c8@hW}iZ&L<9lMpY9UI{t$;tLTY2pX1SXL9||`p2Ee0djL3 zsPtpi_|MMD=)eS8?d{Iw@}K3uyR>VogGDoF-vJAwzyZhqOilp|kOmm&e&_%E?4T8$ zC)xj-gG)%z{xfD!+x(Y1lk5Nb|L%6+LU6ykBjnr~N6^@=IcQwZ z-5nbkJT#oz8#q8SOWKf|Jq0{x{QvLe?f^QI+WkMP1H*s*0)~u3jQ^E>FbFVqG#vP^ zuJE51bgYR;wpxuDbbO~w`ANbG5dE?)IAJCZrhfaW3GI0E7 zt!i�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