From c3957977a24911954f237c04467544ff72ff83d6 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 18 Jul 2021 21:56:15 -0700 Subject: [PATCH] Reorder StarForce 3-5 checks for accuracy --- BurnOutSharp/ProtectionType/StarForce.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/BurnOutSharp/ProtectionType/StarForce.cs b/BurnOutSharp/ProtectionType/StarForce.cs index e591ed8c..39b84d72 100644 --- a/BurnOutSharp/ProtectionType/StarForce.cs +++ b/BurnOutSharp/ProtectionType/StarForce.cs @@ -89,6 +89,12 @@ namespace BurnOutSharp.ProtectionType new byte?[] { 0x54, 0x72, 0x61, 0x64, 0x65, 0x4E, 0x61, 0x6D, 0x65 }, }, GetVersion, "StarForce"), + // .sforce + new ContentMatchSet(new byte?[] { 0x2E, 0x73, 0x66, 0x6F, 0x72, 0x63, 0x65 }, "StarForce 3-5"), + + // .brick + new ContentMatchSet(new byte?[] { 0x2E, 0x62, 0x72, 0x69, 0x63, 0x6B }, "StarForce 3-5"), + // Protection Technology, Ltd. new ContentMatchSet(new byte?[] { @@ -98,12 +104,6 @@ namespace BurnOutSharp.ProtectionType 0x74, 0x64, 0x2E }, Utilities.GetFileVersion, "StarForce"), - // .sforce - new ContentMatchSet(new byte?[] { 0x2E, 0x73, 0x66, 0x6F, 0x72, 0x63, 0x65 }, "StarForce 3-5"), - - // .brick - new ContentMatchSet(new byte?[] { 0x2E, 0x62, 0x72, 0x69, 0x63, 0x6B }, "StarForce 3-5"), - // P + (char)0x00 + r + (char)0x00 + o + (char)0x00 + t + (char)0x00 + e + (char)0x00 + c + (char)0x00 + t + (char)0x00 + e + (char)0x00 + d + (char)0x00 + + (char)0x00 + M + (char)0x00 + o + (char)0x00 + d + (char)0x00 + u + (char)0x00 + l + (char)0x00 + e + (char)0x00 new ContentMatchSet(new byte?[] {