Less confusing implmentation of DatfileExists

This commit is contained in:
Matt Nadareski
2024-08-23 21:19:07 -04:00
parent cba8daa010
commit 4ac1fb201e
2 changed files with 13 additions and 1 deletions

View File

@@ -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)

View File

@@ -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
/// <summary>
/// Get if the datfile exists in the log
/// </summary>
/// <param name="log">Log file location</param>
private static bool DatfileExists(string log)
=> GetDatfile(log) != null;
#endregion
#region Information Extraction Methods
/// <summary>