diff options
author | Thierry Crozat | 2017-04-24 00:51:57 +0100 |
---|---|---|
committer | Thierry Crozat | 2017-04-24 01:07:05 +0100 |
commit | e96c057c3d7d2deb8ff31bc7d798d455f74b399a (patch) | |
tree | b5d1c30acfbc39f44ff2a0c132555beda2d891bf /backends/platform/sdl/macosx | |
parent | 11dd33bb73c998116c2b862389b616fe9249579b (diff) | |
download | scummvm-rg350-e96c057c3d7d2deb8ff31bc7d798d455f74b399a.tar.gz scummvm-rg350-e96c057c3d7d2deb8ff31bc7d798d455f74b399a.tar.bz2 scummvm-rg350-e96c057c3d7d2deb8ff31bc7d798d455f74b399a.zip |
SDL: Allow specifying the screenshot directory in the config file
There is no GUI option to set the screenshot directory, but this
allows power users to set it if they don't want to use the default.
Diffstat (limited to 'backends/platform/sdl/macosx')
-rw-r--r-- | backends/platform/sdl/macosx/macosx.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/platform/sdl/macosx/macosx.cpp b/backends/platform/sdl/macosx/macosx.cpp index 500e438ec0..8669bf6a66 100644 --- a/backends/platform/sdl/macosx/macosx.cpp +++ b/backends/platform/sdl/macosx/macosx.cpp @@ -188,7 +188,9 @@ Common::String OSystem_MacOSX::getSystemLanguage() const { } Common::String OSystem_MacOSX::getScreenshotsPath() { - Common::String path = getDesktopPathMacOSX(); + Common::String path = ConfMan.get("screenshotpath"); + if (path.empty()) + path = getDesktopPathMacOSX(); if (!path.empty() && !path.hasSuffix("/")) path += "/"; return path; |