Esempio n. 1
0
        public CNMT(BinaryReader br)
        {
            TitleId      = br.ReadUInt64();
            TitleVersion = br.ReadUInt32();
            Type         = ((Types)br.ReadByte()).ToString();
            br.ReadByte();
            ushort offset  = br.ReadUInt16();
            ushort contCnt = br.ReadUInt16();
            ushort metaCnt = br.ReadUInt16();

            br.ReadBytes(12 + offset);
            contEntries = new List <ContEntry>();
            for (int i = 0; i < contCnt; i++)
            {
                ContEntry entry = new ContEntry(br);
                contEntries.Add(entry);
            }
            br.Close();
        }
Esempio n. 2
0
        public CNMT(BinaryReader br)
        {
            TitleId      = br.ReadUInt64();
            TitleVersion = br.ReadUInt32();
            Type         = ((Types)br.ReadByte()).ToString();
            br.ReadByte();
            var offset  = br.ReadUInt16();
            var contCnt = br.ReadUInt16();
            var metaCnt = br.ReadUInt16();

            br.ReadBytes(12 + offset);
            contEntries = new List <ContEntry>();
            for (var i = 0; i < contCnt; i++)
            {
                ContEntry entry = new ContEntry(br);
                Console.WriteLine("NcaID: " + entry.NcaId);
                contEntries.Add(entry);
            }
            br.Close();
        }