diff --git a/dCommon/GeneralUtils.cpp b/dCommon/GeneralUtils.cpp index 03b6a0bc..7cc9278b 100644 --- a/dCommon/GeneralUtils.cpp +++ b/dCommon/GeneralUtils.cpp @@ -7,6 +7,10 @@ #include #include +#include "json.hpp" + +using json = nlohmann::json; + template static inline size_t MinSize(const size_t size, const std::basic_string_view string) { if (size == SIZE_MAX || size > string.size()) { @@ -327,10 +331,6 @@ std::vector GeneralUtils::GetSqlFileNamesFromFolder(const std::stri return sortedFiles; } -#include "json.hpp" - -using json = nlohmann::json; - template<> [[nodiscard]] std::optional GeneralUtils::TryParse(std::string_view str) { try { diff --git a/dCommon/GeneralUtils.h b/dCommon/GeneralUtils.h index 1565a3d7..b888ddf5 100644 --- a/dCommon/GeneralUtils.h +++ b/dCommon/GeneralUtils.h @@ -18,7 +18,6 @@ #include "dPlatforms.h" #include "Game.h" #include "Logger.h" -#include "json_fwd.hpp" enum eInventoryType : uint32_t; enum class eObjectBits : size_t; diff --git a/dCommon/Logger.h b/dCommon/Logger.h index 7782f470..5754d9ac 100644 --- a/dCommon/Logger.h +++ b/dCommon/Logger.h @@ -80,7 +80,6 @@ public: void SetLogToConsole(bool logToConsole); void SetLogDebugStatements(bool logDebugStatements) { m_logDebugStatements = logDebugStatements; } - bool GetLogDebugStatements() const { return m_logDebugStatements; } private: void vLog(const char* format, va_list args); diff --git a/dNet/CMakeLists.txt b/dNet/CMakeLists.txt index 32b350d2..172aee20 100644 --- a/dNet/CMakeLists.txt +++ b/dNet/CMakeLists.txt @@ -5,8 +5,7 @@ set(DNET_SOURCES "AuthPackets.cpp" "MasterPackets.cpp" "PacketUtils.cpp" "WorldPackets.cpp" - "ZoneInstanceManager.cpp" -) + "ZoneInstanceManager.cpp") add_library(dNet STATIC ${DNET_SOURCES}) target_link_libraries(dNet PRIVATE bcrypt MD5)