Пример #1
0
        private async Task InitMAD2()
        {
            if (_MAD2 != null)
            {
                return;
            }

            // load sector 1, block 2 and 3
            Sector sector0 = GetSector(0);
            var    access  = await sector0.Access();

            if (access.MADVersion != AccessConditions.MADVersionEnum.Version2)
            {
                return;
            }

            Sector sector16 = GetSector(16);

            Byte[] dataBlock1 = await sector16.GetData(0);

            Byte[] dataBlock2 = await sector16.GetData(1);

            Byte[] dataBlock3 = await sector16.GetData(2);

            _MAD2 = new MAD2(dataBlock1, dataBlock2, dataBlock3);
        }
Пример #2
0
        private void Initialize()
        {
            _Sectors = new Sector[MAX_SECTORS];
            _MAD     = null;
            _MAD2    = null;

            ActiveSector = -1;
        }