mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 06:45:11 +00:00
Remove get/set name methods where appropriate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user