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...
Provides methods to find out where the Ogre config files are stored and where logs and settings files...
bool fileExists(const Ogre::String &path) const
Test if the given file exists.
void getConfigPaths()
Determine config search paths.
bool createDirectory(const Ogre::String &name)
Create a directory.
FileSystemLayer(const Ogre::String &subdir)
Creates a concrete platform-dependent implementation of FileSystemLayer.
Ogre::StringVector mConfigPaths
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 setHomePath(const Ogre::String &path)
vector< String >::type StringVector