fixed compiling in 2015
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user