From 4ac1fb201e85fcc75aee2904ef60e7b82247fa22 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 23 Aug 2024 21:19:07 -0400 Subject: [PATCH] Less confusing implmentation of DatfileExists --- CHANGELIST.md | 1 + MPF.Processors/Redumper.cs | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index fdb9638d..6a2b8b2b 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -57,6 +57,7 @@ - Use simplified CheckAllOutputFilesExist - Create and use RegexOutputFile - Add archive override for RegexOutputFile +- Less confusing implmentation of DatfileExists ### 3.2.1 (2024-08-05) diff --git a/MPF.Processors/Redumper.cs b/MPF.Processors/Redumper.cs index 668b63d3..02b885f7 100644 --- a/MPF.Processors/Redumper.cs +++ b/MPF.Processors/Redumper.cs @@ -386,7 +386,7 @@ namespace MPF.Processors | OutputFileFlags.Zippable, "log"), new($"{baseFilename}.log", OutputFileFlags.Required, - (s) => GetDatfile(s) != null), + DatfileExists), new($"{baseFilename}.pma", OutputFileFlags.Binary | OutputFileFlags.Zippable, "pma"), @@ -518,6 +518,17 @@ namespace MPF.Processors #endregion + #region Private Extra Methods + + /// + /// Get if the datfile exists in the log + /// + /// Log file location + private static bool DatfileExists(string log) + => GetDatfile(log) != null; + + #endregion + #region Information Extraction Methods ///