Go to the documentation of this file.
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();
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
FileSystemLayer(const Ogre::String &subdir)
Creates a concrete platform-dependent implementation of FileSystemLayer.
vector< String >::type StringVector
const Ogre::String getConfigFilePath(Ogre::String filename) const
Search for the given config file in the user's home path.
void setConfigPaths(const Ogre::StringVector &paths)
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...
void setHomePath(const Ogre::String &path)
Ogre::StringVector mConfigPaths
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15