示例#1
0
 public DiabloPack(DiabloDiskType type)
 {
     _diskType = type;
     _packName = null;
     _geometry = new DiskGeometry(type == DiabloDiskType.Diablo31 ? 203 : 406, 2, 12);
     _sectors  = new DiabloDiskSector[_geometry.Cylinders, _geometry.Tracks, _geometry.Sectors];
 }
示例#2
0
        public HereAreDiskParamsBFSBlock(DiskGeometry geometry)
        {
            Length  = 6;
            Command = (ushort)CopyDiskBlock.HereAreDiskParams;

            DiskType  = 10;     // 12(octal) - BFS disk types
            Cylinders = (ushort)geometry.Cylinders;
            Heads     = (ushort)geometry.Tracks;
            Sectors   = (ushort)geometry.Sectors;
        }