mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
Expand logging for invalid batch edits
Closes #1003 If the pkm has a bad checksum/sanity or is in a locked slot, it never incremented the counter. Just increment the counter anyway and write the msg to console.
This commit is contained in:
parent
5c96066b13
commit
5bf14642e5
1 changed files with 4 additions and 0 deletions
|
@ -276,7 +276,11 @@ namespace PKHeX.WinForms
|
|||
private bool processPKM(PKM pkm, IEnumerable<StringInstruction> Filters, IEnumerable<StringInstruction> Instructions)
|
||||
{
|
||||
if (!pkm.Valid || pkm.Locked)
|
||||
{
|
||||
len++;
|
||||
Console.WriteLine("Skipped a pkm due to disallowed input: " + (pkm.Locked ? "Locked." : "Not Valid."));
|
||||
return false;
|
||||
}
|
||||
|
||||
ModifyResult r = tryModifyPKM(pkm, Filters, Instructions);
|
||||
if (r != ModifyResult.Invalid)
|
||||
|
|
Loading…
Reference in a new issue