58 const static std::string
GUI_PATH(
"/GUI");
388 TR_UTIL_EXPORT std::string
FindFile(
const std::string& fileName, std::vector<std::string> paths,
bool caseInsensitive =
true);
400 std::string GetBundleResourcesPath();
410 std::string GetBundlePlugInsPath();
420 std::string GetBundlePath();
static const std::string TEXTURES_PATH("/Textures")
TR_UTIL_EXPORT std::string GetUserGUIPath()
Gets user graphical user interface path.
TR_UTIL_EXPORT std::string GetSkeletalMeshesPath()
Gets skeletal meshes path.
static const std::string SHADERS_PATH("/Shaders")
TR_UTIL_EXPORT std::string GetSoundsPath()
Gets sounds path.
TR_UTIL_EXPORT std::string GetDataPath()
Get the TR Data file path.
static const std::string DEFAULT_TR_FOLDER("/.trueReality")
TR_UTIL_EXPORT std::string GetDataFilePathList()
Get the list of data file paths.
TR_UTIL_EXPORT void SetDataFilePathList(const std::string &pathList)
Set the list of data file paths.
TR_UTIL_EXPORT std::string GetRootPath()
Get the root path to the engine (equivalent to the TR_ROOT environment) If the TR_ROOT environment is...
TR_UTIL_EXPORT std::string GetUserStaticMeshesPath()
Gets user static meshes path.
TR_UTIL_EXPORT std::string GetShadersPath()
Gets shaders path.
TR_UTIL_EXPORT void CreateDataPathTree()
Creates all the folders in the Data (TR_DATA) folder, that includes Maps, GUI, Shaders, StaticMeshes, etc etc.
TR_UTIL_EXPORT void CreateUserDataPathTree()
Creates all the folders in the Data (TR_USER_DATA) folder, that includes Maps, GUI, Shaders, StaticMeshes, etc etc.
TR_UTIL_EXPORT std::string GetUserDataPath()
Get the folder where TR will save and store User data files It is MyDocuments on Windows and the same...
static const std::string GUI_PATH("/GUI")
TR_UTIL_EXPORT std::string GetGUIPath()
Gets graphical user interface path.
TR_UTIL_EXPORT bool IsEnvironment(const std::string &env)
Is the supplied environment variable defined?
TR_UTIL_EXPORT std::string GetUserConfigPath()
Gets user configuration path.
TR_UTIL_EXPORT std::string GetStaticMeshesPath()
Gets static meshes path.
TR_UTIL_EXPORT std::string GetEnvironment(const std::string &env)
Convenience method to get the supplied environment variable.
TR_UTIL_EXPORT std::string GetTerrainsPath()
Gets terrain path.
static const std::string STATIC_MESHES_PATH("/StaticMeshes")
TR_UTIL_EXPORT std::string GetConfigPath()
Gets configuration path.
TR_UTIL_EXPORT std::string GetUserParticlesPath()
Gets user particles path.
TR_UTIL_EXPORT std::string GetUserSoundsPath()
Gets user sounds path.
A class that represents date time utility.
TR_UTIL_EXPORT std::string GetLogPath()
Get the folder where TR will save and store the log files It is the same as GetUserDataPath() by defa...
static const std::string SOUNDS_PATH("/Sounds")
void RemovePSNCommandLineOption(int &, char **&)
Removes the psn command line option.
TR_UTIL_EXPORT std::string GetParticlesPath()
Gets particles path.
TR_UTIL_EXPORT std::string GetUserTexturesPath()
Gets user textures path.
TR_UTIL_EXPORT void SetEnvironment(const std::string &name, const std::string &value)
Sets an environment variable.
static const std::string PARTICLES_PATH("/Particles")
TR_UTIL_EXPORT void SetDataPath(std::string &path)
Overwrites the Data path.
static const std::string TERRAINS_PATH("/Terrains")
TR_UTIL_EXPORT std::string GetUserHomeDirectory()
Get the USER Home directory.
static const std::string DATA_PATH_DEFAULT("/Data")
TR_UTIL_EXPORT std::string GetTexturesPath()
Gets textures path.
static const std::string SKELETAL_MESHES_PATH("/SkeletalMeshes")
TR_UTIL_EXPORT std::string GetUserShadersPath()
Gets user shaders path.
TR_UTIL_EXPORT std::string FindFile(const std::string &fileName)
Searches for a file in the list of paths found by calling GetDataFilePathList()
TR_UTIL_EXPORT void CreateDataPathTrees()
Convenience function that calls CreateDataPathTree() and CreateUserDataPathTree();.
TR_UTIL_EXPORT std::string GetUserTerrainsPath()
Gets user terrain path.
TR_UTIL_EXPORT std::string GetUserSkeletalMeshesPath()
Gets user skeletal meshes path.
static const std::string CONFIG_PATH("/Config")