mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 14:36:54 -05: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:
@@ -2449,18 +2449,14 @@ private void clickVerifyCHK(object sender, EventArgs e)
|
||||
}
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user