pjm import - account junk white space at the ened of the file

This commit is contained in:
adelikat 2019-11-26 08:53:09 -06:00
parent c741c37789
commit 3e92b8c5ab
1 changed files with 6 additions and 0 deletions

View File

@ -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"))
{