A volume in a NintendoOpticalDisc.
Inheritance: Glare.Assets.FolderAsset
Example #1
0
        internal NintendoOpticalDiscPartition(NintendoOpticalDiscVolume volume, AssetLoader loader, int index)
            : base(volume, volume.Name + ", Partition " + (index + 1))
        {
            BinaryReader reader = loader.Reader;

            Cypher.Padding = PaddingMode.None;
            Cypher.Mode    = CipherMode.CBC;

            Index        = index;
            HeaderOffset = reader.ReadUInt32() * 4L;
            Type         = (NintendoOpticalDiscPartitionType)reader.ReadInt32();
        }
        internal NintendoOpticalDiscPartition(NintendoOpticalDiscVolume volume, AssetLoader loader, int index)
            : base(volume, volume.Name + ", Partition " + (index + 1))
        {
            BinaryReader reader = loader.Reader;

            Cypher.Padding = PaddingMode.None;
            Cypher.Mode = CipherMode.CBC;

            Index = index;
            HeaderOffset = reader.ReadUInt32() * 4L;
            Type = (NintendoOpticalDiscPartitionType)reader.ReadInt32();
        }