mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Include title ID in --listapps when possible
This commit is contained in:
parent
7dd21ae05b
commit
c56c8ba8ed
1 changed files with 5 additions and 2 deletions
|
@ -268,12 +268,15 @@ namespace hactoolnet
|
||||||
|
|
||||||
foreach (Application app in sdfs.Applications.Values.OrderBy(x => x.Name))
|
foreach (Application app in sdfs.Applications.Values.OrderBy(x => x.Name))
|
||||||
{
|
{
|
||||||
sb.AppendLine($"{app.Name} v{app.DisplayVersion}");
|
|
||||||
|
|
||||||
if (app.Main != null)
|
if (app.Main != null)
|
||||||
{
|
{
|
||||||
|
sb.AppendLine($"{app.Name} v{app.DisplayVersion} ({app.Main.Id.ToString("X16")})");
|
||||||
sb.AppendLine($"Software: {Utilities.GetBytesReadable(app.Main.GetSize())}");
|
sb.AppendLine($"Software: {Utilities.GetBytesReadable(app.Main.GetSize())}");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sb.AppendLine($"{app.Name} v{app.DisplayVersion}");
|
||||||
|
}
|
||||||
|
|
||||||
if (app.Patch != null)
|
if (app.Patch != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue