[Scummvm-cvs-logs] CVS: scummvm/common config-file.cpp,1.22,1.23

kirben kirben at users.sourceforge.net
Sat Apr 23 20:58:35 CEST 2005


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26610/common

Modified Files:
	config-file.cpp 
Log Message:

Add additional check for comments with ().
Required for map.ini file included with mustard.


Index: config-file.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/config-file.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- config-file.cpp	24 Apr 2005 03:41:57 -0000	1.22
+++ config-file.cpp	24 Apr 2005 03:58:12 -0000	1.23
@@ -94,6 +94,11 @@
 			// of the 'comment' variable with that entity.
 			comment += buf;
 			comment += "\n";
+		} else if (buf[0] == '(') {
+			// Special case for map.ini included in mustard
+			// Includes comment within () on the first line
+			comment += buf;
+			comment += "\n";
 		} else if (buf[0] == '[') {
 			// It's a new section which begins here.
 			char *p = buf + 1;





More information about the Scummvm-git-logs mailing list