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.
This commit is contained in:
parent
11dd33bb73
commit
e96c057c3d
4 changed files with 30 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue