aboutsummaryrefslogtreecommitdiff
path: root/base/commandLine.cpp
diff options
context:
space:
mode:
authorMax Horn2011-05-23 19:09:34 +0200
committerMax Horn2011-05-23 19:12:26 +0200
commit590c6ede63d9fa61d2b05ce74596b043f5c79bc8 (patch)
treef379b55db87e4bd70aca1958e89a3d2a1fd657eb /base/commandLine.cpp
parente6c78b4f469729726561af44aa1df8259f0fdf27 (diff)
downloadscummvm-rg350-590c6ede63d9fa61d2b05ce74596b043f5c79bc8.tar.gz
scummvm-rg350-590c6ede63d9fa61d2b05ce74596b043f5c79bc8.tar.bz2
scummvm-rg350-590c6ede63d9fa61d2b05ce74596b043f5c79bc8.zip
BACKENDS: Move SCUMMVM_SAVEPATH env var handling to POSIX savefile manager
Diffstat (limited to 'base/commandLine.cpp')
-rw-r--r--base/commandLine.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index 1ca4a642c8..f819b03658 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -958,26 +958,6 @@ Common::Error processSettings(Common::String &command, Common::StringMap &settin
}
- // The user can override the savepath with the SCUMMVM_SAVEPATH
- // environment variable. This is weaker than a --savepath on the
- // command line, but overrides the default savepath, hence it is
- // handled here, just before the command line gets parsed.
-#if !defined(_WIN32_WCE) && !defined(__GP32__) && !defined(ANDROID)
- if (!settings.contains("savepath")) {
- const char *dir = getenv("SCUMMVM_SAVEPATH");
- if (dir && *dir && strlen(dir) < MAXPATHLEN) {
- Common::FSNode saveDir(dir);
- if (!saveDir.exists()) {
- warning("Non-existent SCUMMVM_SAVEPATH save path. It will be ignored");
- } else if (!saveDir.isWritable()) {
- warning("Non-writable SCUMMVM_SAVEPATH save path. It will be ignored");
- } else {
- settings["savepath"] = dir;
- }
- }
- }
-#endif
-
// Finally, store the command line settings into the config manager.
for (Common::StringMap::const_iterator x = settings.begin(); x != settings.end(); ++x) {
Common::String key(x->_key);