diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-06-22 01:11:37 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-06-22 01:17:19 +0200 |
commit | bfcce26f8949f4ba42cc1bd8203dff51884aa0da (patch) | |
tree | d53c83fa8079952a9226589caf98075cd0623958 /src/ui/maindialog.cpp | |
parent | 1377e48910c1bef1829c67740360b0a8309239a1 (diff) | |
download | colobot-bfcce26f8949f4ba42cc1bd8203dff51884aa0da.tar.gz colobot-bfcce26f8949f4ba42cc1bd8203dff51884aa0da.tar.bz2 colobot-bfcce26f8949f4ba42cc1bd8203dff51884aa0da.zip |
Changes in build organization
* targets are now created in top-level build directory
* more things are now configured through CMake options
* changed debug build detection from NDEBUG to DEV_BUILD
* moved po and desktop directories
* moved last unit test out of src directory
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r-- | src/ui/maindialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp index 3a31883..defff84 100644 --- a/src/ui/maindialog.cpp +++ b/src/ui/maindialog.cpp @@ -175,12 +175,12 @@ CMainDialog::CMainDialog() m_sceneDir = "levels"; - // TODO: replace NDEBUG with something like BUILD_TYPE == "DEBUG"/"RELEASE" - #ifdef NDEBUG - m_savegameDir = GetSystemUtils()->GetSavegameDirectoryLocation(); - #else + #if DEV_BUILD m_savegameDir = "savegame"; + #else + m_savegameDir = GetSystemUtils()->GetSavegameDirectoryLocation(); #endif + m_publicDir = "program"; m_userDir = "user"; m_filesDir = m_savegameDir; |