Ted John
7a20874366
Fix Windows build
2019-05-12 00:51:33 +01:00
Ted John
123a8eacad
Get the server list showing LAN servers
2019-05-12 00:51:33 +01:00
Ted John
694cb7eb3f
Implement UDP socket and broadcasting
2019-05-12 00:50:13 +01:00
Filip Gawin
6833da77e3
Simplify boolean expresions
2019-05-10 22:00:38 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Matt
a7f8c8aa36
Refactor utf8* use over std::string
2019-02-24 00:08:05 +01:00
ζeh Matt
7d19a5bc77
Refactor memcpy to std::memcpy and memset to std::memset ( #8408 )
2018-12-15 22:23:31 +01:00
Ted John
e2e2d4b7bf
Fix #8433 : Crash if master server response is not valid JSON
...
Protect fetch_servers_callback from bad JSON responses
2018-12-14 17:10:50 +00:00
Michał Janiszewski
0d2751a54e
Hide the network class declaration to Network.cpp ( #8276 )
...
The Network class is not used by anyone other than free functions in
Network.cpp, nor should it be used by anyone with the current design.
This change leaves only the publicly-exposed functions left in the
header, drastically reducing amount of required headers in network.h,
one of the heaviest headers we had so far.
2018-11-19 23:10:54 +01:00
clang-format
b02dfdbc93
Binpack function arguments together
...
Previously when the arguments of a function wouldn't fit on a single line, clang-format would put each argument on its own line instead. By enabling the binpack parameter setting, it tried to fit as many on one line as possible instead.
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2018-07-23 16:00:22 +02:00
clang-format
e558660860
clang-format UI windows
2018-07-23 16:00:14 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Aaron van Geffen
7cfa6aa176
Fix non-network builds.
2018-06-11 11:49:45 +02:00
Aaron van Geffen
f1d4e5b596
Rename Http namespace, add default initialisers.
2018-06-11 11:19:04 +02:00
Tobias Kohlbau
62c25d88fb
HTTP: refactor http into modern C++
...
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de >
2018-06-11 10:24:19 +02:00
Michał Janiszewski
995d72f262
Remove function unused with HTTP disabled
2018-06-03 19:56:11 +02:00
Michał Janiszewski
a2ef4bd699
Exclude pre-formatted blocks from clang-format ( #7520 )
...
[ci skip]
2018-05-16 20:41:29 +02:00
Michał Janiszewski
cd065d4f41
Reduce includes in common header
2018-03-20 00:27:58 +01:00
Aaron van Geffen
a61c84d3b0
Increase button height in server list window.
2018-03-19 08:34:16 +01:00
Ted John
e318e0948a
Fix a few assertions that were found when using debug CRT
2018-03-09 16:28:47 +01:00
Michał Janiszewski
08bcbe3912
Make network version a variable to reduce recompilations
2018-02-21 22:21:09 +01:00
Hielke Morsink
8e55c811f6
Check for server version instead of address ( #7155 )
2018-02-09 19:16:54 +00:00
Ted John
9d50a36f2c
More improvements to server list
2018-02-07 19:23:44 +00:00
Ted John
c7128ec988
Refactor ServerList more
2018-02-07 13:01:36 +00:00
Ted John
c42a63c52c
Refactor memory handling in ServerList more
2018-02-07 12:51:52 +00:00
Ted John
5d51676523
Refactor memory handling in ServerList
2018-02-07 12:51:52 +00:00
Marijn van der Werf
4c956def67
Update UI imports
2018-01-18 22:57:55 +01:00
Aaron van Geffen
ecc1cfed2a
Rename WWT_DROPDOWN_BUTTON to WWT_BUTTON.
...
The previous name implied an exclusive association with dropdowns.
While used to display the dropdown triangle button, this is not an
exclusive use.
2018-01-08 00:01:32 +01:00
Ted John
83d1b6eb8f
Refactor widget.c to C++
2018-01-07 12:39:58 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Tobias Kohlbau
a726f6decd
Multiplayer: save manually added servers
...
Adding a server via "Add Server" should handle them
as favorites as otherwise the list is not saved locally and
each server is lost after game restart.
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de >
2018-01-02 13:04:08 +01:00
Marijn van der Werf
1e946fc0fe
Move Dropdown to UI project
2017-12-16 15:47:38 +02:00
Marijn van der Werf
0193ea4fdc
Move tooltip to UI project
2017-12-16 15:47:38 +02:00
Michael Steenbeek
1a9975d683
Compile util and cheats as C++
2017-12-14 10:03:21 +01:00
Christian F. Coors
e737b3108c
Add status messages to server list window
2017-10-08 11:51:22 +02:00
Marijn van der Werf
ac910a5979
Move Error, Campaign and Ride Demolition windows
2017-09-24 22:41:49 +02:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
Michał Janiszewski
d698ad1100
Convert NULL -> nullptr in C++
2017-08-15 11:51:56 +02:00
Marijn van der Werf
247fdc2f5d
Fix formatting of C includes
2017-08-10 13:42:27 +02:00
Michał Janiszewski
38f4f8be79
Fix missing includes
2017-08-10 13:42:27 +02:00
Marijn van der Werf
4d90940d21
Move windows to UI project
2017-08-10 13:42:27 +02:00