mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-07-08 18:16:24 +00:00
Use ternary
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5ac8231b6a
commit
666ae17ebd
@@ -592,24 +592,20 @@ sealed partial class Reader
|
|||||||
if(_dev.IsOmniDriveFirmware())
|
if(_dev.IsOmniDriveFirmware())
|
||||||
{
|
{
|
||||||
bool omniStandardOk = !_dev.OmniDriveReadRawDvd(out _, out senseBuf, 0, 1, _timeout, out _, true, true);
|
bool omniStandardOk = !_dev.OmniDriveReadRawDvd(out _, out senseBuf, 0, 1, _timeout, out _, true, true);
|
||||||
if(omniStandardOk)
|
|
||||||
{
|
OmniDriveReadRaw = omniStandardOk
|
||||||
OmniDriveReadRaw = true;
|
? true
|
||||||
}
|
: !_dev.OmniDriveReadNintendoDvd(out _,
|
||||||
else
|
out senseBuf,
|
||||||
{
|
0,
|
||||||
OmniDriveReadRaw = !_dev.OmniDriveReadNintendoDvd(out _,
|
1,
|
||||||
out senseBuf,
|
_timeout,
|
||||||
0,
|
out _,
|
||||||
1,
|
true,
|
||||||
_timeout,
|
true,
|
||||||
out _,
|
null,
|
||||||
true,
|
false,
|
||||||
true,
|
0);
|
||||||
null,
|
|
||||||
false,
|
|
||||||
0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(HldtstReadRaw || _plextorReadRaw || ReadBuffer3CReadRaw || OmniDriveReadRaw)
|
if(HldtstReadRaw || _plextorReadRaw || ReadBuffer3CReadRaw || OmniDriveReadRaw)
|
||||||
|
|||||||
Reference in New Issue
Block a user