[Aaru.Filesystems] Reformat and cleanup.

This commit is contained in:
2023-10-03 23:22:08 +01:00
parent 51f35c80d9
commit 7a608e0061
296 changed files with 21000 additions and 18286 deletions

View File

@@ -38,9 +38,16 @@ namespace Aaru.Filesystems;
/// </summary>
public sealed partial class MicroDOS
{
#region Nested type: FileStatus
enum FileStatus : byte
{
CommonFile = 0, Protected = 1, LogicalDisk = 2,
BadFile = 0x80, Deleted = 0xFF
CommonFile = 0,
Protected = 1,
LogicalDisk = 2,
BadFile = 0x80,
Deleted = 0xFF
}
#endregion
}

View File

@@ -45,6 +45,8 @@ namespace Aaru.Filesystems;
/// </summary>
public sealed partial class MicroDOS
{
#region IFilesystem Members
/// <inheritdoc />
public bool Identify(IMediaImage imagePlugin, Partition partition)
{
@@ -87,7 +89,7 @@ public sealed partial class MicroDOS
AppendLine();
sb.AppendFormat(Localization.Volume_contains_0_files, block0.files).AppendLine();
sb.AppendFormat(Localization.First_used_block_is_0, block0.firstUsedBlock).AppendLine();
sb.AppendFormat(Localization.First_used_block_is_0, block0.firstUsedBlock).AppendLine();
metadata = new FileSystem
{
@@ -100,4 +102,6 @@ public sealed partial class MicroDOS
information = sb.ToString();
}
#endregion
}

View File

@@ -41,10 +41,16 @@ namespace Aaru.Filesystems;
/// </summary>
public sealed partial class MicroDOS : IFilesystem
{
#region IFilesystem Members
/// <inheritdoc />
public string Name => Localization.MicroDOS_Name;
/// <inheritdoc />
public Guid Id => new("9F9A364A-1A27-48A3-B730-7A7122000324");
/// <inheritdoc />
public string Author => Authors.NataliaPortillo;
#endregion
}

View File

@@ -40,6 +40,8 @@ namespace Aaru.Filesystems;
/// </summary>
public sealed partial class MicroDOS
{
#region Nested type: Block0
// Followed by directory entries
[StructLayout(LayoutKind.Sequential, Pack = 1)]
readonly struct Block0
@@ -73,6 +75,10 @@ public sealed partial class MicroDOS
public readonly byte[] unknown3;
}
#endregion
#region Nested type: DirectoryEntry
[StructLayout(LayoutKind.Sequential, Pack = 1)]
readonly struct DirectoryEntry
{
@@ -92,4 +98,6 @@ public sealed partial class MicroDOS
/// <summary>Length</summary>
public readonly ushort length;
}
#endregion
}