From c56c8ba8edf75581355be86ebc14cd785f1861d8 Mon Sep 17 00:00:00 2001 From: leo60228 Date: Fri, 24 Jul 2020 14:48:30 -0400 Subject: [PATCH] Include title ID in --listapps when possible --- src/hactoolnet/ProcessSwitchFs.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hactoolnet/ProcessSwitchFs.cs b/src/hactoolnet/ProcessSwitchFs.cs index 970479e6..488083be 100644 --- a/src/hactoolnet/ProcessSwitchFs.cs +++ b/src/hactoolnet/ProcessSwitchFs.cs @@ -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) {