Show SID for vc->7+

#1923
sometimes (hacked data) can have SID values; don't exclusively follow
the GB era TID only rule.
This commit is contained in:
Kurt 2018-05-02 22:28:41 -07:00
parent 21cb931123
commit d15b0b439c

View file

@ -37,7 +37,15 @@ namespace PKHeX.WinForms.Controls
public void LoadIDValues(ITrainerID tr)
{
Trainer = tr;
int format = tr is PKM p ? p.GenNumber : tr is SaveFile s ? s.Generation : -1;
int format;
if (tr is PKM p)
{
format = p.GenNumber;
if (format < 3 && p.Format >= 7) // VC
format = 4; // use TID/SID 16bit style
}
else
format = tr is SaveFile s ? s.Generation : -1;
SetFormat(format);
LoadValues();
}