aboutsummaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2016-04-02Core/Util: Add a missing includeCarbenium
(cherry picked from commit 1038df8d5b522e1e959528c3b7c17c01a88e7759)
2016-03-31Core/Config: Fix 3 more missing config warningsDDuarte
Closes #16861 Thanks tkrokli
2016-03-31Core/Config: Error logging for ptree_bad_dataDDuarte
Ref https://github.com/TrinityCore/TrinityCore/commit/6487e2f2d6a1ddbeff77362219658376b8a3f9f0#commitcomment-16888976
2016-03-27Core/Startup: Warn when a config key isn't found in the config filesDDuarte
Example: "Missing name Guild.SaveInterval in config file worldserver.conf, add "Guild.SaveInterval = 15" to this file"
2016-03-26Core/Common: Moved MessageBuffer to commonShauren
2016-03-24Core/Common: Converted the common library to a shared library.Naios
* There is still the possibility to static link against common.
2016-03-24Core/Build: Add the possibility to link libraries dynamically.Naios
* makes it possible to access exported singletons from other shared lib's. * reduces binary size
2016-03-21Core/Util: Extracted GetPID to separate functionShauren
2016-03-19CMake: Use inherited dependencies in common and toolsNaios
(cherry picked from commit abda7a910a760687f9c1b9e0893314e04982c0f1)
2016-03-19Core/Crypto: Renamed SHA1Randx/WardenKeyGeneration and made it a template classShauren
2016-03-16Dep/CppFormat: Update cppformat to cppformat/cppformat@5174b8cNaios
(cherry picked from commit f52495c66b1b219f82729221e8023a86b28d54bf)
2016-03-11Core/Common: Generalize platform specific includes in common/PlatformNaios
2016-03-11Core/Common: Move singleton instances into compilation unitsNaios
* Fixes issues when building shared libraries (prevents gcc and clang from providing several instance)
2016-03-03Core/Misc: fix buildMitchesD
2016-03-03Core/Debugging: Make abort() less bad on windows by forcing crash log generationShauren
2016-02-27Core/Logging: fixed default logger (partial reverts ↵joschiwald
0904858624297bb6098bde7d22fd080245dd8d5a) (cherry picked from commit 9beeca79ac0ece4fd07ccd83921a7ec93cb85efa)
2016-02-23Core/Logging: Force synchronous logging after io_service shutdown - fixes ↵Shauren
logging on worldserver shutdown
2016-02-22Core/PacketIO: Requeue packets handled with STATUS_LOGGEDIN received before ↵Shauren
player is fully loaded in one step after packet processing loop - reduces used locks from 3 per packet to 1 per packet
2016-02-21Core/Common: Add a generic config helper to access built-in overwriteable paths.Naios
* Adds CMAKE_COMMAND and CMAKE_BINARY_DIR to revision_data.h * Move the source and mysql exe path handling out of the DBUpdater. * Make some Config methods const for correctness. * Remove C & CXX flags from revision_data.h (was unused and didn't capture all cxx vars) * Reorder the link order to prevent `ld` from ignoring the file * Ref #15671
2016-02-19Core/Networking: Rewrite networking threading modelShauren
Each network thread has its own io_service - this means that all operations on a given socket except queueing packets run from a single thread, removing the need for locking Sending packets now writes to a lockfree intermediate queue directly, encryption is applied in network thread if it was required at the time of sending the packet
2016-01-30Collision/MMap: Fix a memleak reported by valgrindCarbenium
Tiles which are owned by the mesh should have the DT_TILE_FREE_DATA flag to ensure deallocation on removal from the mesh. Log: ==23516== 6,181,976 bytes in 6 blocks are definitely lost in loss record 15 of 15 ==23516== at 0x4C298A0: operator new[](unsigned long) (vg_replace_malloc.c:389) ==23516== by 0x2052660: dtCustomAlloc(int, dtAllocHint) (Memory.h:11) ==23516== by 0x29D7FDA: dtAlloc(int, dtAllocHint) (DetourAlloc.cpp:43) ==23516== by 0x230AA70: MMAP::MMapManager::loadMap(std::string const&, unsigned int, int, int) (MMapManager.cpp:166) ==23516== by 0x1DD585B: Map::LoadMMap(int, int) (Map.cpp:125) ==23516== by 0x1DD7266: Map::LoadMapAndVMap(int, int) (Map.cpp:200) ==23516== by 0x1DD93C6: Map::EnsureGridCreated_i(CoordPair<64u> const&) (Map.cpp:453) ==23516== by 0x1DD9129: Map::EnsureGridCreated(CoordPair<64u> const&) (Map.cpp:429) ==23516== by 0x1DED100: Map::GetGrid(float, float) (Map.cpp:2200) ==23516== by 0x1DE0F4C: Map::GetAreaFlag(float, float, float, bool*) const (Map.cpp:2349) ==23516== by 0x198521B: Map::GetZoneId(float, float, float) const (Map.h:353) ==23516== by 0x197CFF0: WorldObject::GetZoneId() const (Object.cpp:1277) Phase tiles aren't managed by detour so they shouldn't be free'd automatically on removal. See MMapManager::UnloadPhaseTile
2016-01-23Core/Misc: Added safeguard against generating invalid selection weight data ↵Shauren
in Trinity::Containers::SelectRandomWeightedContainerElement
2016-01-09Core/Misc: Build fix for clang & libc++Shauren
2016-01-03Core/Utilities: Fix build in some versions of Ubuntu / GCCDDuarte
Closes #16125
2016-01-02Core/Misc: Build fix for older gccShauren
2016-01-01Update copyright note for 2016Vincent-Michael
Happy new year (Again new year with idiots ...)
2015-12-27Core/Misc: VS 2013 build fix - horrible hack.Shauren
2015-12-26Build fixShauren
2015-12-24Core/Utils: Moved rng functions to separate header and added utility ↵Shauren
functions to select a random element from a container where each element can have different chance of being selected
2015-12-12Merge pull request #15912 from Treeston/3.3.5-urandmsjackpoz
Core/Util: Add urandms(minMS, maxMS) helper (cherry picked from commit c1b4cd21f3debc2eb5e462c5adce659b558c7dc9)
2015-11-24Core/MMaps: Fixed mmap loadingZedron
Bug introduced in 1d2aafd
2015-11-15Core: Revert failVincent-Michael
2015-11-15Core: Added missing overridesVincent-Michael
2015-11-13Core/DBLayer: Improve error message from ↵Shauren
0a27f8bce264b8f6d8c55efa8ebc97f6e9cb7d11
2015-10-25Core/Conditions: Optimizations part 1 - use containers more suited for their ↵Shauren
role
2015-10-25Core/Conditions: Type renamingShauren
2015-10-17Warning fixesShauren
2015-10-17Core/Tools: Fix brutal linking in mmaps extractor.Naios
* caused warnings with shared linking * ref #15671
2015-10-16Core/Crash reporting: Fixed windows version detection for 8.1 and newerShauren
2015-09-24Core/Misc: Fix issues reported by static analysisjackpoz
Coverity defect IDs: 1316687, 1316688 (cherry picked from commit 51a2a3fa93702f289cda1e64323f55aba02f1026)
2015-09-21Partially revert "Core/Build: Added missing abort() calls on error handlers"Shauren
This reverts commit 8ea17647e6bced9d4d027c94ecdc63369cb4c6df.
2015-09-21Core/Build: Added missing abort() calls on error handlersStormBytePP
2015-09-21Core/Build: Add Trinity::Abort definition in header fileStormBytePP
2015-09-21Fix a typoStormBytePP
2015-09-21Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick ↵StormBytePP
hack to crash the core misusing assert
2015-09-19Core/Misc: Added a few stl header includes to Common.hShauren
2015-09-13Core/Players: Changed multi-segment taxi paths to fly nearbyShauren
flight masters along the way, not directly through them * Taxi cost on multi-segment paths is now charged per segment when it is started Cherry-picked from commit 2056961aae208c5da094f3bf8fbca599b5ebac40 (+fixes)
2015-09-06Buildsystem: Added dependency on revision_data to common project. Simply ↵Shauren
including the header in GitRevision.cpp is not enough to rebuild that file after updating sources Fixes having to build twice before GitRevision returns accurate info.
2015-08-30Core/Players: Implemented serverside validation of reserved/profane namesShauren
Closes #15357 New library dependency: Boost.Regex
2015-08-25Core/Misc: Fixed macro redefinition warnings when building for running under ↵Shauren
helgrind