mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Fix footer size chop
oops, another hotfix
This commit is contained in:
parent
7e7b2bb2d3
commit
1d94baeb7f
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ public sealed class SaveHandlerBizHawk : ISaveHandler
|
|||
return null;
|
||||
|
||||
var realSize = input.Length - sizeFooter;
|
||||
var footer = input[^realSize..].ToArray();
|
||||
var footer = input[realSize..].ToArray();
|
||||
var data = input[..realSize].ToArray();
|
||||
|
||||
return new SaveHandlerSplitResult(data, Array.Empty<byte>(), footer);
|
||||
|
|
|
@ -33,7 +33,7 @@ public sealed class SaveHandlerDeSmuME : ISaveHandler
|
|||
if (!GetHasFooter(input))
|
||||
return null;
|
||||
|
||||
var footer = input[^RealSize..].ToArray();
|
||||
var footer = input[RealSize..].ToArray();
|
||||
var data = input[..RealSize].ToArray();
|
||||
|
||||
return new SaveHandlerSplitResult(data, Array.Empty<byte>(), footer);
|
||||
|
|
Loading…
Reference in a new issue