[Scummvm-cvs-logs] CVS: scummvm/base engine.cpp,1.13,1.14 gameDetector.cpp,1.63,1.64
Max Horn
fingolfin at users.sourceforge.net
Fri Jan 30 19:25:22 CET 2004
Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26709
Modified Files:
engine.cpp gameDetector.cpp
Log Message:
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... :-)
Index: engine.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/engine.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- engine.cpp 10 Jan 2004 05:20:14 -0000 1.13
+++ engine.cpp 29 Jan 2004 21:54:03 -0000 1.14
@@ -70,9 +70,7 @@
if (!dir || dir[0] == 0)
dir = ConfMan.get("savepath").c_str();
- // If no save path was specified, use no directory prefix
- if (dir == NULL)
- dir = "";
+ assert(dir);
return dir;
#endif
Index: gameDetector.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/gameDetector.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- gameDetector.cpp 16 Jan 2004 16:28:56 -0000 1.63
+++ gameDetector.cpp 29 Jan 2004 21:54:03 -0000 1.64
@@ -117,6 +117,7 @@
// Game specifc
ConfMan.registerDefault("path", "");
+ ConfMan.registerDefault("savepath", "");
// ConfMan.registerDefault("amiga", false);
ConfMan.registerDefault("platform", Common::kPlatformPC);
@@ -405,6 +406,11 @@
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.
More information about the Scummvm-git-logs
mailing list