From 7ee5aec746b1d19ef744abbd91100ea98957aedd Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Tue, 31 Jan 2023 23:13:56 -0700 Subject: [PATCH] hactoolnet: Don't print offset ranges for pfs0 files --- src/hactoolnet/ProcessPfs.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hactoolnet/ProcessPfs.cs b/src/hactoolnet/ProcessPfs.cs index 42fdf987..db1af4bd 100644 --- a/src/hactoolnet/ProcessPfs.cs +++ b/src/hactoolnet/ProcessPfs.cs @@ -36,7 +36,6 @@ internal static class ProcessPfs private static string Print(this PartitionFileSystem pfs) { const int colLen = 36; - const int fileNameLen = 39; var sb = new StringBuilder(); sb.AppendLine(); @@ -51,8 +50,7 @@ internal static class ProcessPfs PartitionFileEntry file = pfs.Files[i]; string label = i == 0 ? "Files:" : ""; - string offsets = $"{file.Offset:x12}-{file.Offset + file.Size:x12}{file.HashValidity.GetValidityString()}"; - string data = $"pfs0:/{file.Name}".PadRight(fileNameLen) + offsets; + string data = $"pfs0:/{file.Name}"; PrintItem(sb, colLen, label, data); }