Non-zero data start only for audio discs (fixes #536)

This commit is contained in:
Matt Nadareski
2023-08-15 12:07:29 -04:00
parent 56e91bf177
commit aa4b2f415d
2 changed files with 8 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
- Remove `_drive.txt` from required UIC outputs
- Make `use` flag required for MPF.Check
- Add dumping date to log
- Non-zero data start only for audio discs
### 2.6.2 (2023-07-25)

View File

@@ -284,9 +284,12 @@ namespace MPF.Modules.Redumper
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.UniversalHash] = universalHash;
}
// Attempt to get the non-zero data start
string ringNonZeroDataStart = GetRingNonZeroDataStart($"{basePath}.log") ?? string.Empty;
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.RingNonZeroDataStart] = ringNonZeroDataStart;
// Attempt to get the non-zero data start, if it's an audio disc
if (this.System.IsAudio())
{
string ringNonZeroDataStart = GetRingNonZeroDataStart($"{basePath}.log") ?? string.Empty;
info.CommonDiscInfo.CommentsSpecialFields[SiteCode.RingNonZeroDataStart] = ringNonZeroDataStart;
}
break;
@@ -879,7 +882,7 @@ namespace MPF.Modules.Redumper
default:
BaseCommand = null;
return;
}
}
this[FlagStrings.Drive] = true;
DriveValue = driveLetter.ToString();