mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
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:
parent
21cb931123
commit
d15b0b439c
1 changed files with 9 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue