Commit Graph

382 Commits

Author SHA1 Message Date
Shauren
66abca1593 Build: Cleanup boost CMakeLists from pre-c++11 flag checks
(cherry picked from commit c9f1606b76)
2024-02-26 12:23:57 +01:00
Shauren
7ff70a6bff Core/Crypto: Remove support for OpenSSL 1.0
(cherry picked from commit b8f18fad29)
2024-02-26 12:17:31 +01:00
Shauren
c703497655 Build: Partial support for clang-cl
(cherry picked from commit 0b846b2107)
2024-02-26 12:16:13 +01:00
Shauren
16f555f79e Core/MMAPs: Sprinkle master branch thread safety on mmap loading code 2024-02-13 23:49:51 +01:00
Shauren
eb50b29ab3 Core/Misc: Added windows version checks during startup to avoid confusion about crashes when running on unsupported OS
(cherry picked from commit 333630b7de)
2023-12-02 15:57:09 +01:00
Shauren
e2b26f2038 Core/Locales: Revert back to using C locale for number formatting
(cherry picked from commit 1c6ee8a6bd)
2023-12-02 15:57:09 +01:00
Shauren
7be101ac67 Core/Locales: Set active code page and locale used by c string functions to utf8
Closes #29455

(cherry picked from commit b299902881)
2023-12-02 15:57:09 +01:00
Shauren
45a5b6a9f0 Core/Calendar: Implement different timezone support for ingame calendar
Closes #8390
Closes #29427

(cherry picked from commit b888b1b09f)
2023-12-02 15:57:03 +01:00
Shauren
8b73bb509e Core/CrashHandler: Add a timeout to retrieving windows version from WMI
(cherry picked from commit 36a6488405)
2023-11-19 21:22:40 +01:00
Shauren
6b9899e907 Core/Misc: mac build fix
(cherry picked from commit 752309fbe3)
2023-09-17 01:07:49 +02:00
Shauren
08eac7a09a Core/Misc: Silence compile warning in boost::process with version 1.83
(cherry picked from commit d8c98579d4)
2023-09-13 09:25:35 +02:00
Shauren
451314241d Core/Misc: Modernize comparison operators
(cherry picked from commit f0a862e71b)
2023-08-24 11:48:45 +02:00
Kelno
1bea4aab45 Core/EventMap: Refactor and modernize EventMap (#29183) 2023-08-19 23:57:57 +02:00
Shauren
deec17d8ec Core/Logging: Fixed a few missed log format statements 2023-08-17 11:15:15 +02:00
Shauren
26836f8655 Core/Logging: Minor compile time reducing refactor of log message formatting
(cherry picked from commit 576ca241ec)
2023-08-15 22:03:47 +02:00
Shauren
a4299c2a4b Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo
(cherry picked from commit 3260b94dd6)
2023-08-15 21:59:52 +02:00
Shauren
b9201d3c07 Dep/fmt: Upgrade to 9.1.0
(cherry picked from commit 17b20a3353)
2023-08-15 20:11:02 +02:00
Shauren
aaa6e73c8c Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
(cherry picked from commit d791afae1d)
2023-08-15 20:10:04 +02:00
Shauren
3144566584 Core/Misc: Include cleanup, 2023 edition
(cherry picked from commit 92ed5e8af1)
2023-08-12 17:56:16 +02:00
Shauren
27cd5a90f4 Core/Misc: Replace enable_if overload selection with if constexpr
(cherry picked from commit a53e4a5756)
2023-08-12 17:56:16 +02:00
Shauren
d251ab647d Core/Misc: Migrate our c++20 advstd to standard features
(cherry picked from commit 7830e5a7a1)
2023-08-12 17:56:16 +02:00
Shauren
cccc062ea0 Core/Misc: Remove boost::heap::fibonacci_heap from header files
(cherry picked from commit e8e330addd)
2023-08-12 17:56:15 +02:00
Shauren
f5a2e2ae13 Core/Misc: Replaced boost::container::static_vector in packet classes with plain vector with custom static storage allocatlr
(cherry picked from commit b65c3f5f4a)
2023-08-12 17:56:15 +02:00
Shauren
30adff16ae Core/Utils: Replace boost flat_set with our own
(cherry picked from commit 42fbcf2fc5)
2023-08-12 17:56:15 +02:00
Shauren
73e7f0fe6d Core/Misc: Added a include hack for msvc <chrono> to use only c++17 bits from it
(cherry picked from commit 585900f42d)
2023-08-12 14:27:25 +02:00
Shauren
203bc3afa0 Core/Threading: Modernize ProducerConsumerQueue a bit to fix GCC build
Closes #28607

(cherry picked from commit 85d5f4bc06)
2023-08-12 14:24:29 +02:00
Shauren
b7287e85e4 Core/Misc: Fixed deprecation warnings for c++20
(cherry picked from commit ba9bbbc9d0)
2023-08-12 14:24:24 +02:00
Shauren
9ad420e531 Core/Misc: Fixed IpLocation crashes on invalid ip input
(cherry picked from commit fff797aff5)
2023-04-13 00:20:04 +02:00
Shauren
d82b2b1a67 Core/Threading: Create ThreadPool class 2022-10-08 21:22:28 +02:00
Lloyd Dilley
2b8fc95fde Core/Misc: Fix *BSD compile errors (#28287) 2022-10-01 17:17:46 +02:00
ihm-tswow
6e37438e5d Core/Debugging: Improve SymInitialize fail message (#28206)
* clarify that this is not the crash error, but an error with the crash report itself
* improve formatting and message boundaries
* warn the reader that this means the call stack symbols may be inaccurate
2022-08-19 11:14:07 +02:00
Kargatum
13d86762e6 Core/Crypto: Correct header guard in SessionKeyGenerator.h (#28116) 2022-07-15 22:33:22 +02:00
daMaex
9368823c8d Core/Crypto: Fixed build with openssl 1.1 2022-06-16 12:37:00 +02:00
Shauren
27259f8524 Core/Crypto: Fixed loading legacy openssl provider for RC4 on windows 2022-06-16 12:37:00 +02:00
daMaex
9fca5e9117 Core/Crypto: Updated ARC4 code with openssl 3.0 support 2022-06-16 12:37:00 +02:00
daMaex
0b6f77a006 Core/Crypto: Fixed GenericHMAC::Finalize wth openssl 3.0 2022-06-16 12:37:00 +02:00
Shauren
ad3df36542 Core/Crypto: Fixed EVP_PKEY reference counting for copied objects
Closes #27943

(cherry picked from commit aa6a0f2431)
2022-06-16 12:37:00 +02:00
Shauren
77091ed599 Core/Crypto: Switch away from most deprecated openssl functions and removed upper version limit
(cherry picked from commit bc87f7b337)
2022-06-16 12:37:00 +02:00
Shauren
e23a9943dd Core/Misc: Prefix include guard to avoid possible conflict with external library
(cherry picked from commit aefce9a25c)
2022-06-16 12:37:00 +02:00
jackpoz
c83d00a645 Core/Metric: Sync default Metric.Interval value
Sync default Metric.Interval value in C++ with the value in worldserver.conf
2022-04-18 11:53:38 +02:00
Shauren
46b1284f61 Core/Metric: Fixed double logging metric timers 2022-04-10 15:31:01 +02:00
Shauren
46b7a361ee Core/Metric: Build fix for WITH_DETAILED_METRICS 2022-04-08 23:09:04 +02:00
Shauren
caaedbfa80 Core/Metric: Minor optimizations for metrics (reducing number of allocations) 2022-04-08 21:33:38 +02:00
Shauren
ca9b82fb85 Core/CrashHandler: Support retrieving windows version names for all future versions 2022-04-07 20:54:21 +02:00
Shauren
53e1666a93 Core/Utilities: Fixed child process console output being incorrectly cut off at first newline
(cherry picked from commit a5f107dafc)
2022-03-09 16:22:40 +01:00
Shauren
85bdeed51e Dep: Raise required boost versions to 1.73 on windows and 1.71 on linux and remove compatibility code for unsupported versions
(cherry picked from commit f6e72494f1)
2022-02-14 13:37:45 +01:00
Shauren
a03e26aa81 Core/Misc: Fixed engrish in static_assert for EnumFlag and restrict DEFINE_ENUM_FLAG to enums only (with std::is_enum)
(cherry picked from commit a0e5f9db7e)
2022-01-22 01:25:20 +01:00
Shauren
7b6c1c407e Core/Misc: Exclude boost 1.78 and newer from boost_1_73_process_windows_nopch hack
(cherry picked from commit a937767289)
2021-12-08 19:03:33 +01:00
Shauren
6ad58d604a Core/Misc: Fix windows nopch build
Closes #25363
2021-08-31 13:46:17 +02:00
Anton Popovichenko
1ddd9dc19c Core/Config: Implement config override with env vars (#26811)
* Core/Config: Implement config override with env vars

Implement overriding of configuration from the .conf file with environment variables.
Environment variables keys are autogenerated based on the keys defined in .conf file.
Usage example:
$ export TC_DATA_DIR=/usr
$ TC_WORLD_SERVER_PORT=8080 ./worldserver

* Core/Config Fix typo in logs

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>

* Core/Config Fix code style in EnvVarForIniKey

Co-authored-by: Shauren <shauren.trinity@gmail.com>

* Update tests/common/Config.cpp

* Apply suggestions from code review

Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>

* Apply suggestions from code review

Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>

Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
2021-08-19 22:26:16 +02:00