aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2022-06-10Core/Metric: Build fix for WITH_DETAILED_METRICSShauren
(cherry picked from commit 46b7a361eeef35402f3f9ca52dd2b68e20b161ec)
2022-06-10Core/Metric: Minor optimizations for metrics (reducing number of allocations)Shauren
(cherry picked from commit caaedbfa80870b10d58e124dd6bc6a637278da59)
2022-06-10Core/CrashHandler: Support retrieving windows version names for all future ↵Shauren
versions (cherry picked from commit ca9b82fb856c8314c3e84b15bc16ffb3fe8239ba)
2022-05-22Core/GameObjects: Use all axis rotations for gameobject model collision, not ↵Shauren
just orientation
2022-05-11Core/Misc: Remove uses of std::aligned_storage (deprecated in future c++ ↵Shauren
standard)
2022-05-09Core/Logging: Remove string allocations for logs that are not going to be loggedShauren
2022-05-06Core/Crypto: Fixed EVP_PKEY reference counting for copied objectsShauren
Closes #27943
2022-05-03Codestyle fix - remove empty linesShauren
2022-05-03Core/Crypto: Fix nopch buildShauren
2022-05-03Core/Crypto: Switch away from most deprecated openssl functions and removed ↵Shauren
upper version limit
2022-05-03Core/Misc: Prefix include guard to avoid possible conflict with external libraryShauren
2022-04-18Core/Vmaps: Use provided invDirection from G3D::Ray instead of calculating ↵Gosha
it ourselves (#27883) Do not calculate inv direction, Ray has one
2022-03-13Core/Config: Implement config override with env vars (#26811)Anton Popovichenko
* 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> (cherry picked from commit 1ddd9dc19cc1df1a1ab8c6123283999f9dea6760)
2022-03-11Core/DBLayer: Add QueueSize() method (#26733)Giacomo Pozzoni
* Core/DBLayer: Add QueueSize() method Add QueueSize() method to database objects (Login, Character and World) that returns how many tasks are queued. Include the queue size of the 3 databases in ".server debug" command * Make the code less threadsafe * Send data to InfluxDB * Update grafana dashboard (cherry picked from commit 96dc110f4a353871ac74c82ff4b1bcc4c34156f3)
2022-03-11Common/Misc: Replace old macros with modern C++ attributes (#26613)Giacomo Pozzoni
(cherry picked from commit 5ae2a0f47d323fadcfebf44c7b6ec11a3f91c75a)
2022-03-09Core/Utilities: Fixed child process console output being incorrectly cut off ↵Shauren
at first newline
2022-03-09Core/Console: Improve ReadWinConsole logic and cosmetic changes (#26402)Mikhail Redko
* Core/Console: Improve ReadWinConsole logic and cosmetic changes * Core/Console: Fixed possible appearance of weird characters in the console when printing the output of child processes * Fix codestyle * Removed auto * Core/Misc: Explicit casting Difficulty values to uint8 before outputting to console * Core/Misc: Cast Difficulty to uint32 for output to console Co-authored-by: jackpoz <giacomopoz@gmail.com> (cherry picked from commit 6c12f45f3b7d7eab32ed29860d2261fc8a512f0e)
2022-03-08Core/Console: Fix uninitialized variableShauren
(cherry picked from commit 677952fbc59676b549337f9f7eb5c7e7abb1135e)
2022-03-08Core/Misc: Fixed utf8 encoding in console input/output. (#26352)Mikhail Redko
* Core/Misc: Fixed utf8 encoding in console input/output. * Fix gcc build * Fixed that weird 'a' with circle above it and other similar letters. Also fixed encoding in AppenderConsole which sometimes did not work as it should * Fix build on Linux * Probably better to do it like this (cherry picked from commit 1539bed3db86f2153f2d0d5fbf24bf9ee4af1d92)
2022-03-06CI/CircleCI: Expose binaries built on Circle CI as docker images in the ↵Giacomo Pozzoni
Circle CI artifacts (#25832) Co-authored-by: Shauren <shauren.trinity@gmail.com> (cherry picked from commit 9af6bf15aa2fe836c3ebba306eaaa8971f00fac4)
2022-03-05Core/Misc: Remove unneeded null-terminator after switch from wchar_t to ↵Mikhail Redko
std::wstring in 309851e. Fixes creation characters with declined russian names (#25797) Closes #23775 (cherry picked from commit eaa22b8a1722fd362bf5ef2c6944b5c50b121afd)
2022-03-05Core: whitespace cleanup, reduce double blank line to single (#25795)Kargatum
* Core/Misc: fix double empty line * worldserver.conf (cherry picked from commit a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
2022-02-27Common/Metric: Fix build with PERFORMANCE_PROFILING and/or WITHOUT_METRICSAokromes
(cherry picked from commit 91cda8b1cdf4b45c4ca3ef1a742f6d1733ad3d66)
2022-02-16Build: Partial support for clang-clShauren
2022-02-14Dep: Raise required boost versions to 1.73 on windows and 1.71 on linux and ↵Shauren
remove compatibility code for unsupported versions
2022-02-13Core/Misc: Cleanup unused includesShauren
2022-02-11Core/Misc: common PCH tuningShauren
2022-02-11Core/Utils: Corrected included files in Containers.hShauren
2022-02-11Core/Misc: Explicitly include required headers instead of relying on them to ↵Shauren
be included by other headers
2022-02-10Core/Utils: Made bool conversion operator of FlagsArray explicitShauren
2022-02-09Core/Utils: Extract template base class out of flag128Shauren
2022-02-05[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)Treeston
(cherry picked from commit 75f9e7396e35360f3016cc0cb21e72e20f5d96d5)
2022-02-05Dep/fmt: update fmt library to 7.0.3Winfidonarleyan
(cherry picked from commit 9d96e4852a4a25fdc323f656e24034fa1a280826)
2022-02-05Core/ChatCommands: make ExactSequence more readableTreeston
(cherry picked from commit feaaa595cae735bb6093b24a88562c27b2723cfe)
2022-02-05Core/Authserver: Removal of sha_pass_hash, compatibility fields, and ↵Treeston
everything that uses them (PR #25156) (cherry picked from commit bcdbdd6f23ce65cc0e381e61d2840140dce79311)
2022-02-04Common/Util: Trinity::StringTo<double> support (PR #25364)Treeston
(cherry picked from commit f45aa5cac1579e87cbc599ffb58e10e662066792)
2022-02-04Core/Misc: Add support for custom link colors. Clean-up hyperlink ↵Treeston
validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs. (cherry picked from commit eaf8fa75a1c76131ecbf2585db6d6236b7334b8e)
2022-02-04Core/Misc: DBC std::array refactors, and |Hachievement unit testsTreeston
(cherry picked from commit 3fbbe7cfbe1bc51db12bdc1ec7b21c16d1716366)
2022-02-04Core/Config: Restore ability to load additional config files for custom scriptsShauren
(cherry picked from commit c1e4cfd07eee19069a15e9b82a308d8a914d5637)
2022-02-04Core/Misc: Fix issues reported by static analysis (#25351)Giacomo Pozzoni
* Core/Misc: Fix issues reported by static analysis * Core/Vmaps: Code cleanup after e77716188861d4aa83b227a90e04a66b63baeb1f (cherry picked from commit cfc8f7b442a9dba07b198fcebe2c02ab89cf0a8b)
2022-02-04Common/Utilities: Make StringTo<bool>'s signature match that of the other ↵Treeston
integral types, making for easier templating. Default behavior unchanged. (cherry picked from commit f54cec4db7c67b623383c140159e1171876ace89)
2022-02-04Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327)Treeston
(cherry picked from commit 534a2388b7c662c8796aabb1ec8cb424879799b6)
2022-02-04Common/Utilities: Properly read std::from_chars documentation and check for ↵Treeston
out_of_range errors. (cherry picked from commit 7478c2c65aea853a2086c9c7ecc56c14ad6ee338)
2022-02-04Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR ↵Treeston
#25335) (cherry picked from commit cd30e0b86ce6ee88386a91cebdf353fc55805c57)
2022-02-04Common/Utilities: Move EnumUtils' implementation struct from Trinity::Impl ↵Treeston
to Trinity::Impl::EnumUtilsImpl. This avoids confusing name clashes for other implementations in sub-namespaces of Trinity::Impl. (cherry picked from commit 91744de3162bab23d7c5a0dd65fc8b4249eb803a)
2022-02-04Core/Misc: std::string -> std::string_view in a bunch of places, notably ↵Treeston
chat commands and Util.h (cherry picked from commit a41bbd9ad9adedb15c7133bdef1575a6ec0eb1ab)
2022-02-04Core/Networking: Initialize MPSCQueueIntrusive dummy node without undefined ↵Shauren
behavior (cherry picked from commit e1289805fc04e75f9e7cba078cbc826ce60f037a)
2022-02-03Core/Util: Added another template utility - find_type_ifShauren
* Trinity::find_type_if - Find a type matching predicate in a given template parameter pack (cherry picked from commit 84a87d87bfd569192ff1564e3d8b2e68d5fff4bc)
2022-02-03Core/Util: Added new utilitiesShauren
* Trinity::new_from_tuple - same as std::make_from_tuple except allocates object using "new" * Trinity::is_tuple - detects whether given type is a tuple specialization * advstd::type_identity - C++20 std::type_identity (cherry picked from commit 7c08fc863ac45f2d41b18103b0132004a4c0c524)
2022-02-03Core/ChatCommands: Check whether a passed numeric enum value is valid (#25285)Peter Keresztes Schmidt
(cherry picked from commit 4286e7aa02e777268b25d8a5bcc1ee87f7b16c4d)