Commit 343c226f authored by coppro's avatar coppro

Made the reader capable of skipping blank lines.

Added a bunch of missing byte-order marks.
parent c6de49b4
mse version: 0.3.6
mse version: 0.3.6
installer group: locales
full name: English
version: 2007-09-23
......
mse version: 0.3.6
mse version: 0.3.6
game: magic
full name: FPM's Normal Magic
short name: FPM Normal
......
mse version: 0.3.6
mse version: 0.3.6
game: magic
short name: Future
full name: Futureshift
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: VS Alter Ego
short name: Alter Ego
......
mse version: 0.3.6
mse version: 0.3.6
full name: VS System, textbox watermarks
version: 2008-01-03
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: VS Extended Art
short name: Extended Art
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: Hellboy Extended Art
short name: Extended Art
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: Hellboy Normal
short name: Hellboy
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: VS Insanity
short name: Insanity
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: New Style EM
short name: New Style
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: VS Oversize Avatar
short name: Oversize Avatar
......
mse version: 0.3.6
mse version: 0.3.6
version: 2008-01-03
short name: old
position hint: 2
......
mse version: 0.3.6
mse version: 0.3.6
version: 2008-01-03
short name: New (official)
position hint: 1
......
mse version: 0.3.6
mse version: 0.3.6
game: vs
full name: VS Standard
short name: Standard
......
mse version: 0.3.6
mse version: 0.3.6
game: yugioh
short name: Standard
icon: card-sample.png
......
......@@ -234,7 +234,10 @@ void Reader::readLine(bool in_string) {
size_t pos = line.find_first_of(_(':'), indent);
if (trim(line).empty() || line.GetChar(indent) == _('#')) {
// empty line or comment
key.clear();
if (input->Eof())
key.clear();
else // Recursion allows skipping of blank lines.
readLine(in_string);
return;
}
key = line.substr(indent, pos - indent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment