summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-07 02:18:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-07 02:18:27 +0300
commit0f85899c0aad7d6dbc15490189e97a68b4653d1c (patch)
tree08e31a7fbbd5661a7a1791cd7858f7581236e0d3 /src/client.cpp
parent4c057739d0538d01481643848a6cb558e0ef4e51 (diff)
downloadmanaverse-0f85899c0aad7d6dbc15490189e97a68b4653d1c.tar.gz
manaverse-0f85899c0aad7d6dbc15490189e97a68b4653d1c.tar.bz2
manaverse-0f85899c0aad7d6dbc15490189e97a68b4653d1c.tar.xz
manaverse-0f85899c0aad7d6dbc15490189e97a68b4653d1c.zip
Get real desktop dir in linux for screenshots.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/client.cpp b/src/client.cpp
index e7083f943..95317f682 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1898,19 +1898,9 @@ void Client::initScreenshotDir()
std::string configScreenshotDir =
config.getStringValue("screenshotDirectory");
if (!configScreenshotDir.empty())
- {
mScreenshotDir = configScreenshotDir;
- }
else
- {
-#ifdef WIN32
- mScreenshotDir = getSpecialFolderLocation(CSIDL_MYPICTURES);
- if (mScreenshotDir.empty())
- mScreenshotDir = getSpecialFolderLocation(CSIDL_DESKTOP);
-#else
- mScreenshotDir = std::string(PHYSFS_getUserDir()) + "Desktop";
-#endif
- }
+ mScreenshotDir = getDesktopDir();
//config.setValue("screenshotDirectory", mScreenshotDir);
logger->log("screenshotDirectory: " + mScreenshotDir);