mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
hactoolnet: Don't print offset ranges for pfs0 files
This commit is contained in:
parent
8c4f0b7e42
commit
7ee5aec746
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue