mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-01 00:09:14 +00:00
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:
parent
d1c21d460f
commit
15e3ff2eb1
1 changed files with 3 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue