-.LSMV: \r is considered off. Empty lines should be ignored.

This commit is contained in:
brandman211 2012-09-13 10:26:44 +00:00
parent 7f2a18b3af
commit 9da5393ce3
1 changed files with 3 additions and 1 deletions

View File

@ -171,7 +171,7 @@ namespace BizHawk.MultiClient
if (Path.GetExtension(path).ToUpper() == ".LSMV" && sections.Length != 0)
{
string flags = sections[0];
char[] off = { '.', ' ', '\t', '\n' };
char[] off = { '.', ' ', '\t', '\n', '\r' };
if (flags.Length == 0 || off.Contains(flags[0]))
{
errorMsg = "Subframes are not supported.";
@ -986,6 +986,8 @@ namespace BizHawk.MultiClient
string line;
while ((line = reader.ReadLine()) != null)
{
if (line == "")
continue;
m = ImportTextFrame(line, lineNum, m, path, ref warningMsg, ref errorMsg);
if (errorMsg != "")
{