Skip to content

Commit fbaf667

Browse files
authored
Fix SS validity check
1 parent 07d8a5d commit fbaf667

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MPF.Processors/ProcessingTool.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ public static bool IsValidSS(byte[] ss)
11051105
return true;
11061106

11071107
// Determine if XGD3 SS is invalid SSv1 (Original Kreon) or valid SSv2 (0800 / Custom Kreon)
1108-
if (xgdType != 3)
1108+
if (xgdType == 3)
11091109
{
11101110
bool bad_xgd3 = false;
11111111
#if NET20
@@ -1119,8 +1119,8 @@ public static bool IsValidSS(byte[] ss)
11191119
return false;
11201120
}
11211121

1122-
// Must have correct version and number of CCRT entries
1123-
if (ss[0x300] != 2 || ss[0x301] != 21 || ss[0x65F] != 0x02 || ss[0x49E != 0x04])
1122+
// XGD2 must have correct version (2) and number of CCRT entries (21)
1123+
if (ss[0x300] != 2 || ss[0x301] != 21 || ss[0x65F] != 2)
11241124
return false;
11251125

11261126
return true;

0 commit comments

Comments
 (0)