Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
CPathManager Class Reference

Class for managing data/lang/save paths, and something% replacements. More...

#include <pathman.h>

Inheritance diagram for CPathManager:
Inheritance graph
[legend]

Public Member Functions

void SetDataPath (std::string dataPath)
 
void SetLangPath (std::string langPath)
 
void SetSavePath (std::string savePath)
 
void AddMod (std::string modPath)
 
const std::string & GetDataPath ()
 
const std::string & GetLangPath ()
 
const std::string & GetSavePath ()
 
std::string VerifyPaths ()
 Checks if paths are configured correctly.
 
void InitPaths ()
 Loads configured paths.
 

Static Public Member Functions

static std::string InjectLevelDir (std::string path, const std::string &defaultDir="")
 Does the lvl%, chap%, cat% and lng% replacements (with fallback to English when translations are not available)
 
- Static Public Member Functions inherited from CSingleton< CPathManager >
static CPathManagerGetInstance ()
 
static CPathManagerGetInstancePointer ()
 
static bool IsCreated ()
 

Additional Inherited Members

- Static Protected Attributes inherited from CSingleton< CPathManager >
static CPathManagerm_instance = nullptr
 

Detailed Description

Class for managing data/lang/save paths, and something% replacements.


The documentation for this class was generated from the following files: