mirror of
https://github.com/edubart/otclient.git
synced 2025-12-02 16:06:51 +01:00
Remove boost::filesystem dependency
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
|
||||
#include <framework/xml/tinyxml.h>
|
||||
#include <framework/core/resourcemanager.h>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
CreatureManager g_creatures;
|
||||
|
||||
@@ -196,6 +195,8 @@ void CreatureManager::loadNpcs(const std::string& folder)
|
||||
if(!stdext::ends_with(tmp, "/"))
|
||||
tmp += "/";
|
||||
|
||||
// FIXME: filesystem is not supported anymore, rework the following code with g_resources
|
||||
/*
|
||||
boost::filesystem::path npcPath(boost::filesystem::current_path().generic_string() + tmp);
|
||||
if(!boost::filesystem::exists(npcPath))
|
||||
stdext::throw_exception(stdext::format("NPCs folder '%s' was not found.", folder));
|
||||
@@ -207,6 +208,7 @@ void CreatureManager::loadNpcs(const std::string& folder)
|
||||
|
||||
loadCreatureBuffer(g_resources.readFileContents(tmp + f));
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void CreatureManager::loadSpawns(const std::string& fileName)
|
||||
|
||||
Reference in New Issue
Block a user