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;
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
bool createDirectory(const Ogre::String &name)
Create a directory.
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)
void prepareUserHome(const Ogre::String &subdir)
Create an Ogre directory and the given subdir in the user's home.
const Ogre::String getWritablePath(const Ogre::String &filename) const
Find a path where the given filename can be written to.
void getConfigPaths()
Determine config search paths.
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
bool fileExists(const Ogre::String &path) const
Test if the given file exists.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.