cue-fix error in parsing empty lines
This commit is contained in:
parent
97e3ac9e1b
commit
1de6eb30a3
|
@ -500,8 +500,8 @@ namespace BizHawk.DiscSystem
|
||||||
{
|
{
|
||||||
string line = tr.ReadLine();
|
string line = tr.ReadLine();
|
||||||
if (line == null) break;
|
if (line == null) break;
|
||||||
if (line == "") continue;
|
|
||||||
line = line.Trim();
|
line = line.Trim();
|
||||||
|
if (line == "") continue;
|
||||||
var clp = new CueLineParser(line);
|
var clp = new CueLineParser(line);
|
||||||
|
|
||||||
string key = clp.ReadToken().ToUpper();
|
string key = clp.ReadToken().ToUpper();
|
||||||
|
@ -622,6 +622,7 @@ namespace BizHawk.DiscSystem
|
||||||
public string ReadToken(bool isPath)
|
public string ReadToken(bool isPath)
|
||||||
{
|
{
|
||||||
if (EOF) return null;
|
if (EOF) return null;
|
||||||
|
|
||||||
int startIndex = index;
|
int startIndex = index;
|
||||||
bool inToken = false;
|
bool inToken = false;
|
||||||
bool inQuote = false;
|
bool inQuote = false;
|
||||||
|
|
Loading…
Reference in New Issue