[Scummvm-cvs-logs] CVS: scummvm/common config-file.cpp,1.29,1.30 config-manager.cpp,1.47,1.48
Max Horn
fingolfin at users.sourceforge.net
Sat Jan 21 03:58:13 CET 2006
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31141
Modified Files:
config-file.cpp config-manager.cpp
Log Message:
Clarified comment, cleanup
Index: config-file.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/config-file.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- config-file.cpp 18 Jan 2006 17:39:34 -0000 1.29
+++ config-file.cpp 21 Jan 2006 11:57:19 -0000 1.30
@@ -95,8 +95,13 @@
comment += buf;
comment += "\n";
} else if (buf[0] == '(') {
- // Special case for map.ini included in mustard
- // Includes comment within () on the first line
+ // HACK: The following is a hack added by Kirben to support the
+ // "map.ini" used in the HE SCUMM game "Spy Fox in Hold the Mustard".
+ //
+ // It would be nice if this hack could be restricted to that game,
+ // but the current design of this class doesn't allow to do that
+ // in a nice fashion (a "isMustard" parameter is *not* a nice
+ // solution).
comment += buf;
comment += "\n";
} else if (buf[0] == '[') {
Index: config-manager.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/config-manager.cpp,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- config-manager.cpp 18 Jan 2006 17:39:34 -0000 1.47
+++ config-manager.cpp 21 Jan 2006 11:57:19 -0000 1.48
@@ -208,7 +208,7 @@
String key = rtrim(t);
String value = ltrim(p + 1);
set(key, value, domain);
-//printf("key : %s | %s\n");
+
// Store comment
if (_globalDomains.contains(domain)) {
_globalDomains[domain].setKVComment(key, comment);
More information about the Scummvm-git-logs
mailing list