Print filename for ISO info, remove trailing comma for JSON

This commit is contained in:
Deterous
2023-12-06 12:56:31 +13:00
parent a036481560
commit 8ccbc8430c
3 changed files with 40 additions and 18 deletions
+5 -2
View File
@@ -103,11 +103,14 @@ namespace LibIRD
/// Prints formatted parameters extracted from PS3_DISC.SFB to console
/// </summary>
/// <param name="printPath">Optionally print to text file</param>
public void Print(string printPath = null)
public void Print(string printPath = null, string isoName = null)
{
// Build string from parameters
StringBuilder printText = new();
printText.AppendLine("PS3_DISC.SFB Contents:");
if (isoName != null)
printText.AppendLine($"PS3_DISC.SFB Contents: {isoName}");
else
printText.AppendLine("PS3_DISC.SFB Contents:");
printText.AppendLine("======================");
// Loop through all parameters in PARAM.SFO