Print all data to file

This commit is contained in:
Deterous
2023-12-04 23:51:07 +13:00
parent 8b82ec3d4e
commit ba7bacc11c
+4 -6
View File
@@ -178,16 +178,14 @@ namespace IRDKit
// Print info from all IRDs // Print info from all IRDs
foreach (string file in irdFiles) foreach (string file in irdFiles)
{
PrintInfo(file, opt.Json, false, opt.OutPath); PrintInfo(file, opt.Json, false, opt.OutPath);
}
// Print info from all ISOs // Print info from all ISOs
foreach (string file in isoFiles) foreach (string file in isoFiles)
{ {
try try
{ {
PrintISO(file, opt.Json); PrintISO(file, opt.Json, opt.OutPath);
} }
catch (InvalidFileSystemException) catch (InvalidFileSystemException)
{ {
@@ -237,7 +235,7 @@ namespace IRDKit
{ {
try try
{ {
PrintISO(inPath, json); PrintISO(inPath, json, outPath);
return; return;
} }
catch (InvalidFileSystemException) catch (InvalidFileSystemException)
@@ -324,7 +322,7 @@ namespace IRDKit
catch (FileNotFoundException) catch (FileNotFoundException)
{ {
if (!json) 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 // Write PARAM.SFO info
@@ -346,7 +344,7 @@ namespace IRDKit
catch (FileNotFoundException) catch (FileNotFoundException)
{ {
if (!json) 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 // End JSON object