Add SaveFile version detect bools

This commit is contained in:
Kaphotics 2016-07-25 23:11:17 -07:00
parent f9bd271967
commit d56a55965d
2 changed files with 13 additions and 5 deletions

View file

@ -12,20 +12,20 @@ namespace PKHeX
{
case 6: s += SAV.ORAS && index > 16 ? "ao" : "xy";
break;
case 5: s += SAV.Version == GameVersion.B2W2 && index > 16 ? "b2w2" : "bw";
case 5: s += SAV.B2W2 && index > 16 ? "b2w2" : "bw";
break;
case 4:
if (SAV.Version == GameVersion.Pt && index > 16)
if (SAV.Pt && index > 16)
s += "pt";
else if (SAV.Version == GameVersion.HGSS && index > 16)
else if (SAV.HGSS && index > 16)
s += "hgss";
else
s += "dp";
break;
case 3:
if (SAV.Version == GameVersion.E)
if (SAV.E)
s += "e";
else if (SAV.Version == GameVersion.FRLG && index > 12)
else if (SAV.FRLG && index > 12)
s += "frlg";
else
s += "rs";

View file

@ -50,6 +50,14 @@ namespace PKHeX
public bool ORASDEMO => Data.Length == SaveUtil.SIZE_G6ORASDEMO;
public bool ORAS => Version == GameVersion.OR || Version == GameVersion.AS;
public bool XY => Version == GameVersion.X || Version == GameVersion.Y;
public bool B2W2 => Version == GameVersion.B2W2;
public bool BW => Version == GameVersion.BW;
public bool HGSS => Version == GameVersion.HGSS;
public bool Pt => Version == GameVersion.Pt;
public bool DP => Version == GameVersion.DP;
public bool E => Version == GameVersion.E;
public bool FRLG => Version == GameVersion.FRLG;
public bool RS => Version == GameVersion.RS;
public virtual int MaxMoveID => int.MaxValue;
public virtual int MaxSpeciesID => int.MaxValue;