Core/Misc: Support boost 1.85
This commit is contained in:
@@ -26,7 +26,7 @@ if (WIN32)
|
|||||||
# On windows the requirements are higher according to the wiki.
|
# On windows the requirements are higher according to the wiki.
|
||||||
set(BOOST_REQUIRED_VERSION 1.78)
|
set(BOOST_REQUIRED_VERSION 1.78)
|
||||||
else()
|
else()
|
||||||
set(BOOST_REQUIRED_VERSION 1.71)
|
set(BOOST_REQUIRED_VERSION 1.74)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED system filesystem program_options iostreams regex locale)
|
find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED system filesystem program_options iostreams regex locale)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "StringConvert.h"
|
#include "StringConvert.h"
|
||||||
|
#include <boost/filesystem/directory.hpp>
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <boost/property_tree/ini_parser.hpp>
|
#include <boost/property_tree/ini_parser.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "UpdateFetcher.h"
|
#include "UpdateFetcher.h"
|
||||||
#include "Common.h"
|
#include "CryptoHash.h"
|
||||||
#include "DBUpdater.h"
|
#include "DBUpdater.h"
|
||||||
#include "Field.h"
|
#include "Field.h"
|
||||||
#include "CryptoHash.h"
|
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "QueryResult.h"
|
#include "QueryResult.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
#include <boost/filesystem/directory.hpp>
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
#include "Timer.h"
|
#include "Timer.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
#include "World.h"
|
#include "World.h"
|
||||||
|
#include <boost/filesystem/directory.hpp>
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
|||||||
@@ -857,7 +857,7 @@ private:
|
|||||||
|
|
||||||
{
|
{
|
||||||
boost::system::error_code code;
|
boost::system::error_code code;
|
||||||
fs::copy_file(path, cache_path, fs::copy_option::fail_if_exists, code);
|
fs::copy_file(path, cache_path, code);
|
||||||
if (code)
|
if (code)
|
||||||
{
|
{
|
||||||
TC_LOG_FATAL("scripts.hotswap", ">> Failed to create cache entry for module "
|
TC_LOG_FATAL("scripts.hotswap", ">> Failed to create cache entry for module "
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ EndScriptData */
|
|||||||
#include "VMapManager2.h"
|
#include "VMapManager2.h"
|
||||||
#include "World.h"
|
#include "World.h"
|
||||||
#include "WorldSession.h"
|
#include "WorldSession.h"
|
||||||
|
#include <boost/filesystem/directory.hpp>
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
#include <openssl/opensslv.h>
|
#include <openssl/opensslv.h>
|
||||||
|
|||||||
@@ -30,14 +30,15 @@
|
|||||||
#include "adt.h"
|
#include "adt.h"
|
||||||
#include "wdt.h"
|
#include "wdt.h"
|
||||||
#include <CascLib.h>
|
#include <CascLib.h>
|
||||||
#include <boost/filesystem/path.hpp>
|
#include <boost/filesystem/directory.hpp>
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
|
#include <boost/filesystem/path.hpp>
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
#include <cstdio>
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
|
||||||
@@ -1401,7 +1402,7 @@ bool OpenCascStorage(int locale)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (boost::filesystem::filesystem_error const& error)
|
catch (std::exception const& error)
|
||||||
{
|
{
|
||||||
printf("Error opening CASC storage: %s\n", error.what());
|
printf("Error opening CASC storage: %s\n", error.what());
|
||||||
return false;
|
return false;
|
||||||
@@ -1429,7 +1430,7 @@ uint32 GetInstalledLocalesMask()
|
|||||||
|
|
||||||
return storage->GetInstalledLocalesMask();
|
return storage->GetInstalledLocalesMask();
|
||||||
}
|
}
|
||||||
catch (boost::filesystem::filesystem_error const& error)
|
catch (std::exception const& error)
|
||||||
{
|
{
|
||||||
printf("Unable to determine installed locales mask: %s\n", error.what());
|
printf("Unable to determine installed locales mask: %s\n", error.what());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include "wmo.h"
|
#include "wmo.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <CascLib.h>
|
#include <CascLib.h>
|
||||||
|
#include <boost/filesystem/directory.hpp>
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <list>
|
#include <list>
|
||||||
@@ -127,7 +128,7 @@ bool OpenCascStorage(int locale)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (boost::filesystem::filesystem_error const& error)
|
catch (std::exception const& error)
|
||||||
{
|
{
|
||||||
printf("error opening casc storage : %s\n", error.what());
|
printf("error opening casc storage : %s\n", error.what());
|
||||||
return false;
|
return false;
|
||||||
@@ -156,7 +157,7 @@ uint32 GetInstalledLocalesMask()
|
|||||||
|
|
||||||
return storage->GetInstalledLocalesMask();
|
return storage->GetInstalledLocalesMask();
|
||||||
}
|
}
|
||||||
catch (boost::filesystem::filesystem_error const& error)
|
catch (std::exception const& error)
|
||||||
{
|
{
|
||||||
printf("Unable to determine installed locales mask: %s\n", error.what());
|
printf("Unable to determine installed locales mask: %s\n", error.what());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user