From 15e3ff2eb1b3d7b91d5fc1e610d3cd307b42abcd Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 25 Oct 2015 18:12:07 -0700 Subject: [PATCH] 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. --- PKX/f1-Main.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index dd6cd5963..179089d3d 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -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();