diff --git a/CHANGELIST.md b/CHANGELIST.md index 70e7f1ca..b89b59bd 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -10,6 +10,7 @@ - Make .NET 8 the default in issue reports - Remove ReadLine in list commands - Sum track errors in Redumper +- Format CleanRip BCA wtih 2-byte blocks ### 3.2.2 (2024-09-24) diff --git a/MPF.Processors/CleanRip.cs b/MPF.Processors/CleanRip.cs index 4ae05b23..c5d7032c 100644 --- a/MPF.Processors/CleanRip.cs +++ b/MPF.Processors/CleanRip.cs @@ -174,7 +174,9 @@ internal override List GetOutputFiles(string baseFilename) if (hex == null) return null; - return Regex.Replace(hex, ".{32}", "$0\n"); + // First separate into lines then into blocks of 4 hex digits + string bca = Regex.Replace(hex, ".{32}", "$0\n"); + return Regex.Replace(bca, "[0-9a-fA-F]{4}", "$0 "); } catch {