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; }
internal RomFile(Rom rom, int index, BinaryReader reader) : base(rom, "File " + index) { Rom = rom; Index = index; StartOffset = reader.ReadInt32(); EndOffset = reader.ReadInt32(); Used = false; }