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/common/profile.cpp | |
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/common/profile.cpp')
-rw-r--r-- | src/common/profile.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/profile.cpp b/src/common/profile.cpp index 654648d..f36baca 100644 --- a/src/common/profile.cpp +++ b/src/common/profile.cpp @@ -43,7 +43,11 @@ CProfile::~CProfile() { try { + #ifdef NDEBUG bp::ini_parser::write_ini(GetSystemUtils()->profileFileLocation(), m_propertyTree); + #else + bp::ini_parser::write_ini("colobot.ini", m_propertyTree); + #endif } catch (std::exception & e) { @@ -57,7 +61,11 @@ bool CProfile::InitCurrentDirectory() { try { + #ifdef NDEBUG bp::ini_parser::read_ini(GetSystemUtils()->profileFileLocation(), m_propertyTree); + #else + bp::ini_parser::read_ini("colobot.ini", m_propertyTree); + #endif } catch (std::exception & e) { |