mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-24 12:46:13 -05:00
add duc reading
i dont really want to add more than this, header/footer conversion can be done separately.
This commit is contained in:
parent
aedc0092b4
commit
f103a84fbd
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user