41 void SetDataPath(std::string dataPath);
42 void SetLangPath(std::string langPath);
43 void SetSavePath(std::string savePath);
44 void AddMod(std::string modPath);
46 const std::string& GetDataPath();
47 const std::string& GetLangPath();
48 const std::string& GetSavePath();
56 static std::string
InjectLevelDir(std::string path,
const std::string& defaultDir =
"");
60 void LoadModsFromDir(
const std::string &dir);
64 std::string m_dataPath;
66 std::string m_langPath;
68 std::string m_savePath;
CSingleton base class for singletons.
Class for managing data/lang/save paths, and something% replacements.
Definition: pathman.h:35
std::string VerifyPaths()
Checks if paths are configured correctly.
Definition: pathman.cpp:101
Definition: singleton.h:30
void InitPaths()
Loads configured paths.
Definition: pathman.cpp:137
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 ...
Definition: pathman.cpp:172