[Scummvm-cvs-logs] SF.net SVN: scummvm:[33504] residual/trunk/common/config-file.cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Fri Aug 1 20:39:41 CEST 2008


Revision: 33504
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33504&view=rev
Author:   aquadran
Date:     2008-08-01 18:39:39 +0000 (Fri, 01 Aug 2008)

Log Message:
-----------
put exception for windows endlines here too

Modified Paths:
--------------
    residual/trunk/common/config-file.cpp

Modified: residual/trunk/common/config-file.cpp
===================================================================
--- residual/trunk/common/config-file.cpp	2008-08-01 18:36:25 UTC (rev 33503)
+++ residual/trunk/common/config-file.cpp	2008-08-01 18:39:39 UTC (rev 33504)
@@ -98,7 +98,11 @@
 			// of a new section, or a key-value-pair, we associate the value
 			// of the 'comment' variable with that entity.
 			comment += buf;
+#ifdef _WIN32
+			comment += "\r\n";
+#else
 			comment += "\n";
+#endif
 		} else if (buf[0] == '(') {
 			// 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".
@@ -108,7 +112,11 @@
 			// in a nice fashion (a "isMustard" parameter is *not* a nice
 			// solution).
 			comment += buf;
+#ifdef _WIN32
+			comment += "\r\n";
+#else
 			comment += "\n";
+#endif
 		} else if (buf[0] == '[') {
 			// It's a new section which begins here.
 			char *p = buf + 1;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list