mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
Clarified comment, cleanup
svn-id: r20111
This commit is contained in:
parent
9660020ccb
commit
2f8dacd617
@ -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] == '[') {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user