LoadFile() static private method

static private LoadFile ( FolderAsset parent, BinaryReader reader, int &index, NintendoOpticalDiscSystem system ) : Asset
parent Glare.Assets.FolderAsset
reader System.IO.BinaryReader
index int
system NintendoOpticalDiscSystem
return Asset
Esempio n. 1
0
        internal NintendoOpticalDiscPartitionFolder(FolderAsset parent, ref int index, int nameOffset, BinaryReader reader, NintendoOpticalDiscSystem system)
            : base(parent, "")
        {
            Index      = index;
            NameOffset = nameOffset;
            int firstIndex = reader.ReadInt32();

            /*if (firstIndex != index + 1)
             *      throw new InvalidDataException();*/
            int endIndex = reader.ReadInt32();

            index++;
            while (index < endIndex)
            {
                NintendoOpticalDiscPartition.LoadFile(this, reader, ref index, system);
            }
        }