diff options
-rw-r--r-- | common/config-file.cpp | 9 | ||||
-rw-r--r-- | common/config-manager.cpp | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/common/config-file.cpp b/common/config-file.cpp index 3a31db7879..06b545e6ec 100644 --- a/common/config-file.cpp +++ b/common/config-file.cpp @@ -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] == '[') { diff --git a/common/config-manager.cpp b/common/config-manager.cpp index 98ba6d1970..0ea5a0c56a 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -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); |