Skip to content

Commit

Permalink
Add HL-DT-ST raw DVD read to device report (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
FakeShemp authored Oct 20, 2024
1 parent 294d34e commit 99561e4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Aaru.Core/Devices/Report/MMC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2743,6 +2743,22 @@ mediaType is "Ultra HD Blu-ray movie"
{
ctx.AddTask(Localization.Core.Trying_HL_DT_ST_aka_LG_trick_to_raw_read_DVDs).IsIndeterminate();

// We need to fill the buffer before reading it with the HL-DT-ST command. We don't care about sense,
// because the data can be wrong anyway, so we need to check the buffer data later instead.
_dev.Read10(out buffer,
out _,
0,
false,
false,
false,
false,
0,
2048,
0,
1,
_dev.Timeout,
out _);

mediaTest.SupportsHLDTSTReadRawDVD =
!_dev.HlDtStReadRawDvd(out buffer, out senseBuffer, 16, 1, _dev.Timeout, out _);
});
Expand Down

0 comments on commit 99561e4

Please sign in to comment.