mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
Add additional check for comments with ().
Required for map.ini file included with mustard. svn-id: r17783
This commit is contained in:
parent
2a14ff0a1a
commit
43286fc880
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user