summaryrefslogtreecommitdiffstats
path: root/src/app/app.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-22 14:40:13 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-22 14:40:13 +0200
commitfd09071c29452bdfea2c519f0defbffebee42f4c (patch)
tree44d2d9d59d4c98204cb1d60bf101414bfc45b708 /src/app/app.h
parent37e7c73f439c0d8cbfd0f1c02b7ef5916fd748ae (diff)
downloadcolobot-fd09071c29452bdfea2c519f0defbffebee42f4c.tar.gz
colobot-fd09071c29452bdfea2c519f0defbffebee42f4c.tar.bz2
colobot-fd09071c29452bdfea2c519f0defbffebee42f4c.zip
Data dir paths
- changed access to paths in data directory in CApplication - models now load from data directory
Diffstat (limited to 'src/app/app.h')
-rw-r--r--src/app/app.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/app/app.h b/src/app/app.h
index f5383ce..f1e2c7f 100644
--- a/src/app/app.h
+++ b/src/app/app.h
@@ -283,8 +283,14 @@ public:
bool GetDebugMode();
//@}
- //! Returns the full path to a file in data directory
- std::string GetDataFilePath(const std::string &dirName, const std::string &fileName);
+ //! Returns the full path to data directory
+ std::string GetDataDirPath();
+
+ //! Returns the full path to a file in data directory given standard dir and subpath
+ std::string GetDataFilePath(DataDir dir, const std::string &subpath);
+
+ //! Returns the full path to a file in data directory given custom subpath in data dir
+ std::string GetDataFilePath(const std::string &subpath);
//! Management of language
//@{
@@ -397,6 +403,8 @@ protected:
//! Path to directory with data files
std::string m_dataPath;
+ const char* m_dataDirs[DIR_MAX];
+
//! Application language
Language m_language;