Fix sav editing from direct memcard saves

Thanks @sora10pls for finding this

(just use the existing MC data)
This commit is contained in:
Kurt 2018-02-06 20:33:32 -08:00
parent 1b2aded412
commit af0e05f6af
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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