mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Less confusing implmentation of DatfileExists
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user