diff options
author | Didier Raboud <odyx@debian.org> | 2012-12-16 21:29:13 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2012-12-16 21:53:48 +0100 |
commit | c190c3efaec57dcb550a57a56538010ff5e2b532 (patch) | |
tree | 181b0059363cd9e72af437468c40b7c1b7d7038f /src/app/app.cpp | |
parent | 0b78ebd0f79fa8dbdb69f748551b83cf3f1b947d (diff) | |
download | colobot-c190c3efaec57dcb550a57a56538010ff5e2b532.tar.gz colobot-c190c3efaec57dcb550a57a56538010ff5e2b532.tar.bz2 colobot-c190c3efaec57dcb550a57a56538010ff5e2b532.zip |
Set a default datadir, in sync with the data installation path.
Diffstat (limited to 'src/app/app.cpp')
-rw-r--r-- | src/app/app.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index 751ff21..980ecc1 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -15,6 +15,7 @@ // * You should have received a copy of the GNU General Public License // * along with this program. If not, see http://www.gnu.org/licenses/. +#include "common/config.h" #include "app/app.h" @@ -130,7 +131,7 @@ CApplication::CApplication() m_mouseButtonsState = 0; m_trackedKeys = 0; - m_dataPath = "./data"; + m_dataPath = CBOT_DEFAULT_DATADIR; m_language = LANGUAGE_ENV; |