mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix XGD media type outputs (fixes #441)
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
- Update AppVeyor version
|
||||
- Output security sectors to info
|
||||
- Remove x86 requirement for build
|
||||
- Fix XGD media type outputs
|
||||
|
||||
### 2.4 (2022-10-26)
|
||||
- Update to DIC 20211001
|
||||
|
||||
@@ -834,11 +834,9 @@ namespace MPF.Library
|
||||
output.Add(""); output.Add("Size & Checksum:");
|
||||
|
||||
// Gross hack because of automatic layerbreaks in Redump
|
||||
if ((info.CommonDiscInfo.Media != DiscType.BD25
|
||||
&& info.CommonDiscInfo.Media != DiscType.BD50
|
||||
&& info.CommonDiscInfo.Media != DiscType.BD100
|
||||
&& info.CommonDiscInfo.Media != DiscType.BD128)
|
||||
|| (!options.EnableRedumpCompatibility))
|
||||
if (!options.EnableRedumpCompatibility
|
||||
|| (info.CommonDiscInfo.Media.ToMediaType() != MediaType.BluRay
|
||||
&& !info.CommonDiscInfo.System.IsXGD()))
|
||||
{
|
||||
AddIfExists(output, Template.LayerbreakField, (info.SizeAndChecksums.Layerbreak == default ? null : info.SizeAndChecksums.Layerbreak.ToString()), 1);
|
||||
}
|
||||
|
||||
@@ -447,11 +447,8 @@ namespace MPF.Modules.DiscImageCreator
|
||||
// Deal with the layerbreaks
|
||||
if (this.Type == MediaType.DVD)
|
||||
{
|
||||
if (!options.EnableRedumpCompatibility || !System.IsXGD())
|
||||
{
|
||||
string layerbreak = GetLayerbreak($"{basePath}_disc.txt", System.IsXGD()) ?? "";
|
||||
info.SizeAndChecksums.Layerbreak = !string.IsNullOrEmpty(layerbreak) ? Int64.Parse(layerbreak) : default;
|
||||
}
|
||||
string layerbreak = GetLayerbreak($"{basePath}_disc.txt", System.IsXGD()) ?? "";
|
||||
info.SizeAndChecksums.Layerbreak = !string.IsNullOrEmpty(layerbreak) ? Int64.Parse(layerbreak) : default;
|
||||
}
|
||||
else if (this.Type == MediaType.BluRay)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user