Reduce flakiness of flag setting

This commit is contained in:
Matt Nadareski
2025-01-04 21:40:45 -05:00
parent 5a7201e92d
commit 263d8f6aef
5 changed files with 26 additions and 18 deletions

View File

@@ -7,15 +7,15 @@ namespace SabreTools.FileTypes
{
#region Fields
/// <summary>
/// Determines if dates are read or written
/// </summary>
public bool UseDates { get; set; } = false;
#endregion
#region Protected instance variables
/// <summary>
/// Determines if real dates are written
/// </summary>
protected bool _realDates = false;
/// <summary>
/// Buffer size used by archives
/// </summary>
@@ -68,6 +68,14 @@ namespace SabreTools.FileTypes
#region Writing
/// <summary>
/// Set if real dates are written
/// </summary>
public void SetRealDates(bool realDates)
{
_realDates = realDates;
}
/// <inheritdoc/>
public override abstract bool Write(string inputFile, string outDir, BaseFile? baseFile);