mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Reformatted.
This commit is contained in:
@@ -126,7 +126,7 @@ namespace DiscImageChef.Decoders.DVD
|
||||
if(response == null)
|
||||
return null;
|
||||
|
||||
if (response.Length != 8)
|
||||
if(response.Length != 8)
|
||||
return null;
|
||||
|
||||
LeadInCopyright cmi = new LeadInCopyright();
|
||||
@@ -144,13 +144,13 @@ namespace DiscImageChef.Decoders.DVD
|
||||
|
||||
public static string PrettifyLeadInCopyright(LeadInCopyright? cmi)
|
||||
{
|
||||
if (cmi == null)
|
||||
if(cmi == null)
|
||||
return null;
|
||||
|
||||
LeadInCopyright decoded = cmi.Value;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
switch (decoded.CopyrightType)
|
||||
switch(decoded.CopyrightType)
|
||||
{
|
||||
case CopyrightType.NoProtection:
|
||||
sb.AppendLine("Disc has no encryption.");
|
||||
@@ -169,31 +169,31 @@ namespace DiscImageChef.Decoders.DVD
|
||||
break;
|
||||
}
|
||||
|
||||
if (decoded.CopyrightType == 0)
|
||||
if(decoded.CopyrightType == 0)
|
||||
return sb.ToString();
|
||||
|
||||
if (decoded.RegionInformation == 0xFF)
|
||||
if(decoded.RegionInformation == 0xFF)
|
||||
sb.AppendLine("Disc cannot be played in any region at all.");
|
||||
else if (decoded.RegionInformation == 0x00)
|
||||
else if(decoded.RegionInformation == 0x00)
|
||||
sb.AppendLine("Disc can be played in any region.");
|
||||
else
|
||||
{
|
||||
sb.Append("Disc can be played in the following regions:");
|
||||
if ((decoded.RegionInformation & 0x01) != 0x01)
|
||||
if((decoded.RegionInformation & 0x01) != 0x01)
|
||||
sb.Append(" 0");
|
||||
if ((decoded.RegionInformation & 0x02) != 0x02)
|
||||
if((decoded.RegionInformation & 0x02) != 0x02)
|
||||
sb.Append(" 1");
|
||||
if ((decoded.RegionInformation & 0x04) != 0x04)
|
||||
if((decoded.RegionInformation & 0x04) != 0x04)
|
||||
sb.Append(" 2");
|
||||
if ((decoded.RegionInformation & 0x08) != 0x08)
|
||||
if((decoded.RegionInformation & 0x08) != 0x08)
|
||||
sb.Append(" 3");
|
||||
if ((decoded.RegionInformation & 0x10) != 0x10)
|
||||
if((decoded.RegionInformation & 0x10) != 0x10)
|
||||
sb.Append(" 4");
|
||||
if ((decoded.RegionInformation & 0x20) != 0x20)
|
||||
if((decoded.RegionInformation & 0x20) != 0x20)
|
||||
sb.Append(" 5");
|
||||
if ((decoded.RegionInformation & 0x40) != 0x40)
|
||||
if((decoded.RegionInformation & 0x40) != 0x40)
|
||||
sb.Append(" 6");
|
||||
if ((decoded.RegionInformation & 0x80) != 0x80)
|
||||
if((decoded.RegionInformation & 0x80) != 0x80)
|
||||
sb.Append(" 7");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user