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

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