pjm import - account junk white space at the ened of the file
This commit is contained in:
parent
c741c37789
commit
3e92b8c5ab
|
@ -309,6 +309,12 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
var mnemonicStr = new string(br.ReadChars(strCount));
|
||||
|
||||
// Junk whitespace at the end of a file
|
||||
if (string.IsNullOrWhiteSpace(mnemonicStr))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Gross, if not CR LF, this will fail, but will the PSXjin?
|
||||
if (!mnemonicStr.EndsWith("|\r\n"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue