mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-30 07:50:32 +00:00
parent
affd68d3ad
commit
a415ca78df
3 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue