mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Check BCA on all Blu-ray discs.
This commit is contained in:
@@ -1106,6 +1106,9 @@ public sealed class ScsiInfo
|
||||
case MediaType.UHDBD:
|
||||
case MediaType.BDRXL:
|
||||
case MediaType.BDREXL:
|
||||
case MediaType.PS4BD:
|
||||
case MediaType.PS5BD:
|
||||
case MediaType.XGD4:
|
||||
sense = dev.ReadDiscStructure(out cmdBuf,
|
||||
out senseBuf,
|
||||
MmcDiscStructureMediaType.Bd,
|
||||
@@ -1144,17 +1147,6 @@ public sealed class ScsiInfo
|
||||
else
|
||||
BlurayPac = cmdBuf;
|
||||
|
||||
break;
|
||||
|
||||
#endregion All Blu-ray
|
||||
}
|
||||
|
||||
switch(MediaType)
|
||||
{
|
||||
#region BD-ROM only
|
||||
|
||||
case MediaType.BDROM:
|
||||
case MediaType.UHDBD:
|
||||
sense = dev.ReadDiscStructure(out cmdBuf,
|
||||
out senseBuf,
|
||||
MmcDiscStructureMediaType.Bd,
|
||||
@@ -1176,8 +1168,11 @@ public sealed class ScsiInfo
|
||||
|
||||
break;
|
||||
|
||||
#endregion BD-ROM only
|
||||
#endregion All Blu-ray
|
||||
}
|
||||
|
||||
switch(MediaType)
|
||||
{
|
||||
#region Writable Blu-ray only
|
||||
|
||||
case MediaType.BDR:
|
||||
@@ -1493,9 +1488,7 @@ public sealed class ScsiInfo
|
||||
|
||||
if(sense)
|
||||
{
|
||||
AaruLogging.Debug(MODULE_NAME,
|
||||
Localization.Core.READ_MEDIA_SERIAL_NUMBER_0,
|
||||
Sense.PrettifySense(senseBuf));
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.READ_MEDIA_SERIAL_NUMBER_0, Sense.PrettifySense(senseBuf));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1607,9 +1600,7 @@ public sealed class ScsiInfo
|
||||
0xFFFFFFFF) +
|
||||
1;
|
||||
|
||||
AaruLogging.Debug(MODULE_NAME,
|
||||
Localization.Core.Game_partition_total_size_0_sectors,
|
||||
gameSize);
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.Game_partition_total_size_0_sectors, gameSize);
|
||||
|
||||
// Get middle zone size
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.Getting_middle_zone_size);
|
||||
@@ -1651,9 +1642,7 @@ public sealed class ScsiInfo
|
||||
break;
|
||||
}
|
||||
|
||||
AaruLogging.Debug(MODULE_NAME,
|
||||
Localization.Core.Unlocked_total_size_0_sectors,
|
||||
totalSize);
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.Unlocked_total_size_0_sectors, totalSize);
|
||||
|
||||
ulong middleZone = totalSize -
|
||||
(PFI.Decode(cmdBuf, MediaType).Value.Layer0EndPSN -
|
||||
|
||||
Reference in New Issue
Block a user