mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-24 09:04:14 -05:00
Update trainer name on import
repop all lul, works
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user