Include title ID in --listapps when possible

This commit is contained in:
leo60228 2020-07-24 14:48:30 -04:00 committed by Alex Barney
parent 7dd21ae05b
commit c56c8ba8ed

View file

@ -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)
{