REFACTOR: Final cleanup of DiscImageChef.Filesystems.

This commit is contained in:
2017-12-24 02:37:41 +00:00
parent ec73a6cdc3
commit 4115698ac8
94 changed files with 5196 additions and 5116 deletions

View File

@@ -41,39 +41,18 @@ namespace DiscImageChef.Filesystems.AppleDOS
{
public partial class AppleDOS : Filesystem
{
bool mounted;
bool debug;
readonly ImagePlugin device;
#region Caches
/// <summary>Caches track/sector lists</summary>
Dictionary<string, byte[]> extentCache;
/// <summary>Caches files</summary>
Dictionary<string, byte[]> fileCache;
/// <summary>Caches catalog</summary>
Dictionary<string, ushort> catalogCache;
/// <summary>Caches file size</summary>
Dictionary<string, int> fileSizeCache;
/// <summary>Caches VTOC</summary>
byte[] vtocBlocks;
/// <summary>Caches catalog</summary>
byte[] catalogBlocks;
/// <summary>Caches boot code</summary>
byte[] bootBlocks;
/// <summary>Caches file type</summary>
Dictionary<string, byte> fileTypeCache;
/// <summary>Caches locked files</summary>
List<string> lockedFiles;
#endregion Caches
Vtoc vtoc;
ulong start;
bool debug;
bool mounted;
int sectorsPerTrack;
ulong start;
ulong totalFileEntries;
bool track1UsedByFiles;
bool track2UsedByFiles;
int usedSectors;
Vtoc vtoc;
public AppleDOS()
{
Name = "Apple DOS File System";
@@ -98,5 +77,26 @@ namespace DiscImageChef.Filesystems.AppleDOS
// TODO: Until Apple ][ encoding is implemented
CurrentEncoding = new LisaRoman();
}
#region Caches
/// <summary>Caches track/sector lists</summary>
Dictionary<string, byte[]> extentCache;
/// <summary>Caches files</summary>
Dictionary<string, byte[]> fileCache;
/// <summary>Caches catalog</summary>
Dictionary<string, ushort> catalogCache;
/// <summary>Caches file size</summary>
Dictionary<string, int> fileSizeCache;
/// <summary>Caches VTOC</summary>
byte[] vtocBlocks;
/// <summary>Caches catalog</summary>
byte[] catalogBlocks;
/// <summary>Caches boot code</summary>
byte[] bootBlocks;
/// <summary>Caches file type</summary>
Dictionary<string, byte> fileTypeCache;
/// <summary>Caches locked files</summary>
List<string> lockedFiles;
#endregion Caches
}
}