Add Redump-specific PS5 PIC post-processing (fixes #974)

This commit is contained in:
Matt Nadareski
2026-05-03 21:21:38 -04:00
parent 8decb2a74e
commit bbbf77aa86
2 changed files with 11 additions and 0 deletions

View File

@@ -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)

View File

@@ -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\n<b>PIC (Ignore PIC field):</b>\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();
}