Reconfigure current box saving logic

Moved to after the chunk check; it's also physically impossible to save
the file on the Party/Battle Box view so I don't even bother checking
now.
This commit is contained in:
Kurt 2015-10-25 18:12:07 -07:00
parent d1c21d460f
commit 15e3ff2eb1

View file

@ -2449,18 +2449,14 @@ namespace PKHeX
}
private void clickExportSAV(object sender, EventArgs e)
{
// Set the current box to the save
SAV.CurrentBox =
(tabBoxMulti.SelectedIndex == 1 ? 0xFF // If Battle/Party selected
: CB_BoxSelect.SelectedIndex); // Box
byte[] sav = SAV.Write();
// Chunk Error Checking
string err = SAV.checkChunkFF();
if (err.Length > 0 && Util.Prompt(MessageBoxButtons.YesNo, err, "Continue saving?") != DialogResult.Yes)
return;
SAV.CurrentBox = CB_BoxSelect.SelectedIndex;
byte[] sav = SAV.Write();
SaveFileDialog cySAV = new SaveFileDialog();
// Try for file path
string cyberpath = Util.GetTempFolder();