Read cuesheet from Redumper log, if possible (fixes #962)

This commit is contained in:
Matt Nadareski
2026-03-26 11:15:23 -04:00
parent fbda917c75
commit f586fd413a
2 changed files with 6 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
- Display the path being processed in Check since multiple are allowed
- Replace method already ported to IO
- Read cuesheet from Redumper log, if possible
### 3.7.0 (2026-03-20)

View File

@@ -161,8 +161,11 @@ namespace MPF.Processors
switch (mediaType)
{
case MediaType.CDROM:
// TODO: Read the cuesheet from the log if the external file doesn't exist
info.TracksAndWriteOffsets.Cuesheet = ProcessingTool.GetFullFile($"{basePath}.cue") ?? string.Empty;
case MediaType.GDROM:
// Read the cuesheet from the log, falling back to the external file
info.TracksAndWriteOffsets.Cuesheet = GetCuesheet($"{basePath}.log")
?? ProcessingTool.GetFullFile($"{basePath}.cue")
?? string.Empty;
// Attempt to get the error count
if (GetErrorCount($"{basePath}.log", out long redumpErrors, out long c2Errors))