add duc reading

i dont really want to add more than this, header/footer conversion can
be done separately.
This commit is contained in:
Kurt 2018-03-21 17:01:07 -07:00
parent aedc0092b4
commit f103a84fbd

View File

@ -709,6 +709,12 @@ private static void CheckHeaderFooter(ref byte[] input, ref byte[] header, ref b
{
if (input.Length > SIZE_G4RAW) // DeSmuME Gen4/5 DSV
{
if (input.Length == 0x800A4) // Action Replay
{
header = input.Take(0xA4).ToArray();
input = input.Skip(header.Length).ToArray();
return;
}
if (!FOOTER_DSV.SequenceEqual(input.Skip(input.Length - FOOTER_DSV.Length)))
return;
footer = input.Skip(SIZE_G4RAW).ToArray();