Fix invalid checksum detection when populating

This commit is contained in:
Kurt 2014-12-21 20:07:04 -08:00
parent a2f21e129f
commit 85696a9210

View file

@ -1053,7 +1053,7 @@ namespace PKHeX
Label_Gender.Text = gendersymbols[genderflag]; Label_Gender.Text = gendersymbols[genderflag];
updateStats(); updateStats();
setIsShiny(); setIsShiny();
if (init) // if (init)
if (!PKX.verifychk(buff)) if (!PKX.verifychk(buff))
Util.Alert("PKX File has an invalid checksum."); Util.Alert("PKX File has an invalid checksum.");
@ -2598,6 +2598,7 @@ namespace PKHeX
openQuick(((string[])e.Data.GetData(DataFormats.FileDrop))[0]); openQuick(((string[])e.Data.GetData(DataFormats.FileDrop))[0]);
} }
#endregion #endregion
#region //// SAVE FILE FUNCTIONS //// #region //// SAVE FILE FUNCTIONS ////
// Integrity Checks // // Integrity Checks //
private void clickVerifyCHK(object sender, EventArgs e) private void clickVerifyCHK(object sender, EventArgs e)