hactoolnet: Don't print offset ranges for pfs0 files

This commit is contained in:
Alex Barney 2023-01-31 23:13:56 -07:00
parent 8c4f0b7e42
commit 7ee5aec746

View file

@ -36,7 +36,6 @@ internal static class ProcessPfs
private static string Print(this PartitionFileSystem pfs) private static string Print(this PartitionFileSystem pfs)
{ {
const int colLen = 36; const int colLen = 36;
const int fileNameLen = 39;
var sb = new StringBuilder(); var sb = new StringBuilder();
sb.AppendLine(); sb.AppendLine();
@ -51,8 +50,7 @@ internal static class ProcessPfs
PartitionFileEntry file = pfs.Files[i]; PartitionFileEntry file = pfs.Files[i];
string label = i == 0 ? "Files:" : ""; string label = i == 0 ? "Files:" : "";
string offsets = $"{file.Offset:x12}-{file.Offset + file.Size:x12}{file.HashValidity.GetValidityString()}"; string data = $"pfs0:/{file.Name}";
string data = $"pfs0:/{file.Name}".PadRight(fileNameLen) + offsets;
PrintItem(sb, colLen, label, data); PrintItem(sb, colLen, label, data);
} }