mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Fix sav editing from direct memcard saves
Thanks @sora10pls for finding this (just use the existing MC data)
This commit is contained in:
parent
1b2aded412
commit
af0e05f6af
|
|
@ -121,7 +121,7 @@ public override byte[] Write(bool DSV, bool GCI)
|
|||
byte[] newSAV = EncryptColosseum(Data, digest);
|
||||
|
||||
// Put save slot back in original save data
|
||||
byte[] newFile = (byte[])BAK.Clone();
|
||||
byte[] newFile = MC != null ? MC.SelectedSaveData : (byte[])BAK.Clone();
|
||||
Array.Copy(newSAV, 0, newFile, SLOT_START + SaveIndex*SLOT_SIZE, newSAV.Length);
|
||||
|
||||
// Return the gci if Memory Card is not being exported
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ public override byte[] Write(bool DSV, bool GCI)
|
|||
byte[] newSAV = SaveUtil.EncryptGC(Data, 0x10, 0x27FD8, keys);
|
||||
|
||||
// Put save slot back in original save data
|
||||
byte[] newFile = (byte[])BAK.Clone();
|
||||
byte[] newFile = MC != null ? MC.SelectedSaveData : (byte[])BAK.Clone();
|
||||
Array.Copy(newSAV, 0, newFile, SLOT_START + SaveIndex * SLOT_SIZE, newSAV.Length);
|
||||
|
||||
// Return the gci if Memory Card is not being exported
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user