Browse Source

Fixed INI parsing when first character in value is '='.

release/0.19
JustinAJ 11 years ago
parent
commit
6c90ba86ae
  1. 2
      Jupiter/INIFile.cpp
  2. BIN
      Release/Jupiter.lib

2
Jupiter/INIFile.cpp

@ -274,10 +274,10 @@ unsigned int Jupiter::INIFile::readFile(const char *fileName)
else if (line.contains('=')) // key/value pair. else if (line.contains('=')) // key/value pair.
{ {
Jupiter::ReferenceString key = line.getWord(0, "="); Jupiter::ReferenceString key = line.getWord(0, "=");
Jupiter::ReferenceString value = line.substring(key.size() + 1);
while (key.size() != 0 && isspace(key.get(key.size() - 1))) while (key.size() != 0 && isspace(key.get(key.size() - 1)))
key.truncate(1); key.truncate(1);
Jupiter::ReferenceString value = line.gotoWord(1, "=");
while (value.size() != 0 && isspace(value.get(0))) while (value.size() != 0 && isspace(value.get(0)))
value.shiftRight(1); value.shiftRight(1);

BIN
Release/Jupiter.lib

Binary file not shown.
Loading…
Cancel
Save