From bbbf77aa86e9c614f99424dbc14990462098046c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 3 May 2026 21:21:38 -0400 Subject: [PATCH] Add Redump-specific PS5 PIC post-processing (fixes #974) --- CHANGELIST.md | 1 + MPF.Frontend/DumpEnvironment.cs | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index 896ff1d8..bfdc1840 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -17,6 +17,7 @@ - Convert type of reports from success to neutral for essential steps (shfil119) - Subtract fixed SCSI errors - Fix trailing newline trimming for cue import (fuzz6001) +- Add Redump-specific PS5 post-processing ### 3.7.1 (2026-03-30) diff --git a/MPF.Frontend/DumpEnvironment.cs b/MPF.Frontend/DumpEnvironment.cs index 1a7da8bd..6c1f3837 100644 --- a/MPF.Frontend/DumpEnvironment.cs +++ b/MPF.Frontend/DumpEnvironment.cs @@ -679,6 +679,16 @@ namespace MPF.Frontend resultProgress.Report(ResultEventArgs.Failure("Failed to create IRD")); } + // REDUMP SUBMISSION HACK SPECIFIC TO PS5 + if (_system == RedumpSystem.SonyPlayStation5 + && submissionInfo?.Extras?.PIC is not null + && _options.Processing.MediaInformation.EnableRedumpCompatibility) + { + resultProgress.Report(ResultEventArgs.Neutral("Copying PIC to comments for PS5 disc...")); + submissionInfo.CommonDiscInfo.Comments += $"\n\nPIC (Ignore PIC field):\n\n{submissionInfo.Extras.PIC}"; + resultProgress.Report(ResultEventArgs.Neutral("PS5 PIC copied to comments!")); + } + resultProgress.Report(ResultEventArgs.Success("Submission information process complete!")); return ResultEventArgs.Success(); }