Add party data editing for batch editor

functions properly for games without a party (RS BOX) by checking if a
party exists
if there's ever a game that doesn't have a box, it'll work for that too
:P
This commit is contained in:
Kurt 2017-03-21 19:27:41 -07:00
parent 7adcbbea3d
commit 68fe715774

View file

@ -189,10 +189,20 @@ namespace PKHeX.WinForms
len = err = ctr = 0;
if (RB_SAV.Checked)
{
var data = Main.SAV.BoxData;
setupProgressBar(data.Length);
processSAV(data, Filters, Instructions);
Main.SAV.BoxData = data;
if (Main.SAV.HasParty)
{
var data = Main.SAV.PartyData;
setupProgressBar(data.Length);
processSAV(data, Filters, Instructions);
Main.SAV.PartyData = data;
}
if (Main.SAV.HasBox)
{
var data = Main.SAV.BoxData;
setupProgressBar(data.Length);
processSAV(data, Filters, Instructions);
Main.SAV.BoxData = data;
}
}
else
{