diff --git a/CHANGELIST.md b/CHANGELIST.md index 138d1dc22..0af9fddd8 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -1,3 +1,7 @@ +### WIP (xxxx-xx-xx) + +- Pre-compress subcode files with Zstd + ### 3.8.3 (2026-07-06) - Add live tool output console for the Linux GUI (gmipf) diff --git a/MPF.Processors.Test/RedumperTests.cs b/MPF.Processors.Test/RedumperTests.cs index 8d234993f..9298cac4c 100644 --- a/MPF.Processors.Test/RedumperTests.cs +++ b/MPF.Processors.Test/RedumperTests.cs @@ -103,7 +103,7 @@ public void GetOutputFiles_CDROM_Populated() var processor = new Redumper(PhysicalSystem.IBMPCcompatible); var actual = processor.GetOutputFiles(PhysicalMediaType.CDROM, outputDirectory, outputFilename); - Assert.Equal(19, actual.Count); + Assert.Equal(20, actual.Count); } [Fact] @@ -161,7 +161,7 @@ public void FoundAllFiles_Invalid_Filled() string outputFilename = string.Empty; var processor = new Redumper(PhysicalSystem.IBMPCcompatible); var actual = processor.FoundAllFiles(PhysicalMediaType.CDROM, outputDirectory, outputFilename); - Assert.Equal(5, actual.Count); + Assert.Equal(4, actual.Count); } [Fact] diff --git a/MPF.Processors/Redumper.cs b/MPF.Processors/Redumper.cs index 930ec58e8..5a1dd342d 100644 --- a/MPF.Processors/Redumper.cs +++ b/MPF.Processors/Redumper.cs @@ -127,6 +127,8 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, PhysicalMediaTy _ = CompressZstandard($"{basePath}.skeleton"); if (File.Exists($"{basePath}.state")) _ = CompressZstandard($"{basePath}.state"); + if (File.Exists($"{basePath}.subcode")) + _ = CompressZstandard($"{basePath}.subcode"); // Pre-compress all skeletons for multi-track CDs if (File.Exists($"{basePath}.cue")) @@ -571,8 +573,10 @@ internal override List GetOutputFiles(PhysicalMediaType? mediaType, new($"{outputFilename}.state.zst", OutputFileFlags.Binary | OutputFileFlags.Zippable, "state_zst"), - new($"{outputFilename}.subcode", OutputFileFlags.Required - | OutputFileFlags.Binary + new($"{outputFilename}.subcode", OutputFileFlags.Binary + | OutputFileFlags.Zippable, + "subcode"), + new($"{outputFilename}.subcode.zst", OutputFileFlags.Binary | OutputFileFlags.Zippable, "subcode"), new($"{outputFilename}.toc", OutputFileFlags.Required