mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 19:30:41 +00:00
Update comments to reflect the changes used for Mohawk.
svn-id: r46746
This commit is contained in:
parent
3e96fd7dc7
commit
5f9febd1aa
@ -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++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user