From 23e3e552f3a93b382e494d0a60ab22c266d1dcd1 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Wed, 1 May 2013 19:44:55 +0200 Subject: 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 :) --- src/ui/maindialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui') 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"; -- cgit v1.2.3-1-g7c22