Update trainer name on import

repop all lul, works
This commit is contained in:
Kurt
2019-06-20 21:38:06 -07:00
parent e0de0780c7
commit 32df9f2c39

View File

@@ -508,7 +508,7 @@ private void B_FDelete_Click(object sender, EventArgs e)
return;
const int max = 29;
const int size = 0x3E0;
const int size = SecretBase6.SIZE;
int offset = favoff + (index * size);
if (index != max) Array.Copy(SAV.Data, offset + size, SAV.Data, offset, size * (max - index));
// Ensure Last Entry is Cleared
@@ -527,6 +527,7 @@ private void B_Import_Click(object sender, EventArgs e)
var ofs = GetSecretBaseOffset(currentIndex);
var data = File.ReadAllBytes(path);
SAV.SetData(data, ofs);
PopFavorite();
LB_Favorite.SelectedIndex = currentIndex;
B_SAV2FAV(sender, e); // load back from current index
}