Matt
2a9796f2cc
Add more guards in network code
2020-08-11 15:56:09 +02:00
ceeac
db010cd971
Fix compile error when compiling with clang-10 ( #12599 )
...
<cstddef> is required for size_t (used in CircularBuffer.h)
2020-08-06 16:24:50 +01:00
ζeh Matt
765eada18e
Merge pull request #12526 from ZehMatt/win32-cleanup
...
Win32 and namespace cleanup
2020-08-05 17:18:50 +02:00
Matt
97d14feaa6
Rebase fixes
2020-08-05 16:35:40 +02:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
83355e35cc
Move IStream, MemoryStream, FileStream into OpenRCT2 namespace
2020-08-05 16:29:36 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
Matt
05a9b27136
Fix ByteSwapBE type safety
2020-08-05 16:17:18 +02:00
Sidney
7c0b03463c
Close #12452 : Refactor DIAGNOSTIC_LEVEL to use strong enum ( #12549 )
2020-08-02 07:51:02 +01:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Ted John
cca43eb9e1
Fix mingw build
2020-07-11 11:45:50 +01:00
Tulio Leao
f725fff2da
Clarify CoordsRange-derived interface methods ( #12127 )
2020-07-06 14:42:11 +02:00
frutiemax
26ae2dbf04
Part of #11437 : Move PlatformFileExists to Platform2.h ( #12077 )
2020-07-02 12:03:31 -03:00
Tulio Leao
03ba7e5301
Merge pull request #11933 from AaronVanGeffen/unused-vars
...
Patch unused variables
2020-06-11 12:12:06 -03:00
Aaron van Geffen
3090e2af79
Fix compilation failure due to unused vars.
...
Compilation fails due to warnings-turned-errors.
2020-06-11 15:22:06 +02:00
Michael Steenbeek
9ef8d6da42
Convert most remaining C-style casts to C++-style ones ( #11867 )
2020-06-07 23:18:11 +02:00
Ted John
8f77125cdb
Fix #11298 : Unable to advertise server (500): Retry with ipv4 only ( #11824 )
...
Add new config option to allow any address to be advertised. This then
doesn't rely on the master server retrieving the server IP address via
the HTTP request which can often be IPv6 by default.
2020-05-30 18:21:22 +02:00
Ted John
46bb30f8a1
Refactor rct_palette to GamePalette
2020-05-27 20:52:51 +01:00
Gymnasiast
de69bbd661
Guard against illegal access
2020-05-19 21:25:27 +02:00
Gymnasiast
4b25345d8d
Create GamePalette struct
2020-05-19 21:09:51 +02:00
Michael Steenbeek
f0bd05cf6d
Part of #11158 : Remove more C-style casts ( #11743 )
2020-05-13 21:22:50 -03:00
Michael Steenbeek
d7637cd70f
Replace many C-style casts ( #11720 )
2020-05-11 14:32:56 +02:00
Michael Steenbeek
a261b4ce33
Remove commented out code ( #11721 )
2020-05-11 13:54:15 +02:00
Ted John
45d32bec68
[Plugin] Add API for taking captures and giant captures of the park
2020-05-09 13:55:24 +02:00
Ted John
51ed760409
Fix FileWatcher header file
2020-04-26 14:35:09 +01:00
Ted John
127dd1543e
Disable FileWatcher for macOS
2020-04-26 14:35:08 +01:00
Ted John
2f525e0539
Apply more code review comments
2020-04-26 14:35:07 +01:00
Ted John
d480fb8daa
Apply suggestions from code review
...
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com >
Co-Authored-By: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-04-26 14:35:07 +01:00
Ted John
62d15e44db
Fix mingw build
2020-04-26 14:35:07 +01:00
Ted John
e6341f0a42
Get scripting compiling on clang
2020-04-26 14:35:03 +01:00
Ted John
4109b2c55a
Fix build errors
2020-04-26 14:35:01 +01:00
Hielke Morsink
e8bdb95f13
format new files
...
Since many of the changes were made before the clang-format changes went live, the new source files used a different format still. This PR applies the new style to all the new source files.
2020-04-26 14:35:00 +01:00
Hielke Morsink
c064614280
Use new copyright/license notice
2020-04-26 14:35:00 +01:00
Ted John
5ba96a34ac
Fix FileWatcher for Windows
2020-04-26 14:35:00 +01:00
Ted John
1fd33dd86a
Use new FileWatcher class
2020-04-26 14:35:00 +01:00
Ted John
834cfad502
Create new FileWatcher class
2020-04-26 14:34:59 +01:00
FlukiestEmperor
23d295924d
Fix Android filesystem compilation error when using NDK revision 19+
...
When attemping to build with ndk 19+ I get the following error: error: undefined reference to 'std::__ndk1::__fs::filesystem::path::__extension() const'
Looking at this issue here https://github.com/android/ndk/issues/609 and https://android.googlesource.com/platform/ndk/+/master/docs/Roadmap.md#package-management it's stated that the ndk does not support std::filesystem.
2020-04-24 13:08:44 +02:00
Michael Steenbeek
f5e2efac77
Close #11390 : Write OpenRCT2 build hash to screenshot metadata ( #11423 )
2020-04-24 04:00:17 +02:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Michał Janiszewski
5f97637d5e
Only suggest final when using non-LTO builds
...
In LTO builds GCC issues the suggestion-warning from linking stage,
when pragmas are already gone and do nothing.
2020-04-21 13:31:01 +02:00
Michael Steenbeek
4f86d0115c
Merge pull request #10866 from Gymnasiast/refactor/more-tile-element-prep
...
Refactor/more tile element prep
2020-03-06 09:25:32 +01:00
Michał Janiszewski
92e5958ab6
Improve WinNT 5.1/MinGW support ( #10869 )
2020-03-05 19:35:23 +01:00
Gymnasiast
3ed7694495
Move tile element-specific flags
2020-03-04 22:01:09 +01:00
ζeh Matt
12ab1e9633
Fix #10713 : Correctly encode network ride id over network ( #10802 )
...
It byte swapped uint16_t and then during decode byte swapped it as uint32_t, now it always uses uint32_t for ride/player id. I could use the underlying type but that would require to re-create all replays again.
Closes #10713
2020-02-21 18:11:26 +01:00
Tulio Leao
0c4623a39f
Replace typedef aliasing by using ( #10712 )
2020-02-17 11:43:47 +01:00
Michał Janiszewski
38907fd0c7
Fix memory leaks around PNG/sprite handling ( #10711 )
2020-02-16 07:25:30 +01:00
Ted John
4e032aeff0
Improve WinHttp code
2020-02-08 18:11:08 +00:00
Ted John
4af69555d1
Improve WinHttp logic / code
2020-02-08 17:47:03 +00:00
Ted John
be9cb19df5
Replace cURL with WinHttp implementation on Windows
...
This reduces the number of third party dependencies for Windows builds. WinHttp is quite a nice straight forward API so doesn't involve too much extra code.
2020-02-08 17:47:03 +00:00
Ted John
b76092eda3
Fix mingw
2020-02-05 22:39:22 +00:00