mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Include title ID in --listapps when possible
This commit is contained in:
parent
7dd21ae05b
commit
c56c8ba8ed
@ -268,12 +268,15 @@ namespace hactoolnet
|
||||
|
||||
foreach (Application app in sdfs.Applications.Values.OrderBy(x => x.Name))
|
||||
{
|
||||
sb.AppendLine($"{app.Name} v{app.DisplayVersion}");
|
||||
|
||||
if (app.Main != null)
|
||||
{
|
||||
sb.AppendLine($"{app.Name} v{app.DisplayVersion} ({app.Main.Id.ToString("X16")})");
|
||||
sb.AppendLine($"Software: {Utilities.GetBytesReadable(app.Main.GetSize())}");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.AppendLine($"{app.Name} v{app.DisplayVersion}");
|
||||
}
|
||||
|
||||
if (app.Patch != null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user