A Nintendo DS ROM file.
Inheritance: Glare.Assets.FolderAsset
示例#1
0
文件: Rom.cs 项目: layshua/Alexandria
        internal RomFolder(Rom rom, int index, BinaryReader reader)
            : base(rom, "Folder " + index)
        {
            Rom   = rom;
            Index = index;

            FileNameOffset = reader.ReadInt32();
            FileIndex      = reader.ReadUInt16();

            // For the root folder this is the total number of folders.
            // Sub-folders are masked 0xF000, and the value masked by 0xFFF is the index of the parent folder.
            reader.ReadUInt16();

            Used = false;
        }
示例#2
0
        internal RomFolder(Rom rom, int index, BinaryReader reader)
            : base(rom, "Folder " + index)
        {
            Rom = rom;
            Index = index;

            FileNameOffset = reader.ReadInt32();
            FileIndex = reader.ReadUInt16();

            // For the root folder this is the total number of folders.
            // Sub-folders are masked 0xF000, and the value masked by 0xFFF is the index of the parent folder.
            reader.ReadUInt16();

            Used = false;
        }
示例#3
0
        internal RomFile(Rom rom, int index, BinaryReader reader)
            : base(rom, "File " + index)
        {
            Rom = rom;
            Index = index;

            StartOffset = reader.ReadInt32();
            EndOffset = reader.ReadInt32();
            Used = false;
        }