Exemplo n.º 1
0
        public IStorage OpenNroAssetSection(NroAssetType type, bool leaveOpen)
        {
            NroAssetSection header = AssetHeader.NroAssetSections[(int)type];

            if (header.Size <= 0)
            {
                return(new NullStorage(0));
            }

            return(AssetStorage.Slice(header.FileOffset, header.Size, leaveOpen));
        }
Exemplo n.º 2
0
 public NroAssetSection(BinaryReader reader, NroAssetType type)
 {
     Type       = type;
     FileOffset = (uint)reader.ReadUInt64();
     Size       = (uint)reader.ReadUInt64();
 }