DepotInformation should be responsible for path generation

This commit is contained in:
Matt Nadareski
2026-04-05 14:02:06 -04:00
parent d6edc33dd2
commit fe0768dad7
5 changed files with 110 additions and 92 deletions

View File

@@ -506,7 +506,7 @@ namespace SabreTools.Metadata.DatFiles
string? sha1 = disk.SHA1;
if (!string.IsNullOrEmpty(sha1))
{
name = Utilities.GetDepotPath(sha1, Modifiers.OutputDepot.Depth)?.Replace('\\', '/');
name = Modifiers.OutputDepot.GetDepotPath(sha1)?.Replace('\\', '/');
disk.Name = $"{pre}{name}{post}";
}
}
@@ -516,7 +516,7 @@ namespace SabreTools.Metadata.DatFiles
string? sha1 = media.SHA1;
if (!string.IsNullOrEmpty(sha1))
{
name = Utilities.GetDepotPath(sha1, Modifiers.OutputDepot.Depth)?.Replace('\\', '/');
name = Modifiers.OutputDepot.GetDepotPath(sha1)?.Replace('\\', '/');
media.Name = $"{pre}{name}{post}";
}
}
@@ -526,7 +526,7 @@ namespace SabreTools.Metadata.DatFiles
string? sha1 = rom.SHA1;
if (!string.IsNullOrEmpty(sha1))
{
name = Utilities.GetDepotPath(sha1, Modifiers.OutputDepot.Depth)?.Replace('\\', '/');
name = Modifiers.OutputDepot.GetDepotPath(sha1)?.Replace('\\', '/');
rom.Name = $"{pre}{name}{post}";
}
}