mirror of
https://github.com/aaru-dps/Aaru.Decryption.git
synced 2025-12-16 19:24:33 +00:00
Use merge pattern.
This commit is contained in:
@@ -34,8 +34,6 @@
|
|||||||
// Copyright © 2020-2022 Rebecca Wallander
|
// Copyright © 2020-2022 Rebecca Wallander
|
||||||
// ****************************************************************************/
|
// ****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Based on information gathered from:
|
// Based on information gathered from:
|
||||||
// ISO/IEC13818-1 Second Edition
|
// ISO/IEC13818-1 Second Edition
|
||||||
// Mt. Fuji Commands for Multimedia Devices
|
// Mt. Fuji Commands for Multimedia Devices
|
||||||
@@ -697,8 +695,7 @@ public class CSS
|
|||||||
public static bool CheckRegion(CSS_CPRM.RegionalPlaybackControlState rpc, CSS_CPRM.LeadInCopyright cmi)
|
public static bool CheckRegion(CSS_CPRM.RegionalPlaybackControlState rpc, CSS_CPRM.LeadInCopyright cmi)
|
||||||
{
|
{
|
||||||
// if disc region is all or none, we cannot do anything but try to read it as is
|
// if disc region is all or none, we cannot do anything but try to read it as is
|
||||||
if(cmi.RegionInformation == 0xFF ||
|
if(cmi.RegionInformation is 0xFF or 0x00)
|
||||||
cmi.RegionInformation == 0x00)
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return (rpc.RegionMask & 0x01) == (cmi.RegionInformation & 0x01) && (rpc.RegionMask & 0x01) != 0x01 ||
|
return (rpc.RegionMask & 0x01) == (cmi.RegionInformation & 0x01) && (rpc.RegionMask & 0x01) != 0x01 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user