Remove get/set name methods where appropriate

This commit is contained in:
Matt Nadareski
2026-04-04 14:07:37 -04:00
parent 5ab48845e3
commit 096f1d9534
7 changed files with 4 additions and 175 deletions

View File

@@ -510,16 +510,6 @@ namespace SabreTools.Metadata.DatFiles
disk.Name = $"{pre}{name}{post}";
}
}
else if (item is DatItems.Formats.File file)
{
// We can only write out if there's a SHA-1
string? sha1 = file.SHA1;
if (!string.IsNullOrEmpty(sha1))
{
name = Utilities.GetDepotPath(sha1, Modifiers.OutputDepot.Depth)?.Replace('\\', '/');
file.SetName($"{pre}{name}{post}");
}
}
else if (item is Media media)
{
// We can only write out if there's a SHA-1