mirror of
https://github.com/aaru-dps/Aaru.Decryption.git
synced 2025-12-16 19:24:33 +00:00
Convert if to switch statement.
This commit is contained in:
15
DVD/Dump.cs
15
DVD/Dump.cs
@@ -361,13 +361,16 @@ public sealed class Dump
|
||||
|
||||
sense = InvalidateAgid(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout, out duration);
|
||||
|
||||
// Get AGID
|
||||
if(protectionType == CopyrightType.CSS)
|
||||
sense = ReportAgidCssCppm(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout,
|
||||
out duration);
|
||||
switch(protectionType)
|
||||
{
|
||||
// Get AGID
|
||||
case CopyrightType.CSS:
|
||||
sense = ReportAgidCssCppm(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout,
|
||||
out duration);
|
||||
|
||||
if(protectionType == CopyrightType.CPRM)
|
||||
throw new NotImplementedException();
|
||||
break;
|
||||
case CopyrightType.CPRM: throw new NotImplementedException();
|
||||
}
|
||||
|
||||
if(!sense)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user