mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-22 15:21:55 +00:00
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:
parent
7adcbbea3d
commit
68fe715774
1 changed files with 14 additions and 4 deletions
|
@ -188,12 +188,22 @@ namespace PKHeX.WinForms
|
|||
|
||||
len = err = ctr = 0;
|
||||
if (RB_SAV.Checked)
|
||||
{
|
||||
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
|
||||
{
|
||||
var files = Directory.GetFiles(TB_Folder.Text, "*", SearchOption.AllDirectories);
|
||||
|
|
Loading…
Reference in a new issue