mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-05 21:17:14 -05:00
Fix C/XD pkm loading
Thanks ArcticLoveBunny!
This commit is contained in:
parent
92b39e9da5
commit
6196a8101a
|
|
@ -300,6 +300,8 @@ public static void checkEncrypted(ref byte[] pkm)
|
|||
case 2: // no encryption
|
||||
return;
|
||||
case 3:
|
||||
if (pkm.Length == PKX.SIZE_3CSTORED || pkm.Length == PKX.SIZE_3XSTORED)
|
||||
return; // no encryption for C/XD
|
||||
ushort chk = 0;
|
||||
for (int i = 0x20; i < PKX.SIZE_3STORED; i += 2)
|
||||
chk += BitConverter.ToUInt16(pkm, i);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user