diff options
-rw-r--r-- | src/client.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/client.cpp b/src/client.cpp index 8def205b..f1b363e9 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1222,21 +1222,13 @@ void Client::initScreenshotDir() mScreenshotDir = mOptions.screenshotDir; else { - std::string configScreenshotDir = - config.getValue("screenshotDirectory", ""); - if (!configScreenshotDir.empty()) - mScreenshotDir = configScreenshotDir; - else - { #ifdef WIN32 - mScreenshotDir = getSpecialFolderLocation(CSIDL_MYPICTURES); - if (mScreenshotDir.empty()) - mScreenshotDir = getSpecialFolderLocation(CSIDL_DESKTOP); + mScreenshotDir = getSpecialFolderLocation(CSIDL_MYPICTURES); + if (mScreenshotDir.empty()) + mScreenshotDir = getSpecialFolderLocation(CSIDL_DESKTOP); #else - mScreenshotDir = std::string(PHYSFS_getUserDir()) + "Desktop"; + mScreenshotDir = std::string(PHYSFS_getUserDir()) + "Desktop"; #endif - } - config.setValue("screenshotDirectory", mScreenshotDir); if (config.getValue("useScreenshotDirectorySuffix", true)) { |