staphen
f30c42c3a8
Use symlinks to work around lack of Unicode support for paths in ZeroTier
3 years ago
Gleb Mazovetskiy
1a1a282d9a
Use C FILE instead of C++ streams throughout
...
Reduces binary size by ~2 KiB and may improve compatibility with oddball
systems (e.g. PS2).
3 years ago
staphen
076da2aefe
Relax latency requirements for online games
3 years ago
Anders Jenbo
1a633c5627
Reject games info of unexpected size ( #5646 )
3 years ago
Anders Jenbo
872456ae5d
Use size_t for a select few pnum variables
4 years ago
Gleb Mazovetskiy
188dc79f6e
Make `Players` a vector
4 years ago
baosen
e68f2b46da
Fix the string PT_ECHO_REPLY. ( #5203 )
4 years ago
Mikołaj Piróg
dda0b96ea5
Remove #defines in player.h and add constexpr where applicable ( #4896 )
...
* Change defines to constexpr int in player.h
* Add const or constexpr to player.h/cpp where applicable
* Update tests with changed names of player constatns
* remove unecessary variable
4 years ago
Anders Jenbo
223fbe8387
Correctly check size of glpMsgTbl
4 years ago
Kalebe Alves
4130c37d17
Enforce override virtual methods
4 years ago
Gleb Mazovetskiy
b7404af9c7
Fix build with NONET and no exceptions
...
Fixes the build with `-fno-rtti` and `-fno-exceptions`.
Building with these flags reduces the binary size by more than 200 KiB.
4 years ago
Gleb Mazovetskiy
779ccaca17
Overhaul translation fetching
...
1. Do not modify the map after loading. Instead, return string views
(guaranteed to be null-terminated) from look up functions and return
the key directly if not found.
2. Use an `unorded_map` instead of `map` where available (C++20).
Saves a bit of RAM (~50 KiB) and improves lookup performance.
4 years ago
staphen
18bfe39d5b
Reset plr_self after leaving game session
4 years ago
Anders Jenbo
4b8eba1768
Update zerotier_native.h
4 years ago
Anders Jenbo
d42fdd7745
Bump dvl_multicast_addr in preperation for 1.4.0
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
staphen
dcfd057200
Add two-way handshake between ZeroTier peers
4 years ago
staphen
b14fda976f
Fix IsGameHost() function for ZeroTier
4 years ago
Stephen C. Wills
ef1821ce57
Apply sequence number to net turns ( #4122 )
4 years ago
staphen
16f82226eb
[ZeroTier] Send PT_CONNECT to all players when new player joins
4 years ago
staphen
3b3419d519
Treat firstpeer as a recognized source of packets
4 years ago
staphen
e877a8ff0a
Filter out ZeroTier packets that do not come from an expected source
4 years ago
obligaron
1f7b0607a6
public game browsing: show difficulty, speed, players and possible incompatibility
4 years ago
obligaron
79b926c375
Move more options to OptionEntryBase
4 years ago
obligaron
0888546d62
Make DvlNet_SendInfoRequest non blocking
4 years ago
staphen
9b32c8d541
Update libzt to the latest version
4 years ago
ephphatha
0cd7c530bc
Drop connections when a packet with length 0 header is received
...
This prevents malicious connections crashing a game by sending null bytes, but might still allow errors when packets are manually crafted.
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
Gleb Mazovetskiy
19cbe65ed8
packet.h: Fix `-Wunused-variable` ( #3379 )
4 years ago
Anders Jenbo
f0cc7adbdf
Show error dialog when ZeroTier fails
...
Fixes #2708
4 years ago
Anders Jenbo
e2a55aa9f5
Move ZeroTier config to the config folder
4 years ago
staphen
b332656f28
Fix ZeroTier crash when handling invalid packet
4 years ago
staphen
ffbbcc6d62
Support unencrypted multiplayer games with no password
4 years ago
Anders Jenbo
fe1cf9ac53
Update default ZT network id
4 years ago
Anders Jenbo
ae90193136
Game discovery over ZeroTier
4 years ago
staphen
83e395b496
Remove call to zts_stop() to prevent race condition during application shutdown
5 years ago
Vladimir Olteanu
5e5737370f
dvlnet: pass smartptrs to lambdas that free buffers
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
Anders Jenbo
2ca6e37c46
Clean up sub folders using clang-tidy/Android Studio
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
Anders Jenbo
db3d1d4054
Revert and disable readability-convert-member-functions-to-static
...
This breaks on GCC 6.3
5 years ago
Anders Jenbo
8a4d38dd74
Stabalize clang-tidy runs
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Anders Jenbo
8c76d45797
Clang-tidy: modernize-avoid-bind
5 years ago
Anders Jenbo
17e67d2b90
Clang-tidy: modernize-use-equals-default
5 years ago
Anders Jenbo
8f3266244a
Clang-tidy: readability-else-after-return
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago