aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2009-12-30 14:55:33 +0000
committerMatthew Hoops2009-12-30 14:55:33 +0000
commit5f9febd1aaa52117a6c9fcb51bc2225cdf00cf14 (patch)
treec5541c3d6351395cd552231c1d333b18678f8e6b
parent3e96fd7dc79bf943889c6432ab2cf96a821800e3 (diff)
downloadscummvm-rg350-5f9febd1aaa52117a6c9fcb51bc2225cdf00cf14.tar.gz
scummvm-rg350-5f9febd1aaa52117a6c9fcb51bc2225cdf00cf14.tar.bz2
scummvm-rg350-5f9febd1aaa52117a6c9fcb51bc2225cdf00cf14.zip
Update comments to reflect the changes used for Mohawk.
svn-id: r46746
-rw-r--r--common/config-file.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/config-file.cpp b/common/config-file.cpp
index 159fa778f7..cc55ebd6c7 100644
--- a/common/config-file.cpp
+++ b/common/config-file.cpp
@@ -98,7 +98,8 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) {
} else if (line[0] == '#' || line[0] == ';') {
// Accumulate comments here. Once we encounter either the start
// of a new section, or a key-value-pair, we associate the value
- // of the 'comment' variable with that entity.
+ // of the 'comment' variable with that entity. The semicolon
+ // comment is used for Living Books games in Mohawk.
comment += line;
comment += "\n";
} else if (line[0] == '(') {
@@ -116,7 +117,8 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) {
const char *p = line.c_str() + 1;
// Get the section name, and check whether it's valid (that
// is, verify that it only consists of alphanumerics,
- // periods, dashes and underscores).
+ // periods, dashes and underscores). Mohawk Living Books games
+ // can have periods in their section names.
while (*p && (isalnum(*p) || *p == '-' || *p == '_' || *p == '.'))
p++;