Commit Graph

33 Commits

Author SHA1 Message Date
Shauren
fc37c42e55 Core/Misc: Added noexcept to move constructors and move assignment operators 2022-11-06 01:03:35 +01:00
Shauren
bdf22f955d Core/Scripts: Fixed worldserver startup with hostwap enabled when ran in terminals that don't pass full path to argv[0] 2022-10-05 18:24:37 +02:00
ihm-tswow
56f0129ff3 Core/Game: Fix cache path with git flow branches (#26494)
- git flow may put forward slashes in branch names, so we cannot assume we are just creating one directory.

(cherry picked from commit 471e5af32d)
2022-03-09 14:20:25 +01:00
Shauren
ad4f4bfab7 Core/Misc: Minor game include cleanup 2022-02-13 00:49:10 +01:00
Shauren
2b312c7bd2 Dep: Switch to boost process instead of old standalone version
(cherry picked from commit 524d167398)
2022-01-23 20:39:15 +01:00
Ujp8LfXBJ6wCPR
91a0fbbd71 Use boost::optional and boost::none instead of smelly pointer (#24134)
* Remove bad pointer usage from CharacterCache

Use TrinityCore Option type instead which is intended for this purpose. (Wrapper around boost::option until C++17 bump is finalised)

* Unify codestyle regarding TC optional type

Based upon advice from @Shauren

(cherry picked from commit 76831f1f46)
2021-12-21 15:21:39 +01:00
Shauren
b13e9f9d61 Core/Misc: Fixed clang 13 warnings, gcc 11 build errors and nopch build 2021-10-25 00:05:05 +02:00
Treeston
3418a33a87 Misc: Pass std::chrono types by value everywhere.
(cherry picked from commit 2ef9d301f0)
2021-10-14 19:39:42 +02:00
Treeston
e9392ad287 Core/Authserver: Authserver cleanup (PR#25093)
- Fix a handful of 1/256 bugs with most significant byte zero in BigNumber
- Get rid of (most of) the C-style arrays in authserver
- CryptoRandom as a unified source for cryptographic randomness
- Bring our other crypto APIs into 2020
- BigNumber usability improvements
- Authserver is now actually readable as a result of all of the above

(cherry picked from commit 210176fd91)
2020-08-03 19:39:00 +02:00
Peter Keresztes Schmidt
bab5fd87a3 Core/Misc: Replace Trinity::make_unique with std (#24869) 2020-06-23 08:54:12 +02:00
Aokromes
b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
vincent-michael
5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
vincent-michael
7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
DoctorKraft
96ef820e20 Core/Hotswap: Fix Reload on Linux
* Closes #19465

(cherry picked from commit 04dfd78dac)
2017-05-23 19:09:51 +02:00
Shauren
c5d3dd90be Core/Game: Include cleanup
* Mostly aimed at removing Log/DatabaseEnv includes from other headers
* Fix most packet headers including other packet headers - moved common structures such as ItemInstance to their own files
* Moved SAI function definitions to source files (massive or requiring many different dependencies)
2017-05-18 23:53:25 +02:00
Shauren
3a418a0bbc Core/Common: Include cleanup 2017-05-11 22:29:51 +02:00
Shauren
43510a258c Core/Hotswap: Replace #ifdef conditions with comparisons of values defined in CompilerDefs.h 2017-04-15 17:15:28 +02:00
S.V
886e9e839b Core/ScriptReloadMgr: Fixed scripts hot swapping on OS X (#19365) 2017-04-05 22:02:34 +02:00
vincent-michael
86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
Shauren
b6f1f8405f Core/Misc: Added regex compatibility layer to fall back to boost::regex for really old compiler 2016-12-10 19:11:10 +01:00
Naios
58dd647a88 Core/Scripting: Fix acquiring of references between script swaps
* Delay unloading of shared libraries to the next update tick
  to prevent crashes in the destructor of the last referenced
  script instance.
* Closes #17557

(cherry picked from commit 445746c402)
2016-07-13 22:01:14 +02:00
Naios
51ec8d3b8c Core/Scripting: Use the path of the worldserver executable to search for the scripts dir
* Fixes issues when starting the worldserver not in the bin directory
  or the CMAKE_INSTALL_PREFIX directory using the -c option.

(cherry picked from commit 86b0fcf67a)
2016-04-18 23:03:24 +02:00
Naios
2809f11839 Core/Scripting: Use the systems temporary path for caching shared libs
* Disables the shared library caching on platforms completely which
  never block files on usage (like linux).

(cherry picked from commit 081720b5dd)
2016-04-18 22:11:23 +02:00
Naios
d95bc7329d Core/Scripting: Add the info how much time the system took to reload
(cherry picked from commit 11b5de63cb)
2016-04-18 22:11:09 +02:00
Naios
8fa52860ab Core/Scripting: Improve the error message when the script reloader fails to create a cache entry 2016-04-16 22:07:13 +02:00
Vincent-Michael
3cd19d3b30 Core: Removed Whitespaces 2016-04-16 12:19:23 +02:00
Naios
8f78b1ed87 Core/Scripting: Fix a typo in b970a684
(cherry picked from commit ea627589d6)
2016-04-14 22:17:54 +02:00
Naios
19bf0513bc Core/Scripting: Wait until the debugger is detached before rebuilding scripts.
* Thanks Shauren for the IsDebuggerPresent() hint.

(cherry picked from commit b970a68473)
2016-04-14 21:30:52 +02:00
Naios
2038c31100 Core/Scripting: Disallow the build directory to contain spaces
* I wasn't able to work arround a path which contains spaces,
  since it seems like a CMake specific issue.
* Closes #16947

(cherry picked from commit 42eeb28a8b)
2016-04-14 21:30:43 +02:00
Naios
f4a19fe795 Core/Scripting: Fix detection of source changes when using inotify.
* This fixes the source change detection in linux.
* Also simplifies the detection of observed modules
* Fixes the script rebuilding on linux
* Escape windows paths to (maybe) fix paths with spaces (#16947)

(cherry picked from commit 10bc41c91e)
2016-04-13 14:00:07 +02:00
Naios
a3936c143d Core/Scripting: Fix an assertion which was triggered at lazy unloading
* Also fixes 2 warnings

(cherry picked from commit e82a934387)
2016-04-12 16:54:11 +02:00
Naios
b88074086b Core/Scripting: Fix a warning when building statically
(cherry picked from commit 1b909f9dac)
2016-04-11 21:59:37 +02:00
Naios
bc0f2b6e5a Core/Game: Add a dynamic script reloader which reloads scripts modules on changes.
* is responsible for registering plain modules.
* requires compilation with the `WITH_DYNAMIC_LINKING` flag.
* requires further support of the ScriptMgr.
2016-04-11 21:13:59 +02:00