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 installer group: locales
full name: English full name: English
version: 2007-09-23 version: 2007-09-23
......
mse version: 0.3.6 mse version: 0.3.6
game: magic game: magic
full name: FPM's Normal Magic full name: FPM's Normal Magic
short name: FPM Normal short name: FPM Normal
......
mse version: 0.3.6 mse version: 0.3.6
game: magic game: magic
short name: Future short name: Future
full name: Futureshift full name: Futureshift
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: VS Alter Ego full name: VS Alter Ego
short name: Alter Ego short name: Alter Ego
......
mse version: 0.3.6 mse version: 0.3.6
full name: VS System, textbox watermarks full name: VS System, textbox watermarks
version: 2008-01-03 version: 2008-01-03
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: VS Extended Art full name: VS Extended Art
short name: Extended Art short name: Extended Art
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: Hellboy Extended Art full name: Hellboy Extended Art
short name: Extended Art short name: Extended Art
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: Hellboy Normal full name: Hellboy Normal
short name: Hellboy short name: Hellboy
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: VS Insanity full name: VS Insanity
short name: Insanity short name: Insanity
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: New Style EM full name: New Style EM
short name: New Style short name: New Style
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: VS Oversize Avatar full name: VS Oversize Avatar
short name: Oversize Avatar short name: Oversize Avatar
......
mse version: 0.3.6 mse version: 0.3.6
version: 2008-01-03 version: 2008-01-03
short name: old short name: old
position hint: 2 position hint: 2
......
mse version: 0.3.6 mse version: 0.3.6
version: 2008-01-03 version: 2008-01-03
short name: New (official) short name: New (official)
position hint: 1 position hint: 1
......
mse version: 0.3.6 mse version: 0.3.6
game: vs game: vs
full name: VS Standard full name: VS Standard
short name: Standard short name: Standard
......
mse version: 0.3.6 mse version: 0.3.6
game: yugioh game: yugioh
short name: Standard short name: Standard
icon: card-sample.png icon: card-sample.png
......
...@@ -234,7 +234,10 @@ void Reader::readLine(bool in_string) { ...@@ -234,7 +234,10 @@ void Reader::readLine(bool in_string) {
size_t pos = line.find_first_of(_(':'), indent); size_t pos = line.find_first_of(_(':'), indent);
if (trim(line).empty() || line.GetChar(indent) == _('#')) { if (trim(line).empty() || line.GetChar(indent) == _('#')) {
// empty line or comment // empty line or comment
key.clear(); if (input->Eof())
key.clear();
else // Recursion allows skipping of blank lines.
readLine(in_string);
return; return;
} }
key = line.substr(indent, pos - indent); 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