mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
Made the reader capable of skipping blank lines.
Added a bunch of missing byte-order marks. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@827 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
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) {
|
|||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user