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();
void setHomePath(const Ogre::String &path)
FileSystemLayer(const Ogre::String &subdir)
Creates a concrete platform-dependent implementation of FileSystemLayer.
vector< String >::type StringVector
Provides methods to find out where the Ogre config files are stored and where logs and settings files...
const Ogre::String getWritablePath(const Ogre::String &filename) const
Find a path where the given filename can be written to.
void setConfigPaths(const Ogre::StringVector &paths)
Ogre::StringVector mConfigPaths
const Ogre::String getConfigFilePath(Ogre::String filename) const
Search for the given config file in the user's home path.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...