18 Commits
Author SHA1 Message Date
staphen 98c0e8f2da Don't use inheritance with tl::expected 2023-09-19 16:46:31 +02:00
Gleb MazovetskiyandStephen C. Wills 4d0341afb5 net: Replace packet_exception with tl::expected
The network code still has ways to go to get rid of exceptions,
this is but a small first step.

Co-authored-by: Stephen C. Wills <[email protected]>
2023-09-15 18:32:56 +01:00
Gleb Mazovetskiy 5bf0b8bc96 Add more missing <cstdint> includes
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
2023-05-10 16:29:27 +01:00
baosen e68f2b46da Fix the string PT_ECHO_REPLY. (#5203) 2022-08-06 19:23:35 +02:00
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.
2022-06-18 14:05:10 +02:00
staphen dcfd057200 Add two-way handshake between ZeroTier peers 2022-03-16 21:08:53 +01:00
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.
2021-11-06 23:51:42 +00:00
staphen ffbbcc6d62 Support unencrypted multiplayer games with no password 2021-10-25 01:14:37 +02:00
Anders Jenbo 2ca6e37c46 Clean up sub folders using clang-tidy/Android Studio 2021-07-08 03:30:25 -07:00
Anders Jenbo 939003311a Clang-tidy: readability-make-member-function-const 2021-06-27 00:59:58 +02:00
Anders Jenbo 22b632f04a ♻️Clean up implicit bool conversions 2021-06-26 08:57:59 -07:00
staphen 9ab268ee31 Reduce memory usage requirement for key derivation 2021-06-20 16:31:25 -07:00
Gleb Mazovetskiy 46a5dc147b 🔨 Restore GCC 5 compatibility
We can support this much older compiler with just these few minor
changes.
2021-04-27 14:26:14 +02:00
Anders Jenbo 2969b80163 🎨 Run readability-identifier-naming on all src sub-folders 2021-04-22 03:53:35 +02:00
Anders Jenbo ec166c8214 🧹 performance-move-const-arg 2021-04-22 00:08:19 +02:00
Anders Jenbo 373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo 8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00