mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
parent
a60a73e9d5
commit
78b7409e77
1 changed files with 3 additions and 3 deletions
|
@ -911,10 +911,10 @@ namespace PKHeX.Core
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int expectLength = BoxSlotCount * BlankPKM.EncryptedBoxData.Length;
|
int expectLength = BoxSlotCount * BlankPKM.EncryptedBoxData.Length;
|
||||||
return SetConcatenatedBinary(data, expectLength);
|
return SetConcatenatedBinary(data, expectLength, start);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool SetConcatenatedBinary(byte[] data, int expectLength)
|
private bool SetConcatenatedBinary(byte[] data, int expectLength, int start = 0)
|
||||||
{
|
{
|
||||||
if (data.Length != expectLength)
|
if (data.Length != expectLength)
|
||||||
return false;
|
return false;
|
||||||
|
@ -922,7 +922,7 @@ namespace PKHeX.Core
|
||||||
var BD = BoxData;
|
var BD = BoxData;
|
||||||
var entryLength = BlankPKM.EncryptedBoxData.Length;
|
var entryLength = BlankPKM.EncryptedBoxData.Length;
|
||||||
var pkdata = ArrayUtil.EnumerateSplit(data, entryLength);
|
var pkdata = ArrayUtil.EnumerateSplit(data, entryLength);
|
||||||
pkdata.Select(GetPKM).CopyTo(BD, IsSlotOverwriteProtected);
|
pkdata.Select(GetPKM).CopyTo(BD, IsSlotOverwriteProtected, start);
|
||||||
BoxData = BD;
|
BoxData = BD;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue