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 ///