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

@@ -31,9 +31,6 @@
#include <framework/platform/crashhandler.h>
#include <framework/platform/platform.h>
#include <boost/locale.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <locale>
#ifdef FW_NET
@@ -75,8 +72,6 @@ void Application::init(std::vector<std::string>& args)
// setup locale
std::locale::global(std::locale());
std::locale utf8("en_US.UTF-8");
boost::filesystem::path::imbue(utf8);
// process args encoding
g_platform.processArgs(args);

View File

@@ -25,9 +25,9 @@
#include <framework/core/application.h>
#include <framework/luaengine/luainterface.h>
#include <framework/platform/platform.h>
#include <physfs.h>
#include <boost/filesystem.hpp>
ResourceManager g_resources;
@@ -298,7 +298,7 @@ std::string ResourceManager::getRealDir(const std::string& path)
std::string ResourceManager::getCurrentDir()
{
return boost::filesystem::current_path().generic_string<std::string>() + "/";
return g_platform.getCurrentDir();
}
std::string ResourceManager::getBaseDir()