mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-08 18:06:34 +00:00
consistent alpharom stylization (#395)
I forgot that Alpha-ROM is stylized with a dash. Mainly PRing so it'll also be consistent with how it already is on redump.
This commit is contained in:
committed by
GitHub
parent
41ad8adf6e
commit
cc7592e07a
@@ -84,7 +84,7 @@ namespace BinaryObjectScanner.Protection
|
|||||||
&& Array.FindAll(applicationIdentifierStringBytes, b => b < 60).Length >= 5
|
&& Array.FindAll(applicationIdentifierStringBytes, b => b < 60).Length >= 5
|
||||||
&& Array.FindAll(applicationIdentifierStringBytes, b => b > 60).Length >= 5)
|
&& Array.FindAll(applicationIdentifierStringBytes, b => b > 60).Length >= 5)
|
||||||
{
|
{
|
||||||
return "AlphaROM";
|
return "Alpha-ROM";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type #2: Usually 20 characters long, but Redump ID 124334 is 18 characters long. Validate that it
|
// Type #2: Usually 20 characters long, but Redump ID 124334 is 18 characters long. Validate that it
|
||||||
@@ -107,7 +107,7 @@ namespace BinaryObjectScanner.Protection
|
|||||||
var startingNumbers = Encoding.ASCII.GetBytes(applicationIdentifierString.Substring(0, index));
|
var startingNumbers = Encoding.ASCII.GetBytes(applicationIdentifierString.Substring(0, index));
|
||||||
var finalCharacters = Encoding.ASCII.GetBytes(applicationIdentifierString.Substring(index));
|
var finalCharacters = Encoding.ASCII.GetBytes(applicationIdentifierString.Substring(index));
|
||||||
if (Array.TrueForAll(startingNumbers, b => b < 60) && Array.TrueForAll(finalCharacters, b => b > 60))
|
if (Array.TrueForAll(startingNumbers, b => b < 60) && Array.TrueForAll(finalCharacters, b => b > 60))
|
||||||
return "AlphaROM";
|
return "Alpha-ROM";
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user