diff --git a/CHANGELIST.md b/CHANGELIST.md index ed93660a..61fe941f 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -3,6 +3,7 @@ - Option for default Redumper leadin retries (Deterous) - Omit false positives on formatting protections - Critical update to BinaryObjectScanner 3.1.10 +- Add _PFI.bin support for UIC ### 3.1.7 (2024-04-28) diff --git a/MPF.Core/Modules/UmdImageCreator/Parameters.cs b/MPF.Core/Modules/UmdImageCreator/Parameters.cs index 43cdb268..e8553aaf 100644 --- a/MPF.Core/Modules/UmdImageCreator/Parameters.cs +++ b/MPF.Core/Modules/UmdImageCreator/Parameters.cs @@ -114,16 +114,18 @@ namespace MPF.Core.Modules.UmdImageCreator { info.Artifacts ??= []; - if (File.Exists(basePath + "_disc.txt")) - info.Artifacts["disc"] = GetBase64(GetFullFile(basePath + "_disc.txt")) ?? string.Empty; - if (File.Exists(basePath + "_drive.txt")) - info.Artifacts["drive"] = GetBase64(GetFullFile(basePath + "_drive.txt")) ?? string.Empty; - if (File.Exists(basePath + "_mainError.txt")) - info.Artifacts["mainError"] = GetBase64(GetFullFile(basePath + "_mainError.txt")) ?? string.Empty; - if (File.Exists(basePath + "_mainInfo.txt")) - info.Artifacts["mainInfo"] = GetBase64(GetFullFile(basePath + "_mainInfo.txt")) ?? string.Empty; - if (File.Exists(basePath + "_volDesc.txt")) - info.Artifacts["volDesc"] = GetBase64(GetFullFile(basePath + "_volDesc.txt")) ?? string.Empty; + if (File.Exists($"{basePath}_disc.txt")) + info.Artifacts["disc"] = GetBase64(GetFullFile($"{basePath}_disc.txt")) ?? string.Empty; + if (File.Exists($"{basePath}_drive.txt")) + info.Artifacts["drive"] = GetBase64(GetFullFile($"{basePath}_drive.txt")) ?? string.Empty; + if (File.Exists($"{basePath}_mainError.txt")) + info.Artifacts["mainError"] = GetBase64(GetFullFile($"{basePath}_mainError.txt")) ?? string.Empty; + if (File.Exists($"{basePath}_mainInfo.txt")) + info.Artifacts["mainInfo"] = GetBase64(GetFullFile($"{basePath}_mainInfo.txt")) ?? string.Empty; + //if (File.Exists($"{basePath}_PFI.bin")) + // info.Artifacts["pfi"] = Convert.ToBase64String(File.ReadAllBytes($"{basePath}_PFI.bin")) ?? string.Empty; + if (File.Exists($"{basePath}_volDesc.txt")) + info.Artifacts["volDesc"] = GetBase64(GetFullFile($"{basePath}_volDesc.txt")) ?? string.Empty; } } @@ -145,6 +147,9 @@ namespace MPF.Core.Modules.UmdImageCreator if (File.Exists($"{basePath}_volDesc.txt")) logFiles.Add($"{basePath}_volDesc.txt"); + if (File.Exists($"{basePath}_PFI.bin")) + logFiles.Add($"{basePath}_PFI.bin"); + break; }