DarkflameServer/dCommon
jadebenn fcf4d6c6fa
feat: Improve console output to show packet enum names (magic_enum) (#1344)
* add enum stringification functionality from third party source

* squashed commit

* Macros: Add test and improve speed

Space macros out
utilize cache locality
ensure no lost functionality

* moved stringify code to dCommon

* Rename #defines in stringify enum tests

* Revert "moved stringify code to dCommon"

This reverts commit 33fa5f8d2f.

* improve macro functionality

change function handle

formatting and function definition tweaks

* typo fixes

* moved code to dCommon/dEnums and tests to dCommonTests/dEnumsTests

* initial magic_enums alternate implementation of enum stringification

* deleted unused tests

* reverted compile flag oopsy and fixed output types

* fixed testing suite

* test formatting improvement

* formatting again :(

* added gm string to "aborting gm!" message

* Push my suggestion for CI tests.

* updated magic enum test

* fix test variable type

* added gm test

* making sure magic_enum is on a release branch

* tidying up console outputs

* re-implemented enum array access for performance

* now it is bugged :(

* nvm, working

* helping out the snowflake compilers

* changed return type too

* optimization too

* formatting too I guess because why not

* being even more painfully specific

* Update WorldServer.cpp to match emo's feedback

* Update MagicEnumTests.cpp to use srand(time(NULL))

* Update eGameMessageType.h - formatting

* Trying to fix the crash but can't actually compile the code to check on my own rn

* Update WorldServer.cpp - third try at this

* Update MagicEnumTests.cpp - use better macro definitions

* Update MagicEnumTests.cpp - c string comparison fix

* addressing all but the cmake feedback

* fixed cmake to the best of my very limited ability

* added tests to verify magic enum arrays are pre-sorted

* updated

---------

Co-authored-by: David Markowitz <EmosewaMC@gmail.com>
Co-authored-by: Jettford <mrjettbradford@gmail.com>
2023-12-23 10:51:59 -06:00
..
dClient feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
dEnums feat: Improve console output to show packet enum names (magic_enum) (#1344) 2023-12-23 10:51:59 -06:00
Amf3.h feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
AMFDeserialize.cpp Update AMFDeserialize (#1096) 2023-06-02 06:44:49 -05:00
AMFDeserialize.h Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
AmfSerialize.cpp feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
AmfSerialize.h Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
BinaryIO.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryIO.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryPathFinder.cpp Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
BinaryPathFinder.h Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
Brick.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
BrickByBrickFix.cpp refactor: Database abstraction and organization of files (#1274) 2023-11-17 18:47:18 -06:00
BrickByBrickFix.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
CMakeLists.txt feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
dConfig.cpp feat: make the help menu top 5 issues work and configurable (#1293) 2023-11-15 19:30:46 -06:00
dConfig.h Remove GameConfig (#874) 2023-01-06 23:21:40 -06:00
Demangler.cpp Diagnostics: Fix demangling (#1215) 2023-10-09 15:31:43 -05:00
Demangler.h Diagnostics: Fix demangling (#1215) 2023-10-09 15:31:43 -05:00
Diagnostics.cpp Diagnostics: Fix error file (#1231) 2023-10-22 19:58:19 -05:00
Diagnostics.h format codebase 2022-07-28 08:39:57 -05:00
DluAssert.h Add Animation Table logic 2023-03-26 05:18:45 -07:00
FdbToSqlite.cpp feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
FdbToSqlite.h Address Docker issues and remove need to extract cdclient.fdb (#895) 2023-01-06 23:04:20 -06:00
Game.h Removing ignore works now 2023-11-18 17:33:52 -08:00
GeneralUtils.cpp Allow case insensitive commands (#1047) 2023-04-08 15:45:45 -05:00
GeneralUtils.h feat: add configurable feature and versions (#1298) 2023-11-18 03:33:23 -06:00
LDFFormat.cpp feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
LDFFormat.h Add tests for LDF parsing and serialization. Cleanup LDF (#1062) 2023-05-02 17:19:20 -05:00
Logger.cpp feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
Logger.h feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
MD5.cpp format codebase 2022-07-28 08:39:57 -05:00
MD5.h format codebase 2022-07-28 08:39:57 -05:00
Metrics.cpp Add Animation Table logic 2023-03-26 05:18:45 -07:00
Metrics.hpp Add Animation Table logic 2023-03-26 05:18:45 -07:00
NiPoint3.cpp add operator *= for vectors 2023-08-09 22:13:20 -07:00
NiPoint3.h add operator *= for vectors 2023-08-09 22:13:20 -07:00
NiQuaternion.cpp format codebase 2022-07-28 08:39:57 -05:00
NiQuaternion.h format codebase 2022-07-28 08:39:57 -05:00
SHA512.cpp format codebase 2022-07-28 08:39:57 -05:00
SHA512.h format codebase 2022-07-28 08:39:57 -05:00
Singleton.h CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
ZCompression.cpp Add ZLIB for Windows (#768) 2022-09-05 20:28:47 -07:00
ZCompression.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00