Ignore BDSP backup paths

"Backup.bin"
This commit is contained in:
Kurt 2022-02-21 17:45:23 -08:00
parent f1264a1a97
commit 48742da4ae

View file

@ -813,7 +813,7 @@ namespace PKHeX.Core
}
}
public static bool IsBackup(string path) => Path.GetFileName(path) is "backup" || Path.GetExtension(path) is ".bak";
public static bool IsBackup(string path) => Path.GetFileNameWithoutExtension(path).Equals("backup", StringComparison.InvariantCultureIgnoreCase) || Path.GetExtension(path) is ".bak";
/// <summary>
/// Determines whether the save data size is valid for automatically detecting saves.