28 #ifndef __FileSystemLayer_H__
29 #define __FileSystemLayer_H__
62 prepareUserHome(subdir);
76 #if OGRE_DEBUG_MODE == 1 && (OGRE_PLATFORM != OGRE_PLATFORM_APPLE && OGRE_PLATFORM != OGRE_PLATFORM_APPLE_IOS)
78 Ogre::String::size_type pos = filename.rfind(
'.');
79 if (pos != Ogre::String::npos)
91 for (
size_t i = 0; i < mConfigPaths.size(); ++i)
93 path = mConfigPaths[i] + filename;
112 return mHomePath + filename;
116 mConfigPaths = paths;
131 void getConfigPaths();
const Ogre::String getWritablePath(const Ogre::String &filename) const
Find a path where the given filename can be written to.
Provides methods to find out where the Ogre config files are stored and where logs and settings files...
FileSystemLayer(const Ogre::String &subdir)
Creates a concrete platform-dependent implementation of FileSystemLayer.
void setHomePath(const Ogre::String &path)
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
vector< String >::type StringVector
Ogre::StringVector mConfigPaths
void setConfigPaths(const Ogre::StringVector &paths)
const Ogre::String getConfigFilePath(Ogre::String filename) const
Search for the given config file in the user's home path.