Make Source inherent to DatItem instead of passing through

This commit is contained in:
Matt Nadareski
2026-04-02 17:06:01 -04:00
parent 61ea4b2668
commit d3f5dccf5b
58 changed files with 468 additions and 184 deletions

View File

@@ -1169,8 +1169,8 @@ namespace SabreTools.Metadata.DatFiles
// Compare on source if renaming
if (!norename)
{
int xSourceIndex = x.Read<Source?>(DatItem.SourceKey)?.Index ?? 0;
int ySourceIndex = y.Read<Source?>(DatItem.SourceKey)?.Index ?? 0;
int xSourceIndex = x.Source?.Index ?? 0;
int ySourceIndex = y.Source?.Index ?? 0;
if (xSourceIndex != ySourceIndex)
return xSourceIndex - ySourceIndex;
}