diff --git a/BurnOutSharp/Matching/MatchUtil.cs b/BurnOutSharp/Matching/MatchUtil.cs
index 1a25b1fd..939c8db2 100644
--- a/BurnOutSharp/Matching/MatchUtil.cs
+++ b/BurnOutSharp/Matching/MatchUtil.cs
@@ -18,13 +18,13 @@ namespace BurnOutSharp.Matching
/// Enumerable of ContentMatchSets to be run on the file
/// True to include positional data, false otherwise
/// List of strings representing the matched protections, null or empty otherwise
- public static List GetAllContentMatches(
+ public static List GetAllMatches(
string file,
byte[] fileContent,
IEnumerable matchers,
bool includePosition = false)
{
- return FindAllContentMatches(file, fileContent, matchers, includePosition, false);
+ return FindAllMatches(file, fileContent, matchers, includePosition, false);
}
///
@@ -35,13 +35,13 @@ namespace BurnOutSharp.Matching
/// Enumerable of ContentMatchSets to be run on the file
/// True to include positional data, false otherwise
/// String representing the matched protection, null otherwise
- public static string GetFirstContentMatch(
+ public static string GetFirstMatch(
string file,
byte[] fileContent,
IEnumerable matchers,
bool includePosition = false)
{
- var contentMatches = FindAllContentMatches(file, fileContent, matchers, includePosition, true);
+ var contentMatches = FindAllMatches(file, fileContent, matchers, includePosition, true);
if (contentMatches == null || !contentMatches.Any())
return null;
@@ -57,7 +57,7 @@ namespace BurnOutSharp.Matching
/// True to include positional data, false otherwise
/// True to stop after the first match, false otherwise
/// List of strings representing the matched protections, null or empty otherwise
- private static List FindAllContentMatches(
+ private static List FindAllMatches(
string file,
byte[] fileContent,
IEnumerable matchers,
@@ -118,9 +118,9 @@ namespace BurnOutSharp.Matching
/// Enumerable of PathMatchSets to be run on the file
/// True if any path match is a success, false if all have to match
/// List of strings representing the matched protections, null or empty otherwise
- public static List GetAllPathMatches(string file, IEnumerable matchers, bool any = false)
+ public static List GetAllMatches(string file, IEnumerable matchers, bool any = false)
{
- return FindAllPathMatches(new List { file }, matchers, any, false);
+ return FindAllMatches(new List { file }, matchers, any, false);
}
//
@@ -130,9 +130,9 @@ namespace BurnOutSharp.Matching
/// Enumerable of PathMatchSets to be run on the file
/// True if any path match is a success, false if all have to match
/// List of strings representing the matched protections, null or empty otherwise
- public static List GetAllPathMatches(List files, IEnumerable matchers, bool any = false)
+ public static List GetAllMatches(List files, IEnumerable matchers, bool any = false)
{
- return FindAllPathMatches(files, matchers, any, false);
+ return FindAllMatches(files, matchers, any, false);
}
///
@@ -142,9 +142,9 @@ namespace BurnOutSharp.Matching
/// Enumerable of PathMatchSets to be run on the file
/// True if any path match is a success, false if all have to match
/// String representing the matched protection, null otherwise
- public static string GetFirstPathMatch(string file, IEnumerable matchers, bool any = false)
+ public static string GetFirstMatch(string file, IEnumerable matchers, bool any = false)
{
- var contentMatches = FindAllPathMatches(new List { file }, matchers, any, true);
+ var contentMatches = FindAllMatches(new List { file }, matchers, any, true);
if (contentMatches == null || !contentMatches.Any())
return null;
@@ -158,9 +158,9 @@ namespace BurnOutSharp.Matching
/// Enumerable of PathMatchSets to be run on the file
/// True if any path match is a success, false if all have to match
/// String representing the matched protection, null otherwise
- public static string GetFirstPathMatch(List files, IEnumerable matchers, bool any = false)
+ public static string GetFirstMatch(List files, IEnumerable matchers, bool any = false)
{
- var contentMatches = FindAllPathMatches(files, matchers, any, true);
+ var contentMatches = FindAllMatches(files, matchers, any, true);
if (contentMatches == null || !contentMatches.Any())
return null;
@@ -175,7 +175,7 @@ namespace BurnOutSharp.Matching
/// True if any path match is a success, false if all have to match
/// True to stop after the first match, false otherwise
/// List of strings representing the matched protections, null or empty otherwise
- private static List FindAllPathMatches(List files, IEnumerable matchers, bool any, bool stopAfterFirst)
+ private static List FindAllMatches(List files, IEnumerable matchers, bool any, bool stopAfterFirst)
{
// If there's no mappings, we can't match
if (matchers == null || !matchers.Any())
diff --git a/BurnOutSharp/PackerType/AdvancedInstaller.cs b/BurnOutSharp/PackerType/AdvancedInstaller.cs
index 7f165095..f3491d5e 100644
--- a/BurnOutSharp/PackerType/AdvancedInstaller.cs
+++ b/BurnOutSharp/PackerType/AdvancedInstaller.cs
@@ -22,7 +22,7 @@ namespace BurnOutSharp.PackerType
}, "Caphyon Advanced Installer"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/PackerType/Armadillo.cs b/BurnOutSharp/PackerType/Armadillo.cs
index 64829e50..072aa6ae 100644
--- a/BurnOutSharp/PackerType/Armadillo.cs
+++ b/BurnOutSharp/PackerType/Armadillo.cs
@@ -17,7 +17,7 @@ namespace BurnOutSharp.PackerType
new ContentMatchSet(new byte?[] { 0x41, 0x52, 0x4D, 0x44, 0x45, 0x42, 0x55, 0x47 }, "Armadillo"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/PackerType/CExe.cs b/BurnOutSharp/PackerType/CExe.cs
index bf7f1fbc..b81fee90 100644
--- a/BurnOutSharp/PackerType/CExe.cs
+++ b/BurnOutSharp/PackerType/CExe.cs
@@ -29,7 +29,7 @@ namespace BurnOutSharp.PackerType
}, end: 200), "CExe"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/PackerType/EXEStealth.cs b/BurnOutSharp/PackerType/EXEStealth.cs
index 78dbf201..31d1f464 100644
--- a/BurnOutSharp/PackerType/EXEStealth.cs
+++ b/BurnOutSharp/PackerType/EXEStealth.cs
@@ -21,7 +21,7 @@ namespace BurnOutSharp.PackerType
}, "EXE Stealth"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/PackerType/InnoSetup.cs b/BurnOutSharp/PackerType/InnoSetup.cs
index 6acb5dc6..0dc4a44d 100644
--- a/BurnOutSharp/PackerType/InnoSetup.cs
+++ b/BurnOutSharp/PackerType/InnoSetup.cs
@@ -23,7 +23,7 @@ namespace BurnOutSharp.PackerType
"Inno Setup"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/PackerType/NSIS.cs b/BurnOutSharp/PackerType/NSIS.cs
index f9edc674..d0607c13 100644
--- a/BurnOutSharp/PackerType/NSIS.cs
+++ b/BurnOutSharp/PackerType/NSIS.cs
@@ -29,7 +29,7 @@ namespace BurnOutSharp.PackerType
}, "NSIS"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public static string GetVersion(string file, byte[] fileContent, List positions)
diff --git a/BurnOutSharp/PackerType/PECompact.cs b/BurnOutSharp/PackerType/PECompact.cs
index c3f68664..cb16770f 100644
--- a/BurnOutSharp/PackerType/PECompact.cs
+++ b/BurnOutSharp/PackerType/PECompact.cs
@@ -27,7 +27,7 @@ namespace BurnOutSharp.PackerType
}, "PE Compact 2"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public static string GetVersion(string file, byte[] fileContent, List positions)
diff --git a/BurnOutSharp/PackerType/SetupFactory.cs b/BurnOutSharp/PackerType/SetupFactory.cs
index e94a7fad..9331bb34 100644
--- a/BurnOutSharp/PackerType/SetupFactory.cs
+++ b/BurnOutSharp/PackerType/SetupFactory.cs
@@ -44,7 +44,7 @@ namespace BurnOutSharp.PackerType
// }, GetVersion, "Setup Factory"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/PackerType/UPX.cs b/BurnOutSharp/PackerType/UPX.cs
index 379a7b60..22ec30e1 100644
--- a/BurnOutSharp/PackerType/UPX.cs
+++ b/BurnOutSharp/PackerType/UPX.cs
@@ -42,7 +42,7 @@ namespace BurnOutSharp.PackerType
),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public static string GetVersion(string file, byte[] fileContent, List positions)
diff --git a/BurnOutSharp/PackerType/WinRARSFX.cs b/BurnOutSharp/PackerType/WinRARSFX.cs
index 69365b5a..3c3db7dc 100644
--- a/BurnOutSharp/PackerType/WinRARSFX.cs
+++ b/BurnOutSharp/PackerType/WinRARSFX.cs
@@ -26,7 +26,7 @@ namespace BurnOutSharp.PackerType
}, "WinRAR SFX"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public Dictionary> Scan(Scanner scanner, string file)
diff --git a/BurnOutSharp/PackerType/WinZipSFX.cs b/BurnOutSharp/PackerType/WinZipSFX.cs
index 2ee5b46a..dcb8229b 100644
--- a/BurnOutSharp/PackerType/WinZipSFX.cs
+++ b/BurnOutSharp/PackerType/WinZipSFX.cs
@@ -29,7 +29,7 @@ namespace BurnOutSharp.PackerType
new ContentMatchSet(new byte?[] { 0x5F, 0x77, 0x69, 0x6E, 0x7A, 0x69, 0x70, 0x5F }, GetVersion, "WinZip SFX"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
@@ -364,7 +364,7 @@ namespace BurnOutSharp.PackerType
#endregion
};
- string match = MatchUtil.GetFirstContentMatch(file, fileContent, matchers, false);
+ string match = MatchUtil.GetFirstMatch(file, fileContent, matchers, false);
return match ?? "Unknown 2.x";
}
diff --git a/BurnOutSharp/PackerType/WiseInstaller.cs b/BurnOutSharp/PackerType/WiseInstaller.cs
index 6a5a05ad..9ffa58d8 100644
--- a/BurnOutSharp/PackerType/WiseInstaller.cs
+++ b/BurnOutSharp/PackerType/WiseInstaller.cs
@@ -20,7 +20,7 @@ namespace BurnOutSharp.PackerType
new ContentMatchSet(new byte?[] { 0x57, 0x69, 0x73, 0x65, 0x4D, 0x61, 0x69, 0x6E }, "Wise Installation Wizard Module"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/PackerType/dotFuscator.cs b/BurnOutSharp/PackerType/dotFuscator.cs
index a60e6cbd..e68f6d03 100644
--- a/BurnOutSharp/PackerType/dotFuscator.cs
+++ b/BurnOutSharp/PackerType/dotFuscator.cs
@@ -19,7 +19,7 @@ namespace BurnOutSharp.PackerType
}, "dotFuscator"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/ActiveMARK.cs b/BurnOutSharp/ProtectionType/ActiveMARK.cs
index ee9862b0..db94da3c 100644
--- a/BurnOutSharp/ProtectionType/ActiveMARK.cs
+++ b/BurnOutSharp/ProtectionType/ActiveMARK.cs
@@ -22,7 +22,7 @@ namespace BurnOutSharp.ProtectionType
}, "ActiveMARK 5"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/AlphaROM.cs b/BurnOutSharp/ProtectionType/AlphaROM.cs
index 0b605c40..80ff9e17 100644
--- a/BurnOutSharp/ProtectionType/AlphaROM.cs
+++ b/BurnOutSharp/ProtectionType/AlphaROM.cs
@@ -14,7 +14,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x53, 0x45, 0x54, 0x54, 0x45, 0x43 }, "Alpha-ROM"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/CDCheck.cs b/BurnOutSharp/ProtectionType/CDCheck.cs
index b59717f1..c1e269a1 100644
--- a/BurnOutSharp/ProtectionType/CDCheck.cs
+++ b/BurnOutSharp/ProtectionType/CDCheck.cs
@@ -21,7 +21,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x43, 0x44, 0x43, 0x68, 0x65, 0x63, 0x6B }, "Executable-Based CD Check"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
// These content checks are too broad to be useful
@@ -45,7 +45,7 @@ namespace BurnOutSharp.ProtectionType
}, "Executable-Based CD Check"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/CDCops.cs b/BurnOutSharp/ProtectionType/CDCops.cs
index 67e75248..8c67c9a4 100644
--- a/BurnOutSharp/ProtectionType/CDCops.cs
+++ b/BurnOutSharp/ProtectionType/CDCops.cs
@@ -24,7 +24,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x2E, 0x67, 0x72, 0x61, 0x6E, 0x64, 0x00 }, "CD-Cops"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/CDLock.cs b/BurnOutSharp/ProtectionType/CDLock.cs
index cefe0cd1..e7c4feea 100644
--- a/BurnOutSharp/ProtectionType/CDLock.cs
+++ b/BurnOutSharp/ProtectionType/CDLock.cs
@@ -23,7 +23,7 @@ namespace BurnOutSharp.ProtectionType
}, "CD-Lock"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/CDSHiELDSE.cs b/BurnOutSharp/ProtectionType/CDSHiELDSE.cs
index 517f6635..4fa47284 100644
--- a/BurnOutSharp/ProtectionType/CDSHiELDSE.cs
+++ b/BurnOutSharp/ProtectionType/CDSHiELDSE.cs
@@ -14,7 +14,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x7E, 0x30, 0x30, 0x31, 0x37, 0x2E, 0x74, 0x6D, 0x70 }, "CDSHiELD SE"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/CactusDataShield.cs b/BurnOutSharp/ProtectionType/CactusDataShield.cs
index 1cc9eaa6..7f10e14b 100644
--- a/BurnOutSharp/ProtectionType/CactusDataShield.cs
+++ b/BurnOutSharp/ProtectionType/CactusDataShield.cs
@@ -24,7 +24,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x43, 0x44, 0x53, 0x50, 0x6C, 0x61, 0x79, 0x65, 0x72 }, "Cactus Data Shield 200"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/CengaProtectDVD.cs b/BurnOutSharp/ProtectionType/CengaProtectDVD.cs
index 43061fb1..13c8c35d 100644
--- a/BurnOutSharp/ProtectionType/CengaProtectDVD.cs
+++ b/BurnOutSharp/ProtectionType/CengaProtectDVD.cs
@@ -14,7 +14,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x2E, 0x63, 0x65, 0x6E, 0x65, 0x67, 0x61 }, "Cenega ProtectDVD"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/CodeLock.cs b/BurnOutSharp/ProtectionType/CodeLock.cs
index 4333a2fd..7937f686 100644
--- a/BurnOutSharp/ProtectionType/CodeLock.cs
+++ b/BurnOutSharp/ProtectionType/CodeLock.cs
@@ -25,7 +25,7 @@ namespace BurnOutSharp.ProtectionType
}, "Code Lock"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/CopyKiller.cs b/BurnOutSharp/ProtectionType/CopyKiller.cs
index a703e3de..6cefa7a2 100644
--- a/BurnOutSharp/ProtectionType/CopyKiller.cs
+++ b/BurnOutSharp/ProtectionType/CopyKiller.cs
@@ -21,7 +21,7 @@ namespace BurnOutSharp.ProtectionType
}, "CopyKiller"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/DVDCops.cs b/BurnOutSharp/ProtectionType/DVDCops.cs
index 5eb829e4..788d82ef 100644
--- a/BurnOutSharp/ProtectionType/DVDCops.cs
+++ b/BurnOutSharp/ProtectionType/DVDCops.cs
@@ -20,7 +20,7 @@ namespace BurnOutSharp.ProtectionType
}, GetVersion, "DVD-Cops"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public static string GetVersion(string file, byte[] fileContent, List positions)
diff --git a/BurnOutSharp/ProtectionType/ElectronicArts.cs b/BurnOutSharp/ProtectionType/ElectronicArts.cs
index df44788b..8559983c 100644
--- a/BurnOutSharp/ProtectionType/ElectronicArts.cs
+++ b/BurnOutSharp/ProtectionType/ElectronicArts.cs
@@ -106,7 +106,7 @@ namespace BurnOutSharp.ProtectionType
}, "EA DRM Protection"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/GFWL.cs b/BurnOutSharp/ProtectionType/GFWL.cs
index 69860ae6..a10ba311 100644
--- a/BurnOutSharp/ProtectionType/GFWL.cs
+++ b/BurnOutSharp/ProtectionType/GFWL.cs
@@ -17,7 +17,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x78, 0x6C, 0x69, 0x76, 0x65, 0x2E, 0x64, 0x6C, 0x6C }, "Games for Windows - Live"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/ImpulseReactor.cs b/BurnOutSharp/ProtectionType/ImpulseReactor.cs
index 7cf1e93c..5190ee24 100644
--- a/BurnOutSharp/ProtectionType/ImpulseReactor.cs
+++ b/BurnOutSharp/ProtectionType/ImpulseReactor.cs
@@ -44,7 +44,7 @@ namespace BurnOutSharp.ProtectionType
}, "Impulse Reactor"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/Intenium.cs b/BurnOutSharp/ProtectionType/Intenium.cs
index 9ee4217d..082f6af9 100644
--- a/BurnOutSharp/ProtectionType/Intenium.cs
+++ b/BurnOutSharp/ProtectionType/Intenium.cs
@@ -30,7 +30,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x54, 0x72, 0x69, 0x61, 0x6C, 0x00, 0x50 }, "INTENIUM Trial & Buy Protection"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/JoWooDXProt.cs b/BurnOutSharp/ProtectionType/JoWooDXProt.cs
index 156a3359..a5928931 100644
--- a/BurnOutSharp/ProtectionType/JoWooDXProt.cs
+++ b/BurnOutSharp/ProtectionType/JoWooDXProt.cs
@@ -34,7 +34,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x2E, 0x65, 0x78, 0x74, 0x20, 0x20, 0x20, 0x20 }, "JoWooD X-Prot v1"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public static string GetVersion(string file, byte[] fileContent, List positions)
diff --git a/BurnOutSharp/ProtectionType/KeyLock.cs b/BurnOutSharp/ProtectionType/KeyLock.cs
index 82e21eeb..d65b8cad 100644
--- a/BurnOutSharp/ProtectionType/KeyLock.cs
+++ b/BurnOutSharp/ProtectionType/KeyLock.cs
@@ -18,7 +18,7 @@ namespace BurnOutSharp.ProtectionType
}, "Key-Lock (Dongle)"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/LaserLock.cs b/BurnOutSharp/ProtectionType/LaserLock.cs
index af2cffeb..a1aa6599 100644
--- a/BurnOutSharp/ProtectionType/LaserLock.cs
+++ b/BurnOutSharp/ProtectionType/LaserLock.cs
@@ -58,7 +58,7 @@ namespace BurnOutSharp.ProtectionType
}, "LaserLock 5"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/MediaMaxCD3.cs b/BurnOutSharp/ProtectionType/MediaMaxCD3.cs
index 4ead01a4..8351eff9 100644
--- a/BurnOutSharp/ProtectionType/MediaMaxCD3.cs
+++ b/BurnOutSharp/ProtectionType/MediaMaxCD3.cs
@@ -24,7 +24,7 @@ namespace BurnOutSharp.ProtectionType
}, "MediaMax CD-3"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/OnlineRegistration.cs b/BurnOutSharp/ProtectionType/OnlineRegistration.cs
index f56b862f..dcad8605 100644
--- a/BurnOutSharp/ProtectionType/OnlineRegistration.cs
+++ b/BurnOutSharp/ProtectionType/OnlineRegistration.cs
@@ -21,7 +21,7 @@ namespace BurnOutSharp.ProtectionType
}, Utilities.GetFileVersion, "Executable-Based Online Registration"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/Origin.cs b/BurnOutSharp/ProtectionType/Origin.cs
index c9e8689a..52042250 100644
--- a/BurnOutSharp/ProtectionType/Origin.cs
+++ b/BurnOutSharp/ProtectionType/Origin.cs
@@ -17,7 +17,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x4F, 0x00, 0x72, 0x00, 0x69, 0x00, 0x67, 0x00, 0x69, 0x00, 0x6E, 0x00, 0x53, 0x00, 0x65, 0x00, 0x74, 0x00, 0x75, 0x00, 0x70, 0x00, 0x2E, 0x00, 0x65, 0x00, 0x78, 0x00, 0x65, 0x00 }, "Origin"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/PSXAntiModchip.cs b/BurnOutSharp/ProtectionType/PSXAntiModchip.cs
index 533d010f..b4548c89 100644
--- a/BurnOutSharp/ProtectionType/PSXAntiModchip.cs
+++ b/BurnOutSharp/ProtectionType/PSXAntiModchip.cs
@@ -42,7 +42,7 @@ namespace BurnOutSharp.ProtectionType
}, "PlayStation Anti-modchip (Japanese)"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/ProtectDisc.cs b/BurnOutSharp/ProtectionType/ProtectDisc.cs
index b119ce30..907a6726 100644
--- a/BurnOutSharp/ProtectionType/ProtectDisc.cs
+++ b/BurnOutSharp/ProtectionType/ProtectDisc.cs
@@ -22,7 +22,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x41, 0x43, 0x45, 0x2D, 0x50, 0x43, 0x44 }, GetVersion6till8, "ProtectDisc"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public static string GetVersion6till8(string file, byte[] fileContent, List positions)
diff --git a/BurnOutSharp/ProtectionType/RingPROTECH.cs b/BurnOutSharp/ProtectionType/RingPROTECH.cs
index 086baefa..04f8682c 100644
--- a/BurnOutSharp/ProtectionType/RingPROTECH.cs
+++ b/BurnOutSharp/ProtectionType/RingPROTECH.cs
@@ -19,7 +19,7 @@ namespace BurnOutSharp.ProtectionType
}, "Ring PROTECH [Check disc for physical ring]"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/SVKProtector.cs b/BurnOutSharp/ProtectionType/SVKProtector.cs
index 18dcf84c..5090d84e 100644
--- a/BurnOutSharp/ProtectionType/SVKProtector.cs
+++ b/BurnOutSharp/ProtectionType/SVKProtector.cs
@@ -14,7 +14,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x3F, 0x53, 0x56, 0x4B, 0x50, 0x00, 0x00 }, "SVK Protector"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/SafeDisc.cs b/BurnOutSharp/ProtectionType/SafeDisc.cs
index 785727ef..2cc9567d 100644
--- a/BurnOutSharp/ProtectionType/SafeDisc.cs
+++ b/BurnOutSharp/ProtectionType/SafeDisc.cs
@@ -53,7 +53,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x73, 0x74, 0x78, 0x74, 0x33, 0x37, 0x31 }, Get320to4xVersion, "SafeDisc"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/SafeLock.cs b/BurnOutSharp/ProtectionType/SafeLock.cs
index 00c69367..2960e7b9 100644
--- a/BurnOutSharp/ProtectionType/SafeLock.cs
+++ b/BurnOutSharp/ProtectionType/SafeLock.cs
@@ -17,7 +17,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x53, 0x61, 0x66, 0x65, 0x4C, 0x6F, 0x63, 0x6B }, "SafeLock"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/SecuROM.cs b/BurnOutSharp/ProtectionType/SecuROM.cs
index 21ee0319..9dc8d104 100644
--- a/BurnOutSharp/ProtectionType/SecuROM.cs
+++ b/BurnOutSharp/ProtectionType/SecuROM.cs
@@ -46,7 +46,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x2E, 0x63, 0x6D, 0x73, 0x5F, 0x64, 0x00 }, "SecuROM 1-3"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/SmartE.cs b/BurnOutSharp/ProtectionType/SmartE.cs
index 457e6160..cf548e24 100644
--- a/BurnOutSharp/ProtectionType/SmartE.cs
+++ b/BurnOutSharp/ProtectionType/SmartE.cs
@@ -17,7 +17,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x42, 0x49, 0x54, 0x41, 0x52, 0x54, 0x53 }, "SmartE"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/SolidShield.cs b/BurnOutSharp/ProtectionType/SolidShield.cs
index d14eef71..db206443 100644
--- a/BurnOutSharp/ProtectionType/SolidShield.cs
+++ b/BurnOutSharp/ProtectionType/SolidShield.cs
@@ -80,7 +80,7 @@ namespace BurnOutSharp.ProtectionType
}, "SolidShield"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/StarForce.cs b/BurnOutSharp/ProtectionType/StarForce.cs
index 9a559410..1b7046b7 100644
--- a/BurnOutSharp/ProtectionType/StarForce.cs
+++ b/BurnOutSharp/ProtectionType/StarForce.cs
@@ -115,7 +115,7 @@ namespace BurnOutSharp.ProtectionType
}, "StarForce 5"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/Sysiphus.cs b/BurnOutSharp/ProtectionType/Sysiphus.cs
index 0f74192f..1ca62331 100644
--- a/BurnOutSharp/ProtectionType/Sysiphus.cs
+++ b/BurnOutSharp/ProtectionType/Sysiphus.cs
@@ -25,7 +25,7 @@ namespace BurnOutSharp.ProtectionType
}, GetVersion, "Sysiphus"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
public static string GetVersion(string file, byte[] fileContent, List positions)
diff --git a/BurnOutSharp/ProtectionType/Tages.cs b/BurnOutSharp/ProtectionType/Tages.cs
index b47d3cca..3b02ace1 100644
--- a/BurnOutSharp/ProtectionType/Tages.cs
+++ b/BurnOutSharp/ProtectionType/Tages.cs
@@ -34,7 +34,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0xE8, 0x75, 0x00, 0x00, 0x00, 0xE8 }, GetVersion, "TAGES"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/ThreePLock.cs b/BurnOutSharp/ProtectionType/ThreePLock.cs
index df2a3fe3..6dc32a72 100644
--- a/BurnOutSharp/ProtectionType/ThreePLock.cs
+++ b/BurnOutSharp/ProtectionType/ThreePLock.cs
@@ -28,7 +28,7 @@ namespace BurnOutSharp.ProtectionType
// }, "3PLock"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs b/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs
index db9a3c64..358abdba 100644
--- a/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs
+++ b/BurnOutSharp/ProtectionType/ThreeTwoOneStudios.cs
@@ -22,7 +22,7 @@ namespace BurnOutSharp.ProtectionType
}, "321Studios Online Activation"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}
diff --git a/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs b/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs
index 0d8b7ec4..d8a67746 100644
--- a/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs
+++ b/BurnOutSharp/ProtectionType/VOBProtectCDDVD.cs
@@ -29,7 +29,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x2E, 0x76, 0x6F, 0x62, 0x2E, 0x70, 0x63, 0x64 }, "VOB ProtectCD"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/WTMCDProtect.cs b/BurnOutSharp/ProtectionType/WTMCDProtect.cs
index bf129835..12bca8ec 100644
--- a/BurnOutSharp/ProtectionType/WTMCDProtect.cs
+++ b/BurnOutSharp/ProtectionType/WTMCDProtect.cs
@@ -17,7 +17,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x57, 0x54, 0x4D, 0x37, 0x36, 0x35, 0x34, 0x35 }, "WTM CD Protect"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/XCP.cs b/BurnOutSharp/ProtectionType/XCP.cs
index bd4c2b3c..40b34317 100644
--- a/BurnOutSharp/ProtectionType/XCP.cs
+++ b/BurnOutSharp/ProtectionType/XCP.cs
@@ -32,7 +32,7 @@ namespace BurnOutSharp.ProtectionType
}, "XCP"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
///
diff --git a/BurnOutSharp/ProtectionType/XtremeProtector.cs b/BurnOutSharp/ProtectionType/XtremeProtector.cs
index 0db85612..09a3611e 100644
--- a/BurnOutSharp/ProtectionType/XtremeProtector.cs
+++ b/BurnOutSharp/ProtectionType/XtremeProtector.cs
@@ -14,7 +14,7 @@ namespace BurnOutSharp.ProtectionType
new ContentMatchSet(new byte?[] { 0x58, 0x50, 0x52, 0x4F, 0x54, 0x20, 0x20, 0x20 }, "Xtreme-Protector"),
};
- return MatchUtil.GetFirstContentMatch(file, fileContent, matchers, includePosition);
+ return MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition);
}
}
}