Remove boost::filesystem dependency

This commit is contained in:
Eduardo Bart
2013-02-22 19:29:58 -03:00
parent 09c937998f
commit 04c4943fa8
7 changed files with 26 additions and 9 deletions

View File

@@ -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)