Fix folder location fetch & x/c/bk# extension fetch

Closes #1149
This commit is contained in:
Kurt 2017-05-17 20:39:06 -07:00
parent affd68d3ad
commit a415ca78df
3 changed files with 3 additions and 5 deletions

View file

@ -16,9 +16,7 @@ namespace PKHeX.Core
public override byte[] DecryptedBoxData => EncryptedBoxData;
public override string Extension => "bk4";
public override bool Valid => ChecksumValid || (Sanity != 0 && Species <= 493); // What does Sanity do?
public override bool Valid => ChecksumValid || Sanity == 0 && Species <= 493;
public BK4(byte[] decryptedData = null, string ident = null)
{

View file

@ -8,7 +8,7 @@ namespace PKHeX.Core
public static readonly string[] Extensions = PKX.getPKMExtensions();
public abstract int SIZE_PARTY { get; }
public abstract int SIZE_STORED { get; }
public virtual string Extension => "pk" + Format;
public string Extension => GetType().Name.ToLower();
public abstract PersonalInfo PersonalInfo { get; }
// Internal Attributes set on creation

View file

@ -53,7 +53,7 @@ namespace PKHeX.WinForms
private static IEnumerable<CustomFolderPath> getUserPaths()
{
const string loc = "savpaths.txt";
string loc = Path.Combine(Main.WorkingDirectory, "savpaths.txt");
if (!File.Exists(loc))
yield break;