summaryrefslogtreecommitdiffstats
path: root/src/app/system_linux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/system_linux.cpp')
-rw-r--r--src/app/system_linux.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/app/system_linux.cpp b/src/app/system_linux.cpp
index 492af7d..e584cd1 100644
--- a/src/app/system_linux.cpp
+++ b/src/app/system_linux.cpp
@@ -121,31 +121,3 @@ std::string CSystemUtilsLinux::GetProfileFileLocation()
return profileFile;
}
-
-std::string CSystemUtilsLinux::GetSavegameDirectoryLocation()
-{
- std::string savegameDir;
-
- // Determine savegame dir according to XDG Base Directory Specification
- char *envXDG_DATA_HOME = getenv("XDG_CONFIG_DATA");
- if (envXDG_DATA_HOME == NULL)
- {
- char *envHOME = getenv("HOME");
- if (envHOME == NULL)
- {
- savegameDir = "/tmp/colobot-savegame";
- }
- else
- {
- savegameDir = std::string(envHOME) + "/.local/share/colobot";
- }
- }
- else
- {
- savegameDir = std::string(envXDG_DATA_HOME) + "/colobot";
- }
- GetLogger()->Trace("Saved game files are going to %s\n", savegameDir.c_str());
-
- return savegameDir;
-}
-