aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
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)
2022-01-26Core/ChatCommands: Add support for enum type arguments (PR #25242)Peter Keresztes Schmidt
(cherry picked from commit 5e40eb20e2789b86d4786d86b4bbb8ae83de5e1e)
2022-01-26Core/Warden: Warden refactors (PR #25235)Treeston
(cherry picked from commit 6116e5b38522ccfb00f6c941c75482e05b4c0799)
2022-01-26Core/Misc: Fix Windows 32 bits buildjackpoz
Close #25789 (cherry picked from commit 1cafd4ef74350cb3656917e8e033a5e21dcce193)
2022-01-26Core/CrashHandler: Skip logging stack trace of the thread writing the crash ↵Shauren
log, it was launched by windows with same context as crashing thread (cherry picked from commit dd34651f4d42ca598b2f1b2ed32e27b4742f4be7)
2022-01-26Core/CrashHandler: Remove logging function variation depending on crash ↵Shauren
reason and print directly to file, not to temporary buffer (cherry picked from commit c5e1b49e8c02386a0e9edf682692dc6d46cc862f)
2022-01-26Core/CrashHandler: NULL -> nullptrShauren
(cherry picked from commit 68fdfcaa507d06ce8e823e7848f4c58ef1e62732)
2022-01-26Core/CrashHandler: #ifdef cleanup to make VS not choke when parsing, fixed ↵Shauren
file being all red in editor (cherry picked from commit 39c5e03b749d44df346b8f37aed3eb898526365a)
2022-01-26Core/CrashHandler: Attempt to extract C++ exception object in uncaught ↵Shauren
exception hander (cherry picked from commit 83ed35fe62c16f5697f253a9a44bba7dcb83e80d)
2022-01-26Core/Common: Move old-style pointer+size HexStr methods to Trinity::Impl ↵Treeston
where they can't hurt anyone (cherry picked from commit 7b8b999516a824b0c417631a77f133eb47b8b2f4)
2022-01-26Core/Misc: Fix compile errors found with msvc /permissive-Shauren
(cherry picked from commit b3db50a3b41b2db209327387f59afa1c40532773)
2022-01-26Core/Metric: Require WITH_DETAILED_METRICS CMake flag for MMaps metricjackpoz
(cherry picked from commit 8ad6bd8a9ba45ef22ed0275fd402da17666d8522)
2022-01-24Core/Common: Merge TimeTrackerSmall with TimeTrackerCarbenium
(cherry picked from commit 228696bf80bcd55d35445cd24ae119020c310f88)
2022-01-24Core/Common: Add a std::chrono interface to TimeTrackerSmallCarbenium
New methods: TimeTrackerSmall(Milliseconds expiry); void Update(Milliseconds diff); void Reset(Milliseconds expiry) Milliseconds GetExpiry() const Removed methods: int32 GetExpiry() const Also add basic unit tests. Core/Scripts: Use std::chrono interface of TimeTrackerSmall (cherry picked from commit e55516348dbabaa8c9d559426315f3f70967acaa)
2022-01-24Core/Misc: Fix static analysis issues (#25178)Giacomo Pozzoni
(cherry picked from commit 7cf122fc2a604bae77d0b935536c41ec9203e62d)
2022-01-24Core/Common: Allow config settings to be loaded as optional (PR #25137)Treeston
If the config setting is not present, returns the default without issuing a warning. (cherry picked from commit 5ad064976edfc931cdda6faffe723d7c3dfb0ae4)