diff options
author | krzys-h <krzys_h@interia.pl> | 2013-05-01 19:44:55 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-05-01 19:44:55 +0200 |
commit | 23e3e552f3a93b382e494d0a60ab22c266d1dcd1 (patch) | |
tree | 67de78e9b6126d70ec2940ca191207fc89b028b9 /src/ui | |
parent | 9e1870f6bdb24e278c06929b8bd13225a7fdf8d3 (diff) | |
download | colobot-23e3e552f3a93b382e494d0a60ab22c266d1dcd1.tar.gz colobot-23e3e552f3a93b382e494d0a60ab22c266d1dcd1.tar.bz2 colobot-23e3e552f3a93b382e494d0a60ab22c266d1dcd1.zip |
Made colobot.ini & savegame dir location depended on build type
For Debug, it's current dir
For Release it's like it was before
Made on @CoLoRaptor's request :)
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/maindialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp index 699cb7b..2a8bb42 100644 --- a/src/ui/maindialog.cpp +++ b/src/ui/maindialog.cpp @@ -174,7 +174,11 @@ CMainDialog::CMainDialog() m_sceneDir = "levels"; + #ifdef NDEBUG m_savegameDir = GetSystemUtils()->savegameDirectoryLocation(); + #else + m_savegameDir = "savegame"; + #endif m_publicDir = "program"; m_userDir = "user"; m_filesDir = "files"; |