mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 06:45:03 +00:00
Try 16
This commit is contained in:
@@ -15,7 +15,9 @@ namespace BinaryObjectScanner.FileType
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] magic = stream.ReadBytes(16);
|
||||
int bytesToRead = (int)Math.Min(16, stream.Length);
|
||||
byte[] magic = stream.ReadBytes(bytesToRead);
|
||||
|
||||
if (magic.StartsWith(new byte?[] { 0x4C, 0x44, 0x53, 0x43, 0x52, 0x59, 0x50, 0x54 }))
|
||||
return "Link Data Security encrypted file";
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@ namespace BinaryObjectScanner.FileType
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] magic = stream.ReadBytes(16);
|
||||
int bytesToRead = (int)Math.Min(16, stream.Length);
|
||||
byte[] magic = stream.ReadBytes(bytesToRead);
|
||||
|
||||
// RASGI2.0
|
||||
// Found in the ".rgs" files in IA item "Nova_RealArcadeCD_USA".
|
||||
|
||||
@@ -17,7 +17,8 @@ namespace BinaryObjectScanner.FileType
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] magic = stream.ReadBytes(16);
|
||||
int bytesToRead = (int)Math.Min(16, stream.Length);
|
||||
byte[] magic = stream.ReadBytes(bytesToRead);
|
||||
|
||||
// XZip2.0
|
||||
// Found in the ".mez" files in IA item "Nova_RealArcadeCD_USA".
|
||||
|
||||
@@ -17,7 +17,9 @@ namespace BinaryObjectScanner.FileType
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] magic = stream.ReadBytes(16);
|
||||
int bytesToRead = (int)Math.Min(16, stream.Length);
|
||||
byte[] magic = stream.ReadBytes(bytesToRead);
|
||||
|
||||
if (magic.StartsWith(new byte?[] { 0x53, 0x46, 0x46, 0x53 }))
|
||||
return "StarForce Filesystem Container";
|
||||
}
|
||||
|
||||
@@ -290,7 +290,8 @@ namespace BinaryObjectScanner
|
||||
byte[] magic;
|
||||
try
|
||||
{
|
||||
magic = stream.ReadBytes(16);
|
||||
int bytesToRead = (int)Math.Min(16, stream.Length);
|
||||
magic = stream.ReadBytes(bytesToRead);
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user