forked from rosebudai/OpenRCT2-Web
Merge branch 'develop' into vehicle-update
Conflicts: openrct2.vcxproj.filters projects/openrct2.vcxproj
This commit is contained in:
commit
cd2ec16290
64 files changed
+8338
-1326
No files matched your search
@@ -12,6 +12,7 @@ openrct2
|
||||
distribution/windows/*.exe
|
||||
|
||||
# Build artifacts
|
||||
artifacts
|
||||
.cache
|
||||
|
||||
#lib
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
language: c
|
||||
|
||||
before_install:
|
||||
- bash install.sh
|
||||
- bash scripts/linux/install.sh
|
||||
|
||||
script:
|
||||
- bash build.sh
|
||||
- bash scripts/linux/build.sh
|
||||
|
||||
notifications:
|
||||
on_failure: change
|
||||
|
||||
@@ -170,3 +170,15 @@ endif (UNIX)
|
||||
set_target_properties(${PROJECT} PROPERTIES PREFIX "")
|
||||
|
||||
TARGET_LINK_LIBRARIES(${PROJECT} ${SDL2_LIBRARIES} ${ORCTLIBS_LIB} ${HTTPLIBS} ${NETWORKLIBS} ${SPEEX_LIBRARIES} ${DLLIB} ${RCT2_SECTIONS})
|
||||
|
||||
# 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(TARGETS ${PROJECT} RUNTIME DESTINATION bin)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/g2.dat" DESTINATION share/${PROJECT})
|
||||
install(DIRECTORY data/ DESTINATION share/${PROJECT})
|
||||
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR 0)
|
||||
set(CPACK_PACKAGE_VERSION_MINOR 0)
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "3.1")
|
||||
INCLUDE(CPack)
|
||||
@@ -208,6 +208,7 @@
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
D4163F671C2A044D00B83136 /* version.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = version.h; path = src/version.h; sourceTree = "<group>"; };
|
||||
D41B73EE1C2101890080A7B9 /* libcurl.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libcurl.tbd; path = usr/lib/libcurl.tbd; sourceTree = SDKROOT; };
|
||||
D41B73F01C21018C0080A7B9 /* libssl.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libssl.tbd; path = usr/lib/libssl.tbd; sourceTree = SDKROOT; };
|
||||
D41B741C1C210A7A0080A7B9 /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; };
|
||||
@@ -620,6 +621,7 @@
|
||||
D4EC47721C26342F0024B507 /* title.h */,
|
||||
D4EC47731C26342F0024B507 /* tutorial.c */,
|
||||
D4EC47741C26342F0024B507 /* tutorial.h */,
|
||||
D4163F671C2A044D00B83136 /* version.h */,
|
||||
);
|
||||
name = Sources;
|
||||
sourceTree = "<group>";
|
||||
|
||||
+10
-3
@@ -1,4 +1,11 @@
|
||||
version: 0.0.3.{build}
|
||||
version: 0.0.4.{build}
|
||||
build_script:
|
||||
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
|
||||
- .\build.bat
|
||||
- ps: >-
|
||||
.\setenv.ps1
|
||||
|
||||
install
|
||||
|
||||
publish -Server AppVeyor -BuildNumber $env:APPVEYOR_BUILD_NUMBER -GitBranch $env:APPVEYOR_REPO_BRANCH
|
||||
artifacts:
|
||||
- path: .\artifacts\openrct2.zip
|
||||
name: OpenRCT2
|
||||
@@ -1 +0,0 @@
|
||||
msbuild .\projects\openrct2.sln /p:Configuration=Release /p:Platform=Win32
|
||||
@@ -1 +0,0 @@
|
||||
.\build\release\openrct2.exe sprite build "data\g2.dat" "resources\g2"
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $TARGET == "windows" ]]; then
|
||||
wine openrct2.exe sprite build data/g2.dat resources/g2/
|
||||
else
|
||||
./openrct2 sprite build data/g2.dat resources/g2/
|
||||
fi
|
||||
@@ -3475,7 +3475,7 @@ STR_5133 :{SMALLFONT}{BLACK}選擇較小的土地範圍
|
||||
STR_5134 :{SMALLFONT}{BLACK}選擇較大的土地範圍
|
||||
STR_5135 :{SMALLFONT}{BLACK}購買土地擁有權或建造權
|
||||
STR_5136 :土地擁有權
|
||||
STR_5137 :允許鏈條上拉及發車速度高至{VELOCITY}
|
||||
STR_5137 :移除遊樂設施的運行限制
|
||||
STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID}
|
||||
STR_5139 :{WHITE}{STRINGID}
|
||||
STR_5140 :去除煞車組件故障
|
||||
@@ -3921,6 +3921,10 @@ STR_5578 :俄羅斯盧布 (R)
|
||||
STR_5579 :顥示縮放因子:
|
||||
STR_5580 :捷克克朗 (Kc)
|
||||
STR_5581 :顥示幀數
|
||||
STR_5582 :限制滑鼠游標於視窗中移動
|
||||
STR_5583 :{COMMA1DP16}ms{POWERNEGATIVEONE}
|
||||
STR_5584 :SI
|
||||
STR_5585 :{SMALLFONT}{BLACK}移除遊樂設施的運行限制, 例如容許鏈條上拉速度高達{VELOCITY}
|
||||
|
||||
|
||||
#####################
|
||||
|
||||
@@ -3470,7 +3470,7 @@ STR_5133 :{SMALLFONT}{BLACK}Kleineren Landbereich anpassen
|
||||
STR_5134 :{SMALLFONT}{BLACK}Größeren Landbereich anpassen
|
||||
STR_5135 :{SMALLFONT}{BLACK}Kaufe Land- und Baurechte
|
||||
STR_5136 :Landrechte
|
||||
STR_5137 :Erlaube Lifthügel- und Antriebsgeschw.{NEWLINE}bis zu {VELOCITY}
|
||||
STR_5137 :Betriebsbeschränkungen aufheben
|
||||
STR_5138 :{SMALLFONT}{WINDOW_COLOUR_2}{STRINGID}
|
||||
STR_5139 :{WHITE}{STRINGID}
|
||||
STR_5140 :Deaktiviere Bremsenfehlfunktion
|
||||
@@ -3916,6 +3916,9 @@ STR_5579 :Skalierungsfaktor:
|
||||
STR_5580 :Tschechische Krone (Kc)
|
||||
STR_5581 :FPS anzeigen
|
||||
STR_5582 :Mauszeiger im Fenster fangen
|
||||
STR_5583 :{COMMA1DP16}ms{POWERNEGATIVEONE}
|
||||
STR_5584 :SI
|
||||
STR_5585 :{SMALLFONT}{BLACK}Hebt Beschränkungen von Attraktionen auf, um Dinge wie {VELOCITY} schnelle Lifthügel zu erlauben
|
||||
|
||||
#######################
|
||||
# Bahnen/Attraktionen #
|
||||
|
||||
+46
-46
@@ -1432,7 +1432,7 @@ STR_1426 :Queue Line
|
||||
STR_1427 :{WINDOW_COLOUR_2}Customers: {BLACK}{COMMA32} per hour
|
||||
STR_1428 :{WINDOW_COLOUR_2}Admission price:
|
||||
STR_1429 :{POP16}{POP16}{POP16}{CURRENCY2DP}
|
||||
STR_1430 :Free
|
||||
STR_1430 :無料
|
||||
STR_1431 :Walking
|
||||
STR_1432 :Heading for {STRINGID}
|
||||
STR_1433 :Queuing for {STRINGID}
|
||||
@@ -1779,7 +1779,7 @@ STR_1773 :Only one on-ride photo section allowed per ride
|
||||
STR_1774 :Only one cable lift hill allowed per ride
|
||||
STR_1775 :Off
|
||||
STR_1776 :On
|
||||
STR_1777 :{WINDOW_COLOUR_2}Music
|
||||
STR_1777 :{WINDOW_COLOUR_2}音楽
|
||||
STR_1778 :{STRINGID} - -
|
||||
STR_1779 :{INLINE_SPRITE}{254}{19}{00}{00} Panda costume
|
||||
STR_1780 :{INLINE_SPRITE}{255}{19}{00}{00} Tiger costume
|
||||
@@ -2388,8 +2388,8 @@ STR_2380 :{SMALLFONT}{BLACK}Adjust smaller area of water
|
||||
STR_2381 :{SMALLFONT}{BLACK}Adjust larger area of water
|
||||
STR_2382 :Land
|
||||
STR_2383 :Water
|
||||
STR_2384 :{WINDOW_COLOUR_2}Your objective:
|
||||
STR_2385 :{BLACK}None
|
||||
STR_2384 :{WINDOW_COLOUR_2}あなたの目標:
|
||||
STR_2385 :{BLACK}なし
|
||||
STR_2386 :{BLACK}To have at least {COMMA16} guests in your park at the end of {MONTHYEAR}, with a park rating of at least 600
|
||||
STR_2387 :{BLACK}To achieve a park value of at least {POP16}{POP16}{CURRENCY} at the end of {PUSH16}{PUSH16}{PUSH16}{MONTHYEAR}
|
||||
STR_2388 :{BLACK}Have Fun!
|
||||
@@ -2741,12 +2741,12 @@ STR_2732 :{COMMA16}ft
|
||||
STR_2733 :{COMMA16}m
|
||||
STR_2734 :{COMMA16}mph
|
||||
STR_2735 :{COMMA16}km/h
|
||||
STR_2736 :{MONTH}, Year {COMMA16}
|
||||
STR_2737 :{STRINGID} {MONTH}, Year {COMMA16}
|
||||
STR_2736 :{MONTH}, 第{COMMA16}年
|
||||
STR_2737 :{STRINGID} {MONTH}, 第{COMMA16}年
|
||||
STR_2738 :Title screen music:
|
||||
STR_2739 :None
|
||||
STR_2740 :RollerCoaster Tycoon 1
|
||||
STR_2741 :RollerCoaster Tycoon 2
|
||||
STR_2740 :ローラーコースター タイクーン 1
|
||||
STR_2741 :ローラーコースター タイクーン 2
|
||||
STR_2742 :css50.dat not found
|
||||
STR_2743 :Copy data\css17.dat from your RCT1 installation to data\css50.dat in your RCT2 installation.
|
||||
STR_2744 :[
|
||||
@@ -3062,7 +3062,7 @@ STR_3051 :Golf hole C
|
||||
STR_3052 :Golf hole D
|
||||
STR_3053 :Golf hole E
|
||||
STR_3054 :Loading...
|
||||
STR_3055 :White
|
||||
STR_3055 :白
|
||||
STR_3056 :Translucent
|
||||
STR_3057 :{WINDOW_COLOUR_2}Construction Marker:
|
||||
STR_3058 :Brick walls
|
||||
@@ -3643,24 +3643,24 @@ STR_5301 :{MEDIUMFONT}{BLACK}Clear your loan
|
||||
STR_5302 :Clear loan
|
||||
STR_5303 :Allow building in pause mode
|
||||
STR_5304 :Title Sequence:
|
||||
STR_5305 :RollerCoaster Tycoon 1
|
||||
STR_5306 :RollerCoaster Tycoon 1 (AA)
|
||||
STR_5307 :RollerCoaster Tycoon 1 (AA + LL)
|
||||
STR_5308 :RollerCoaster Tycoon 2
|
||||
STR_5305 :ローラーコースター タイクーン 1
|
||||
STR_5306 :ローラーコースター タイクーン 1 (AA)
|
||||
STR_5307 :ローラーコースター タイクーン 1 (AA + 遊園地再生計画)
|
||||
STR_5308 :ローラーコースター タイクーン 2
|
||||
STR_5309 :OpenRCT2
|
||||
STR_5310 :Random
|
||||
STR_5311 :{SMALLFONT}{BLACK}Debug tools
|
||||
STR_5310 :ランダム
|
||||
STR_5311 :{SMALLFONT}{BLACK}デバグツール
|
||||
STR_5312 :Show console
|
||||
STR_5313 :Show tile inspector
|
||||
STR_5314 :Tile inspector
|
||||
STR_5315 :Grass
|
||||
STR_5316 :Sand
|
||||
STR_5317 :Dirt
|
||||
STR_5318 :Rock
|
||||
STR_5319 :Martian
|
||||
STR_5320 :Checkerboard
|
||||
STR_5315 :草
|
||||
STR_5316 :砂
|
||||
STR_5317 :土
|
||||
STR_5318 :石
|
||||
STR_5319 :火星
|
||||
STR_5320 :市松
|
||||
STR_5321 :Grass clumps
|
||||
STR_5322 :Ice
|
||||
STR_5322 :氷
|
||||
STR_5323 :Grid (red)
|
||||
STR_5324 :Grid (yellow)
|
||||
STR_5325 :Grid (blue)
|
||||
@@ -3672,7 +3672,7 @@ STR_5330 :Underground view
|
||||
STR_5331 :Rock
|
||||
STR_5332 :Wood (red)
|
||||
STR_5333 :Wood (black)
|
||||
STR_5334 :Ice
|
||||
STR_5334 :氷
|
||||
STR_5335 :Ride entrance
|
||||
STR_5336 :Ride exit
|
||||
STR_5337 :Park entrance
|
||||
@@ -3704,8 +3704,8 @@ STR_5362 :{BLACK}Set all guests' preferred ride intensity to:
|
||||
STR_5363 :More than 1
|
||||
STR_5364 :Less than 15
|
||||
STR_5365 :{BLACK}Staff speed:
|
||||
STR_5366 :Normal
|
||||
STR_5367 :Fast
|
||||
STR_5366 :普通
|
||||
STR_5367 :速い
|
||||
STR_5368 :Reset crash status
|
||||
STR_5369 :Park parameters...
|
||||
STR_5370 :{SMALLFONT}{BLACK}Click this button to modify park{NEWLINE}parameters like restrictions,{NEWLINE}guest generation and money.
|
||||
@@ -3745,13 +3745,13 @@ STR_5403 :There may be no Load or Wait command or a save may be invalid
|
||||
STR_5404 :Name already exists
|
||||
STR_5405 :Enter a name for the save
|
||||
STR_5406 :Enter a name for the title sequence
|
||||
STR_5407 :Add
|
||||
STR_5408 :Remove
|
||||
STR_5409 :Insert
|
||||
STR_5410 :Edit
|
||||
STR_5411 :Reload
|
||||
STR_5407 :追加
|
||||
STR_5408 :削除
|
||||
STR_5409 :挿入
|
||||
STR_5410 :編集
|
||||
STR_5411 :リロード
|
||||
STR_5412 :Skip to
|
||||
STR_5413 :Load
|
||||
STR_5413 :ロード
|
||||
STR_5414 :Load{MOVE_X}{87}Six Flags Magic Mountain.SC6
|
||||
STR_5415 :Load{MOVE_X}{87}{STRING}
|
||||
STR_5416 :Load{MOVE_X}{87}No save selected
|
||||
@@ -3841,9 +3841,9 @@ STR_5499 :Player Name:
|
||||
STR_5500 :Add Server
|
||||
STR_5501 :Start Server
|
||||
STR_5502 :Multiplayer
|
||||
STR_5503 :Enter hostname or IP address:
|
||||
STR_5503 :ホスト名またはIPアドレスを入力してください:
|
||||
STR_5504 :{SMALLFONT}{BLACK}Show multiplayer status
|
||||
STR_5505 :Unable to connect to server.
|
||||
STR_5505 :サーバーに接続できない
|
||||
STR_5506 :Guests ignore intensities
|
||||
STR_5507 :Handymen mow grass by default
|
||||
STR_5508 :Allow loading files with incorrect checksums
|
||||
@@ -3854,14 +3854,14 @@ STR_5512 :Save Game As
|
||||
STR_5513 :(Quick) save game
|
||||
STR_5514 :Disable vandalism
|
||||
STR_5515 :{SMALLFONT}{BLACK}Stops guests from vandalising your park when they're angry
|
||||
STR_5516 :{SMALLFONT}{BLACK}Black
|
||||
STR_5517 :{SMALLFONT}{BLACK}Grey
|
||||
STR_5518 :{SMALLFONT}{BLACK}White
|
||||
STR_5516 :{SMALLFONT}{BLACK}黒
|
||||
STR_5517 :{SMALLFONT}{BLACK}灰色
|
||||
STR_5518 :{SMALLFONT}{BLACK}白
|
||||
STR_5519 :{SMALLFONT}{BLACK}Dark purple
|
||||
STR_5520 :{SMALLFONT}{BLACK}Light purple
|
||||
STR_5521 :{SMALLFONT}{BLACK}Bright purple
|
||||
STR_5522 :{SMALLFONT}{BLACK}Dark blue
|
||||
STR_5523 :{SMALLFONT}{BLACK}Light blue
|
||||
STR_5522 :{SMALLFONT}{BLACK}紺色
|
||||
STR_5523 :{SMALLFONT}{BLACK}水色
|
||||
STR_5524 :{SMALLFONT}{BLACK}Icy blue
|
||||
STR_5525 :{SMALLFONT}{BLACK}Dark water
|
||||
STR_5526 :{SMALLFONT}{BLACK}Light water
|
||||
@@ -3872,7 +3872,7 @@ STR_5530 :{SMALLFONT}{BLACK}Bright green
|
||||
STR_5531 :{SMALLFONT}{BLACK}Olive green
|
||||
STR_5532 :{SMALLFONT}{BLACK}Dark olive green
|
||||
STR_5533 :{SMALLFONT}{BLACK}Bright yellow
|
||||
STR_5534 :{SMALLFONT}{BLACK}Yellow
|
||||
STR_5534 :{SMALLFONT}{BLACK}黄色
|
||||
STR_5535 :{SMALLFONT}{BLACK}Dark yellow
|
||||
STR_5536 :{SMALLFONT}{BLACK}Light orange
|
||||
STR_5537 :{SMALLFONT}{BLACK}Dark orange
|
||||
@@ -3887,10 +3887,10 @@ STR_5545 :{SMALLFONT}{BLACK}Dark pink
|
||||
STR_5546 :{SMALLFONT}{BLACK}Bright pink
|
||||
STR_5547 :{SMALLFONT}{BLACK}Light pink
|
||||
STR_5548 :Show all operating modes
|
||||
STR_5549 :Year/Month/Day
|
||||
STR_5550 :{POP16}{POP16}Year {COMMA16}, {PUSH16}{PUSH16}{MONTH} {PUSH16}{PUSH16}{STRINGID}
|
||||
STR_5549 :年月日
|
||||
STR_5550 :{POP16}{POP16}第{COMMA16}年, {PUSH16}{PUSH16}{MONTH} {PUSH16}{PUSH16}{STRINGID}
|
||||
STR_5551 :Year/Day/Month
|
||||
STR_5552 :{POP16}{POP16}Year {COMMA16}, {PUSH16}{PUSH16}{PUSH16}{STRINGID} {MONTH}
|
||||
STR_5552 :{POP16}{POP16}第{COMMA16}年, {PUSH16}{PUSH16}{PUSH16}{STRINGID} {MONTH}
|
||||
STR_5553 :Pause game when Steam overlay is open
|
||||
STR_5554 :{SMALLFONT}{BLACK}Enable mountain tool
|
||||
STR_5555 :Show vehicles from other track types
|
||||
@@ -3900,14 +3900,14 @@ STR_5558 :A restart is required for this setting to take effect
|
||||
STR_5559 :10 min. inspections
|
||||
STR_5560 :{SMALLFONT}{BLACK}Sets the inspection time to 'Every 10 minutes' on all rides
|
||||
STR_5561 :Failed to load language
|
||||
STR_5562 :WARNING!
|
||||
STR_5562 :注意!
|
||||
STR_5563 :This feature is currently unstable, take extra caution.
|
||||
STR_5564 :Insert Corrupt Element
|
||||
STR_5565 :{SMALLFONT}{BLACK}Inserts a corrupt map element at top of tile. This will hide any element above the corrupt element.
|
||||
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
|
||||
|
||||
+6941
-9
File diff suppressed because it is too large.
Load diff
@@ -1,8 +1,8 @@
|
||||
# Version numbers to update
|
||||
!define /ifndef APPV_MAJOR 0
|
||||
!define /ifndef APPV_MINOR 0
|
||||
!define /ifndef APPV_MAINT 3
|
||||
!define /ifndef APPV_BUILD 1
|
||||
!define /ifndef APPV_MAINT 4
|
||||
!define /ifndef APPV_BUILD 0
|
||||
!define /ifndef APPV_EXTRA "-beta"
|
||||
|
||||
!define APPNAME "OpenRCT2" ; Define application name
|
||||
|
||||
@@ -67,28 +67,28 @@
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<IncludePath>..\..\lib\libcurl\include;..\..\lib\jansson;..\..\lib\cutest\CuTest.h;..\..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>..\..\lib\libcurl\lib;..\..\lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<IncludePath>lib\libcurl\include;lib\jansson;lib\cutest\CuTest.h;lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>lib\libcurl\lib;lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<IncludePath>..\..\lib\libcurl\include;..\..\lib\jansson;..\..\lib\cutest\CuTest.h;..\..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>..\..\lib\libcurl\lib;..\..\lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<IncludePath>lib\libcurl\include;lib\jansson;lib\cutest\CuTest.h;lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>lib\libcurl\lib;lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<IncludePath>..\..\lib\libcurl\include;..\..\lib\jansson;..\..\lib\cutest\CuTest.h;..\..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>..\..\lib\libcurl\lib;..\..\lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
<IncludePath>lib\libcurl\include;lib\jansson;lib\cutest\CuTest.h;lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>lib\libcurl\lib;lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\Release\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\Release\</IntDir>
|
||||
<IncludePath>..\..\lib\libcurl\include;..\..\lib\jansson;..\..\lib\cutest\CuTest.h;..\..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>..\..\lib\libcurl\lib;..\..\lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\Release\</IntDir>
|
||||
<IncludePath>lib\libcurl\include;lib\jansson;lib\cutest\CuTest.h;lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>lib\libcurl\lib;lib\SDL2_ttf\lib\x86;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
@@ -106,9 +106,6 @@
|
||||
<AdditionalDependencies>libcurl.lib;Ws2_32.lib;SDL2_ttf.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<LinkTimeCodeGeneration>true</LinkTimeCodeGeneration>
|
||||
</Lib>
|
||||
<PreBuildEvent>
|
||||
<Command>Powershell -NonInteractive -ExecutionPolicy "ByPass" -File "$(ProjectDir)../../pre-build.ps1"</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
@@ -131,9 +128,6 @@
|
||||
<Lib>
|
||||
<AdditionalDependencies>libcurl.lib;Ws2_32.lib;SDL2_ttf.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Lib>
|
||||
<PreBuildEvent>
|
||||
<Command>Powershell -NonInteractive -ExecutionPolicy "ByPass" -File "$(ProjectDir)../../pre-build.ps1"</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<ClCompile>
|
||||
@@ -156,9 +150,6 @@
|
||||
<Lib>
|
||||
<AdditionalDependencies>libcurl.lib;Ws2_32.lib;SDL2_ttf.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Lib>
|
||||
<PreBuildEvent>
|
||||
<Command>Powershell -NonInteractive -ExecutionPolicy "ByPass" -File "$(ProjectDir)../../pre-build.ps1"</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<ClCompile>
|
||||
@@ -181,49 +172,46 @@
|
||||
<Lib>
|
||||
<AdditionalDependencies>libcurl.lib;Ws2_32.lib;SDL2_ttf.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Lib>
|
||||
<PreBuildEvent>
|
||||
<Command>Powershell -NonInteractive -ExecutionPolicy "ByPass" -File "$(ProjectDir)../../pre-build.ps1"</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\lib\argparse\argparse.c">
|
||||
<ClCompile Include="lib\argparse\argparse.c">
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\cutest\CuTest.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\dump.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\error.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\hashtable.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\hashtable_seed.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\load.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\memory.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\pack_unpack.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\strbuffer.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\strconv.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\utf.c" />
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\value.c" />
|
||||
<ClCompile Include="..\..\lib\libspeex\resample.c">
|
||||
<ClCompile Include="lib\cutest\CuTest.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\dump.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\error.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\hashtable.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\hashtable_seed.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\load.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\memory.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\pack_unpack.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\strbuffer.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\strconv.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\utf.c" />
|
||||
<ClCompile Include="lib\jansson\jansson\value.c" />
|
||||
<ClCompile Include="lib\libspeex\resample.c">
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\lodepng\lodepng.c" />
|
||||
<ClCompile Include="lib\lodepng\lodepng.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\lib\argparse\argparse.h" />
|
||||
<ClInclude Include="..\..\lib\cutest\CuTest.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\hashtable.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\jansson.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\jansson_private.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\lookup3.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\strbuffer.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\utf.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson_config.h" />
|
||||
<ClInclude Include="..\..\lib\jansson\jansson_private_config.h" />
|
||||
<ClInclude Include="..\..\lib\libspeex\arch.h" />
|
||||
<ClInclude Include="..\..\lib\libspeex\config.h" />
|
||||
<ClInclude Include="..\..\lib\libspeex\os_support.h" />
|
||||
<ClInclude Include="..\..\lib\libspeex\speex\speex_resampler.h" />
|
||||
<ClInclude Include="..\..\lib\libspeex\speex\speex_types.h" />
|
||||
<ClInclude Include="..\..\lib\libspeex\stack_alloc.h" />
|
||||
<ClInclude Include="..\..\lib\lodepng\lodepng.h" />
|
||||
<ClInclude Include="lib\argparse\argparse.h" />
|
||||
<ClInclude Include="lib\cutest\CuTest.h" />
|
||||
<ClInclude Include="lib\jansson\jansson\hashtable.h" />
|
||||
<ClInclude Include="lib\jansson\jansson\jansson.h" />
|
||||
<ClInclude Include="lib\jansson\jansson\jansson_private.h" />
|
||||
<ClInclude Include="lib\jansson\jansson\lookup3.h" />
|
||||
<ClInclude Include="lib\jansson\jansson\strbuffer.h" />
|
||||
<ClInclude Include="lib\jansson\jansson\utf.h" />
|
||||
<ClInclude Include="lib\jansson\jansson_config.h" />
|
||||
<ClInclude Include="lib\jansson\jansson_private_config.h" />
|
||||
<ClInclude Include="lib\libspeex\arch.h" />
|
||||
<ClInclude Include="lib\libspeex\config.h" />
|
||||
<ClInclude Include="lib\libspeex\os_support.h" />
|
||||
<ClInclude Include="lib\libspeex\speex\speex_resampler.h" />
|
||||
<ClInclude Include="lib\libspeex\speex\speex_types.h" />
|
||||
<ClInclude Include="lib\libspeex\stack_alloc.h" />
|
||||
<ClInclude Include="lib\lodepng\lodepng.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
@@ -24,101 +24,101 @@
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\lib\argparse\argparse.c">
|
||||
<ClCompile Include="lib\argparse\argparse.c">
|
||||
<Filter>argparse</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\libspeex\resample.c">
|
||||
<ClCompile Include="lib\libspeex\resample.c">
|
||||
<Filter>libspeex</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\lodepng\lodepng.c">
|
||||
<ClCompile Include="lib\lodepng\lodepng.c">
|
||||
<Filter>lodepng</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\dump.c">
|
||||
<ClCompile Include="lib\jansson\jansson\dump.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\error.c">
|
||||
<ClCompile Include="lib\jansson\jansson\error.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\hashtable.c">
|
||||
<ClCompile Include="lib\jansson\jansson\hashtable.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\hashtable_seed.c">
|
||||
<ClCompile Include="lib\jansson\jansson\hashtable_seed.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\load.c">
|
||||
<ClCompile Include="lib\jansson\jansson\load.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\memory.c">
|
||||
<ClCompile Include="lib\jansson\jansson\memory.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\pack_unpack.c">
|
||||
<ClCompile Include="lib\jansson\jansson\pack_unpack.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\strbuffer.c">
|
||||
<ClCompile Include="lib\jansson\jansson\strbuffer.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\strconv.c">
|
||||
<ClCompile Include="lib\jansson\jansson\strconv.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\utf.c">
|
||||
<ClCompile Include="lib\jansson\jansson\utf.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\jansson\jansson\value.c">
|
||||
<ClCompile Include="lib\jansson\jansson\value.c">
|
||||
<Filter>jansson</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\lib\cutest\CuTest.c">
|
||||
<ClCompile Include="lib\cutest\CuTest.c">
|
||||
<Filter>cutest</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\lib\argparse\argparse.h">
|
||||
<ClInclude Include="lib\argparse\argparse.h">
|
||||
<Filter>argparse</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\libspeex\arch.h">
|
||||
<ClInclude Include="lib\libspeex\arch.h">
|
||||
<Filter>libspeex</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\libspeex\config.h">
|
||||
<ClInclude Include="lib\libspeex\config.h">
|
||||
<Filter>libspeex</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\libspeex\os_support.h">
|
||||
<ClInclude Include="lib\libspeex\os_support.h">
|
||||
<Filter>libspeex</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\libspeex\stack_alloc.h">
|
||||
<ClInclude Include="lib\libspeex\stack_alloc.h">
|
||||
<Filter>libspeex</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\libspeex\speex\speex_resampler.h">
|
||||
<ClInclude Include="lib\libspeex\speex\speex_resampler.h">
|
||||
<Filter>libspeex\speex</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\libspeex\speex\speex_types.h">
|
||||
<ClInclude Include="lib\libspeex\speex\speex_types.h">
|
||||
<Filter>libspeex\speex</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\lodepng\lodepng.h">
|
||||
<ClInclude Include="lib\lodepng\lodepng.h">
|
||||
<Filter>lodepng</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson_config.h">
|
||||
<ClInclude Include="lib\jansson\jansson_config.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson_private_config.h">
|
||||
<ClInclude Include="lib\jansson\jansson_private_config.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\hashtable.h">
|
||||
<ClInclude Include="lib\jansson\jansson\hashtable.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\jansson.h">
|
||||
<ClInclude Include="lib\jansson\jansson\jansson.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\jansson_private.h">
|
||||
<ClInclude Include="lib\jansson\jansson\jansson_private.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\lookup3.h">
|
||||
<ClInclude Include="lib\jansson\jansson\lookup3.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\strbuffer.h">
|
||||
<ClInclude Include="lib\jansson\jansson\strbuffer.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\jansson\jansson\utf.h">
|
||||
<ClInclude Include="lib\jansson\jansson\utf.h">
|
||||
<Filter>jansson</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\lib\cutest\CuTest.h" />
|
||||
<ClInclude Include="lib\cutest\CuTest.h" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>true</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -1,16 +1,11 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.23107.0
|
||||
VisualStudioVersion = 14.0.24720.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openrct2", "openrct2.vcxproj", "{D24D94F6-2A74-480C-B512-629C306CE92F}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9} = {0468FC1E-5881-4DB9-9DDE-1892290B31D9}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "language", "language\language.vcxproj", "{0468FC1E-5881-4DB9-9DDE-1892290B31D9}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libs", "libs\libs.vcxproj", "{074DC930-05C6-4B7F-B5DD-DD237E6E44DB}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libs", "libs.vcxproj", "{074DC930-05C6-4B7F-B5DD-DD237E6E44DB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@@ -28,14 +23,6 @@ Global
|
||||
{D24D94F6-2A74-480C-B512-629C306CE92F}.Release XP|Win32.Build.0 = Release XP|Win32
|
||||
{D24D94F6-2A74-480C-B512-629C306CE92F}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{D24D94F6-2A74-480C-B512-629C306CE92F}.Release|Win32.Build.0 = Release|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Release with Tests|Win32.ActiveCfg = Release with Tests|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Release with Tests|Win32.Build.0 = Release with Tests|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Release XP|Win32.ActiveCfg = Release XP|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Release XP|Win32.Build.0 = Release XP|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{0468FC1E-5881-4DB9-9DDE-1892290B31D9}.Release|Win32.Build.0 = Release|Win32
|
||||
{074DC930-05C6-4B7F-B5DD-DD237E6E44DB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{074DC930-05C6-4B7F-B5DD-DD237E6E44DB}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{074DC930-05C6-4B7F-B5DD-DD237E6E44DB}.Release with Tests|Win32.ActiveCfg = Release with Tests|Win32
|
||||
@@ -0,0 +1,472 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build0;Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Target Name="Build0">
|
||||
<Copy SourceFiles="openrct2.exe" DestinationFolder="$(OutDir)" />
|
||||
<Copy SourceFiles="curl-ca-bundle.crt" DestinationFolder="$(OutDir)" />
|
||||
<Copy SourceFiles="SDL2.dll" DestinationFolder="$(OutDir)" />
|
||||
</Target>
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release XP|Win32">
|
||||
<Configuration>Release XP</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release with Tests|Win32">
|
||||
<Configuration>Release with Tests</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="curl-ca-bundle.crt" />
|
||||
<None Include="openrct2.exe" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="src\addresses.c" />
|
||||
<ClCompile Include="src\audio\audio.c" />
|
||||
<ClCompile Include="src\audio\mixer.cpp" />
|
||||
<ClCompile Include="src\cheats.c" />
|
||||
<ClCompile Include="src\cmdline.c" />
|
||||
<ClCompile Include="src\cmdline_sprite.c" />
|
||||
<ClCompile Include="src\config.c" />
|
||||
<ClCompile Include="src\cursors.c" />
|
||||
<ClCompile Include="src\diagnostic.c" />
|
||||
<ClCompile Include="src\drawing\drawing.c" />
|
||||
<ClCompile Include="src\drawing\font.c" />
|
||||
<ClCompile Include="src\drawing\line.c" />
|
||||
<ClCompile Include="src\drawing\rain.c" />
|
||||
<ClCompile Include="src\drawing\rect.c" />
|
||||
<ClCompile Include="src\drawing\scrolling_text.c" />
|
||||
<ClCompile Include="src\drawing\sprite.c" />
|
||||
<ClCompile Include="src\drawing\string.c" />
|
||||
<ClCompile Include="src\drawing\supports.c" />
|
||||
<ClCompile Include="src\editor.c" />
|
||||
<ClCompile Include="src\game.c" />
|
||||
<ClCompile Include="src\hook.c" />
|
||||
<ClCompile Include="src\input.c" />
|
||||
<ClCompile Include="src\interface\chat.c" />
|
||||
<ClCompile Include="src\interface\colour.c" />
|
||||
<ClCompile Include="src\interface\themes.c" />
|
||||
<ClCompile Include="src\interface\console.c" />
|
||||
<ClCompile Include="src\interface\graph.c" />
|
||||
<ClCompile Include="src\interface\keyboard_shortcut.c" />
|
||||
<ClCompile Include="src\interface\screenshot.c" />
|
||||
<ClCompile Include="src\interface\title_sequences.c" />
|
||||
<ClCompile Include="src\interface\viewport.c" />
|
||||
<ClCompile Include="src\interface\viewport_interaction.c" />
|
||||
<ClCompile Include="src\interface\widget.c" />
|
||||
<ClCompile Include="src\interface\window.c" />
|
||||
<ClCompile Include="src\intro.c" />
|
||||
<ClCompile Include="src\localisation\convert.c" />
|
||||
<ClCompile Include="src\localisation\currency.c" />
|
||||
<ClCompile Include="src\localisation\date.c" />
|
||||
<ClCompile Include="src\localisation\language.cpp" />
|
||||
<ClCompile Include="src\localisation\LanguagePack.cpp" />
|
||||
<ClCompile Include="src\localisation\localisation.c" />
|
||||
<ClCompile Include="src\localisation\real_names.c" />
|
||||
<ClCompile Include="src\localisation\user.c" />
|
||||
<ClCompile Include="src\localisation\utf8.c" />
|
||||
<ClCompile Include="src\management\award.c" />
|
||||
<ClCompile Include="src\management\finance.c" />
|
||||
<ClCompile Include="src\management\marketing.c" />
|
||||
<ClCompile Include="src\management\news_item.c" />
|
||||
<ClCompile Include="src\management\research.c" />
|
||||
<ClCompile Include="src\network\http.cpp" />
|
||||
<ClCompile Include="src\network\network.cpp" />
|
||||
<ClCompile Include="src\network\twitch.cpp" />
|
||||
<ClCompile Include="src\object.c" />
|
||||
<ClCompile Include="src\object_list.c" />
|
||||
<ClCompile Include="src\openrct2.c" />
|
||||
<ClCompile Include="src\peep\peep.c" />
|
||||
<ClCompile Include="src\peep\staff.c" />
|
||||
<ClCompile Include="src\platform\linux.c" />
|
||||
<ClCompile Include="src\platform\posix.c" />
|
||||
<ClCompile Include="src\platform\shared.c" />
|
||||
<ClCompile Include="src\platform\windows.c" />
|
||||
<ClCompile Include="src\rct1.c" />
|
||||
<ClCompile Include="src\rct2.c" />
|
||||
<ClCompile Include="src\ride\cable_lift.c" />
|
||||
<ClCompile Include="src\ride\ride.c" />
|
||||
<ClCompile Include="src\ride\ride_data.c" />
|
||||
<ClCompile Include="src\ride\ride_ratings.c" />
|
||||
<ClCompile Include="src\ride\station.c" />
|
||||
<ClCompile Include="src\ride\track.c" />
|
||||
<ClCompile Include="src\ride\track_data.c" />
|
||||
<ClCompile Include="src\ride\track_paint.c" />
|
||||
<ClCompile Include="src\ride\vehicle.c" />
|
||||
<ClCompile Include="src\scenario.c" />
|
||||
<ClCompile Include="src\scenario_list.c" />
|
||||
<ClCompile Include="src\windows\changelog.c" />
|
||||
<ClCompile Include="src\windows\network_status.c" />
|
||||
<ClCompile Include="src\windows\player_list.c" />
|
||||
<ClCompile Include="src\windows\server_list.c" />
|
||||
<ClCompile Include="src\windows\server_start.c" />
|
||||
<ClCompile Include="src\windows\title_command_editor.c" />
|
||||
<ClCompile Include="src\windows\title_editor.c" />
|
||||
<ClCompile Include="src\windows\maze_construction.c" />
|
||||
<ClCompile Include="src\world\balloon.c" />
|
||||
<ClCompile Include="src\world\duck.c" />
|
||||
<ClCompile Include="src\world\money_effect.c" />
|
||||
<ClCompile Include="src\world\particle.c" />
|
||||
<ClCompile Include="test\management\finance_test.c" />
|
||||
<ClCompile Include="test\ride\ride_ratings_test.c" />
|
||||
<ClCompile Include="test\tests.c" />
|
||||
<ClCompile Include="src\title.c" />
|
||||
<ClCompile Include="src\tutorial.c" />
|
||||
<ClCompile Include="src\util\sawyercoding.c" />
|
||||
<ClCompile Include="src\util\util.c" />
|
||||
<ClCompile Include="src\windows\about.c" />
|
||||
<ClCompile Include="src\windows\banner.c" />
|
||||
<ClCompile Include="src\windows\cheats.c" />
|
||||
<ClCompile Include="src\windows\clear_scenery.c" />
|
||||
<ClCompile Include="src\windows\demolish_ride_prompt.c" />
|
||||
<ClCompile Include="src\windows\dropdown.c" />
|
||||
<ClCompile Include="src\windows\editor_bottom_toolbar.c" />
|
||||
<ClCompile Include="src\windows\editor_inventions_list.c" />
|
||||
<ClCompile Include="src\windows\editor_main.c" />
|
||||
<ClCompile Include="src\windows\editor_objective_options.c" />
|
||||
<ClCompile Include="src\windows\editor_object_selection.c" />
|
||||
<ClCompile Include="src\windows\editor_scenario_options.c" />
|
||||
<ClCompile Include="src\windows\error.c" />
|
||||
<ClCompile Include="src\windows\finances.c" />
|
||||
<ClCompile Include="src\windows\footpath.c" />
|
||||
<ClCompile Include="src\windows\game_bottom_toolbar.c" />
|
||||
<ClCompile Include="src\windows\guest_list.c" />
|
||||
<ClCompile Include="src\windows\install_track.c" />
|
||||
<ClCompile Include="src\windows\land.c" />
|
||||
<ClCompile Include="src\windows\land_rights.c" />
|
||||
<ClCompile Include="src\windows\loadsave.c" />
|
||||
<ClCompile Include="src\windows\main.c" />
|
||||
<ClCompile Include="src\windows\map.c" />
|
||||
<ClCompile Include="src\windows\mapgen.c" />
|
||||
<ClCompile Include="src\windows\map_tooltip.c" />
|
||||
<ClCompile Include="src\windows\music_credits.c" />
|
||||
<ClCompile Include="src\windows\news.c" />
|
||||
<ClCompile Include="src\windows\new_campaign.c" />
|
||||
<ClCompile Include="src\windows\new_ride.c" />
|
||||
<ClCompile Include="src\windows\options.c" />
|
||||
<ClCompile Include="src\windows\park.c" />
|
||||
<ClCompile Include="src\windows\guest.c" />
|
||||
<ClCompile Include="src\windows\publisher_credits.c" />
|
||||
<ClCompile Include="src\windows\research.c" />
|
||||
<ClCompile Include="src\windows\ride.c" />
|
||||
<ClCompile Include="src\windows\ride_construction.c" />
|
||||
<ClCompile Include="src\windows\ride_list.c" />
|
||||
<ClCompile Include="src\windows\save_prompt.c" />
|
||||
<ClCompile Include="src\windows\scenery.c" />
|
||||
<ClCompile Include="src\windows\shortcut_keys.c" />
|
||||
<ClCompile Include="src\windows\shortcut_key_change.c" />
|
||||
<ClCompile Include="src\windows\sign.c" />
|
||||
<ClCompile Include="src\windows\staff_fire_prompt.c" />
|
||||
<ClCompile Include="src\windows\staff_list.c" />
|
||||
<ClCompile Include="src\windows\staff.c" />
|
||||
<ClCompile Include="src\windows\text_input.c" />
|
||||
<ClCompile Include="src\windows\tile_inspector.c" />
|
||||
<ClCompile Include="src\windows\title_exit.c" />
|
||||
<ClCompile Include="src\windows\title_logo.c" />
|
||||
<ClCompile Include="src\windows\title_menu.c" />
|
||||
<ClCompile Include="src\windows\title_options.c" />
|
||||
<ClCompile Include="src\windows\title_scenarioselect.c" />
|
||||
<ClCompile Include="src\windows\tooltip.c" />
|
||||
<ClCompile Include="src\windows\top_toolbar.c" />
|
||||
<ClCompile Include="src\windows\track_list.c" />
|
||||
<ClCompile Include="src\windows\track_manage.c" />
|
||||
<ClCompile Include="src\windows\track_place.c" />
|
||||
<ClCompile Include="src\windows\viewport.c" />
|
||||
<ClCompile Include="src\windows\water.c" />
|
||||
<ClCompile Include="src\windows\themes.c" />
|
||||
<ClCompile Include="src\world\banner.c" />
|
||||
<ClCompile Include="src\world\climate.c" />
|
||||
<ClCompile Include="src\world\footpath.c" />
|
||||
<ClCompile Include="src\world\fountain.c" />
|
||||
<ClCompile Include="src\world\map.c" />
|
||||
<ClCompile Include="src\world\mapgen.c" />
|
||||
<ClCompile Include="src\world\map_animation.c" />
|
||||
<ClCompile Include="src\world\map_helpers.c" />
|
||||
<ClCompile Include="src\world\park.c" />
|
||||
<ClCompile Include="src\world\scenery.c" />
|
||||
<ClCompile Include="src\world\sprite.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="src\addresses.h" />
|
||||
<ClInclude Include="src\audio\audio.h" />
|
||||
<ClInclude Include="src\audio\mixer.h" />
|
||||
<ClInclude Include="src\cheats.h" />
|
||||
<ClInclude Include="src\cmdline.h" />
|
||||
<ClInclude Include="src\common.h" />
|
||||
<ClInclude Include="src\config.h" />
|
||||
<ClInclude Include="src\core\Exception.hpp" />
|
||||
<ClInclude Include="src\core\FileStream.hpp" />
|
||||
<ClInclude Include="src\core\IDisposable.hpp" />
|
||||
<ClInclude Include="src\core\IStream.hpp" />
|
||||
<ClInclude Include="src\core\Math.hpp" />
|
||||
<ClInclude Include="src\core\Memory.hpp" />
|
||||
<ClInclude Include="src\core\StringBuilder.hpp" />
|
||||
<ClInclude Include="src\core\StringReader.hpp" />
|
||||
<ClInclude Include="src\cursors.h" />
|
||||
<ClInclude Include="src\diagnostic.h" />
|
||||
<ClInclude Include="src\drawing\drawing.h" />
|
||||
<ClInclude Include="src\drawing\font.h" />
|
||||
<ClInclude Include="src\drawing\supports.h" />
|
||||
<ClInclude Include="src\editor.h" />
|
||||
<ClInclude Include="src\game.h" />
|
||||
<ClInclude Include="src\hook.h" />
|
||||
<ClInclude Include="src\input.h" />
|
||||
<ClInclude Include="src\interface\chat.h" />
|
||||
<ClInclude Include="src\interface\colour.h" />
|
||||
<ClInclude Include="src\interface\themes.h" />
|
||||
<ClInclude Include="src\interface\console.h" />
|
||||
<ClInclude Include="src\interface\graph.h" />
|
||||
<ClInclude Include="src\interface\keyboard_shortcut.h" />
|
||||
<ClInclude Include="src\interface\screenshot.h" />
|
||||
<ClInclude Include="src\interface\title_sequences.h" />
|
||||
<ClInclude Include="src\interface\viewport.h" />
|
||||
<ClInclude Include="src\interface\widget.h" />
|
||||
<ClInclude Include="src\interface\window.h" />
|
||||
<ClInclude Include="src\intro.h" />
|
||||
<ClInclude Include="src\localisation\currency.h" />
|
||||
<ClInclude Include="src\localisation\date.h" />
|
||||
<ClInclude Include="src\localisation\format_codes.h" />
|
||||
<ClInclude Include="src\localisation\language.h" />
|
||||
<ClInclude Include="src\localisation\LanguagePack.h" />
|
||||
<ClInclude Include="src\localisation\localisation.h" />
|
||||
<ClInclude Include="src\localisation\string_ids.h" />
|
||||
<ClInclude Include="src\management\award.h" />
|
||||
<ClInclude Include="src\management\finance.h" />
|
||||
<ClInclude Include="src\management\marketing.h" />
|
||||
<ClInclude Include="src\management\news_item.h" />
|
||||
<ClInclude Include="src\management\research.h" />
|
||||
<ClInclude Include="src\network\http.h" />
|
||||
<ClInclude Include="src\network\twitch.h" />
|
||||
<ClInclude Include="src\network\network.h" />
|
||||
<ClInclude Include="src\object.h" />
|
||||
<ClInclude Include="src\openrct2.h" />
|
||||
<ClInclude Include="src\peep\peep.h" />
|
||||
<ClInclude Include="src\peep\staff.h" />
|
||||
<ClInclude Include="src\platform\platform.h" />
|
||||
<ClInclude Include="src\rct1.h" />
|
||||
<ClInclude Include="src\rct2.h" />
|
||||
<ClInclude Include="src\ride\cable_lift.h" />
|
||||
<ClInclude Include="src\ride\ride.h" />
|
||||
<ClInclude Include="src\ride\ride_data.h" />
|
||||
<ClInclude Include="src\ride\ride_ratings.h" />
|
||||
<ClInclude Include="src\ride\station.h" />
|
||||
<ClInclude Include="src\ride\track.h" />
|
||||
<ClInclude Include="src\ride\track_data.h" />
|
||||
<ClInclude Include="src\ride\track_paint.h" />
|
||||
<ClInclude Include="src\ride\vehicle.h" />
|
||||
<ClInclude Include="src\scenario.h" />
|
||||
<ClInclude Include="src\sprites.h" />
|
||||
<ClInclude Include="src\version.h" />
|
||||
<ClInclude Include="test\management\finance_test.h" />
|
||||
<ClInclude Include="test\ride\ride_ratings_test.h" />
|
||||
<ClInclude Include="test\tests.h" />
|
||||
<ClInclude Include="src\title.h" />
|
||||
<ClInclude Include="src\tutorial.h" />
|
||||
<ClInclude Include="src\util\sawyercoding.h" />
|
||||
<ClInclude Include="src\util\util.h" />
|
||||
<ClInclude Include="src\windows\dropdown.h" />
|
||||
<ClInclude Include="src\windows\error.h" />
|
||||
<ClInclude Include="src\windows\tooltip.h" />
|
||||
<ClInclude Include="src\world\banner.h" />
|
||||
<ClInclude Include="src\world\climate.h" />
|
||||
<ClInclude Include="src\world\entrance.h" />
|
||||
<ClInclude Include="src\world\footpath.h" />
|
||||
<ClInclude Include="src\world\fountain.h" />
|
||||
<ClInclude Include="src\world\map.h" />
|
||||
<ClInclude Include="src\world\mapgen.h" />
|
||||
<ClInclude Include="src\world\map_animation.h" />
|
||||
<ClInclude Include="src\world\map_helpers.h" />
|
||||
<ClInclude Include="src\world\park.h" />
|
||||
<ClInclude Include="src\world\scenery.h" />
|
||||
<ClInclude Include="src\world\sprite.h" />
|
||||
<ClInclude Include="src\world\water.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="libs.vcxproj">
|
||||
<Project>{074dc930-05c6-4b7f-b5dd-dd237e6e44db}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{D24D94F6-2A74-480C-B512-629C306CE92F}</ProjectGuid>
|
||||
<RootNamespace>openrct2</RootNamespace>
|
||||
<ProjectName>openrct2</ProjectName>
|
||||
<WindowsTargetPlatformVersion>10.0.10240.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<IncludePath>$(SolutionDir)lib;$(SolutionDir)lib\libspeex;$(SolutionDir)lib\sdl\include;$(SolutionDir)lib\libcurl\include;$(SolutionDir)lib\jansson;$(SolutionDir)lib\cutest;$(SolutionDir)lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)lib\sdl\lib\x86;$(SolutionDir)lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<IncludePath>$(SolutionDir)lib;$(SolutionDir)lib\libspeex;$(SolutionDir)lib\sdl\include;$(SolutionDir)lib\libcurl\include;$(SolutionDir)lib\jansson;$(SolutionDir)lib\cutest;$(SolutionDir)lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)lib\sdl\lib\x86;$(SolutionDir)lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<IncludePath>$(SolutionDir)lib;$(SolutionDir)lib\libspeex;$(SolutionDir)lib\sdl\include;$(SolutionDir)lib\libcurl\include;$(SolutionDir)lib\jansson;$(SolutionDir)lib\cutest;$(SolutionDir)lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)lib\sdl\lib\x86;$(SolutionDir)lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<IncludePath>$(SolutionDir)lib;$(SolutionDir)lib\libspeex;$(SolutionDir)lib\sdl\include;$(SolutionDir)lib\libcurl\include;$(SolutionDir)lib\jansson;$(SolutionDir)lib\cutest;$(SolutionDir)lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)lib\sdl\lib\x86;$(SolutionDir)lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)bin\</OutDir>
|
||||
<IntDir>$(SolutionDir)obj\$(ProjectName)\Release\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<PreprocessorDefinitions>$(OpenRCT2_DEFINES);DEBUG;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Full</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<OmitFramePointers>
|
||||
</OmitFramePointers>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<PreprocessorDefinitions>$(OpenRCT2_DEFINES);_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Full</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<OmitFramePointers>
|
||||
</OmitFramePointers>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<PreprocessorDefinitions>$(OpenRCT2_DEFINES);DISABLE_NETWORK;DISABLE_HTTP;DISABLE_TWITCH;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<OmitFramePointers>
|
||||
</OmitFramePointers>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<PreprocessorDefinitions>$(OpenRCT2_DEFINES);_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;ENABLE_TESTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>false</ShowAllFiles>
|
||||
<ShowAllFiles>true</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LocalDebuggerCommand>$(TargetDir)\openrct2.exe</LocalDebuggerCommand>
|
||||
@@ -1,34 +0,0 @@
|
||||
#init
|
||||
$libversion = 4
|
||||
$path = Split-Path $Script:MyInvocation.MyCommand.Path
|
||||
$zip = $path+'\orctlibs.zip'
|
||||
$libs = $path+'\lib'
|
||||
$libsVFile = $path+'\libversion'
|
||||
$liburl = 'https://openrct2.website/files/orctlibs-vs.zip'
|
||||
$libsTest = Test-Path $libs
|
||||
|
||||
#libs version test
|
||||
$libsVersionTest = Test-Path $libsVFile
|
||||
$currentVersion = 0
|
||||
$needsdownload = $true
|
||||
if ($libsVersionTest) {
|
||||
$currentVersion = [IO.File]::ReadAllText($libsVFile)
|
||||
}
|
||||
if ($currentVersion -ge $libversion) {
|
||||
$needsdownload = $false
|
||||
}
|
||||
|
||||
#download
|
||||
if (!$libsTest -or $needsdownload) {
|
||||
if ($libsTest) {
|
||||
rm $libs -Recurse -Force
|
||||
}
|
||||
mkdir $libs
|
||||
Invoke-WebRequest $liburl -OutFile $path\orctlibs.zip
|
||||
[System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($zip, $libs)
|
||||
rm $path\orctlibs.zip -Force -ErrorAction SilentlyContinue
|
||||
$libversion | Set-Content $libsVFile
|
||||
} else {
|
||||
echo 'All libs up to date'
|
||||
}
|
||||
@@ -1,164 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release XP|Win32">
|
||||
<Configuration>Release XP</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release with Tests|Win32">
|
||||
<Configuration>Release with Tests</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{0468FC1E-5881-4DB9-9DDE-1892290B31D9}</ProjectGuid>
|
||||
<RootNamespace>language</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Utility</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<OutDir>$(SolutionDir)..\build\Release\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\Release\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y "$(SolutionDir)\..\Data\Language\*.*" "$(TargetDir)\Data\Language\"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y "$(SolutionDir)\..\Data\Language\*.*" "$(TargetDir)\Data\Language\"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y "$(SolutionDir)\..\Data\Language\*.*" "$(TargetDir)\Data\Language\"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>xcopy /Y "$(SolutionDir)\..\Data\Language\*.*" "$(TargetDir)\Data\Language\"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="..\..\data\language\chinese_traditional.txt" />
|
||||
<Text Include="..\..\data\language\dutch.txt" />
|
||||
<Text Include="..\..\data\language\english_uk.txt" />
|
||||
<Text Include="..\..\data\language\english_us.txt" />
|
||||
<Text Include="..\..\data\language\french.txt" />
|
||||
<Text Include="..\..\data\language\german.txt" />
|
||||
<Text Include="..\..\data\language\hungarian.txt" />
|
||||
<Text Include="..\..\data\language\polish.txt" />
|
||||
<Text Include="..\..\data\language\spanish_sp.txt" />
|
||||
<Text Include="..\..\data\language\swedish.txt" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files\Language">
|
||||
<UniqueIdentifier>{96ec0470-f3e0-443e-8715-171ad8676bb6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="..\..\data\language\dutch.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\english_uk.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\english_us.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\german.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\french.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\hungarian.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\polish.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\spanish_sp.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\swedish.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
<Text Include="..\..\data\language\chinese_traditional.txt">
|
||||
<Filter>Resource Files\Language</Filter>
|
||||
</Text>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,516 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build0;Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Target Name="Build0">
|
||||
<Copy SourceFiles="..\openrct2.exe" DestinationFolder="$(OutDir)" />
|
||||
<Copy SourceFiles="..\curl-ca-bundle.crt" DestinationFolder="$(OutDir)" />
|
||||
<Copy SourceFiles="..\SDL2.dll" DestinationFolder="$(OutDir)" />
|
||||
</Target>
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release XP|Win32">
|
||||
<Configuration>Release XP</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release with Tests|Win32">
|
||||
<Configuration>Release with Tests</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\curl-ca-bundle.crt" />
|
||||
<None Include="..\openrct2.exe" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\src\addresses.c" />
|
||||
<ClCompile Include="..\src\audio\audio.c" />
|
||||
<ClCompile Include="..\src\audio\mixer.cpp" />
|
||||
<ClCompile Include="..\src\cheats.c" />
|
||||
<ClCompile Include="..\src\cmdline.c" />
|
||||
<ClCompile Include="..\src\cmdline_sprite.c" />
|
||||
<ClCompile Include="..\src\config.c" />
|
||||
<ClCompile Include="..\src\cursors.c" />
|
||||
<ClCompile Include="..\src\diagnostic.c" />
|
||||
<ClCompile Include="..\src\drawing\drawing.c" />
|
||||
<ClCompile Include="..\src\drawing\font.c" />
|
||||
<ClCompile Include="..\src\drawing\line.c" />
|
||||
<ClCompile Include="..\src\drawing\rain.c" />
|
||||
<ClCompile Include="..\src\drawing\rect.c" />
|
||||
<ClCompile Include="..\src\drawing\scrolling_text.c" />
|
||||
<ClCompile Include="..\src\drawing\sprite.c" />
|
||||
<ClCompile Include="..\src\drawing\string.c" />
|
||||
<ClCompile Include="..\src\drawing\supports.c" />
|
||||
<ClCompile Include="..\src\editor.c" />
|
||||
<ClCompile Include="..\src\game.c" />
|
||||
<ClCompile Include="..\src\hook.c" />
|
||||
<ClCompile Include="..\src\input.c" />
|
||||
<ClCompile Include="..\src\interface\chat.c" />
|
||||
<ClCompile Include="..\src\interface\colour.c" />
|
||||
<ClCompile Include="..\src\interface\themes.c" />
|
||||
<ClCompile Include="..\src\interface\console.c" />
|
||||
<ClCompile Include="..\src\interface\graph.c" />
|
||||
<ClCompile Include="..\src\interface\keyboard_shortcut.c" />
|
||||
<ClCompile Include="..\src\interface\screenshot.c" />
|
||||
<ClCompile Include="..\src\interface\title_sequences.c" />
|
||||
<ClCompile Include="..\src\interface\viewport.c" />
|
||||
<ClCompile Include="..\src\interface\viewport_interaction.c" />
|
||||
<ClCompile Include="..\src\interface\widget.c" />
|
||||
<ClCompile Include="..\src\interface\window.c" />
|
||||
<ClCompile Include="..\src\intro.c" />
|
||||
<ClCompile Include="..\src\localisation\convert.c" />
|
||||
<ClCompile Include="..\src\localisation\currency.c" />
|
||||
<ClCompile Include="..\src\localisation\date.c" />
|
||||
<ClCompile Include="..\src\localisation\language.cpp" />
|
||||
<ClCompile Include="..\src\localisation\LanguagePack.cpp" />
|
||||
<ClCompile Include="..\src\localisation\localisation.c" />
|
||||
<ClCompile Include="..\src\localisation\real_names.c" />
|
||||
<ClCompile Include="..\src\localisation\user.c" />
|
||||
<ClCompile Include="..\src\localisation\utf8.c" />
|
||||
<ClCompile Include="..\src\management\award.c" />
|
||||
<ClCompile Include="..\src\management\finance.c" />
|
||||
<ClCompile Include="..\src\management\marketing.c" />
|
||||
<ClCompile Include="..\src\management\news_item.c" />
|
||||
<ClCompile Include="..\src\management\research.c" />
|
||||
<ClCompile Include="..\src\network\http.cpp" />
|
||||
<ClCompile Include="..\src\network\network.cpp" />
|
||||
<ClCompile Include="..\src\network\twitch.cpp" />
|
||||
<ClCompile Include="..\src\object.c" />
|
||||
<ClCompile Include="..\src\object_list.c" />
|
||||
<ClCompile Include="..\src\openrct2.c" />
|
||||
<ClCompile Include="..\src\peep\peep.c" />
|
||||
<ClCompile Include="..\src\peep\staff.c" />
|
||||
<ClCompile Include="..\src\platform\linux.c" />
|
||||
<ClCompile Include="..\src\platform\posix.c" />
|
||||
<ClCompile Include="..\src\platform\shared.c" />
|
||||
<ClCompile Include="..\src\platform\windows.c" />
|
||||
<ClCompile Include="..\src\rct1.c" />
|
||||
<ClCompile Include="..\src\rct2.c" />
|
||||
<ClCompile Include="..\src\ride\cable_lift.c" />
|
||||
<ClCompile Include="..\src\ride\ride.c" />
|
||||
<ClCompile Include="..\src\ride\ride_data.c" />
|
||||
<ClCompile Include="..\src\ride\ride_ratings.c" />
|
||||
<ClCompile Include="..\src\ride\station.c" />
|
||||
<ClCompile Include="..\src\ride\track.c" />
|
||||
<ClCompile Include="..\src\ride\track_data.c" />
|
||||
<ClCompile Include="..\src\ride\track_paint.c" />
|
||||
<ClCompile Include="..\src\ride\vehicle.c" />
|
||||
<ClCompile Include="..\src\scenario.c" />
|
||||
<ClCompile Include="..\src\scenario_list.c" />
|
||||
<ClCompile Include="..\src\windows\changelog.c" />
|
||||
<ClCompile Include="..\src\windows\network_status.c" />
|
||||
<ClCompile Include="..\src\windows\player_list.c" />
|
||||
<ClCompile Include="..\src\windows\server_list.c" />
|
||||
<ClCompile Include="..\src\windows\server_start.c" />
|
||||
<ClCompile Include="..\src\windows\title_command_editor.c" />
|
||||
<ClCompile Include="..\src\windows\title_editor.c" />
|
||||
<ClCompile Include="..\src\windows\maze_construction.c" />
|
||||
<ClCompile Include="..\src\world\balloon.c" />
|
||||
<ClCompile Include="..\src\world\duck.c" />
|
||||
<ClCompile Include="..\src\world\money_effect.c" />
|
||||
<ClCompile Include="..\src\world\particle.c" />
|
||||
<ClCompile Include="..\test\management\finance_test.c" />
|
||||
<ClCompile Include="..\test\ride\ride_ratings_test.c" />
|
||||
<ClCompile Include="..\test\tests.c" />
|
||||
<ClCompile Include="..\src\title.c" />
|
||||
<ClCompile Include="..\src\tutorial.c" />
|
||||
<ClCompile Include="..\src\util\sawyercoding.c" />
|
||||
<ClCompile Include="..\src\util\util.c" />
|
||||
<ClCompile Include="..\src\windows\about.c" />
|
||||
<ClCompile Include="..\src\windows\banner.c" />
|
||||
<ClCompile Include="..\src\windows\cheats.c" />
|
||||
<ClCompile Include="..\src\windows\clear_scenery.c" />
|
||||
<ClCompile Include="..\src\windows\demolish_ride_prompt.c" />
|
||||
<ClCompile Include="..\src\windows\dropdown.c" />
|
||||
<ClCompile Include="..\src\windows\editor_bottom_toolbar.c" />
|
||||
<ClCompile Include="..\src\windows\editor_inventions_list.c" />
|
||||
<ClCompile Include="..\src\windows\editor_main.c" />
|
||||
<ClCompile Include="..\src\windows\editor_objective_options.c" />
|
||||
<ClCompile Include="..\src\windows\editor_object_selection.c" />
|
||||
<ClCompile Include="..\src\windows\editor_scenario_options.c" />
|
||||
<ClCompile Include="..\src\windows\error.c" />
|
||||
<ClCompile Include="..\src\windows\finances.c" />
|
||||
<ClCompile Include="..\src\windows\footpath.c" />
|
||||
<ClCompile Include="..\src\windows\game_bottom_toolbar.c" />
|
||||
<ClCompile Include="..\src\windows\guest_list.c" />
|
||||
<ClCompile Include="..\src\windows\install_track.c" />
|
||||
<ClCompile Include="..\src\windows\land.c" />
|
||||
<ClCompile Include="..\src\windows\land_rights.c" />
|
||||
<ClCompile Include="..\src\windows\loadsave.c" />
|
||||
<ClCompile Include="..\src\windows\main.c" />
|
||||
<ClCompile Include="..\src\windows\map.c" />
|
||||
<ClCompile Include="..\src\windows\mapgen.c" />
|
||||
<ClCompile Include="..\src\windows\map_tooltip.c" />
|
||||
<ClCompile Include="..\src\windows\music_credits.c" />
|
||||
<ClCompile Include="..\src\windows\news.c" />
|
||||
<ClCompile Include="..\src\windows\new_campaign.c" />
|
||||
<ClCompile Include="..\src\windows\new_ride.c" />
|
||||
<ClCompile Include="..\src\windows\options.c" />
|
||||
<ClCompile Include="..\src\windows\park.c" />
|
||||
<ClCompile Include="..\src\windows\guest.c" />
|
||||
<ClCompile Include="..\src\windows\publisher_credits.c" />
|
||||
<ClCompile Include="..\src\windows\research.c" />
|
||||
<ClCompile Include="..\src\windows\ride.c" />
|
||||
<ClCompile Include="..\src\windows\ride_construction.c" />
|
||||
<ClCompile Include="..\src\windows\ride_list.c" />
|
||||
<ClCompile Include="..\src\windows\save_prompt.c" />
|
||||
<ClCompile Include="..\src\windows\scenery.c" />
|
||||
<ClCompile Include="..\src\windows\shortcut_keys.c" />
|
||||
<ClCompile Include="..\src\windows\shortcut_key_change.c" />
|
||||
<ClCompile Include="..\src\windows\sign.c" />
|
||||
<ClCompile Include="..\src\windows\staff_fire_prompt.c" />
|
||||
<ClCompile Include="..\src\windows\staff_list.c" />
|
||||
<ClCompile Include="..\src\windows\staff.c" />
|
||||
<ClCompile Include="..\src\windows\text_input.c" />
|
||||
<ClCompile Include="..\src\windows\tile_inspector.c" />
|
||||
<ClCompile Include="..\src\windows\title_exit.c" />
|
||||
<ClCompile Include="..\src\windows\title_logo.c" />
|
||||
<ClCompile Include="..\src\windows\title_menu.c" />
|
||||
<ClCompile Include="..\src\windows\title_options.c" />
|
||||
<ClCompile Include="..\src\windows\title_scenarioselect.c" />
|
||||
<ClCompile Include="..\src\windows\tooltip.c" />
|
||||
<ClCompile Include="..\src\windows\top_toolbar.c" />
|
||||
<ClCompile Include="..\src\windows\track_list.c" />
|
||||
<ClCompile Include="..\src\windows\track_manage.c" />
|
||||
<ClCompile Include="..\src\windows\track_place.c" />
|
||||
<ClCompile Include="..\src\windows\viewport.c" />
|
||||
<ClCompile Include="..\src\windows\water.c" />
|
||||
<ClCompile Include="..\src\windows\themes.c" />
|
||||
<ClCompile Include="..\src\world\banner.c" />
|
||||
<ClCompile Include="..\src\world\climate.c" />
|
||||
<ClCompile Include="..\src\world\footpath.c" />
|
||||
<ClCompile Include="..\src\world\fountain.c" />
|
||||
<ClCompile Include="..\src\world\map.c" />
|
||||
<ClCompile Include="..\src\world\mapgen.c" />
|
||||
<ClCompile Include="..\src\world\map_animation.c" />
|
||||
<ClCompile Include="..\src\world\map_helpers.c" />
|
||||
<ClCompile Include="..\src\world\park.c" />
|
||||
<ClCompile Include="..\src\world\scenery.c" />
|
||||
<ClCompile Include="..\src\world\sprite.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\src\addresses.h" />
|
||||
<ClInclude Include="..\src\audio\audio.h" />
|
||||
<ClInclude Include="..\src\audio\mixer.h" />
|
||||
<ClInclude Include="..\src\cheats.h" />
|
||||
<ClInclude Include="..\src\cmdline.h" />
|
||||
<ClInclude Include="..\src\common.h" />
|
||||
<ClInclude Include="..\src\config.h" />
|
||||
<ClInclude Include="..\src\core\Exception.hpp" />
|
||||
<ClInclude Include="..\src\core\FileStream.hpp" />
|
||||
<ClInclude Include="..\src\core\IDisposable.hpp" />
|
||||
<ClInclude Include="..\src\core\IStream.hpp" />
|
||||
<ClInclude Include="..\src\core\Math.hpp" />
|
||||
<ClInclude Include="..\src\core\Memory.hpp" />
|
||||
<ClInclude Include="..\src\core\StringBuilder.hpp" />
|
||||
<ClInclude Include="..\src\core\StringReader.hpp" />
|
||||
<ClInclude Include="..\src\core\Util.hpp" />
|
||||
<ClInclude Include="..\src\cursors.h" />
|
||||
<ClInclude Include="..\src\diagnostic.h" />
|
||||
<ClInclude Include="..\src\drawing\drawing.h" />
|
||||
<ClInclude Include="..\src\drawing\font.h" />
|
||||
<ClInclude Include="..\src\drawing\supports.h" />
|
||||
<ClInclude Include="..\src\editor.h" />
|
||||
<ClInclude Include="..\src\game.h" />
|
||||
<ClInclude Include="..\src\hook.h" />
|
||||
<ClInclude Include="..\src\input.h" />
|
||||
<ClInclude Include="..\src\interface\chat.h" />
|
||||
<ClInclude Include="..\src\interface\colour.h" />
|
||||
<ClInclude Include="..\src\interface\themes.h" />
|
||||
<ClInclude Include="..\src\interface\console.h" />
|
||||
<ClInclude Include="..\src\interface\graph.h" />
|
||||
<ClInclude Include="..\src\interface\keyboard_shortcut.h" />
|
||||
<ClInclude Include="..\src\interface\screenshot.h" />
|
||||
<ClInclude Include="..\src\interface\title_sequences.h" />
|
||||
<ClInclude Include="..\src\interface\viewport.h" />
|
||||
<ClInclude Include="..\src\interface\widget.h" />
|
||||
<ClInclude Include="..\src\interface\window.h" />
|
||||
<ClInclude Include="..\src\intro.h" />
|
||||
<ClInclude Include="..\src\localisation\currency.h" />
|
||||
<ClInclude Include="..\src\localisation\date.h" />
|
||||
<ClInclude Include="..\src\localisation\format_codes.h" />
|
||||
<ClInclude Include="..\src\localisation\language.h" />
|
||||
<ClInclude Include="..\src\localisation\LanguagePack.h" />
|
||||
<ClInclude Include="..\src\localisation\localisation.h" />
|
||||
<ClInclude Include="..\src\localisation\string_ids.h" />
|
||||
<ClInclude Include="..\src\management\award.h" />
|
||||
<ClInclude Include="..\src\management\finance.h" />
|
||||
<ClInclude Include="..\src\management\marketing.h" />
|
||||
<ClInclude Include="..\src\management\news_item.h" />
|
||||
<ClInclude Include="..\src\management\research.h" />
|
||||
<ClInclude Include="..\src\network\http.h" />
|
||||
<ClInclude Include="..\src\network\twitch.h" />
|
||||
<ClInclude Include="..\src\network\network.h" />
|
||||
<ClInclude Include="..\src\object.h" />
|
||||
<ClInclude Include="..\src\openrct2.h" />
|
||||
<ClInclude Include="..\src\peep\peep.h" />
|
||||
<ClInclude Include="..\src\peep\staff.h" />
|
||||
<ClInclude Include="..\src\platform\platform.h" />
|
||||
<ClInclude Include="..\src\rct1.h" />
|
||||
<ClInclude Include="..\src\rct2.h" />
|
||||
<ClInclude Include="..\src\ride\cable_lift.h" />
|
||||
<ClInclude Include="..\src\ride\ride.h" />
|
||||
<ClInclude Include="..\src\ride\ride_data.h" />
|
||||
<ClInclude Include="..\src\ride\ride_ratings.h" />
|
||||
<ClInclude Include="..\src\ride\station.h" />
|
||||
<ClInclude Include="..\src\ride\track.h" />
|
||||
<ClInclude Include="..\src\ride\track_data.h" />
|
||||
<ClInclude Include="..\src\ride\track_paint.h" />
|
||||
<ClInclude Include="..\src\ride\vehicle.h" />
|
||||
<ClInclude Include="..\src\scenario.h" />
|
||||
<ClInclude Include="..\src\sprites.h" />
|
||||
<ClInclude Include="..\test\management\finance_test.h" />
|
||||
<ClInclude Include="..\test\ride\ride_ratings_test.h" />
|
||||
<ClInclude Include="..\test\tests.h" />
|
||||
<ClInclude Include="..\src\title.h" />
|
||||
<ClInclude Include="..\src\tutorial.h" />
|
||||
<ClInclude Include="..\src\util\sawyercoding.h" />
|
||||
<ClInclude Include="..\src\util\util.h" />
|
||||
<ClInclude Include="..\src\windows\dropdown.h" />
|
||||
<ClInclude Include="..\src\windows\error.h" />
|
||||
<ClInclude Include="..\src\windows\tooltip.h" />
|
||||
<ClInclude Include="..\src\world\banner.h" />
|
||||
<ClInclude Include="..\src\world\climate.h" />
|
||||
<ClInclude Include="..\src\world\entrance.h" />
|
||||
<ClInclude Include="..\src\world\footpath.h" />
|
||||
<ClInclude Include="..\src\world\fountain.h" />
|
||||
<ClInclude Include="..\src\world\map.h" />
|
||||
<ClInclude Include="..\src\world\mapgen.h" />
|
||||
<ClInclude Include="..\src\world\map_animation.h" />
|
||||
<ClInclude Include="..\src\world\map_helpers.h" />
|
||||
<ClInclude Include="..\src\world\park.h" />
|
||||
<ClInclude Include="..\src\world\scenery.h" />
|
||||
<ClInclude Include="..\src\world\sprite.h" />
|
||||
<ClInclude Include="..\src\world\water.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="libs\libs.vcxproj">
|
||||
<Project>{074dc930-05c6-4b7f-b5dd-dd237e6e44db}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{D24D94F6-2A74-480C-B512-629C306CE92F}</ProjectGuid>
|
||||
<RootNamespace>openrct2</RootNamespace>
|
||||
<ProjectName>openrct2</ProjectName>
|
||||
<WindowsTargetPlatformVersion>10.0.10240.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<IncludePath>$(SolutionDir)..\lib;$(SolutionDir)..\lib\libspeex;$(SolutionDir)..\lib\sdl\include;$(SolutionDir)..\lib\libcurl\include;$(SolutionDir)..\lib\jansson;$(SolutionDir)..\lib\cutest;$(SolutionDir)..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)..\lib\sdl\lib\x86;$(SolutionDir)..\lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<IncludePath>$(SolutionDir)..\lib;$(SolutionDir)..\lib\libspeex;$(SolutionDir)..\lib\sdl\include;$(SolutionDir)..\lib\libcurl\include;$(SolutionDir)..\lib\jansson;$(SolutionDir)..\lib\cutest;$(SolutionDir)..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)..\lib\sdl\lib\x86;$(SolutionDir)..\lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<IncludePath>$(SolutionDir)..\lib;$(SolutionDir)..\lib\libspeex;$(SolutionDir)..\lib\sdl\include;$(SolutionDir)..\lib\libcurl\include;$(SolutionDir)..\lib\jansson;$(SolutionDir)..\lib\cutest;$(SolutionDir)..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)..\lib\sdl\lib\x86;$(SolutionDir)..\lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)..\build\$(Configuration)\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<IncludePath>$(SolutionDir)..\lib;$(SolutionDir)..\lib\libspeex;$(SolutionDir)..\lib\sdl\include;$(SolutionDir)..\lib\libcurl\include;$(SolutionDir)..\lib\jansson;$(SolutionDir)..\lib\cutest;$(SolutionDir)..\lib\SDL2_ttf\include;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(SolutionDir)..\lib\sdl\lib\x86;$(SolutionDir)..\lib\libcurl\lib;$(LibraryPath)</LibraryPath>
|
||||
<OutDir>$(SolutionDir)..\build\Release\</OutDir>
|
||||
<IntDir>$(SolutionDir)..\obj\$(ProjectName)\Release\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<PreprocessorDefinitions>DEBUG;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>"$(TargetDir)openrct2.exe" sprite build "$(SolutionDir)..\Data\g2.dat" "$(SolutionDir)..\Resources\g2"
|
||||
xcopy /YS "$(SolutionDir)..\Data" "$(TargetDir)Data"</Command>
|
||||
<Message>Build g2.dat and copy the Data directory.</Message>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Full</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<OmitFramePointers>
|
||||
</OmitFramePointers>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>"$(TargetDir)openrct2.exe" sprite build "$(SolutionDir)..\Data\g2.dat" "$(SolutionDir)..\Resources\g2"
|
||||
xcopy /YS "$(SolutionDir)..\Data" "$(TargetDir)Data"</Command>
|
||||
<Message>Build g2.dat and copy the Data directory.</Message>
|
||||
</PostBuildEvent>
|
||||
<CustomBuildStep>
|
||||
<Command>
|
||||
</Command>
|
||||
</CustomBuildStep>
|
||||
<CustomBuildStep>
|
||||
<Outputs>
|
||||
</Outputs>
|
||||
</CustomBuildStep>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release XP|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Full</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<OmitFramePointers>
|
||||
</OmitFramePointers>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<PreprocessorDefinitions>DISABLE_NETWORK;DISABLE_HTTP;DISABLE_TWITCH;_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>"$(TargetDir)openrct2.exe" sprite build "$(SolutionDir)..\Data\g2.dat" "$(SolutionDir)..\Resources\g2"
|
||||
xcopy /YS "$(SolutionDir)..\Data" "$(TargetDir)Data"</Command>
|
||||
<Message>Build g2.dat and copy the Data directory.</Message>
|
||||
</PostBuildEvent>
|
||||
<CustomBuildStep>
|
||||
<Command>
|
||||
</Command>
|
||||
</CustomBuildStep>
|
||||
<CustomBuildStep>
|
||||
<Outputs>
|
||||
</Outputs>
|
||||
</CustomBuildStep>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release with Tests|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<StructMemberAlignment>1Byte</StructMemberAlignment>
|
||||
<TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
|
||||
<OmitFramePointers>
|
||||
</OmitFramePointers>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;ENABLE_TESTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ObjectFileName>$(IntDir)fake\%(RelativeDir)</ObjectFileName>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>winmm.lib;sdl2.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>"$(TargetDir)openrct2.exe" sprite build "$(SolutionDir)..\Data\g2.dat" "$(SolutionDir)..\Resources\g2"
|
||||
xcopy /YS "$(SolutionDir)..\Data" "$(TargetDir)Data"</Command>
|
||||
<Message>Build g2.dat and copy the Data directory.</Message>
|
||||
</PostBuildEvent>
|
||||
<CustomBuildStep>
|
||||
<Command>
|
||||
</Command>
|
||||
</CustomBuildStep>
|
||||
<CustomBuildStep>
|
||||
<Outputs>
|
||||
</Outputs>
|
||||
</CustomBuildStep>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -1,14 +0,0 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by openrct2.rc
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
@@ -8,7 +8,7 @@ An open source clone of RollerCoaster Tycoon 2 built by decompiling the original
|
||||
Linux Build:
|
||||
[](https://travis-ci.org/OpenRCT2/OpenRCT2)
|
||||
Windows Build:
|
||||
[](https://ci.appveyor.com/project/IntelOrca/openrct2)
|
||||
[](https://ci.appveyor.com/project/IntelOrca/openrct2-ject9)
|
||||
|
||||
Come talk with us if you have any questions:
|
||||
[](https://gitter.im/OpenRCT2/OpenRCT2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
@@ -74,7 +74,7 @@ There is also a Launcher available from [OpenRCT.net](https://openrct.net/downlo
|
||||
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).
|
||||
|
||||
### Windows:
|
||||
- Windows XP / Vista / 7 / 8 / 10
|
||||
- Vista / 7 / 8 / 10
|
||||
- Visual Studio 2015 (Enterprise / Professional / [Community (Free)](https://www.visualstudio.com/products/visual-studio-community-vs))
|
||||
- [Powershell 4.0](http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx).
|
||||
|
||||
@@ -94,13 +94,13 @@ All libs listed here (bar cmake) required in 32 bit variants.
|
||||
## 2.2 Compiling and running
|
||||
### Windows:
|
||||
1. Check out the repository. This can be done using [GitHub Windows](https://windows.github.com/) or [other tools](https://help.github.com/articles/which-remote-url-should-i-use).
|
||||
2. Open the solution in the projects directory (**openrct2.sln**) with Visual Studio.
|
||||
3. [Select the 'Release' configuration](http://msdn.microsoft.com/en-us/library/wx0123s5.aspx) and click Build -> Rebuild Solution. The dropdown menu to enable the 'release' configuration is towards the top of the VS Express window, near the "TEST" menu.
|
||||
4. Start debugging. Press the "Local Windows Debugger" button with a green "play" icon next to it. If Visual Studio shows a warning about *openrct2.exe* not having debug information, press Continue.
|
||||
5. When OpenRCT2 is run for the first time, it creates a settings file in `My Documents/OpenRCT2`. If it can't find the original installation of RCT2, you will need to edit `config.ini` in that folder and change the value of `game_path` to where RCT2 is installed.
|
||||
6. If the game crashes, you may need to press the red, square Stop button along the top of VS Express to stop the program.
|
||||
2. Open a new PowerShell window and navigate to the repository.
|
||||
3. Run the setenv.ps1 script in the repository to setup your PowerShell environment for OpenRCT2 development. This will warn you of any missing applications required to build OpenRCT2.
|
||||
4. Run ```install``` to download the required dependencies to build OpenRCT2.
|
||||
5. Run ```build all``` to build all the required components for OpenRCT2.
|
||||
6. Run ```run``` to run OpenRCT2.
|
||||
|
||||
Alternatively, to simply build the project you can just execute ``build.bat`` within VS2015 Native Tools Command prompt or Github Windows prompt.
|
||||
These PowerShell scripts are stored in ```.\scripts\ps``` and have parameters. Once you have use the build script once, further development can be done within Visual Studio by opening ```openrct2.sln```. The build scripts have several commands allowing you to rebuild certain components such g2.dat or language files.
|
||||
|
||||
### Mac OS X:
|
||||
We support native builds OS X (limited to i386 only for now).
|
||||
|
||||
@@ -52,7 +52,7 @@ if [[ "$needsdownload" = "true" ]]; then
|
||||
if [[ -d $cachedir/orctlibs ]]; then
|
||||
rm -rf $cachedir/orctlibs
|
||||
fi
|
||||
./install.sh
|
||||
scripts/linux/install.sh
|
||||
fi
|
||||
|
||||
pushd build
|
||||
@@ -86,8 +86,10 @@ if [[ $TARGET == "linux" ]] || [[ $TARGET == "docker32" ]]; then
|
||||
fi
|
||||
|
||||
if [[ -z "$DISABLE_G2_BUILD" ]]; then
|
||||
echo Building: data/g2.dat
|
||||
./build_g2.sh > /dev/null 2>&1
|
||||
echo Building: g2.dat
|
||||
pushd build
|
||||
make g2
|
||||
popd
|
||||
fi
|
||||
|
||||
if [[ $TARGET == "windows" ]]; then
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,78 @@
|
||||
#########################################################
|
||||
# Script to build different parts of OpenRCT2
|
||||
#########################################################
|
||||
[CmdletBinding()]
|
||||
param (
|
||||
[Parameter(Mandatory = $false, Position = 1)]
|
||||
[string]$Task = "openrct2",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[string]$Configuration = "Release",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$Rebuild = $false
|
||||
)
|
||||
|
||||
# Setup
|
||||
$ErrorActionPreference = "Stop"
|
||||
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
|
||||
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
|
||||
|
||||
# Get paths
|
||||
$rootPath = Get-RootPath
|
||||
$binPath = Join-Path $rootPath "bin"
|
||||
$openrct2Path = Join-Path $binPath "openrct2.exe"
|
||||
|
||||
function Build-Data()
|
||||
{
|
||||
Write-Host "Copying data to bin..." -ForegroundColor Cyan
|
||||
New-Item -Force -ItemType Directory $binPath > $null
|
||||
Copy-Item -Force -Recurse "$rootPath\data" $binPath
|
||||
return 0
|
||||
}
|
||||
|
||||
function Build-OpenRCT2()
|
||||
{
|
||||
Write-Host "Building OpenRCT2 ($Configuration)..." -ForegroundColor Cyan
|
||||
|
||||
$target = ""
|
||||
if ($Rebuild)
|
||||
{
|
||||
$target = "/t:rebuild"
|
||||
}
|
||||
msbuild $rootPath\openrct2.sln /p:Configuration=$Configuration /p:Platform=Win32 $target /v:minimal | Write-Host
|
||||
return $LASTEXITCODE
|
||||
}
|
||||
|
||||
function Build-G2()
|
||||
{
|
||||
# Check if OpenRCT2 binary exists
|
||||
if (-not (Test-Path $openrct2Path))
|
||||
{
|
||||
Write-Host "You must build OpenRCT2 first before g2.dat can be built." -ForegroundColor Red
|
||||
return 1
|
||||
}
|
||||
|
||||
Write-Host "Building g2.dat..." -ForegroundColor Cyan
|
||||
& $openrct2Path sprite build "$binPath\data\g2.dat" "$rootPath\resources\g2"
|
||||
return $LASTEXITCODE
|
||||
}
|
||||
|
||||
function Build-All()
|
||||
{
|
||||
if (($result = (Build-Data )) -ne 0) { return $result }
|
||||
if (($result = (Build-OpenRCT2)) -ne 0) { return $result }
|
||||
if (($result = (Build-G2 )) -ne 0) { return $result }
|
||||
}
|
||||
|
||||
# Script entry point
|
||||
switch ($Task)
|
||||
{
|
||||
"data" { $result = Build-Data }
|
||||
"openrct2" { $result = Build-OpenRCT2 }
|
||||
"g2" { $result = Build-G2 }
|
||||
"all" { $result = Build-All }
|
||||
default { Write-Host "Unknown build task." -ForegroundColor Red
|
||||
$result = 1 }
|
||||
}
|
||||
exit $result
|
||||
@@ -0,0 +1,29 @@
|
||||
#########################################################
|
||||
# Common functions for OpenRCT2 PowerShell scripts
|
||||
#########################################################
|
||||
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
|
||||
|
||||
function AppExists($app)
|
||||
{
|
||||
$result = (Get-Command $app -CommandType Application -ErrorAction SilentlyContinue)
|
||||
return ($result -ne $null -and $result.Count -gt 0)
|
||||
}
|
||||
|
||||
function AddPath($path)
|
||||
{
|
||||
$env:path = "$path;$env:path"
|
||||
}
|
||||
|
||||
function Get-RootPath()
|
||||
{
|
||||
return Split-Path (Split-Path $scriptsPath)
|
||||
}
|
||||
|
||||
function Prompt-User($message)
|
||||
{
|
||||
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", "Yes"
|
||||
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", "No"
|
||||
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
|
||||
$choice = $host.UI.PromptForChoice("", $message, $options, 1)
|
||||
return ($choice -eq 0)
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
#########################################################
|
||||
# Script to install the latest dependencies for OpenRCT2
|
||||
#########################################################
|
||||
param (
|
||||
[switch]$Force
|
||||
)
|
||||
Write-Host "Installing OpenRCT2 development environment for Windows" -ForegroundColor Cyan
|
||||
|
||||
# Setup
|
||||
$ErrorActionPreference = "Stop"
|
||||
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
|
||||
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
|
||||
|
||||
# Constants
|
||||
$libsUrl = "https://openrct2.website/files/orctlibs-vs.zip"
|
||||
$libsVersion = 4
|
||||
|
||||
# Get paths
|
||||
$rootPath = Get-RootPath
|
||||
$libsPath = Join-Path $rootPath "lib"
|
||||
$zipPath = Join-Path $libsPath "orctlibs.zip"
|
||||
$libsVersionPath = Join-Path $libsPath "libversion"
|
||||
|
||||
# Check if we need to update the dependencies
|
||||
$currentLibsVersion = 0
|
||||
$updateLibs = $true
|
||||
if (Test-Path $libsVersionPath)
|
||||
{
|
||||
$currentLibsVersion = [IO.File]::ReadAllText($libsVersionPath)
|
||||
}
|
||||
if ($currentLibsVersion -ge $libsVersion)
|
||||
{
|
||||
$updateLibs = $false
|
||||
}
|
||||
|
||||
# Check if user needs to download dependencies
|
||||
$libsPathExists = Test-Path $libsPath
|
||||
if ($libsPathExists -and -not $updateLibs -and -not $Force)
|
||||
{
|
||||
if (Prompt-User "Dependencies already exists, reinstall?")
|
||||
{
|
||||
$updateLibs = $true
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$updateLibs = $true
|
||||
}
|
||||
|
||||
# Download latest version of the dependencies
|
||||
if ($updateLibs) {
|
||||
Write-Host "Updating dependencies..." -ForegroundColor Cyan
|
||||
|
||||
Remove-Item -Force -Recurse $libsPath -ErrorAction SilentlyContinue
|
||||
New-Item -Force -ItemType Directory $libsPath > $null
|
||||
|
||||
Invoke-WebRequest $libsUrl -OutFile $zipPath
|
||||
[System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipPath, $libsPath)
|
||||
Remove-Item $zipPath -Force -ErrorAction SilentlyContinue
|
||||
$libsVersion | Set-Content $libsVersionPath
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
#########################################################
|
||||
# Script to build and package OpenRCT2
|
||||
# - Sets the source code preprocessor defines
|
||||
# - Builds a clean release of OpenRCT2
|
||||
# - Creates a ZIP for distribution
|
||||
#########################################################
|
||||
param (
|
||||
[string]$Server = "",
|
||||
[string]$BuildNumber = "",
|
||||
[string]$GitBranch = "",
|
||||
[switch]$Installer = $false
|
||||
)
|
||||
|
||||
# Setup
|
||||
$ErrorActionPreference = "Stop"
|
||||
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
|
||||
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
|
||||
|
||||
# Get paths
|
||||
$rootPath = Get-RootPath
|
||||
|
||||
# Set build attributes
|
||||
function do-prepareSource()
|
||||
{
|
||||
Write-Host "Setting build #defines..." -ForegroundColor Cyan
|
||||
if ($GitBranch -eq "")
|
||||
{
|
||||
$GitBranch = (git rev-parse --abbrev-ref HEAD)
|
||||
}
|
||||
$GitCommitSha1 = (git rev-parse HEAD)
|
||||
$GitCommitSha1Short = (git rev-parse --short HEAD)
|
||||
|
||||
$defines = @{ }
|
||||
$defines["OPENRCT2_BUILD_NUMBER"] = $BuildNumber;
|
||||
$defines["OPENRCT2_BUILD_SERVER"] = $Server;
|
||||
$defines["OPENRCT2_BRANCH"] = $GitBranch;
|
||||
$defines["OPENRCT2_COMMIT_SHA1"] = $GitCommitSha1;
|
||||
$defines["OPENRCT2_COMMIT_SHA1_SHORT"] = $GitCommitSha1Short;
|
||||
|
||||
$defineString = ""
|
||||
foreach ($key in $defines.Keys) {
|
||||
$value = $defines[$key]
|
||||
if ($value -is [System.String]) {
|
||||
$value = $value.Replace('"', '\"')
|
||||
}
|
||||
$defineString += "$key=""$value"";";
|
||||
}
|
||||
|
||||
# Set the environment variable which the msbuild project will use
|
||||
$env:OPENRCT2_DEFINES = $defineString;
|
||||
}
|
||||
|
||||
# Building OpenRCT2
|
||||
function do-build()
|
||||
{
|
||||
Write-Host "Building OpenRCT2..." -ForegroundColor Cyan
|
||||
& "$scriptsPath\build.ps1" all -Rebuild
|
||||
}
|
||||
|
||||
# Package
|
||||
function do-package()
|
||||
{
|
||||
Write-Host "Publishing OpenRCT2..." -ForegroundColor Cyan
|
||||
$releaseDir = "$rootPath\bin"
|
||||
$distDir = "$rootPath\distribution"
|
||||
$tempDir = "$rootPath\artifacts\temp"
|
||||
$outZip = "$rootPath\artifacts\openrct2.zip"
|
||||
|
||||
# Create new temp directory
|
||||
Remove-Item -Force -Recurse $tempDir -ErrorAction SilentlyContinue
|
||||
New-Item -Force -ItemType Directory $tempDir > $null
|
||||
|
||||
# Copy files to be archived
|
||||
Copy-Item -Force -Recurse "$releaseDir\data" $tempDir -ErrorAction Stop
|
||||
Copy-Item -Force "$releaseDir\openrct2.exe" $tempDir -ErrorAction Stop
|
||||
Copy-Item -Force "$releaseDir\openrct2.dll" $tempDir -ErrorAction Stop
|
||||
Copy-Item -Force "$releaseDir\curl-ca-bundle.crt" $tempDir -ErrorAction Stop
|
||||
Copy-Item -Force "$releaseDir\SDL2.dll" $tempDir -ErrorAction Stop
|
||||
Copy-Item -Force "$distDir\changelog.txt" $tempDir -ErrorAction Stop
|
||||
Copy-Item -Force "$distDir\known_issues.txt" $tempDir -ErrorAction Stop
|
||||
Copy-Item -Force "$distDir\readme.txt" $tempDir -ErrorAction Stop
|
||||
|
||||
# Create archive using 7z (renowned for speed and compression)
|
||||
$7zcmd = "7za"
|
||||
if (-not (AppExists($7zcmd)))
|
||||
{
|
||||
# AppVeyor in particular uses '7z' instead
|
||||
$7zcmd = "7z"
|
||||
if (-not (AppExists($7zcmd)))
|
||||
{
|
||||
Write-Host "Publish script requires 7z to be in PATH" -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
& $7zcmd a -tzip -mx9 $outZip "$tempDir\*"
|
||||
|
||||
# Remove temp directory
|
||||
Remove-Item -Force -Recurse $tempDir -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Installer
|
||||
function do-installer()
|
||||
{
|
||||
Write-Host "Publishing OpenRCT2..." -ForegroundColor Cyan
|
||||
$artifactsDir = "$rootPath\artifacts"
|
||||
$installerDir = "$rootPath\distribution\windows"
|
||||
|
||||
# Create artifacts directory
|
||||
New-Item -Force -ItemType Directory $artifactsDir > $null
|
||||
|
||||
# Create installer
|
||||
& "$installerDir\build.ps1"
|
||||
if ($LASTEXITCODE -ne 0)
|
||||
{
|
||||
Write-Host "Failed to create installer." -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
$binaries = (Get-ChildItem "$installerDir\*.exe" | Sort-Object -Property LastWriteTime -Descending)
|
||||
if ($binaries -eq 0)
|
||||
{
|
||||
Write-Host "Unable to find created installer." -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
|
||||
Copy-Item $binaries[0].FullName $artifactsDir
|
||||
}
|
||||
|
||||
do-prepareSource
|
||||
do-build
|
||||
if ($Installer)
|
||||
{
|
||||
do-installer
|
||||
}
|
||||
else
|
||||
{
|
||||
do-package
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
$scriptsPath = Split-Path $Script:MyInvocation.MyCommand.Path
|
||||
$rootPath = Split-Path (Split-Path $scriptsPath)
|
||||
&("$rootPath\bin\openrct2.exe") $args
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
###########################################################
|
||||
# Setups a PowerShell environment for OpenRCT2 development
|
||||
###########################################################
|
||||
|
||||
# Setup
|
||||
$ErrorActionPreference = "Stop"
|
||||
$rootPath = Split-Path $Script:MyInvocation.MyCommand.Path
|
||||
$scriptsPath = "$rootPath\scripts\ps"
|
||||
Import-Module "$scriptsPath\common.psm1" -DisableNameChecking
|
||||
|
||||
Write-Host "Setting up OpenRCT2 development environment for Windows" -ForegroundColor Cyan
|
||||
|
||||
$appExists = @{}
|
||||
$appExists["msbuild"] = AppExists("msbuild");
|
||||
$appExists["7za"] = AppExists("7za");
|
||||
$appExists["7z"] = AppExists("7z");
|
||||
|
||||
if (-not $appExists["msbuild"])
|
||||
{
|
||||
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64")
|
||||
{
|
||||
$lookPath = Join-Path ${env:ProgramFiles(x86)} "MSBuild\14.0\Bin\amd64\MSBuild.exe"
|
||||
}
|
||||
else
|
||||
{
|
||||
$lookPath = Join-Path $env:ProgramFiles "MSBuild\14.0\Bin\MSBuild.exe"
|
||||
}
|
||||
if (Test-Path $lookPath)
|
||||
{
|
||||
AddPath(Split-Path $lookPath)
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Warning: msbuild not found, please include it in your PATH" -ForegroundColor Yellow
|
||||
}
|
||||
}
|
||||
|
||||
AddPath($scriptsPath)
|
||||
+5
-5
@@ -368,7 +368,7 @@ static void game_handle_input_mouse(int x, int y, int state)
|
||||
if (w == NULL)
|
||||
break;
|
||||
|
||||
window_event_tool_drag_call(w, RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint32), x, y);
|
||||
window_event_tool_drag_call(w, RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16), x, y);
|
||||
}
|
||||
else if (state == 2){
|
||||
|
||||
@@ -1016,7 +1016,7 @@ static void input_widget_left(int x, int y, rct_window *w, int widgetIndex)
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, rct_windownumber)
|
||||
);
|
||||
if (w != NULL) {
|
||||
window_event_tool_down_call(w, RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint32), x, y);
|
||||
window_event_tool_down_call(w, RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16), x, y);
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) |= INPUT_FLAG_4;
|
||||
}
|
||||
}
|
||||
@@ -1157,14 +1157,14 @@ void process_mouse_tool(int x, int y)
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE)
|
||||
{
|
||||
rct_window* w = window_find_by_number(
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8),
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, uint16)
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass),
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, rct_windownumber)
|
||||
);
|
||||
|
||||
if (!w)
|
||||
tool_cancel();
|
||||
else
|
||||
window_event_tool_update_call(w, RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint32), x, y);
|
||||
window_event_tool_update_call(w, RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16), x, y);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -748,7 +748,7 @@ static int cc_load_object(const utf8 **argv, int argc) {
|
||||
if (argc > 0) {
|
||||
utf8 path[260];
|
||||
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), argv[0]);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), argv[0]);
|
||||
// Require pointer to start of filename
|
||||
utf8* last_char = path + strlen(path);
|
||||
strcat(path, ".DAT\0");
|
||||
|
||||
@@ -101,7 +101,7 @@ void viewport_init_all()
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_ACTIVE_VIEWPORT_PTR_ARRAY, rct_viewport*) = NULL;
|
||||
|
||||
// ?
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, sint32) = 0;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) = 0;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_STATE, sint8) = INPUT_STATE_RESET;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURSOR_DOWN_WINDOWCLASS, rct_windowclass) = -1;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_PICKEDUP_PEEP_SPRITE, sint32) = -1;
|
||||
|
||||
@@ -1014,7 +1014,7 @@ int widget_is_active_tool(rct_window *w, int widgetIndex)
|
||||
return 0;
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, rct_windownumber) != w->number)
|
||||
return 0;
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, sint32) != widgetIndex)
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) != widgetIndex)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -1778,7 +1778,7 @@ void tool_cancel()
|
||||
// Reset map selection
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_FLAGS, uint16) = 0;
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, sint16) >= 0) {
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) >= 0) {
|
||||
// Invalidate tool widget
|
||||
widget_invalidate_by_number(
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass),
|
||||
|
||||
+4
-4
@@ -59,7 +59,7 @@ int object_load_file(int groupIndex, const rct_object_entry *entry, int* chunkSi
|
||||
char path[MAX_PATH];
|
||||
SDL_RWops* rw;
|
||||
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), (char*)installedObject + 16);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), (char*)installedObject + 16);
|
||||
|
||||
log_verbose("loading object, %s", path);
|
||||
|
||||
@@ -296,7 +296,7 @@ int object_load_packed(SDL_RWops* rw)
|
||||
objectPath[i] = '\0';
|
||||
}
|
||||
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), objectPath);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), objectPath);
|
||||
// Require pointer to start of filename
|
||||
char* last_char = path + strlen(path);
|
||||
strcat(path, ".DAT");
|
||||
@@ -306,7 +306,7 @@ int object_load_packed(SDL_RWops* rw)
|
||||
for (; platform_file_exists(path);){
|
||||
for (char* curr_char = last_char - 1;; --curr_char){
|
||||
if (*curr_char == '\\'){
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), "00000000.DAT");
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), "00000000.DAT");
|
||||
char* last_char = path + strlen(path);
|
||||
break;
|
||||
}
|
||||
@@ -1541,7 +1541,7 @@ int object_get_scenario_text(rct_object_entry *entry)
|
||||
|
||||
char path[MAX_PATH];
|
||||
char *objectPath = (char*)installedObject + 16;
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), objectPath);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), objectPath);
|
||||
|
||||
rct_object_entry openedEntry;
|
||||
SDL_RWops* rw = SDL_RWFromFile(path, "rb");
|
||||
|
||||
+1
-1
@@ -313,7 +313,7 @@ void object_list_load()
|
||||
}
|
||||
|
||||
char path[MAX_PATH];
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), enumFileInfo.path);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), enumFileInfo.path);
|
||||
|
||||
rct_object_entry entry;
|
||||
if (!object_load_entry(path, &entry))
|
||||
|
||||
@@ -98,7 +98,7 @@ void platform_posix_sub_user_data_path(char *buffer, const char *homedir, const
|
||||
exit(-1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
strncat(buffer, homedir, MAX_PATH - 1);
|
||||
strncat(buffer, separator, MAX_PATH - strnlen(buffer, MAX_PATH) - 1);
|
||||
strncat(buffer, ".config", MAX_PATH - strnlen(buffer, MAX_PATH) - 1);
|
||||
@@ -121,11 +121,17 @@ void platform_posix_sub_user_data_path(char *buffer, const char *homedir, const
|
||||
*/
|
||||
void platform_posix_sub_resolve_openrct_data_path(utf8 *out) {
|
||||
static const utf8 *searchLocations[] = {
|
||||
"../share/openrct2",
|
||||
#ifdef ORCT2_RESOURCE_DIR
|
||||
// defined in CMakeLists.txt
|
||||
ORCT2_RESOURCE_DIR,
|
||||
#endif // ORCT2_RESOURCE_DIR
|
||||
"/var/lib/openrct2",
|
||||
"/usr/share/openrct2",
|
||||
};
|
||||
for (size_t i = 0; i < countof(searchLocations); i++)
|
||||
{
|
||||
log_verbose("Looking for OpenRCT2 data in %s", searchLocations[i]);
|
||||
if (platform_directory_exists(searchLocations[i]))
|
||||
{
|
||||
out[0] = '\0';
|
||||
|
||||
@@ -602,14 +602,17 @@ void platform_resolve_openrct_data_path()
|
||||
|
||||
strncat(buffer, separator, MAX_PATH - strnlen(buffer, MAX_PATH) - 1);
|
||||
strncat(buffer, "data", MAX_PATH - strnlen(buffer, MAX_PATH) - 1);
|
||||
log_verbose("Looking for OpenRCT2 data in %s", buffer);
|
||||
if (platform_directory_exists(buffer))
|
||||
{
|
||||
_openrctDataDirectoryPath[0] = '\0';
|
||||
safe_strncpy(_openrctDataDirectoryPath, buffer, MAX_PATH);
|
||||
log_verbose("Found OpenRCT2 data in %s", _openrctDataDirectoryPath);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
platform_posix_sub_resolve_openrct_data_path(_openrctDataDirectoryPath);
|
||||
log_verbose("Trying to use OpenRCT2 data in %s", _openrctDataDirectoryPath);
|
||||
}
|
||||
|
||||
void platform_get_user_directory(utf8 *outPath, const utf8 *subDirectory)
|
||||
|
||||
+1
-1
@@ -195,7 +195,7 @@ int rct2_init_directories()
|
||||
return 1;
|
||||
}
|
||||
|
||||
void subsitute_path(char *dest, const char *path, const char *filename)
|
||||
void substitute_path(char *dest, const char *path, const char *filename)
|
||||
{
|
||||
while (*path != '*') {
|
||||
*dest++ = *path++;
|
||||
|
||||
+2
-23
@@ -111,29 +111,8 @@ typedef utf16* utf16string;
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
|
||||
#define OPENRCT2_NAME "OpenRCT2"
|
||||
#define OPENRCT2_VERSION "0.0.4"
|
||||
#define OPENRCT2_ARCHITECTURE "x86"
|
||||
#ifdef _WIN32
|
||||
#define OPENRCT2_PLATFORM "Windows"
|
||||
#endif // _WIN32
|
||||
#ifdef __linux__
|
||||
#define OPENRCT2_PLATFORM "Linux"
|
||||
#endif
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
#define OPENRCT2_PLATFORM "OS X"
|
||||
#endif
|
||||
#ifndef OPENRCT2_PLATFORM
|
||||
#error Unknown platform!
|
||||
#endif
|
||||
#define OPENRCT2_TIMESTAMP __DATE__ " " __TIME__
|
||||
#include "version.h"
|
||||
|
||||
// The following constants are for automated build servers
|
||||
#define OPENRCT2_BUILD_NUMBER ""
|
||||
#define OPENRCT2_BUILD_SERVER ""
|
||||
#define OPENRCT2_BRANCH "develop"
|
||||
#define OPENRCT2_COMMIT_SHA1 ""
|
||||
#define OPENRCT2_COMMIT_SHA1_SHORT ""
|
||||
#define OPENRCT2_MASTER_SERVER_URL "https://servers.openrct2.website"
|
||||
|
||||
// Represent fixed point numbers. dp = decimal point
|
||||
@@ -315,7 +294,7 @@ int rct2_init();
|
||||
void rct2_update();
|
||||
void rct2_draw();
|
||||
void rct2_endupdate();
|
||||
void subsitute_path(char *dest, const char *path, const char *filename);
|
||||
void substitute_path(char *dest, const char *path, const char *filename);
|
||||
int check_mutex();
|
||||
int check_file_paths();
|
||||
int check_file_path(int pathId);
|
||||
|
||||
+2
-2
@@ -1604,7 +1604,7 @@ static int ride_modify_entrance_or_exit(rct_map_element *mapElement, int x, int
|
||||
sub_6C9627();
|
||||
if (
|
||||
_rideConstructionState != RIDE_CONSTRUCTION_STATE_ENTRANCE_EXIT ||
|
||||
!(RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8) & INPUT_FLAG_TOOL_ACTIVE) ||
|
||||
!(RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) ||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) != WC_RIDE_CONSTRUCTION
|
||||
) {
|
||||
// Replace entrance / exit
|
||||
@@ -1612,7 +1612,7 @@ static int ride_modify_entrance_or_exit(rct_map_element *mapElement, int x, int
|
||||
RCT2_GLOBAL(0x00F44191, uint8) = entranceType;
|
||||
RCT2_GLOBAL(0x00F44192, uint8) = rideIndex;
|
||||
RCT2_GLOBAL(0x00F44193, uint8) = bl;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8) |= INPUT_FLAG_6;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) |= INPUT_FLAG_6;
|
||||
if (_rideConstructionState != RIDE_CONSTRUCTION_STATE_ENTRANCE_EXIT) {
|
||||
RCT2_GLOBAL(0x00F440CC, uint8) = _rideConstructionState;
|
||||
_rideConstructionState = RIDE_CONSTRUCTION_STATE_ENTRANCE_EXIT;
|
||||
|
||||
+9
-9
@@ -439,7 +439,7 @@ void track_load_list(ride_list_item item)
|
||||
if (new_file_pointer > new_track_file + 0x3FF00)break;
|
||||
|
||||
char path[MAX_PATH];
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), enumFileInfo.path);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), enumFileInfo.path);
|
||||
|
||||
rct_track_td6* loaded_track = load_track_design(path);
|
||||
if (loaded_track){
|
||||
@@ -2269,7 +2269,7 @@ rct_track_design *track_get_info(int index, uint8** preview)
|
||||
RCT2_ADDRESS(RCT2_ADDRESS_TRACK_DESIGN_INDEX_CACHE, uint32)[i] = index;
|
||||
|
||||
char track_path[MAX_PATH] = { 0 };
|
||||
subsitute_path(track_path, (char*)RCT2_ADDRESS_TRACKS_PATH, (char *)trackDesignList + (index * 128));
|
||||
substitute_path(track_path, (char*)RCT2_ADDRESS_TRACKS_PATH, (char *)trackDesignList + (index * 128));
|
||||
|
||||
rct_track_td6* loaded_track = NULL;
|
||||
|
||||
@@ -2324,13 +2324,13 @@ int track_rename(const char *text)
|
||||
}
|
||||
|
||||
char new_path[MAX_PATH];
|
||||
subsitute_path(new_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), text);
|
||||
substitute_path(new_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), text);
|
||||
strcat(new_path, ".TD6");
|
||||
|
||||
rct_window* w = window_find_by_class(WC_TRACK_DESIGN_LIST);
|
||||
|
||||
char old_path[MAX_PATH];
|
||||
subsitute_path(old_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), &RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, char)[128 * w->track_list.var_482]);
|
||||
substitute_path(old_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), &RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, char)[128 * w->track_list.var_482]);
|
||||
|
||||
if (!platform_file_move(old_path, new_path)) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_GAME_COMMAND_ERROR_TEXT, uint16) = STR_ANOTHER_FILE_EXISTS_WITH_NAME_OR_FILE_IS_WRITE_PROTECTED;
|
||||
@@ -2359,7 +2359,7 @@ int track_delete()
|
||||
rct_window* w = window_find_by_class(WC_TRACK_DESIGN_LIST);
|
||||
|
||||
char path[MAX_PATH];
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), &RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, char)[128 * w->track_list.var_482]);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), &RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, char)[128 * w->track_list.var_482]);
|
||||
|
||||
if (!platform_file_delete(path)) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_GAME_COMMAND_ERROR_TEXT, uint16) = STR_FILE_IS_WRITE_PROTECTED_OR_LOCKED;
|
||||
@@ -3074,7 +3074,7 @@ int save_track_design(uint8 rideIndex){
|
||||
format_string(track_name, ride->name, &ride->name_arguments);
|
||||
|
||||
char path[MAX_PATH];
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), track_name);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), track_name);
|
||||
|
||||
strcat(path, ".TD6");
|
||||
|
||||
@@ -3221,7 +3221,7 @@ int install_track(char* source_path, char* dest_name){
|
||||
strcat(track_name, ".TD4");
|
||||
|
||||
char dest_path[MAX_PATH];
|
||||
subsitute_path(dest_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), track_name);
|
||||
substitute_path(dest_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), track_name);
|
||||
|
||||
if (platform_file_exists(dest_path))
|
||||
return 2;
|
||||
@@ -3232,13 +3232,13 @@ int install_track(char* source_path, char* dest_name){
|
||||
// Check if .TD6 file exists under that name
|
||||
strcat(track_name, ".TD6");
|
||||
|
||||
subsitute_path(dest_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), track_name);
|
||||
substitute_path(dest_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), track_name);
|
||||
|
||||
if (platform_file_exists(dest_path))
|
||||
return 2;
|
||||
|
||||
// Set path for actual copy
|
||||
subsitute_path(dest_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), dest_name);
|
||||
substitute_path(dest_path, RCT2_ADDRESS(RCT2_ADDRESS_TRACKS_PATH, char), dest_name);
|
||||
|
||||
return platform_file_copy(source_path, dest_path, false);
|
||||
}
|
||||
|
||||
+2
-2
@@ -228,7 +228,7 @@ int scenario_load_and_play(const rct_scenario_basic *scenario)
|
||||
{
|
||||
char path[MAX_PATH];
|
||||
|
||||
subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), scenario->path);
|
||||
substitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), scenario->path);
|
||||
return scenario_load_and_play_from_path(path);
|
||||
}
|
||||
|
||||
@@ -417,7 +417,7 @@ void scenario_end()
|
||||
|
||||
void scenario_set_filename(const char *value)
|
||||
{
|
||||
subsitute_path(_scenarioPath, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), value);
|
||||
substitute_path(_scenarioPath, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), value);
|
||||
_scenarioFileName = path_get_filename(_scenarioPath);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -83,7 +83,7 @@ static void scenario_list_add(const char *path)
|
||||
rct_s6_info s6Info;
|
||||
|
||||
// Get absolute path
|
||||
subsitute_path(scenarioPath, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), path);
|
||||
substitute_path(scenarioPath, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), path);
|
||||
|
||||
// Load the basic scenario information
|
||||
if (!scenario_load_basic(scenarioPath, &s6Header, &s6Info))
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
#ifndef _VERSION_H_
|
||||
#define _VERSION_H_
|
||||
|
||||
#define OPENRCT2_NAME "OpenRCT2"
|
||||
#define OPENRCT2_VERSION "0.0.4"
|
||||
#define OPENRCT2_ARCHITECTURE "x86"
|
||||
|
||||
// Platform
|
||||
#ifdef _WIN32
|
||||
#define OPENRCT2_PLATFORM "Windows"
|
||||
#endif // _WIN32
|
||||
#ifdef __linux__
|
||||
#define OPENRCT2_PLATFORM "Linux"
|
||||
#endif
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
#define OPENRCT2_PLATFORM "OS X"
|
||||
#endif
|
||||
#ifndef OPENRCT2_PLATFORM
|
||||
#error Unknown platform!
|
||||
#endif
|
||||
|
||||
#define OPENRCT2_TIMESTAMP __DATE__ " " __TIME__
|
||||
|
||||
// The following constants are for automated build servers
|
||||
#ifndef OPENRCT2_BUILD_NUMBER
|
||||
#define OPENRCT2_BUILD_NUMBER ""
|
||||
#endif
|
||||
#ifndef OPENRCT2_BUILD_SERVER
|
||||
#define OPENRCT2_BUILD_SERVER ""
|
||||
#endif
|
||||
#ifndef OPENRCT2_BRANCH
|
||||
#define OPENRCT2_BRANCH "develop"
|
||||
#endif
|
||||
#ifndef OPENRCT2_COMMIT_SHA1
|
||||
#define OPENRCT2_COMMIT_SHA1 ""
|
||||
#endif
|
||||
#ifndef OPENRCT2_COMMIT_SHA1_SHORT
|
||||
#define OPENRCT2_COMMIT_SHA1_SHORT ""
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -332,7 +332,7 @@ static int show_save_scenario_dialog(char *resultPath)
|
||||
|
||||
|
||||
format_string(title, STR_SAVE_SCENARIO, NULL);
|
||||
subsitute_path(filename, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), s6Info->name);
|
||||
substitute_path(filename, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), s6Info->name);
|
||||
strcat(filename, ".SC6");
|
||||
format_string(filterName, STR_RCT2_SCENARIO_FILE, NULL);
|
||||
|
||||
|
||||
+11
-11
@@ -184,7 +184,7 @@ static void window_install_track_select(rct_window *w, int index)
|
||||
1);
|
||||
|
||||
char track_path[MAX_PATH] = { 0 };
|
||||
subsitute_path(track_path, (char*)RCT2_ADDRESS_TRACKS_PATH, trackDesignItem);
|
||||
substitute_path(track_path, (char*)RCT2_ADDRESS_TRACKS_PATH, trackDesignItem);
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_TRACK_MANAGER) {
|
||||
window_track_manage_open();
|
||||
@@ -291,7 +291,7 @@ static void window_install_track_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
uint16 holes, speed, drops, dropHeight, inversions;
|
||||
fixed32_2dp rating;
|
||||
int x, y, colour, gForces, airTime;
|
||||
rct_g1_element tmpElement, *subsituteElement;
|
||||
rct_g1_element tmpElement, *substituteElement;
|
||||
|
||||
window_draw_widgets(w, dpi);
|
||||
|
||||
@@ -312,16 +312,16 @@ static void window_install_track_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
|
||||
rct_track_td6* track_td6 = &trackDesign->track_td6;
|
||||
|
||||
subsituteElement = &g1Elements[0];
|
||||
tmpElement = *subsituteElement;
|
||||
subsituteElement->offset = image;
|
||||
subsituteElement->width = 370;
|
||||
subsituteElement->height = 217;
|
||||
subsituteElement->x_offset = 0;
|
||||
subsituteElement->y_offset = 0;
|
||||
subsituteElement->flags = G1_FLAG_BMP;
|
||||
substituteElement = &g1Elements[0];
|
||||
tmpElement = *substituteElement;
|
||||
substituteElement->offset = image;
|
||||
substituteElement->width = 370;
|
||||
substituteElement->height = 217;
|
||||
substituteElement->x_offset = 0;
|
||||
substituteElement->y_offset = 0;
|
||||
substituteElement->flags = G1_FLAG_BMP;
|
||||
gfx_draw_sprite(dpi, 0, x, y, 0);
|
||||
*subsituteElement = tmpElement;
|
||||
*substituteElement = tmpElement;
|
||||
|
||||
x = w->x + (widget->left + widget->right) / 2;
|
||||
y = w->y + widget->bottom - 12;
|
||||
|
||||
+3
-3
@@ -741,8 +741,8 @@ static void window_map_invalidate(rct_window *w)
|
||||
// scenario editor: build park entrance selected, show rotate button
|
||||
if (
|
||||
(RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8) == WC_MAP &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint8) == WIDX_BUILD_PARK_ENTRANCE
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) == WC_MAP &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == WIDX_BUILD_PARK_ENTRANCE
|
||||
) {
|
||||
w->widgets[WIDX_ROTATE_90].type = WWT_FLATBTN;
|
||||
}
|
||||
@@ -756,7 +756,7 @@ static void window_map_invalidate(rct_window *w)
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8) == WC_MAP
|
||||
) {
|
||||
// if not in set land rights mode: show the default scenario editor buttons
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint8) != WIDX_SET_LAND_RIGHTS) {
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) != WIDX_SET_LAND_RIGHTS) {
|
||||
window_map_show_default_scenario_editor_buttons(w);
|
||||
} else { // if in set land rights mode: show land tool buttons + modes
|
||||
w->widgets[WIDX_LAND_TOOL].type = WWT_IMGBTN;
|
||||
|
||||
@@ -81,7 +81,7 @@ void window_map_tooltip_update_visibility()
|
||||
|
||||
cursorX = RCT2_GLOBAL(0x0142406C, sint32);
|
||||
cursorY = RCT2_GLOBAL(0x01424070, sint32);
|
||||
inputFlags = RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8);
|
||||
inputFlags = RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32);
|
||||
|
||||
// Check for cursor movement
|
||||
_cursorHoldDuration++;
|
||||
|
||||
@@ -311,7 +311,7 @@ static void window_maze_construction_update(rct_window *w)
|
||||
case RIDE_CONSTRUCTION_STATE_BACK:
|
||||
case RIDE_CONSTRUCTION_STATE_SELECTED:
|
||||
if (
|
||||
(RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8) & INPUT_FLAG_TOOL_ACTIVE) &&
|
||||
(RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) == WC_RIDE_CONSTRUCTION
|
||||
) {
|
||||
tool_cancel();
|
||||
@@ -386,7 +386,7 @@ static void window_maze_construction_entrance_tooldown(int x, int y, rct_window*
|
||||
else{
|
||||
RCT2_GLOBAL(0x00F44191, uint8) = is_exit ^ 1;
|
||||
window_invalidate_by_class(WC_RIDE_CONSTRUCTION);
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint8) = is_exit ? WIDX_MAZE_ENTRANCE : WIDX_MAZE_EXIT;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) = is_exit ? WIDX_MAZE_ENTRANCE : WIDX_MAZE_EXIT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1266,7 +1266,7 @@ rct_window *window_ride_open_station(int rideIndex, int stationIndex)
|
||||
}
|
||||
|
||||
if (
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8) & INPUT_FLAG_TOOL_ACTIVE &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) == w->classification &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, rct_windownumber) == w->number
|
||||
) {
|
||||
@@ -1345,7 +1345,7 @@ rct_window *window_ride_open_vehicle(rct_vehicle *vehicle)
|
||||
window_invalidate(w);
|
||||
|
||||
if (
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8) & INPUT_FLAG_TOOL_ACTIVE &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) == w->classification &&
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, rct_windownumber) == w->number
|
||||
) {
|
||||
|
||||
@@ -1862,7 +1862,7 @@ static void window_ride_construction_entrance_click(rct_window *w)
|
||||
RCT2_GLOBAL(0x00F44191, uint8) = 0;
|
||||
RCT2_GLOBAL(0x00F44192, uint8) = w->number & 0xFF;
|
||||
RCT2_GLOBAL(0x00F44193, uint8) = 0;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8) |= INPUT_FLAG_6;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) |= INPUT_FLAG_6;
|
||||
sub_6C9627();
|
||||
if (_rideConstructionState != RIDE_CONSTRUCTION_STATE_ENTRANCE_EXIT) {
|
||||
RCT2_GLOBAL(0x00F440CC, uint8) = _rideConstructionState;
|
||||
@@ -1886,7 +1886,7 @@ static void window_ride_construction_exit_click(rct_window *w)
|
||||
RCT2_GLOBAL(0x00F44191, uint8) = 1;
|
||||
RCT2_GLOBAL(0x00F44192, uint8) = w->number & 0xFF;
|
||||
RCT2_GLOBAL(0x00F44193, uint8) = 0;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint8) |= INPUT_FLAG_6;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) |= INPUT_FLAG_6;
|
||||
sub_6C9627();
|
||||
if (_rideConstructionState != RIDE_CONSTRUCTION_STATE_ENTRANCE_EXIT) {
|
||||
RCT2_GLOBAL(0x00F440CC, uint8) = _rideConstructionState;
|
||||
|
||||
@@ -488,7 +488,7 @@ void window_scenery_open()
|
||||
*/
|
||||
bool window_scenery_is_scenery_tool_active() {
|
||||
int toolWindowClassification = RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass);
|
||||
int toolWidgetIndex = RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, rct_windownumber);
|
||||
int toolWidgetIndex = RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16);
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE)
|
||||
if (toolWindowClassification == WC_TOP_TOOLBAR && toolWidgetIndex == 9) // 9 is WIDX_SCENERY
|
||||
|
||||
@@ -3117,7 +3117,7 @@ void toggle_footpath_window()
|
||||
*/
|
||||
void toggle_land_window(rct_window *topToolbar, int widgetIndex)
|
||||
{
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8) == 1 && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == 7) {
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) == 1 && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == 7) {
|
||||
tool_cancel();
|
||||
} else {
|
||||
show_gridlines();
|
||||
@@ -3134,7 +3134,7 @@ void toggle_land_window(rct_window *topToolbar, int widgetIndex)
|
||||
*/
|
||||
void toggle_clear_scenery_window(rct_window *topToolbar, int widgetIndex)
|
||||
{
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8) == 1 && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == 16) {
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) == 1 && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == 16) {
|
||||
tool_cancel();
|
||||
} else {
|
||||
show_gridlines();
|
||||
@@ -3151,7 +3151,7 @@ void toggle_clear_scenery_window(rct_window *topToolbar, int widgetIndex)
|
||||
*/
|
||||
void toggle_water_window(rct_window *topToolbar, int widgetIndex)
|
||||
{
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8) == 1 && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == 8) {
|
||||
if ((RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) == 1 && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == 8) {
|
||||
tool_cancel();
|
||||
} else {
|
||||
show_gridlines();
|
||||
@@ -3172,7 +3172,7 @@ bool land_tool_is_active()
|
||||
return false;
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass) != WC_TOP_TOOLBAR)
|
||||
return false;
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, sint16) != WIDX_LAND)
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) != WIDX_LAND)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
+11
-11
@@ -191,7 +191,7 @@ static void window_track_list_select(rct_window *w, int index)
|
||||
1);
|
||||
|
||||
char track_path[MAX_PATH] = { 0 };
|
||||
subsitute_path(track_path, (char*)RCT2_ADDRESS_TRACKS_PATH, trackDesignItem);
|
||||
substitute_path(track_path, (char*)RCT2_ADDRESS_TRACKS_PATH, trackDesignItem);
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_TRACK_MANAGER) {
|
||||
window_track_manage_open();
|
||||
@@ -395,7 +395,7 @@ static void window_track_list_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
uint16 holes, speed, drops, dropHeight, inversions;
|
||||
fixed32_2dp rating;
|
||||
int trackIndex, x, y, colour, gForces, airTime;
|
||||
rct_g1_element tmpElement, *subsituteElement;
|
||||
rct_g1_element tmpElement, *substituteElement;
|
||||
|
||||
window_draw_widgets(w, dpi);
|
||||
|
||||
@@ -420,16 +420,16 @@ static void window_track_list_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
|
||||
rct_track_td6* track_td6 = &trackDesign->track_td6;
|
||||
|
||||
subsituteElement = &g1Elements[0];
|
||||
tmpElement = *subsituteElement;
|
||||
subsituteElement->offset = image;
|
||||
subsituteElement->width = 370;
|
||||
subsituteElement->height = 217;
|
||||
subsituteElement->x_offset = 0;
|
||||
subsituteElement->y_offset = 0;
|
||||
subsituteElement->flags = G1_FLAG_BMP;
|
||||
substituteElement = &g1Elements[0];
|
||||
tmpElement = *substituteElement;
|
||||
substituteElement->offset = image;
|
||||
substituteElement->width = 370;
|
||||
substituteElement->height = 217;
|
||||
substituteElement->x_offset = 0;
|
||||
substituteElement->y_offset = 0;
|
||||
substituteElement->flags = G1_FLAG_BMP;
|
||||
gfx_draw_sprite(dpi, 0, x, y, 0);
|
||||
*subsituteElement = tmpElement;
|
||||
*substituteElement = tmpElement;
|
||||
|
||||
x = w->x + (widget->left + widget->right) / 2;
|
||||
y = w->y + widget->bottom - 12;
|
||||
|
||||
+10
-10
@@ -596,23 +596,23 @@ static void window_track_place_invalidate(rct_window *w)
|
||||
static void window_track_place_paint(rct_window *w, rct_drawpixelinfo *dpi)
|
||||
{
|
||||
rct_drawpixelinfo *clippedDpi;
|
||||
rct_g1_element tmpElement, *subsituteElement;
|
||||
rct_g1_element tmpElement, *substituteElement;
|
||||
|
||||
window_draw_widgets(w, dpi);
|
||||
|
||||
// Draw mini tile preview
|
||||
clippedDpi = clip_drawpixelinfo(dpi, w->x + 4, 168, w->y + 18, 78);
|
||||
if (clippedDpi != NULL) {
|
||||
subsituteElement = &g1Elements[0];
|
||||
tmpElement = *subsituteElement;
|
||||
subsituteElement->offset = _window_track_place_mini_preview;
|
||||
subsituteElement->width = TRACK_MINI_PREVIEW_WIDTH;
|
||||
subsituteElement->height = TRACK_MINI_PREVIEW_HEIGHT;
|
||||
subsituteElement->x_offset = 0;
|
||||
subsituteElement->y_offset = 0;
|
||||
subsituteElement->flags = 0;
|
||||
substituteElement = &g1Elements[0];
|
||||
tmpElement = *substituteElement;
|
||||
substituteElement->offset = _window_track_place_mini_preview;
|
||||
substituteElement->width = TRACK_MINI_PREVIEW_WIDTH;
|
||||
substituteElement->height = TRACK_MINI_PREVIEW_HEIGHT;
|
||||
substituteElement->x_offset = 0;
|
||||
substituteElement->y_offset = 0;
|
||||
substituteElement->flags = 0;
|
||||
gfx_draw_sprite(clippedDpi, 0, 0, 0, 0);
|
||||
*subsituteElement = tmpElement;
|
||||
*substituteElement = tmpElement;
|
||||
|
||||
rct2_free(clippedDpi);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user