mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-19 20:28:24 -05:00
Fix QR Type offset
This commit is contained in:
parent
c21f65be6a
commit
64b53c7705
|
|
@ -77,7 +77,7 @@ private static byte[] GenerateQRData(PK7 pk7, int box = 0, int slot = 0, int num
|
|||
|
||||
byte[] data = new byte[0x1A2];
|
||||
BitConverter.GetBytes(0x454B4F50).CopyTo(data, 0); // POKE magic
|
||||
data[0x5] = 0xFF; // QR Type
|
||||
data[0x4] = 0xFF; // QR Type
|
||||
BitConverter.GetBytes(box).CopyTo(data, 0x8);
|
||||
BitConverter.GetBytes(slot).CopyTo(data, 0xC);
|
||||
BitConverter.GetBytes(num_copies).CopyTo(data, 0x10); // No need to check max num_copies, payload parser handles it on-console.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user