Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Wrapper class for OS paths used by the game. More...
#include <Paths.h>
Public Member Functions | |
Paths (const CmdLineArgs &args) | |
const OsPath & | Root () const |
Returns the game's root directory. More... | |
const OsPath & | RData () const |
Returns directory for read-only data installed with the game. More... | |
const OsPath & | GameData () const |
Returns directory for game-managed data and mods. More... | |
const OsPath & | UserData () const |
Returns directory for user-created data Only things created in response to an explicit user action should go here. More... | |
const OsPath & | Config () const |
Returns config file directory. More... | |
const OsPath & | Cache () const |
Returns cache directory. More... | |
const OsPath & | Logs () const |
Returns logs directory. More... | |
Static Private Member Functions | |
static OsPath | Root (const OsPath &argv0) |
static OsPath | RootData (const OsPath &argv0) |
static OsPath | XDG_Path (const char *envname, const OsPath &home, const OsPath &defaultPath) |
Private Attributes | |
OsPath | m_root |
OsPath | m_rdata |
OsPath | m_gameData |
OsPath | m_userData |
OsPath | m_config |
OsPath | m_cache |
OsPath | m_logs |
Wrapper class for OS paths used by the game.
Paths::Paths | ( | const CmdLineArgs & | args | ) |
|
inline |
Returns cache directory.
|
inline |
Returns config file directory.
|
inline |
Returns directory for game-managed data and mods.
|
inline |
Returns logs directory.
|
inline |
Returns directory for read-only data installed with the game.
|
inline |
Returns the game's root directory.
|
inline |
Returns directory for user-created data Only things created in response to an explicit user action should go here.
(note: only Windows currently treats this differently than GameData)
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |