diff options
author | krzys-h <krzys_h@interia.pl> | 2013-03-27 03:38:16 -0700 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-03-27 03:38:16 -0700 |
commit | cef858bb4718cf76683a7381160e30ca46513c2f (patch) | |
tree | 54ddd9cb35b8eac0b214446307531b4129502f5d /src/ui/maindialog.cpp | |
parent | df5edc703c7241279116d2bbfe08351d0c3c2a4b (diff) | |
parent | 0d537c7fb591b83e3f3239a9dadb3c871b0978bb (diff) | |
download | colobot-cef858bb4718cf76683a7381160e30ca46513c2f.tar.gz colobot-cef858bb4718cf76683a7381160e30ca46513c2f.tar.bz2 colobot-cef858bb4718cf76683a7381160e30ca46513c2f.zip |
Merge pull request #151 from OdyX/dev-use-xdg-homedirs
Use XDG paths and directories for both savegame and colobot.ini.
Diffstat (limited to 'src/ui/maindialog.cpp')
-rw-r--r-- | src/ui/maindialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp index a3670de..ced4324 100644 --- a/src/ui/maindialog.cpp +++ b/src/ui/maindialog.cpp @@ -18,6 +18,7 @@ #include "ui/maindialog.h" #include "app/app.h" +#include "app/system.h" #include "common/global.h" #include "common/event.h" @@ -173,7 +174,7 @@ CMainDialog::CMainDialog() m_sceneDir = "levels"; - m_savegameDir = "savegame"; + m_savegameDir = GetSystemUtils()->savegameDirectoryLocation(); m_publicDir = "program"; m_userDir = "user"; m_filesDir = "files"; |