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
This commit is contained in:
parent
fbab0e9984
commit
81ff879a9d
2 changed files with 7 additions and 3 deletions
|
@ -70,9 +70,7 @@ const char *Engine::getSavePath() const {
|
||||||
if (!dir || dir[0] == 0)
|
if (!dir || dir[0] == 0)
|
||||||
dir = ConfMan.get("savepath").c_str();
|
dir = ConfMan.get("savepath").c_str();
|
||||||
|
|
||||||
// If no save path was specified, use no directory prefix
|
assert(dir);
|
||||||
if (dir == NULL)
|
|
||||||
dir = "";
|
|
||||||
|
|
||||||
return dir;
|
return dir;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -117,6 +117,7 @@ GameDetector::GameDetector() {
|
||||||
|
|
||||||
// Game specifc
|
// Game specifc
|
||||||
ConfMan.registerDefault("path", "");
|
ConfMan.registerDefault("path", "");
|
||||||
|
ConfMan.registerDefault("savepath", "");
|
||||||
|
|
||||||
// ConfMan.registerDefault("amiga", false);
|
// ConfMan.registerDefault("amiga", false);
|
||||||
ConfMan.registerDefault("platform", Common::kPlatformPC);
|
ConfMan.registerDefault("platform", Common::kPlatformPC);
|
||||||
|
@ -405,6 +406,11 @@ void GameDetector::parseCommandLine(int argc, char **argv) {
|
||||||
ConfMan.set("aspect_ratio", cmdValue, kTransientDomain);
|
ConfMan.set("aspect_ratio", cmdValue, kTransientDomain);
|
||||||
END_OPTION
|
END_OPTION
|
||||||
|
|
||||||
|
DO_LONG_OPTION("savepath")
|
||||||
|
// TODO: Verify whether the path is valid
|
||||||
|
ConfMan.set("savepath", option, kTransientDomain);
|
||||||
|
END_OPTION
|
||||||
|
|
||||||
#ifndef DISABLE_SCUMM
|
#ifndef DISABLE_SCUMM
|
||||||
DO_LONG_OPTION("tempo")
|
DO_LONG_OPTION("tempo")
|
||||||
// Use the special value '0' for the base in (int)strtol.
|
// Use the special value '0' for the base in (int)strtol.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue