Better conditional updates

This commit is contained in:
Matt Nadareski
2025-01-06 15:37:32 -05:00
parent 3dee4fd376
commit 8d845df8b9
6 changed files with 104 additions and 30 deletions

View File

@@ -59,7 +59,12 @@ namespace SabreTools.DatItems.Formats
/// Fill any missing size and hash information from another Media
/// </summary>
/// <param name="other">Media to fill information from</param>
public void FillMissingInformation(Media other) => _internal.FillMissingHashes(other?._internal);
public void FillMissingInformation(Media other)
{
_internal.FillMissingHashes(other._internal);
ConditionalUpdateSource(other);
ConditionalUpdateMachine(other);
}
/// <summary>
/// Get unique duplicate suffix on name collision