put exception for windows endlines here too
This commit is contained in:
parent
2bb97284ee
commit
e2a2d4e426
1 changed files with 8 additions and 0 deletions
|
@ -98,7 +98,11 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) {
|
||||||
// of a new section, or a key-value-pair, we associate the value
|
// 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.
|
||||||
comment += buf;
|
comment += buf;
|
||||||
|
#ifdef _WIN32
|
||||||
|
comment += "\r\n";
|
||||||
|
#else
|
||||||
comment += "\n";
|
comment += "\n";
|
||||||
|
#endif
|
||||||
} else if (buf[0] == '(') {
|
} else if (buf[0] == '(') {
|
||||||
// HACK: The following is a hack added by Kirben to support the
|
// 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".
|
// "map.ini" used in the HE SCUMM game "SPY Fox in Hold the Mustard".
|
||||||
|
@ -108,7 +112,11 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) {
|
||||||
// in a nice fashion (a "isMustard" parameter is *not* a nice
|
// in a nice fashion (a "isMustard" parameter is *not* a nice
|
||||||
// solution).
|
// solution).
|
||||||
comment += buf;
|
comment += buf;
|
||||||
|
#ifdef _WIN32
|
||||||
|
comment += "\r\n";
|
||||||
|
#else
|
||||||
comment += "\n";
|
comment += "\n";
|
||||||
|
#endif
|
||||||
} else if (buf[0] == '[') {
|
} else if (buf[0] == '[') {
|
||||||
// It's a new section which begins here.
|
// It's a new section which begins here.
|
||||||
char *p = buf + 1;
|
char *p = buf + 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue