aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTravis Howell2005-04-24 03:58:12 +0000
committerTravis Howell2005-04-24 03:58:12 +0000
commit43286fc88082dca938c240e0e629a583280016d0 (patch)
tree6d7279c76215b1e3bcb60d19a49321baa49b7388 /common
parent2a14ff0a1a48b540b849ae1c80ba2008724bccc1 (diff)
downloadscummvm-rg350-43286fc88082dca938c240e0e629a583280016d0.tar.gz
scummvm-rg350-43286fc88082dca938c240e0e629a583280016d0.tar.bz2
scummvm-rg350-43286fc88082dca938c240e0e629a583280016d0.zip
Add additional check for comments with ().
Required for map.ini file included with mustard. svn-id: r17783
Diffstat (limited to 'common')
-rw-r--r--common/config-file.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/config-file.cpp b/common/config-file.cpp
index 877beafce7..daaf068955 100644
--- a/common/config-file.cpp
+++ b/common/config-file.cpp
@@ -94,6 +94,11 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) {
// 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;