aboutsummaryrefslogtreecommitdiff
path: root/base/gameDetector.cpp
diff options
context:
space:
mode:
authorMax Horn2004-01-29 21:54:03 +0000
committerMax Horn2004-01-29 21:54:03 +0000
commit81ff879a9daf101a51be72c838ca6885f93746d9 (patch)
treec8843d074488e87486977af937ccc995b6d32665 /base/gameDetector.cpp
parentfbab0e9984864917e6eab90fcf2c713f705ede73 (diff)
downloadscummvm-rg350-81ff879a9daf101a51be72c838ca6885f93746d9.tar.gz
scummvm-rg350-81ff879a9daf101a51be72c838ca6885f93746d9.tar.bz2
scummvm-rg350-81ff879a9daf101a51be72c838ca6885f93746d9.zip
Add the super-ultra-mega-secret --savepath option (and it's not just secret because I am too lame to write a help entry, add it to the README, and add it to the TeX files. *cough* No, that's not at all the reason... :-)
svn-id: r12669
Diffstat (limited to 'base/gameDetector.cpp')
-rw-r--r--base/gameDetector.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp
index ffb02072a5..e59727d45d 100644
--- a/base/gameDetector.cpp
+++ b/base/gameDetector.cpp
@@ -117,6 +117,7 @@ GameDetector::GameDetector() {
// Game specifc
ConfMan.registerDefault("path", "");
+ ConfMan.registerDefault("savepath", "");
// ConfMan.registerDefault("amiga", false);
ConfMan.registerDefault("platform", Common::kPlatformPC);
@@ -405,6 +406,11 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
ConfMan.set("aspect_ratio", cmdValue, kTransientDomain);
END_OPTION
+ DO_LONG_OPTION("savepath")
+ // TODO: Verify whether the path is valid
+ ConfMan.set("savepath", option, kTransientDomain);
+ END_OPTION
+
#ifndef DISABLE_SCUMM
DO_LONG_OPTION("tempo")
// Use the special value '0' for the base in (int)strtol.