From ba7bacc11c0729ac32f4059bfa5645032c7130d8 Mon Sep 17 00:00:00 2001 From: Deterous <138427222+Deterous@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:51:07 +1300 Subject: [PATCH] Print all data to file --- IRDKit/Program.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/IRDKit/Program.cs b/IRDKit/Program.cs index 9f02d64..6883f10 100644 --- a/IRDKit/Program.cs +++ b/IRDKit/Program.cs @@ -178,16 +178,14 @@ namespace IRDKit // Print info from all IRDs foreach (string file in irdFiles) - { PrintInfo(file, opt.Json, false, opt.OutPath); - } // Print info from all ISOs foreach (string file in isoFiles) { try { - PrintISO(file, opt.Json); + PrintISO(file, opt.Json, opt.OutPath); } catch (InvalidFileSystemException) { @@ -237,7 +235,7 @@ namespace IRDKit { try { - PrintISO(inPath, json); + PrintISO(inPath, json, outPath); return; } catch (InvalidFileSystemException) @@ -324,7 +322,7 @@ namespace IRDKit catch (FileNotFoundException) { if (!json) - Console.WriteLine("PS3_DISC.SFB not found. Not a valid PS3 ISO?"); + Console.WriteLine($"PS3_DISC.SFB not found in {isoPath}. Not a valid PS3 ISO?"); } // Write PARAM.SFO info @@ -346,7 +344,7 @@ namespace IRDKit catch (FileNotFoundException) { if (!json) - Console.WriteLine("PS3_GAME\\PARAM.SFO not found. Not a valid PS3 ISO?"); + Console.WriteLine($"PS3_GAME\\PARAM.SFO not found in {isoPath}. Not a valid PS3 ISO?"); } // End JSON object