// /*************************************************************************** // The Disc Image Chef // ---------------------------------------------------------------------------- // // Filename : AppleDOS.cs // Author(s) : Natalia Portillo // // Component : Apple DOS filesystem plugin. // // --[ Description ] ---------------------------------------------------------- // // Constructors and common variables for the Apple DOS filesystem plugin. // // --[ License ] -------------------------------------------------------------- // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2018 Natalia Portillo // ****************************************************************************/ using System; using System.Collections.Generic; using System.Text; using DiscImageChef.CommonTypes.Interfaces; using Schemas; namespace DiscImageChef.Filesystems.AppleDOS { public partial class AppleDOS : IReadOnlyFilesystem { bool debug; IMediaImage device; bool mounted; int sectorsPerTrack; ulong start; ulong totalFileEntries; bool track1UsedByFiles; bool track2UsedByFiles; int usedSectors; Vtoc vtoc; public FileSystemType XmlFsType { get; private set; } public Encoding Encoding { get; private set; } public string Name => "Apple DOS File System"; public Guid Id => new Guid("8658A1E9-B2E7-4BCC-9638-157A31B0A700\n"); public string Author => "Natalia Portillo"; public IEnumerable<(string name, Type type, string description)> SupportedOptions => new (string name, Type type, string description)[] { }; static Dictionary GetDefaultOptions() => new Dictionary {{"debug", false.ToString()}}; #region Caches /// Caches track/sector lists Dictionary extentCache; /// Caches files Dictionary fileCache; /// Caches catalog Dictionary catalogCache; /// Caches file size Dictionary fileSizeCache; /// Caches VTOC byte[] vtocBlocks; /// Caches catalog byte[] catalogBlocks; /// Caches boot code byte[] bootBlocks; /// Caches file type Dictionary fileTypeCache; /// Caches locked files List lockedFiles; #endregion Caches } }