diff --git a/src/BizHawk.Emulation.Common/filetype_detectors/SatellaviewFileTypeDetector.cs b/src/BizHawk.Emulation.Common/filetype_detectors/SatellaviewFileTypeDetector.cs index 1d7d8cc1a2..9889579148 100644 --- a/src/BizHawk.Emulation.Common/filetype_detectors/SatellaviewFileTypeDetector.cs +++ b/src/BizHawk.Emulation.Common/filetype_detectors/SatellaviewFileTypeDetector.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; using BizHawk.Common; using BizHawk.Common.IOExtensions; @@ -105,7 +106,9 @@ namespace BizHawk.Emulation.Common var corruption = 0; // "invalid" states were assigned a higher value if the wiki page was less vague - if (header.Title.Length is 0) corruption++; + static bool IsASCIIOrKana(char c) + => c is (>= ' ' and <= '~') or (>= 'ぁ' and <= 'ヿ') or (>= '!' and <= '○'); // doubt this matches SHIFT-JIS but it should cover all the kana which is what I expect in a title + if (!header.Title.Any(IsASCIIOrKana)) corruption++; if (header.IsSelfDestructing) {