summaryrefslogtreecommitdiffstats
path: root/src/app/system_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/system_windows.cpp')
-rw-r--r--src/app/system_windows.cpp25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/app/system_windows.cpp b/src/app/system_windows.cpp
index 9f4cd2c..a2ea18f 100644
--- a/src/app/system_windows.cpp
+++ b/src/app/system_windows.cpp
@@ -113,39 +113,20 @@ std::wstring CSystemUtilsWindows::UTF8_Decode(const std::string& str)
}
-std::string CSystemUtilsWindows::GetProfileFileLocation()
-{
- std::string profileFile;
-
- char* envUSERPROFILE = getenv("USERPROFILE");
- if (envUSERPROFILE == NULL)
- {
- profileFile = "colobot.ini";
- }
- else
- {
- profileFile = std::string(envUSERPROFILE) + "\\colobot\\colobot.ini";
- }
- GetLogger()->Trace("Profile configuration is %s\n", profileFile.c_str());
-
- return profileFile;
-}
-
-std::string CSystemUtilsWindows::GetSavegameDirectoryLocation()
+std::string CSystemUtilsWindows::GetSaveDir()
{
std::string savegameDir;
char* envUSERPROFILE = getenv("USERPROFILE");
if (envUSERPROFILE == NULL)
{
- savegameDir = "savegame";
+ savegameDir = "save";
}
else
{
- savegameDir = std::string(envUSERPROFILE) + "\\colobot\\savegame";
+ savegameDir = std::string(envUSERPROFILE) + "\\colobot";
}
GetLogger()->Trace("Saved game files are going to %s\n", savegameDir.c_str());
return savegameDir;
}
-