fixed compiling in 2015

This commit is contained in:
Martin Felis
2015-06-11 13:54:53 +02:00
parent c05d85badb
commit 316d9dbef8
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ FIND_PACKAGE (OpenGL REQUIRED)
FIND_PACKAGE (GLEW REQUIRED)
FIND_PACKAGE (PNG REQUIRED)
FIND_PACKAGE (FreeType2 REQUIRED)
FIND_PACKAGE (Boost COMPONENTS filesystem REQUIRED)
FIND_PACKAGE (Boost COMPONENTS filesystem system REQUIRED)
ADD_SUBDIRECTORY ( libraries )
+2 -2
View File
@@ -121,13 +121,13 @@ class Engine : public Module {
* \brief it
*/
std::string GetResourceFullPath (const std::string &resource) {
return boost::filesystem::path(mGameDataPath + resource).file_string();
return boost::filesystem::path(mGameDataPath + resource).string();
};
/** \brief Returns the path to a file by prepending the user data path to it
*/
std::string GetUserDirFullPath (const std::string &path) {
return boost::filesystem::path(mUserDataPath + path).file_string();
return boost::filesystem::path(mUserDataPath + path).string();
};
private: