Clarified comment, cleanup

svn-id: r20111
This commit is contained in:
Max Horn 2006-01-21 11:57:19 +00:00
parent 9660020ccb
commit 2f8dacd617
2 changed files with 8 additions and 3 deletions

View File

@ -95,8 +95,13 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) {
comment += buf;
comment += "\n";
} else if (buf[0] == '(') {
// Special case for map.ini included in mustard
// Includes comment within () on the first line
// 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".
//
// It would be nice if this hack could be restricted to that game,
// but the current design of this class doesn't allow to do that
// in a nice fashion (a "isMustard" parameter is *not* a nice
// solution).
comment += buf;
comment += "\n";
} else if (buf[0] == '[') {

View File

@ -208,7 +208,7 @@ void ConfigManager::loadFile(const String &filename) {
String key = rtrim(t);
String value = ltrim(p + 1);
set(key, value, domain);
//printf("key : %s | %s\n");
// Store comment
if (_globalDomains.contains(domain)) {
_globalDomains[domain].setKVComment(key, comment);