mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 11:09:27 -05:00
Fix C/XD pkm loading
Thanks ArcticLoveBunny!
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user