diff options
author | Erihel <erihel@gmail.com> | 2012-12-16 13:15:31 -0800 |
---|---|---|
committer | Erihel <erihel@gmail.com> | 2012-12-16 13:15:31 -0800 |
commit | 6bd37341dfe2eb382d654f34a2b89db7fa30d8c2 (patch) | |
tree | 181b0059363cd9e72af437468c40b7c1b7d7038f /src | |
parent | 0b78ebd0f79fa8dbdb69f748551b83cf3f1b947d (diff) | |
parent | c190c3efaec57dcb550a57a56538010ff5e2b532 (diff) | |
download | colobot-6bd37341dfe2eb382d654f34a2b89db7fa30d8c2.tar.gz colobot-6bd37341dfe2eb382d654f34a2b89db7fa30d8c2.tar.bz2 colobot-6bd37341dfe2eb382d654f34a2b89db7fa30d8c2.zip |
Merge pull request #92 from OdyX/dev-default-datadir
Set a default datadir, in sync with the data installation path.
Diffstat (limited to 'src')
-rw-r--r-- | src/app/app.cpp | 3 | ||||
-rw-r--r-- | src/common/config.h.cmake | 4 |
2 files changed, 5 insertions, 2 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; diff --git a/src/common/config.h.cmake b/src/common/config.h.cmake index 8c85df1..7cc2386 100644 --- a/src/common/config.h.cmake +++ b/src/common/config.h.cmake @@ -6,4 +6,6 @@ #cmakedefine PLATFORM_OTHER @PLATFORM_OTHER@ #cmakedefine USE_GLEW @USE_GLEW@ -#cmakedefine GLEW_STATIC
\ No newline at end of file +#cmakedefine GLEW_STATIC + +#define CBOT_DEFAULT_DATADIR "@COLOBOT_DATA_DIR@" |