diff --git a/src/io/file_manager.cpp b/src/io/file_manager.cpp index 60e2d69ba..ee6e18629 100644 --- a/src/io/file_manager.cpp +++ b/src/io/file_manager.cpp @@ -200,7 +200,13 @@ FileManager::FileManager() checkAndCreateGPDir(); redirectOutput(); +} // FileManager +// ---------------------------------------------------------------------------- +/** Detects where the assets are stored. + */ +void FileManager::discoverPaths() +{ // We can't use _() here, since translations will only be initalised // after the filemanager (to get the path to the tranlsations from it) for(unsigned int i=0; igrab(); // Note that we can't push the texture search path in the constructor - // since this also adds a file archive to te file system - and - // m_file_system is deleted (in irr_driver) after + // since this also adds a file archive to the file system - and + // m_file_system is deleted (in irr_driver) pushTextureSearchPath(m_subdir_name[TEXTURE]); if(fileExists(m_subdir_name[TEXTURE]+"deprecated/")) pushTextureSearchPath(m_subdir_name[TEXTURE]+"deprecated/"); diff --git a/src/io/file_manager.hpp b/src/io/file_manager.hpp index bda793fc2..d52e7fd7a 100644 --- a/src/io/file_manager.hpp +++ b/src/io/file_manager.hpp @@ -107,6 +107,7 @@ public: FileManager(); ~FileManager(); void reInit(); + void discoverPaths(); void dropFileSystem(); static void addRootDirs(const std::string &roots); io::IXMLReader *createXMLReader(const std::string &filename);