Skip to content

Commit 47db8ae

Browse files
authored
Account for old dotnet
1 parent 1cef42a commit 47db8ae

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

MPF.Processors/ProcessingTool.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,16 +1097,16 @@ public static bool IsValidSS(byte[] ss)
10971097
return false;
10981098

10991099
// Drive entry table must be duplicated exactly
1100-
1101-
#if NET20
1102-
var table1 = new byte[207];
1103-
Array.Copy(ss, 0x661, table1, 0, 207);
1104-
var table2 = new byte[207];
1105-
Array.Copy(ss, 0x730, table2, 0, 207);
1106-
if (Array.Exists(Enumerable.Range(0, a.Length).ToArray(), i => table1[i] != table2[i]))
1107-
#else
1108-
if (!ss.AsSpan(0x661, 0x730 - 0x661).SequenceEqual(ss.AsSpan(0x730, 0x7FF - 0x730)))
1109-
#endif
1100+
bool mismatch = false;
1101+
for (int i = 0; i < 207; i++)
1102+
{
1103+
if (ss[0x661 + i] != ss[0x730 + i])
1104+
{
1105+
mismatch = true;
1106+
break;
1107+
}
1108+
}
1109+
if (mismatch)
11101110
return false;
11111111

11121112
// Remaining checks are only for Xbox360 SS

0 commit comments

Comments
 (0)