summaryrefslogtreecommitdiffstats
path: root/src/app/system_windows.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-07-24 23:38:13 +0200
committerkrzys-h <krzys_h@interia.pl>2014-07-24 23:38:13 +0200
commit9a3cd67c3bb2f7d0d4b83f6a5ac8bbcfedf4207b (patch)
treefd6401e9192541dc59f6f8d2cb47b9e898974cb3 /src/app/system_windows.cpp
parent17041e718b35b766df099dfaeaf4e7cc3cc63fa6 (diff)
downloadcolobot-9a3cd67c3bb2f7d0d4b83f6a5ac8bbcfedf4207b.tar.gz
colobot-9a3cd67c3bb2f7d0d4b83f6a5ac8bbcfedf4207b.tar.bz2
colobot-9a3cd67c3bb2f7d0d4b83f6a5ac8bbcfedf4207b.zip
Saving colobot.ini through physfs
Diffstat (limited to 'src/app/system_windows.cpp')
-rw-r--r--src/app/system_windows.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/app/system_windows.cpp b/src/app/system_windows.cpp
index ffaa18a..e35f83f 100644
--- a/src/app/system_windows.cpp
+++ b/src/app/system_windows.cpp
@@ -111,20 +111,20 @@ std::wstring CSystemUtilsWindows::UTF8_Decode(const std::string& str)
}
-std::string CSystemUtilsWindows::GetProfileFileLocation()
+std::string CSystemUtilsWindows::GetSaveDir()
{
- std::string profileFile;
-
+ std::string savegameDir;
+
char* envUSERPROFILE = getenv("USERPROFILE");
if (envUSERPROFILE == NULL)
{
- profileFile = "colobot.ini";
+ savegameDir = "save";
}
else
{
- profileFile = std::string(envUSERPROFILE) + "\\colobot\\colobot.ini";
+ savegameDir = std::string(envUSERPROFILE) + "\\colobot";
}
- GetLogger()->Trace("Profile configuration is %s\n", profileFile.c_str());
-
- return profileFile;
+ GetLogger()->Trace("Saved game files are going to %s\n", savegameDir.c_str());
+
+ return savegameDir;
}