diff --git a/CMakeLists.txt b/CMakeLists.txt index 9437bc63..005466cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ if(UNIX) if(APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17 -O2 -Wuninitialized -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX17_ABI=0 -fPIC") else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17 -O2 -Wuninitialized -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX17_ABI=0 -static-libgcc -fPIC") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++17 -O2 -Wuninitialized -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX17_ABI=0 -static-libgcc -fPIC -lstdc++fs") endif() if (__dynamic AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -rdynamic") diff --git a/dChatServer/ChatServer.cpp b/dChatServer/ChatServer.cpp index 5a60e494..fc8bdd5b 100644 --- a/dChatServer/ChatServer.cpp +++ b/dChatServer/ChatServer.cpp @@ -55,7 +55,7 @@ int main(int argc, char** argv) { try { std::string client_path = config.GetValue("client_location"); if (client_path.empty()) client_path = "./res"; - Game::assetManager = new AssetManager(config.GetValue("client_location")); + Game::assetManager = new AssetManager(client_path); } catch (std::runtime_error& ex) { Game::logger->Log("ChatServer", "Got an error while setting up assets: %s", ex.what()); diff --git a/dMasterServer/MasterServer.cpp b/dMasterServer/MasterServer.cpp index 5aac3743..12d8e04f 100644 --- a/dMasterServer/MasterServer.cpp +++ b/dMasterServer/MasterServer.cpp @@ -104,7 +104,7 @@ int main(int argc, char** argv) { try { std::string client_path = config.GetValue("client_location"); if (client_path.empty()) client_path = "./res"; - Game::assetManager = new AssetManager(config.GetValue("client_location")); + Game::assetManager = new AssetManager(client_path); } catch (std::runtime_error& ex) { Game::logger->Log("MasterServer", "Got an error while setting up assets: %s", ex.what()); diff --git a/dWorldServer/WorldServer.cpp b/dWorldServer/WorldServer.cpp index 23761b2b..d4e55cb5 100644 --- a/dWorldServer/WorldServer.cpp +++ b/dWorldServer/WorldServer.cpp @@ -148,7 +148,7 @@ int main(int argc, char** argv) { try { std::string client_path = config.GetValue("client_location"); if (client_path.empty()) client_path = "./res"; - Game::assetManager = new AssetManager(config.GetValue("client_location")); + Game::assetManager = new AssetManager(client_path); } catch (std::runtime_error& ex) { Game::logger->Log("WorldServer", "Got an error while setting up assets: %s", ex.what());